1. Packages
  2. Openstack Provider
  3. API Docs
  4. dns
  5. QuotaV2
OpenStack v5.3.2 published on Friday, Jul 18, 2025 by Pulumi

openstack.dns.QuotaV2

Explore with Pulumi AI

openstack logo
OpenStack v5.3.2 published on Friday, Jul 18, 2025 by Pulumi

    Manages DNS quota in OpenStack DNS Service.

    Note: This usually requires admin privileges.

    Note: This resource has a no-op deletion so no actual actions will be done against the OpenStack API in case of delete call.

    Create QuotaV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new QuotaV2(name: string, args: QuotaV2Args, opts?: CustomResourceOptions);
    @overload
    def QuotaV2(resource_name: str,
                args: QuotaV2Args,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def QuotaV2(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                project_id: Optional[str] = None,
                api_export_size: Optional[int] = None,
                recordset_records: Optional[int] = None,
                region: Optional[str] = None,
                zone_records: Optional[int] = None,
                zone_recordsets: Optional[int] = None,
                zones: Optional[int] = None)
    func NewQuotaV2(ctx *Context, name string, args QuotaV2Args, opts ...ResourceOption) (*QuotaV2, error)
    public QuotaV2(string name, QuotaV2Args args, CustomResourceOptions? opts = null)
    public QuotaV2(String name, QuotaV2Args args)
    public QuotaV2(String name, QuotaV2Args args, CustomResourceOptions options)
    
    type: openstack:dns:QuotaV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args QuotaV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args QuotaV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args QuotaV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QuotaV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QuotaV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var quotaV2Resource = new OpenStack.Dns.QuotaV2("quotaV2Resource", new()
    {
        ProjectId = "string",
        ApiExportSize = 0,
        RecordsetRecords = 0,
        Region = "string",
        ZoneRecords = 0,
        ZoneRecordsets = 0,
        Zones = 0,
    });
    
    example, err := dns.NewQuotaV2(ctx, "quotaV2Resource", &dns.QuotaV2Args{
    	ProjectId:        pulumi.String("string"),
    	ApiExportSize:    pulumi.Int(0),
    	RecordsetRecords: pulumi.Int(0),
    	Region:           pulumi.String("string"),
    	ZoneRecords:      pulumi.Int(0),
    	ZoneRecordsets:   pulumi.Int(0),
    	Zones:            pulumi.Int(0),
    })
    
    var quotaV2Resource = new com.pulumi.openstack.dns.QuotaV2("quotaV2Resource", com.pulumi.openstack.dns.QuotaV2Args.builder()
        .projectId("string")
        .apiExportSize(0)
        .recordsetRecords(0)
        .region("string")
        .zoneRecords(0)
        .zoneRecordsets(0)
        .zones(0)
        .build());
    
    quota_v2_resource = openstack.dns.QuotaV2("quotaV2Resource",
        project_id="string",
        api_export_size=0,
        recordset_records=0,
        region="string",
        zone_records=0,
        zone_recordsets=0,
        zones=0)
    
    const quotaV2Resource = new openstack.dns.QuotaV2("quotaV2Resource", {
        projectId: "string",
        apiExportSize: 0,
        recordsetRecords: 0,
        region: "string",
        zoneRecords: 0,
        zoneRecordsets: 0,
        zones: 0,
    });
    
    type: openstack:dns:QuotaV2
    properties:
        apiExportSize: 0
        projectId: string
        recordsetRecords: 0
        region: string
        zoneRecords: 0
        zoneRecordsets: 0
        zones: 0
    

    QuotaV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The QuotaV2 resource accepts the following input properties:

    ProjectId string
    ID of the project to manage quota. Changing this creates new quota.
    ApiExportSize int
    The maximum number of zones that can be exported via the API.
    RecordsetRecords int
    The maximum number of records in a recordset.
    Region string
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    ZoneRecords int
    The maximum number of records in a zone.
    ZoneRecordsets int
    The maximum number of recordsets in a zone.
    Zones int
    The maximum number of zones that can be created.
    ProjectId string
    ID of the project to manage quota. Changing this creates new quota.
    ApiExportSize int
    The maximum number of zones that can be exported via the API.
    RecordsetRecords int
    The maximum number of records in a recordset.
    Region string
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    ZoneRecords int
    The maximum number of records in a zone.
    ZoneRecordsets int
    The maximum number of recordsets in a zone.
    Zones int
    The maximum number of zones that can be created.
    projectId String
    ID of the project to manage quota. Changing this creates new quota.
    apiExportSize Integer
    The maximum number of zones that can be exported via the API.
    recordsetRecords Integer
    The maximum number of records in a recordset.
    region String
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zoneRecords Integer
    The maximum number of records in a zone.
    zoneRecordsets Integer
    The maximum number of recordsets in a zone.
    zones Integer
    The maximum number of zones that can be created.
    projectId string
    ID of the project to manage quota. Changing this creates new quota.
    apiExportSize number
    The maximum number of zones that can be exported via the API.
    recordsetRecords number
    The maximum number of records in a recordset.
    region string
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zoneRecords number
    The maximum number of records in a zone.
    zoneRecordsets number
    The maximum number of recordsets in a zone.
    zones number
    The maximum number of zones that can be created.
    project_id str
    ID of the project to manage quota. Changing this creates new quota.
    api_export_size int
    The maximum number of zones that can be exported via the API.
    recordset_records int
    The maximum number of records in a recordset.
    region str
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zone_records int
    The maximum number of records in a zone.
    zone_recordsets int
    The maximum number of recordsets in a zone.
    zones int
    The maximum number of zones that can be created.
    projectId String
    ID of the project to manage quota. Changing this creates new quota.
    apiExportSize Number
    The maximum number of zones that can be exported via the API.
    recordsetRecords Number
    The maximum number of records in a recordset.
    region String
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zoneRecords Number
    The maximum number of records in a zone.
    zoneRecordsets Number
    The maximum number of recordsets in a zone.
    zones Number
    The maximum number of zones that can be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the QuotaV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing QuotaV2 Resource

    Get an existing QuotaV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: QuotaV2State, opts?: CustomResourceOptions): QuotaV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_export_size: Optional[int] = None,
            project_id: Optional[str] = None,
            recordset_records: Optional[int] = None,
            region: Optional[str] = None,
            zone_records: Optional[int] = None,
            zone_recordsets: Optional[int] = None,
            zones: Optional[int] = None) -> QuotaV2
    func GetQuotaV2(ctx *Context, name string, id IDInput, state *QuotaV2State, opts ...ResourceOption) (*QuotaV2, error)
    public static QuotaV2 Get(string name, Input<string> id, QuotaV2State? state, CustomResourceOptions? opts = null)
    public static QuotaV2 get(String name, Output<String> id, QuotaV2State state, CustomResourceOptions options)
    resources:  _:    type: openstack:dns:QuotaV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApiExportSize int
    The maximum number of zones that can be exported via the API.
    ProjectId string
    ID of the project to manage quota. Changing this creates new quota.
    RecordsetRecords int
    The maximum number of records in a recordset.
    Region string
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    ZoneRecords int
    The maximum number of records in a zone.
    ZoneRecordsets int
    The maximum number of recordsets in a zone.
    Zones int
    The maximum number of zones that can be created.
    ApiExportSize int
    The maximum number of zones that can be exported via the API.
    ProjectId string
    ID of the project to manage quota. Changing this creates new quota.
    RecordsetRecords int
    The maximum number of records in a recordset.
    Region string
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    ZoneRecords int
    The maximum number of records in a zone.
    ZoneRecordsets int
    The maximum number of recordsets in a zone.
    Zones int
    The maximum number of zones that can be created.
    apiExportSize Integer
    The maximum number of zones that can be exported via the API.
    projectId String
    ID of the project to manage quota. Changing this creates new quota.
    recordsetRecords Integer
    The maximum number of records in a recordset.
    region String
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zoneRecords Integer
    The maximum number of records in a zone.
    zoneRecordsets Integer
    The maximum number of recordsets in a zone.
    zones Integer
    The maximum number of zones that can be created.
    apiExportSize number
    The maximum number of zones that can be exported via the API.
    projectId string
    ID of the project to manage quota. Changing this creates new quota.
    recordsetRecords number
    The maximum number of records in a recordset.
    region string
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zoneRecords number
    The maximum number of records in a zone.
    zoneRecordsets number
    The maximum number of recordsets in a zone.
    zones number
    The maximum number of zones that can be created.
    api_export_size int
    The maximum number of zones that can be exported via the API.
    project_id str
    ID of the project to manage quota. Changing this creates new quota.
    recordset_records int
    The maximum number of records in a recordset.
    region str
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zone_records int
    The maximum number of records in a zone.
    zone_recordsets int
    The maximum number of recordsets in a zone.
    zones int
    The maximum number of zones that can be created.
    apiExportSize Number
    The maximum number of zones that can be exported via the API.
    projectId String
    ID of the project to manage quota. Changing this creates new quota.
    recordsetRecords Number
    The maximum number of records in a recordset.
    region String
    The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS quota.
    zoneRecords Number
    The maximum number of records in a zone.
    zoneRecordsets Number
    The maximum number of recordsets in a zone.
    zones Number
    The maximum number of zones that can be created.

    Import

    Quotas can be imported using the project_id/region_name, e.g.

    $ pulumi import openstack:dns/quotaV2:QuotaV2 quota_1 2a0f2240-c5e6-41de-896d-e80d97428d6b/region_1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v5.3.2 published on Friday, Jul 18, 2025 by Pulumi