1. Packages
  2. Nsxt Provider
  3. API Docs
  4. PolicyProjectIpAddressAllocation
nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware

nsxt.PolicyProjectIpAddressAllocation

Explore with Pulumi AI

nsxt logo
nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware

    Create PolicyProjectIpAddressAllocation Resource

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

    Constructor syntax

    new PolicyProjectIpAddressAllocation(name: string, args: PolicyProjectIpAddressAllocationArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyProjectIpAddressAllocation(resource_name: str,
                                         args: PolicyProjectIpAddressAllocationArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyProjectIpAddressAllocation(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         context: Optional[PolicyProjectIpAddressAllocationContextArgs] = None,
                                         display_name: Optional[str] = None,
                                         allocation_ips: Optional[str] = None,
                                         allocation_size: Optional[float] = None,
                                         description: Optional[str] = None,
                                         ip_block: Optional[str] = None,
                                         nsx_id: Optional[str] = None,
                                         policy_project_ip_address_allocation_id: Optional[str] = None,
                                         tags: Optional[Sequence[PolicyProjectIpAddressAllocationTagArgs]] = None)
    func NewPolicyProjectIpAddressAllocation(ctx *Context, name string, args PolicyProjectIpAddressAllocationArgs, opts ...ResourceOption) (*PolicyProjectIpAddressAllocation, error)
    public PolicyProjectIpAddressAllocation(string name, PolicyProjectIpAddressAllocationArgs args, CustomResourceOptions? opts = null)
    public PolicyProjectIpAddressAllocation(String name, PolicyProjectIpAddressAllocationArgs args)
    public PolicyProjectIpAddressAllocation(String name, PolicyProjectIpAddressAllocationArgs args, CustomResourceOptions options)
    
    type: nsxt:PolicyProjectIpAddressAllocation
    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 PolicyProjectIpAddressAllocationArgs
    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 PolicyProjectIpAddressAllocationArgs
    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 PolicyProjectIpAddressAllocationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyProjectIpAddressAllocationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyProjectIpAddressAllocationArgs
    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 policyProjectIpAddressAllocationResource = new Nsxt.PolicyProjectIpAddressAllocation("policyProjectIpAddressAllocationResource", new()
    {
        Context = new Nsxt.Inputs.PolicyProjectIpAddressAllocationContextArgs
        {
            ProjectId = "string",
        },
        DisplayName = "string",
        AllocationIps = "string",
        AllocationSize = 0,
        Description = "string",
        IpBlock = "string",
        NsxId = "string",
        PolicyProjectIpAddressAllocationId = "string",
        Tags = new[]
        {
            new Nsxt.Inputs.PolicyProjectIpAddressAllocationTagArgs
            {
                Scope = "string",
                Tag = "string",
            },
        },
    });
    
    example, err := nsxt.NewPolicyProjectIpAddressAllocation(ctx, "policyProjectIpAddressAllocationResource", &nsxt.PolicyProjectIpAddressAllocationArgs{
    	Context: &nsxt.PolicyProjectIpAddressAllocationContextArgs{
    		ProjectId: pulumi.String("string"),
    	},
    	DisplayName:                        pulumi.String("string"),
    	AllocationIps:                      pulumi.String("string"),
    	AllocationSize:                     pulumi.Float64(0),
    	Description:                        pulumi.String("string"),
    	IpBlock:                            pulumi.String("string"),
    	NsxId:                              pulumi.String("string"),
    	PolicyProjectIpAddressAllocationId: pulumi.String("string"),
    	Tags: nsxt.PolicyProjectIpAddressAllocationTagArray{
    		&nsxt.PolicyProjectIpAddressAllocationTagArgs{
    			Scope: pulumi.String("string"),
    			Tag:   pulumi.String("string"),
    		},
    	},
    })
    
    var policyProjectIpAddressAllocationResource = new PolicyProjectIpAddressAllocation("policyProjectIpAddressAllocationResource", PolicyProjectIpAddressAllocationArgs.builder()
        .context(PolicyProjectIpAddressAllocationContextArgs.builder()
            .projectId("string")
            .build())
        .displayName("string")
        .allocationIps("string")
        .allocationSize(0.0)
        .description("string")
        .ipBlock("string")
        .nsxId("string")
        .policyProjectIpAddressAllocationId("string")
        .tags(PolicyProjectIpAddressAllocationTagArgs.builder()
            .scope("string")
            .tag("string")
            .build())
        .build());
    
    policy_project_ip_address_allocation_resource = nsxt.PolicyProjectIpAddressAllocation("policyProjectIpAddressAllocationResource",
        context={
            "project_id": "string",
        },
        display_name="string",
        allocation_ips="string",
        allocation_size=0,
        description="string",
        ip_block="string",
        nsx_id="string",
        policy_project_ip_address_allocation_id="string",
        tags=[{
            "scope": "string",
            "tag": "string",
        }])
    
    const policyProjectIpAddressAllocationResource = new nsxt.PolicyProjectIpAddressAllocation("policyProjectIpAddressAllocationResource", {
        context: {
            projectId: "string",
        },
        displayName: "string",
        allocationIps: "string",
        allocationSize: 0,
        description: "string",
        ipBlock: "string",
        nsxId: "string",
        policyProjectIpAddressAllocationId: "string",
        tags: [{
            scope: "string",
            tag: "string",
        }],
    });
    
    type: nsxt:PolicyProjectIpAddressAllocation
    properties:
        allocationIps: string
        allocationSize: 0
        context:
            projectId: string
        description: string
        displayName: string
        ipBlock: string
        nsxId: string
        policyProjectIpAddressAllocationId: string
        tags:
            - scope: string
              tag: string
    

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

    Context PolicyProjectIpAddressAllocationContext
    Resource context
    DisplayName string
    Display name for this resource
    AllocationIps string
    AllocationSize double
    Description string
    Description for this resource
    IpBlock string
    NsxId string
    NSX ID for this resource
    PolicyProjectIpAddressAllocationId string
    Tags List<PolicyProjectIpAddressAllocationTag>
    Set of opaque identifiers meaningful to the user
    Context PolicyProjectIpAddressAllocationContextArgs
    Resource context
    DisplayName string
    Display name for this resource
    AllocationIps string
    AllocationSize float64
    Description string
    Description for this resource
    IpBlock string
    NsxId string
    NSX ID for this resource
    PolicyProjectIpAddressAllocationId string
    Tags []PolicyProjectIpAddressAllocationTagArgs
    Set of opaque identifiers meaningful to the user
    context PolicyProjectIpAddressAllocationContext
    Resource context
    displayName String
    Display name for this resource
    allocationIps String
    allocationSize Double
    description String
    Description for this resource
    ipBlock String
    nsxId String
    NSX ID for this resource
    policyProjectIpAddressAllocationId String
    tags List<PolicyProjectIpAddressAllocationTag>
    Set of opaque identifiers meaningful to the user
    context PolicyProjectIpAddressAllocationContext
    Resource context
    displayName string
    Display name for this resource
    allocationIps string
    allocationSize number
    description string
    Description for this resource
    ipBlock string
    nsxId string
    NSX ID for this resource
    policyProjectIpAddressAllocationId string
    tags PolicyProjectIpAddressAllocationTag[]
    Set of opaque identifiers meaningful to the user
    context PolicyProjectIpAddressAllocationContextArgs
    Resource context
    display_name str
    Display name for this resource
    allocation_ips str
    allocation_size float
    description str
    Description for this resource
    ip_block str
    nsx_id str
    NSX ID for this resource
    policy_project_ip_address_allocation_id str
    tags Sequence[PolicyProjectIpAddressAllocationTagArgs]
    Set of opaque identifiers meaningful to the user
    context Property Map
    Resource context
    displayName String
    Display name for this resource
    allocationIps String
    allocationSize Number
    description String
    Description for this resource
    ipBlock String
    nsxId String
    NSX ID for this resource
    policyProjectIpAddressAllocationId String
    tags List<Property Map>
    Set of opaque identifiers meaningful to the user

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    Policy path for this resource
    Revision double
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    Policy path for this resource
    Revision float64
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    id String
    The provider-assigned unique ID for this managed resource.
    path String
    Policy path for this resource
    revision Double
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    id string
    The provider-assigned unique ID for this managed resource.
    path string
    Policy path for this resource
    revision number
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    id str
    The provider-assigned unique ID for this managed resource.
    path str
    Policy path for this resource
    revision float
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    id String
    The provider-assigned unique ID for this managed resource.
    path String
    Policy path for this resource
    revision Number
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected

    Look up Existing PolicyProjectIpAddressAllocation Resource

    Get an existing PolicyProjectIpAddressAllocation 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?: PolicyProjectIpAddressAllocationState, opts?: CustomResourceOptions): PolicyProjectIpAddressAllocation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allocation_ips: Optional[str] = None,
            allocation_size: Optional[float] = None,
            context: Optional[PolicyProjectIpAddressAllocationContextArgs] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            ip_block: Optional[str] = None,
            nsx_id: Optional[str] = None,
            path: Optional[str] = None,
            policy_project_ip_address_allocation_id: Optional[str] = None,
            revision: Optional[float] = None,
            tags: Optional[Sequence[PolicyProjectIpAddressAllocationTagArgs]] = None) -> PolicyProjectIpAddressAllocation
    func GetPolicyProjectIpAddressAllocation(ctx *Context, name string, id IDInput, state *PolicyProjectIpAddressAllocationState, opts ...ResourceOption) (*PolicyProjectIpAddressAllocation, error)
    public static PolicyProjectIpAddressAllocation Get(string name, Input<string> id, PolicyProjectIpAddressAllocationState? state, CustomResourceOptions? opts = null)
    public static PolicyProjectIpAddressAllocation get(String name, Output<String> id, PolicyProjectIpAddressAllocationState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:PolicyProjectIpAddressAllocation    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:
    AllocationIps string
    AllocationSize double
    Context PolicyProjectIpAddressAllocationContext
    Resource context
    Description string
    Description for this resource
    DisplayName string
    Display name for this resource
    IpBlock string
    NsxId string
    NSX ID for this resource
    Path string
    Policy path for this resource
    PolicyProjectIpAddressAllocationId string
    Revision double
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    Tags List<PolicyProjectIpAddressAllocationTag>
    Set of opaque identifiers meaningful to the user
    AllocationIps string
    AllocationSize float64
    Context PolicyProjectIpAddressAllocationContextArgs
    Resource context
    Description string
    Description for this resource
    DisplayName string
    Display name for this resource
    IpBlock string
    NsxId string
    NSX ID for this resource
    Path string
    Policy path for this resource
    PolicyProjectIpAddressAllocationId string
    Revision float64
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    Tags []PolicyProjectIpAddressAllocationTagArgs
    Set of opaque identifiers meaningful to the user
    allocationIps String
    allocationSize Double
    context PolicyProjectIpAddressAllocationContext
    Resource context
    description String
    Description for this resource
    displayName String
    Display name for this resource
    ipBlock String
    nsxId String
    NSX ID for this resource
    path String
    Policy path for this resource
    policyProjectIpAddressAllocationId String
    revision Double
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    tags List<PolicyProjectIpAddressAllocationTag>
    Set of opaque identifiers meaningful to the user
    allocationIps string
    allocationSize number
    context PolicyProjectIpAddressAllocationContext
    Resource context
    description string
    Description for this resource
    displayName string
    Display name for this resource
    ipBlock string
    nsxId string
    NSX ID for this resource
    path string
    Policy path for this resource
    policyProjectIpAddressAllocationId string
    revision number
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    tags PolicyProjectIpAddressAllocationTag[]
    Set of opaque identifiers meaningful to the user
    allocation_ips str
    allocation_size float
    context PolicyProjectIpAddressAllocationContextArgs
    Resource context
    description str
    Description for this resource
    display_name str
    Display name for this resource
    ip_block str
    nsx_id str
    NSX ID for this resource
    path str
    Policy path for this resource
    policy_project_ip_address_allocation_id str
    revision float
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    tags Sequence[PolicyProjectIpAddressAllocationTagArgs]
    Set of opaque identifiers meaningful to the user
    allocationIps String
    allocationSize Number
    context Property Map
    Resource context
    description String
    Description for this resource
    displayName String
    Display name for this resource
    ipBlock String
    nsxId String
    NSX ID for this resource
    path String
    Policy path for this resource
    policyProjectIpAddressAllocationId String
    revision Number
    The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
    tags List<Property Map>
    Set of opaque identifiers meaningful to the user

    Supporting Types

    PolicyProjectIpAddressAllocationContext, PolicyProjectIpAddressAllocationContextArgs

    ProjectId string
    Id of the project which the resource belongs to.
    ProjectId string
    Id of the project which the resource belongs to.
    projectId String
    Id of the project which the resource belongs to.
    projectId string
    Id of the project which the resource belongs to.
    project_id str
    Id of the project which the resource belongs to.
    projectId String
    Id of the project which the resource belongs to.

    PolicyProjectIpAddressAllocationTag, PolicyProjectIpAddressAllocationTagArgs

    Scope string
    Tag string
    Scope string
    Tag string
    scope String
    tag String
    scope string
    tag string
    scope str
    tag str
    scope String
    tag String

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware