openstack.dns.QuotaV2
Explore with Pulumi AI
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:
- Project
Id string - ID of the project to manage quota. Changing this creates new quota.
- Api
Export intSize - The maximum number of zones that can be exported via the API.
- Recordset
Records 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. - 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.
- Project
Id string - ID of the project to manage quota. Changing this creates new quota.
- Api
Export intSize - The maximum number of zones that can be exported via the API.
- Recordset
Records 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. - 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.
- project
Id String - ID of the project to manage quota. Changing this creates new quota.
- api
Export IntegerSize - The maximum number of zones that can be exported via the API.
- recordset
Records 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. - zone
Records Integer - The maximum number of records in a zone.
- zone
Recordsets Integer - The maximum number of recordsets in a zone.
- zones Integer
- The maximum number of zones that can be created.
- project
Id string - ID of the project to manage quota. Changing this creates new quota.
- api
Export numberSize - The maximum number of zones that can be exported via the API.
- recordset
Records 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. - zone
Records number - The maximum number of records in a zone.
- zone
Recordsets 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_ intsize - 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.
- project
Id String - ID of the project to manage quota. Changing this creates new quota.
- api
Export NumberSize - The maximum number of zones that can be exported via the API.
- recordset
Records 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. - zone
Records Number - The maximum number of records in a zone.
- zone
Recordsets 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.
- Api
Export intSize - The maximum number of zones that can be exported via the API.
- Project
Id string - ID of the project to manage quota. Changing this creates new quota.
- Recordset
Records 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. - 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.
- Api
Export intSize - The maximum number of zones that can be exported via the API.
- Project
Id string - ID of the project to manage quota. Changing this creates new quota.
- Recordset
Records 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. - 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.
- api
Export IntegerSize - The maximum number of zones that can be exported via the API.
- project
Id String - ID of the project to manage quota. Changing this creates new quota.
- recordset
Records 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. - zone
Records Integer - The maximum number of records in a zone.
- zone
Recordsets Integer - The maximum number of recordsets in a zone.
- zones Integer
- The maximum number of zones that can be created.
- api
Export numberSize - The maximum number of zones that can be exported via the API.
- project
Id string - ID of the project to manage quota. Changing this creates new quota.
- recordset
Records 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. - zone
Records number - The maximum number of records in a zone.
- zone
Recordsets number - The maximum number of recordsets in a zone.
- zones number
- The maximum number of zones that can be created.
- api_
export_ intsize - 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.
- api
Export NumberSize - The maximum number of zones that can be exported via the API.
- project
Id String - ID of the project to manage quota. Changing this creates new quota.
- recordset
Records 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. - zone
Records Number - The maximum number of records in a zone.
- zone
Recordsets 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.