published on Monday, May 18, 2026 by vmware
published on Monday, May 18, 2026 by vmware
Create PolicyIpBlockQuota Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyIpBlockQuota(name: string, args: PolicyIpBlockQuotaArgs, opts?: CustomResourceOptions);@overload
def PolicyIpBlockQuota(resource_name: str,
args: PolicyIpBlockQuotaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyIpBlockQuota(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
quota: Optional[PolicyIpBlockQuotaQuotaArgs] = None,
context: Optional[PolicyIpBlockQuotaContextArgs] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_ip_block_quota_id: Optional[str] = None,
tags: Optional[Sequence[PolicyIpBlockQuotaTagArgs]] = None)func NewPolicyIpBlockQuota(ctx *Context, name string, args PolicyIpBlockQuotaArgs, opts ...ResourceOption) (*PolicyIpBlockQuota, error)public PolicyIpBlockQuota(string name, PolicyIpBlockQuotaArgs args, CustomResourceOptions? opts = null)
public PolicyIpBlockQuota(String name, PolicyIpBlockQuotaArgs args)
public PolicyIpBlockQuota(String name, PolicyIpBlockQuotaArgs args, CustomResourceOptions options)
type: nsxt:PolicyIpBlockQuota
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nsxt_policyipblockquota" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicyIpBlockQuotaArgs
- 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 PolicyIpBlockQuotaArgs
- 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 PolicyIpBlockQuotaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyIpBlockQuotaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyIpBlockQuotaArgs
- 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 policyIpBlockQuotaResource = new Nsxt.PolicyIpBlockQuota("policyIpBlockQuotaResource", new()
{
DisplayName = "string",
Quota = new Nsxt.Inputs.PolicyIpBlockQuotaQuotaArgs
{
IpBlockAddressType = "string",
IpBlockVisibility = "string",
OtherCidrs = new Nsxt.Inputs.PolicyIpBlockQuotaQuotaOtherCidrsArgs
{
Mask = "string",
TotalCount = 0,
},
IpBlockPaths = new[]
{
"string",
},
SingleIpCidrs = 0,
},
Context = new Nsxt.Inputs.PolicyIpBlockQuotaContextArgs
{
ProjectId = "string",
},
Description = "string",
NsxId = "string",
PolicyIpBlockQuotaId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyIpBlockQuotaTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyIpBlockQuota(ctx, "policyIpBlockQuotaResource", &nsxt.PolicyIpBlockQuotaArgs{
DisplayName: pulumi.String("string"),
Quota: &nsxt.PolicyIpBlockQuotaQuotaArgs{
IpBlockAddressType: pulumi.String("string"),
IpBlockVisibility: pulumi.String("string"),
OtherCidrs: &nsxt.PolicyIpBlockQuotaQuotaOtherCidrsArgs{
Mask: pulumi.String("string"),
TotalCount: pulumi.Float64(0),
},
IpBlockPaths: pulumi.StringArray{
pulumi.String("string"),
},
SingleIpCidrs: pulumi.Float64(0),
},
Context: &nsxt.PolicyIpBlockQuotaContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyIpBlockQuotaId: pulumi.String("string"),
Tags: nsxt.PolicyIpBlockQuotaTagArray{
&nsxt.PolicyIpBlockQuotaTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
resource "nsxt_policyipblockquota" "policyIpBlockQuotaResource" {
display_name = "string"
quota = {
ip_block_address_type = "string"
ip_block_visibility = "string"
other_cidrs = {
mask = "string"
total_count = 0
}
ip_block_paths = ["string"]
single_ip_cidrs = 0
}
context = {
project_id = "string"
}
description = "string"
nsx_id = "string"
policy_ip_block_quota_id = "string"
tags {
scope = "string"
tag = "string"
}
}
var policyIpBlockQuotaResource = new PolicyIpBlockQuota("policyIpBlockQuotaResource", PolicyIpBlockQuotaArgs.builder()
.displayName("string")
.quota(PolicyIpBlockQuotaQuotaArgs.builder()
.ipBlockAddressType("string")
.ipBlockVisibility("string")
.otherCidrs(PolicyIpBlockQuotaQuotaOtherCidrsArgs.builder()
.mask("string")
.totalCount(0.0)
.build())
.ipBlockPaths("string")
.singleIpCidrs(0.0)
.build())
.context(PolicyIpBlockQuotaContextArgs.builder()
.projectId("string")
.build())
.description("string")
.nsxId("string")
.policyIpBlockQuotaId("string")
.tags(PolicyIpBlockQuotaTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_ip_block_quota_resource = nsxt.PolicyIpBlockQuota("policyIpBlockQuotaResource",
display_name="string",
quota={
"ip_block_address_type": "string",
"ip_block_visibility": "string",
"other_cidrs": {
"mask": "string",
"total_count": float(0),
},
"ip_block_paths": ["string"],
"single_ip_cidrs": float(0),
},
context={
"project_id": "string",
},
description="string",
nsx_id="string",
policy_ip_block_quota_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyIpBlockQuotaResource = new nsxt.PolicyIpBlockQuota("policyIpBlockQuotaResource", {
displayName: "string",
quota: {
ipBlockAddressType: "string",
ipBlockVisibility: "string",
otherCidrs: {
mask: "string",
totalCount: 0,
},
ipBlockPaths: ["string"],
singleIpCidrs: 0,
},
context: {
projectId: "string",
},
description: "string",
nsxId: "string",
policyIpBlockQuotaId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyIpBlockQuota
properties:
context:
projectId: string
description: string
displayName: string
nsxId: string
policyIpBlockQuotaId: string
quota:
ipBlockAddressType: string
ipBlockPaths:
- string
ipBlockVisibility: string
otherCidrs:
mask: string
totalCount: 0
singleIpCidrs: 0
tags:
- scope: string
tag: string
PolicyIpBlockQuota 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 PolicyIpBlockQuota resource accepts the following input properties:
- Display
Name string - The display name for the IP Block.
- Quota
Policy
Ip Block Quota Quota - Quota specification
- Context
Policy
Ip Block Quota Context - The context which the object belongs to
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Ip stringBlock Quota Id - ID of the resource.
-
List<Policy
Ip Block Quota Tag> - A list of scope + tag pairs to associate with this IP Block.
- Display
Name string - The display name for the IP Block.
- Quota
Policy
Ip Block Quota Quota Args - Quota specification
- Context
Policy
Ip Block Quota Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Ip stringBlock Quota Id - ID of the resource.
-
[]Policy
Ip Block Quota Tag Args - A list of scope + tag pairs to associate with this IP Block.
- display_
name string - The display name for the IP Block.
- quota object
- Quota specification
- context object
- The context which the object belongs to
- description string
- Description of the resource.
- nsx_
id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
ip_ stringblock_ quota_ id - ID of the resource.
- list(object)
- A list of scope + tag pairs to associate with this IP Block.
- display
Name String - The display name for the IP Block.
- quota
Policy
Ip Block Quota Quota - Quota specification
- context
Policy
Ip Block Quota Context - The context which the object belongs to
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ip StringBlock Quota Id - ID of the resource.
-
List<Policy
Ip Block Quota Tag> - A list of scope + tag pairs to associate with this IP Block.
- display
Name string - The display name for the IP Block.
- quota
Policy
Ip Block Quota Quota - Quota specification
- context
Policy
Ip Block Quota Context - The context which the object belongs to
- description string
- Description of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ip stringBlock Quota Id - ID of the resource.
-
Policy
Ip Block Quota Tag[] - A list of scope + tag pairs to associate with this IP Block.
- display_
name str - The display name for the IP Block.
- quota
Policy
Ip Block Quota Quota Args - Quota specification
- context
Policy
Ip Block Quota Context Args - The context which the object belongs to
- description str
- Description of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
ip_ strblock_ quota_ id - ID of the resource.
-
Sequence[Policy
Ip Block Quota Tag Args] - A list of scope + tag pairs to associate with this IP Block.
- display
Name String - The display name for the IP Block.
- quota Property Map
- Quota specification
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ip StringBlock Quota Id - ID of the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this IP Block.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyIpBlockQuota resource produces the following output properties:
Look up Existing PolicyIpBlockQuota Resource
Get an existing PolicyIpBlockQuota 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?: PolicyIpBlockQuotaState, opts?: CustomResourceOptions): PolicyIpBlockQuota@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[PolicyIpBlockQuotaContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_ip_block_quota_id: Optional[str] = None,
quota: Optional[PolicyIpBlockQuotaQuotaArgs] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyIpBlockQuotaTagArgs]] = None) -> PolicyIpBlockQuotafunc GetPolicyIpBlockQuota(ctx *Context, name string, id IDInput, state *PolicyIpBlockQuotaState, opts ...ResourceOption) (*PolicyIpBlockQuota, error)public static PolicyIpBlockQuota Get(string name, Input<string> id, PolicyIpBlockQuotaState? state, CustomResourceOptions? opts = null)public static PolicyIpBlockQuota get(String name, Output<String> id, PolicyIpBlockQuotaState state, CustomResourceOptions options)resources: _: type: nsxt:PolicyIpBlockQuota get: id: ${id}import {
to = nsxt_policyipblockquota.example
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.
- Context
Policy
Ip Block Quota Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - The display name for the IP Block.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the resource.
- Policy
Ip stringBlock Quota Id - ID of the resource.
- Quota
Policy
Ip Block Quota Quota - Quota specification
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
List<Policy
Ip Block Quota Tag> - A list of scope + tag pairs to associate with this IP Block.
- Context
Policy
Ip Block Quota Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - The display name for the IP Block.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the resource.
- Policy
Ip stringBlock Quota Id - ID of the resource.
- Quota
Policy
Ip Block Quota Quota Args - Quota specification
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
[]Policy
Ip Block Quota Tag Args - A list of scope + tag pairs to associate with this IP Block.
- context object
- The context which the object belongs to
- description string
- Description of the resource.
- display_
name string - The display name for the IP Block.
- nsx_
id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the resource.
- policy_
ip_ stringblock_ quota_ id - ID of the resource.
- quota object
- Quota specification
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- list(object)
- A list of scope + tag pairs to associate with this IP Block.
- context
Policy
Ip Block Quota Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - The display name for the IP Block.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the resource.
- policy
Ip StringBlock Quota Id - ID of the resource.
- quota
Policy
Ip Block Quota Quota - Quota specification
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
List<Policy
Ip Block Quota Tag> - A list of scope + tag pairs to associate with this IP Block.
- context
Policy
Ip Block Quota Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - The display name for the IP Block.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the resource.
- policy
Ip stringBlock Quota Id - ID of the resource.
- quota
Policy
Ip Block Quota Quota - Quota specification
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
Policy
Ip Block Quota Tag[] - A list of scope + tag pairs to associate with this IP Block.
- context
Policy
Ip Block Quota Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - The display name for the IP Block.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the resource.
- policy_
ip_ strblock_ quota_ id - ID of the resource.
- quota
Policy
Ip Block Quota Quota Args - Quota specification
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
Sequence[Policy
Ip Block Quota Tag Args] - A list of scope + tag pairs to associate with this IP Block.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - The display name for the IP Block.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the resource.
- policy
Ip StringBlock Quota Id - ID of the resource.
- quota Property Map
- Quota specification
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this IP Block.
Supporting Types
PolicyIpBlockQuotaContext, PolicyIpBlockQuotaContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project_
id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicyIpBlockQuotaQuota, PolicyIpBlockQuotaQuotaArgs
- Ip
Block stringAddress Type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - Ip
Block stringVisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - Other
Cidrs PolicyIp Block Quota Quota Other Cidrs - Quota for other cidrs
- Ip
Block List<string>Paths - List of IP blocks that this quota applies to.
- Single
Ip doubleCidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
- Ip
Block stringAddress Type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - Ip
Block stringVisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - Other
Cidrs PolicyIp Block Quota Quota Other Cidrs - Quota for other cidrs
- Ip
Block []stringPaths - List of IP blocks that this quota applies to.
- Single
Ip float64Cidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
- ip_
block_ stringaddress_ type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - ip_
block_ stringvisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - other_
cidrs object - Quota for other cidrs
- ip_
block_ list(string)paths - List of IP blocks that this quota applies to.
- single_
ip_ numbercidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
- ip
Block StringAddress Type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - ip
Block StringVisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - other
Cidrs PolicyIp Block Quota Quota Other Cidrs - Quota for other cidrs
- ip
Block List<String>Paths - List of IP blocks that this quota applies to.
- single
Ip DoubleCidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
- ip
Block stringAddress Type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - ip
Block stringVisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - other
Cidrs PolicyIp Block Quota Quota Other Cidrs - Quota for other cidrs
- ip
Block string[]Paths - List of IP blocks that this quota applies to.
- single
Ip numberCidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
- ip_
block_ straddress_ type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - ip_
block_ strvisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - other_
cidrs PolicyIp Block Quota Quota Other Cidrs - Quota for other cidrs
- ip_
block_ Sequence[str]paths - List of IP blocks that this quota applies to.
- single_
ip_ floatcidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
- ip
Block StringAddress Type - One of
IPV4,IPV6. A quota will be applied on block of same address type. One v4 block and another v6 block cannot be specified within the same quota. - ip
Block StringVisibility - One of
EXTERNAL,PRIVATE. A quota will be applied on blocks with same visibility. Private and External blocks cannot be specified within the same block. - other
Cidrs Property Map - Quota for other cidrs
- ip
Block List<String>Paths - List of IP blocks that this quota applies to.
- single
Ip NumberCidrs - Quota for single IP CIDRs allowed. Default is -1 (unlimited).
PolicyIpBlockQuotaQuotaOtherCidrs, PolicyIpBlockQuotaQuotaOtherCidrsArgs
- Mask string
- Largest mask size that is allowed, format:
/[size] - Total
Count double - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
- Mask string
- Largest mask size that is allowed, format:
/[size] - Total
Count float64 - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
- mask string
- Largest mask size that is allowed, format:
/[size] - total_
count number - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
- mask String
- Largest mask size that is allowed, format:
/[size] - total
Count Double - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
- mask string
- Largest mask size that is allowed, format:
/[size] - total
Count number - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
- mask str
- Largest mask size that is allowed, format:
/[size] - total_
count float - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
- mask String
- Largest mask size that is allowed, format:
/[size] - total
Count Number - Number of CIDRs that can be allocated from the block. Default is -1 (unlimited).
PolicyIpBlockQuotaTag, PolicyIpBlockQuotaTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxtTerraform Provider.
published on Monday, May 18, 2026 by vmware