nsxt.PolicyProjectIpAddressAllocation
Explore with Pulumi AI
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
Policy
Project Ip Address Allocation Context - Resource context
- Display
Name string - Display name for this resource
- Allocation
Ips string - Allocation
Size double - Description string
- Description for this resource
- Ip
Block string - Nsx
Id string - NSX ID for this resource
- Policy
Project stringIp Address Allocation Id - List<Policy
Project Ip Address Allocation Tag> - Set of opaque identifiers meaningful to the user
- Context
Policy
Project Ip Address Allocation Context Args - Resource context
- Display
Name string - Display name for this resource
- Allocation
Ips string - Allocation
Size float64 - Description string
- Description for this resource
- Ip
Block string - Nsx
Id string - NSX ID for this resource
- Policy
Project stringIp Address Allocation Id - []Policy
Project Ip Address Allocation Tag Args - Set of opaque identifiers meaningful to the user
- context
Policy
Project Ip Address Allocation Context - Resource context
- display
Name String - Display name for this resource
- allocation
Ips String - allocation
Size Double - description String
- Description for this resource
- ip
Block String - nsx
Id String - NSX ID for this resource
- policy
Project StringIp Address Allocation Id - List<Policy
Project Ip Address Allocation Tag> - Set of opaque identifiers meaningful to the user
- context
Policy
Project Ip Address Allocation Context - Resource context
- display
Name string - Display name for this resource
- allocation
Ips string - allocation
Size number - description string
- Description for this resource
- ip
Block string - nsx
Id string - NSX ID for this resource
- policy
Project stringIp Address Allocation Id - Policy
Project Ip Address Allocation Tag[] - Set of opaque identifiers meaningful to the user
- context
Policy
Project Ip Address Allocation Context Args - 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_ strip_ address_ allocation_ id - Sequence[Policy
Project Ip Address Allocation Tag Args] - Set of opaque identifiers meaningful to the user
- context Property Map
- Resource context
- display
Name String - Display name for this resource
- allocation
Ips String - allocation
Size Number - description String
- Description for this resource
- ip
Block String - nsx
Id String - NSX ID for this resource
- policy
Project StringIp Address Allocation Id - 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.
- Allocation
Ips string - Allocation
Size double - Context
Policy
Project Ip Address Allocation Context - Resource context
- Description string
- Description for this resource
- Display
Name string - Display name for this resource
- Ip
Block string - Nsx
Id string - NSX ID for this resource
- Path string
- Policy path for this resource
- Policy
Project stringIp Address Allocation Id - 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
- List<Policy
Project Ip Address Allocation Tag> - Set of opaque identifiers meaningful to the user
- Allocation
Ips string - Allocation
Size float64 - Context
Policy
Project Ip Address Allocation Context Args - Resource context
- Description string
- Description for this resource
- Display
Name string - Display name for this resource
- Ip
Block string - Nsx
Id string - NSX ID for this resource
- Path string
- Policy path for this resource
- Policy
Project stringIp Address Allocation Id - 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
- []Policy
Project Ip Address Allocation Tag Args - Set of opaque identifiers meaningful to the user
- allocation
Ips String - allocation
Size Double - context
Policy
Project Ip Address Allocation Context - Resource context
- description String
- Description for this resource
- display
Name String - Display name for this resource
- ip
Block String - nsx
Id String - NSX ID for this resource
- path String
- Policy path for this resource
- policy
Project StringIp Address Allocation Id - 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
- List<Policy
Project Ip Address Allocation Tag> - Set of opaque identifiers meaningful to the user
- allocation
Ips string - allocation
Size number - context
Policy
Project Ip Address Allocation Context - Resource context
- description string
- Description for this resource
- display
Name string - Display name for this resource
- ip
Block string - nsx
Id string - NSX ID for this resource
- path string
- Policy path for this resource
- policy
Project stringIp Address Allocation Id - 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
- Policy
Project Ip Address Allocation Tag[] - Set of opaque identifiers meaningful to the user
- allocation_
ips str - allocation_
size float - context
Policy
Project Ip Address Allocation Context Args - 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_ strip_ address_ allocation_ id - 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
- Sequence[Policy
Project Ip Address Allocation Tag Args] - Set of opaque identifiers meaningful to the user
- allocation
Ips String - allocation
Size Number - context Property Map
- Resource context
- description String
- Description for this resource
- display
Name String - Display name for this resource
- ip
Block String - nsx
Id String - NSX ID for this resource
- path String
- Policy path for this resource
- policy
Project StringIp Address Allocation Id - 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
- List<Property Map>
- Set of opaque identifiers meaningful to the user
Supporting Types
PolicyProjectIpAddressAllocationContext, PolicyProjectIpAddressAllocationContextArgs
- Project
Id string - Id of the project which the resource belongs to.
- Project
Id string - Id of the project which the resource belongs to.
- project
Id String - Id of the project which the resource belongs to.
- project
Id string - Id of the project which the resource belongs to.
- project_
id str - Id of the project which the resource belongs to.
- project
Id String - Id of the project which the resource belongs to.
PolicyProjectIpAddressAllocationTag, PolicyProjectIpAddressAllocationTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.