1. Packages
  2. Packages
  3. Nsxt Provider
  4. API Docs
  5. PolicyIpBlock
Viewing docs for nsxt 3.12.0
published on Monday, May 18, 2026 by vmware
Viewing docs for nsxt 3.12.0
published on Monday, May 18, 2026 by vmware

    Create PolicyIpBlock Resource

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

    Constructor syntax

    new PolicyIpBlock(name: string, args: PolicyIpBlockArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyIpBlock(resource_name: str,
                      args: PolicyIpBlockArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyIpBlock(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      display_name: Optional[str] = None,
                      cidr: Optional[str] = None,
                      cidrs: Optional[Sequence[str]] = None,
                      context: Optional[PolicyIpBlockContextArgs] = None,
                      description: Optional[str] = None,
                      excluded_ips: Optional[Sequence[PolicyIpBlockExcludedIpArgs]] = None,
                      nsx_id: Optional[str] = None,
                      policy_ip_block_id: Optional[str] = None,
                      ranges: Optional[Sequence[PolicyIpBlockRangeArgs]] = None,
                      subnet_exclusive: Optional[bool] = None,
                      tags: Optional[Sequence[PolicyIpBlockTagArgs]] = None,
                      visibility: Optional[str] = None)
    func NewPolicyIpBlock(ctx *Context, name string, args PolicyIpBlockArgs, opts ...ResourceOption) (*PolicyIpBlock, error)
    public PolicyIpBlock(string name, PolicyIpBlockArgs args, CustomResourceOptions? opts = null)
    public PolicyIpBlock(String name, PolicyIpBlockArgs args)
    public PolicyIpBlock(String name, PolicyIpBlockArgs args, CustomResourceOptions options)
    
    type: nsxt:PolicyIpBlock
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "nsxt_policyipblock" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PolicyIpBlockArgs
    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 PolicyIpBlockArgs
    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 PolicyIpBlockArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyIpBlockArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyIpBlockArgs
    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 policyIpBlockResource = new Nsxt.PolicyIpBlock("policyIpBlockResource", new()
    {
        DisplayName = "string",
        Cidr = "string",
        Cidrs = new[]
        {
            "string",
        },
        Context = new Nsxt.Inputs.PolicyIpBlockContextArgs
        {
            ProjectId = "string",
        },
        Description = "string",
        ExcludedIps = new[]
        {
            new Nsxt.Inputs.PolicyIpBlockExcludedIpArgs
            {
                End = "string",
                Start = "string",
            },
        },
        NsxId = "string",
        PolicyIpBlockId = "string",
        Ranges = new[]
        {
            new Nsxt.Inputs.PolicyIpBlockRangeArgs
            {
                End = "string",
                Start = "string",
            },
        },
        SubnetExclusive = false,
        Tags = new[]
        {
            new Nsxt.Inputs.PolicyIpBlockTagArgs
            {
                Scope = "string",
                Tag = "string",
            },
        },
        Visibility = "string",
    });
    
    example, err := nsxt.NewPolicyIpBlock(ctx, "policyIpBlockResource", &nsxt.PolicyIpBlockArgs{
    	DisplayName: pulumi.String("string"),
    	Cidr:        pulumi.String("string"),
    	Cidrs: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Context: &nsxt.PolicyIpBlockContextArgs{
    		ProjectId: pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	ExcludedIps: nsxt.PolicyIpBlockExcludedIpArray{
    		&nsxt.PolicyIpBlockExcludedIpArgs{
    			End:   pulumi.String("string"),
    			Start: pulumi.String("string"),
    		},
    	},
    	NsxId:           pulumi.String("string"),
    	PolicyIpBlockId: pulumi.String("string"),
    	Ranges: nsxt.PolicyIpBlockRangeArray{
    		&nsxt.PolicyIpBlockRangeArgs{
    			End:   pulumi.String("string"),
    			Start: pulumi.String("string"),
    		},
    	},
    	SubnetExclusive: pulumi.Bool(false),
    	Tags: nsxt.PolicyIpBlockTagArray{
    		&nsxt.PolicyIpBlockTagArgs{
    			Scope: pulumi.String("string"),
    			Tag:   pulumi.String("string"),
    		},
    	},
    	Visibility: pulumi.String("string"),
    })
    
    resource "nsxt_policyipblock" "policyIpBlockResource" {
      display_name = "string"
      cidr         = "string"
      cidrs        = ["string"]
      context = {
        project_id = "string"
      }
      description = "string"
      excluded_ips {
        end   = "string"
        start = "string"
      }
      nsx_id             = "string"
      policy_ip_block_id = "string"
      ranges {
        end   = "string"
        start = "string"
      }
      subnet_exclusive = false
      tags {
        scope = "string"
        tag   = "string"
      }
      visibility = "string"
    }
    
    var policyIpBlockResource = new PolicyIpBlock("policyIpBlockResource", PolicyIpBlockArgs.builder()
        .displayName("string")
        .cidr("string")
        .cidrs("string")
        .context(PolicyIpBlockContextArgs.builder()
            .projectId("string")
            .build())
        .description("string")
        .excludedIps(PolicyIpBlockExcludedIpArgs.builder()
            .end("string")
            .start("string")
            .build())
        .nsxId("string")
        .policyIpBlockId("string")
        .ranges(PolicyIpBlockRangeArgs.builder()
            .end("string")
            .start("string")
            .build())
        .subnetExclusive(false)
        .tags(PolicyIpBlockTagArgs.builder()
            .scope("string")
            .tag("string")
            .build())
        .visibility("string")
        .build());
    
    policy_ip_block_resource = nsxt.PolicyIpBlock("policyIpBlockResource",
        display_name="string",
        cidr="string",
        cidrs=["string"],
        context={
            "project_id": "string",
        },
        description="string",
        excluded_ips=[{
            "end": "string",
            "start": "string",
        }],
        nsx_id="string",
        policy_ip_block_id="string",
        ranges=[{
            "end": "string",
            "start": "string",
        }],
        subnet_exclusive=False,
        tags=[{
            "scope": "string",
            "tag": "string",
        }],
        visibility="string")
    
    const policyIpBlockResource = new nsxt.PolicyIpBlock("policyIpBlockResource", {
        displayName: "string",
        cidr: "string",
        cidrs: ["string"],
        context: {
            projectId: "string",
        },
        description: "string",
        excludedIps: [{
            end: "string",
            start: "string",
        }],
        nsxId: "string",
        policyIpBlockId: "string",
        ranges: [{
            end: "string",
            start: "string",
        }],
        subnetExclusive: false,
        tags: [{
            scope: "string",
            tag: "string",
        }],
        visibility: "string",
    });
    
    type: nsxt:PolicyIpBlock
    properties:
        cidr: string
        cidrs:
            - string
        context:
            projectId: string
        description: string
        displayName: string
        excludedIps:
            - end: string
              start: string
        nsxId: string
        policyIpBlockId: string
        ranges:
            - end: string
              start: string
        subnetExclusive: false
        tags:
            - scope: string
              tag: string
        visibility: string
    

    PolicyIpBlock 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 PolicyIpBlock resource accepts the following input properties:

    DisplayName string
    The display name for the IP Block.
    Cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    Cidrs List<string>
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    Context PolicyIpBlockContext
    The context which the object belongs to
    Description string
    Description of the resource.
    ExcludedIps List<PolicyIpBlockExcludedIp>
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicyIpBlockId string
    ID of the IP Block.
    Ranges List<PolicyIpBlockRange>
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    SubnetExclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    Tags List<PolicyIpBlockTag>
    A list of scope + tag pairs to associate with this IP Block.
    Visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    DisplayName string
    The display name for the IP Block.
    Cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    Cidrs []string
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    Context PolicyIpBlockContextArgs
    The context which the object belongs to
    Description string
    Description of the resource.
    ExcludedIps []PolicyIpBlockExcludedIpArgs
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicyIpBlockId string
    ID of the IP Block.
    Ranges []PolicyIpBlockRangeArgs
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    SubnetExclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    Tags []PolicyIpBlockTagArgs
    A list of scope + tag pairs to associate with this IP Block.
    Visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    display_name string
    The display name for the IP Block.
    cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs list(string)
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context object
    The context which the object belongs to
    description string
    Description of the resource.
    excluded_ips list(object)
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsx_id string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policy_ip_block_id string
    ID of the IP Block.
    ranges list(object)
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    subnet_exclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags list(object)
    A list of scope + tag pairs to associate with this IP Block.
    visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    displayName String
    The display name for the IP Block.
    cidr String
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs List<String>
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context PolicyIpBlockContext
    The context which the object belongs to
    description String
    Description of the resource.
    excludedIps List<PolicyIpBlockExcludedIp>
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policyIpBlockId String
    ID of the IP Block.
    ranges List<PolicyIpBlockRange>
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    subnetExclusive Boolean
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags List<PolicyIpBlockTag>
    A list of scope + tag pairs to associate with this IP Block.
    visibility String
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    displayName string
    The display name for the IP Block.
    cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs string[]
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context PolicyIpBlockContext
    The context which the object belongs to
    description string
    Description of the resource.
    excludedIps PolicyIpBlockExcludedIp[]
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policyIpBlockId string
    ID of the IP Block.
    ranges PolicyIpBlockRange[]
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    subnetExclusive boolean
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags PolicyIpBlockTag[]
    A list of scope + tag pairs to associate with this IP Block.
    visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    display_name str
    The display name for the IP Block.
    cidr str
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs Sequence[str]
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context PolicyIpBlockContextArgs
    The context which the object belongs to
    description str
    Description of the resource.
    excluded_ips Sequence[PolicyIpBlockExcludedIpArgs]
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsx_id str
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policy_ip_block_id str
    ID of the IP Block.
    ranges Sequence[PolicyIpBlockRangeArgs]
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    subnet_exclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags Sequence[PolicyIpBlockTagArgs]
    A list of scope + tag pairs to associate with this IP Block.
    visibility str
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    displayName String
    The display name for the IP Block.
    cidr String
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs List<String>
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context Property Map
    The context which the object belongs to
    description String
    Description of the resource.
    excludedIps List<Property Map>
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policyIpBlockId String
    ID of the IP Block.
    ranges List<Property Map>
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    subnetExclusive Boolean
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this IP Block.
    visibility String
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    The NSX path of the resource.
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    The NSX path of the resource.
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id string
    The provider-assigned unique ID for this managed resource.
    path string
    The NSX path of the resource.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id String
    The provider-assigned unique ID for this managed resource.
    path String
    The NSX path of the resource.
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id string
    The provider-assigned unique ID for this managed resource.
    path string
    The NSX path of the resource.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id str
    The provider-assigned unique ID for this managed resource.
    path str
    The NSX path of the resource.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id String
    The provider-assigned unique ID for this managed resource.
    path String
    The NSX path of the resource.
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.

    Look up Existing PolicyIpBlock Resource

    Get an existing PolicyIpBlock 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?: PolicyIpBlockState, opts?: CustomResourceOptions): PolicyIpBlock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            cidrs: Optional[Sequence[str]] = None,
            context: Optional[PolicyIpBlockContextArgs] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            excluded_ips: Optional[Sequence[PolicyIpBlockExcludedIpArgs]] = None,
            nsx_id: Optional[str] = None,
            path: Optional[str] = None,
            policy_ip_block_id: Optional[str] = None,
            ranges: Optional[Sequence[PolicyIpBlockRangeArgs]] = None,
            revision: Optional[float] = None,
            subnet_exclusive: Optional[bool] = None,
            tags: Optional[Sequence[PolicyIpBlockTagArgs]] = None,
            visibility: Optional[str] = None) -> PolicyIpBlock
    func GetPolicyIpBlock(ctx *Context, name string, id IDInput, state *PolicyIpBlockState, opts ...ResourceOption) (*PolicyIpBlock, error)
    public static PolicyIpBlock Get(string name, Input<string> id, PolicyIpBlockState? state, CustomResourceOptions? opts = null)
    public static PolicyIpBlock get(String name, Output<String> id, PolicyIpBlockState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:PolicyIpBlock    get:      id: ${id}
    import {
      to = nsxt_policyipblock.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.
    The following state arguments are supported:
    Cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    Cidrs List<string>
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    Context PolicyIpBlockContext
    The context which the object belongs to
    Description string
    Description of the resource.
    DisplayName string
    The display name for the IP Block.
    ExcludedIps List<PolicyIpBlockExcludedIp>
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    NsxId 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.
    PolicyIpBlockId string
    ID of the IP Block.
    Ranges List<PolicyIpBlockRange>
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    SubnetExclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    Tags List<PolicyIpBlockTag>
    A list of scope + tag pairs to associate with this IP Block.
    Visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    Cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    Cidrs []string
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    Context PolicyIpBlockContextArgs
    The context which the object belongs to
    Description string
    Description of the resource.
    DisplayName string
    The display name for the IP Block.
    ExcludedIps []PolicyIpBlockExcludedIpArgs
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    NsxId 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.
    PolicyIpBlockId string
    ID of the IP Block.
    Ranges []PolicyIpBlockRangeArgs
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    SubnetExclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    Tags []PolicyIpBlockTagArgs
    A list of scope + tag pairs to associate with this IP Block.
    Visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs list(string)
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    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.
    excluded_ips list(object)
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    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_block_id string
    ID of the IP Block.
    ranges list(object)
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    subnet_exclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags list(object)
    A list of scope + tag pairs to associate with this IP Block.
    visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    cidr String
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs List<String>
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context PolicyIpBlockContext
    The context which the object belongs to
    description String
    Description of the resource.
    displayName String
    The display name for the IP Block.
    excludedIps List<PolicyIpBlockExcludedIp>
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsxId 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.
    policyIpBlockId String
    ID of the IP Block.
    ranges List<PolicyIpBlockRange>
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    subnetExclusive Boolean
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags List<PolicyIpBlockTag>
    A list of scope + tag pairs to associate with this IP Block.
    visibility String
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    cidr string
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs string[]
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context PolicyIpBlockContext
    The context which the object belongs to
    description string
    Description of the resource.
    displayName string
    The display name for the IP Block.
    excludedIps PolicyIpBlockExcludedIp[]
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsxId 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.
    policyIpBlockId string
    ID of the IP Block.
    ranges PolicyIpBlockRange[]
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    subnetExclusive boolean
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags PolicyIpBlockTag[]
    A list of scope + tag pairs to associate with this IP Block.
    visibility string
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    cidr str
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs Sequence[str]
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context PolicyIpBlockContextArgs
    The context which the object belongs to
    description str
    Description of the resource.
    display_name str
    The display name for the IP Block.
    excluded_ips Sequence[PolicyIpBlockExcludedIpArgs]
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    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_block_id str
    ID of the IP Block.
    ranges Sequence[PolicyIpBlockRangeArgs]
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    subnet_exclusive bool
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags Sequence[PolicyIpBlockTagArgs]
    A list of scope + tag pairs to associate with this IP Block.
    visibility str
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.
    cidr String
    Network address and the prefix length which will be associated with a layer-2 broadcast domain. Either cidr or cidrs should be set.
    cidrs List<String>
    Array of contiguous IP address spaces represented by network address and prefix length. This attribute is supported with NSX 9.1.0 onwards. Either cidr or cidrs should be set.
    context Property Map
    The context which the object belongs to
    description String
    Description of the resource.
    displayName String
    The display name for the IP Block.
    excludedIps List<Property Map>
    Represents list of excluded IP address in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    nsxId 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.
    policyIpBlockId String
    ID of the IP Block.
    ranges List<Property Map>
    Represents an IP address range in the form of start and end IPs. This attribute is supported with NSX 9.1.0 onwards.
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    subnetExclusive Boolean
    If this property is set to true, then this block is reserved for direct vlan extension use case. This attribute is supported starting from NSX version 9.1.0.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this IP Block.
    visibility String
    Visibility of the IP Block. Valid options are PRIVATE, EXTERNAL or unset. Visibility cannot be changed once the block is associated with other resources.

    Supporting Types

    PolicyIpBlockContext, PolicyIpBlockContextArgs

    ProjectId string
    The ID of the project which the object belongs to
    ProjectId string
    The ID of the project which the object belongs to
    project_id string
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to
    projectId string
    The ID of the project which the object belongs to
    project_id str
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to

    PolicyIpBlockExcludedIp, PolicyIpBlockExcludedIpArgs

    End string
    The end IP address for the allocation range.
    Start string
    The start IP address for the allocation range.
    End string
    The end IP address for the allocation range.
    Start string
    The start IP address for the allocation range.
    end string
    The end IP address for the allocation range.
    start string
    The start IP address for the allocation range.
    end String
    The end IP address for the allocation range.
    start String
    The start IP address for the allocation range.
    end string
    The end IP address for the allocation range.
    start string
    The start IP address for the allocation range.
    end str
    The end IP address for the allocation range.
    start str
    The start IP address for the allocation range.
    end String
    The end IP address for the allocation range.
    start String
    The start IP address for the allocation range.

    PolicyIpBlockRange, PolicyIpBlockRangeArgs

    End string
    The end IP address for the allocation range.
    Start string
    The start IP address for the allocation range.
    End string
    The end IP address for the allocation range.
    Start string
    The start IP address for the allocation range.
    end string
    The end IP address for the allocation range.
    start string
    The start IP address for the allocation range.
    end String
    The end IP address for the allocation range.
    start String
    The start IP address for the allocation range.
    end string
    The end IP address for the allocation range.
    start string
    The start IP address for the allocation range.
    end str
    The end IP address for the allocation range.
    start str
    The start IP address for the allocation range.
    end String
    The end IP address for the allocation range.
    start String
    The start IP address for the allocation range.

    PolicyIpBlockTag, PolicyIpBlockTagArgs

    Scope string
    Tag string
    A list of scope + tag pairs to associate with this IP Block.
    Scope string
    Tag string
    A list of scope + tag pairs to associate with this IP Block.
    scope string
    tag string
    A list of scope + tag pairs to associate with this IP Block.
    scope String
    tag String
    A list of scope + tag pairs to associate with this IP Block.
    scope string
    tag string
    A list of scope + tag pairs to associate with this IP Block.
    scope str
    tag str
    A list of scope + tag pairs to associate with this IP Block.
    scope String
    tag String
    A list of scope + tag pairs to associate with this IP Block.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    Viewing docs for nsxt 3.12.0
    published on Monday, May 18, 2026 by vmware

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial