nsxt.Vpc
Explore with Pulumi AI
Create Vpc Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Vpc(name: string, args: VpcArgs, opts?: CustomResourceOptions);
@overload
def Vpc(resource_name: str,
args: VpcArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Vpc(resource_name: str,
opts: Optional[ResourceOptions] = None,
context: Optional[VpcContextArgs] = None,
display_name: Optional[str] = None,
description: Optional[str] = None,
ip_address_type: Optional[str] = None,
load_balancer_vpc_endpoint: Optional[VpcLoadBalancerVpcEndpointArgs] = None,
nsx_id: Optional[str] = None,
private_ips: Optional[Sequence[str]] = None,
short_id: Optional[str] = None,
tags: Optional[Sequence[VpcTagArgs]] = None,
vpc_id: Optional[str] = None,
vpc_service_profile: Optional[str] = None)
func NewVpc(ctx *Context, name string, args VpcArgs, opts ...ResourceOption) (*Vpc, error)
public Vpc(string name, VpcArgs args, CustomResourceOptions? opts = null)
type: nsxt:Vpc
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 VpcArgs
- 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 VpcArgs
- 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 VpcArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcArgs
- 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 vpcResource = new Nsxt.Vpc("vpcResource", new()
{
Context = new Nsxt.Inputs.VpcContextArgs
{
ProjectId = "string",
},
DisplayName = "string",
Description = "string",
IpAddressType = "string",
LoadBalancerVpcEndpoint = new Nsxt.Inputs.VpcLoadBalancerVpcEndpointArgs
{
Enabled = false,
},
NsxId = "string",
PrivateIps = new[]
{
"string",
},
ShortId = "string",
Tags = new[]
{
new Nsxt.Inputs.VpcTagArgs
{
Scope = "string",
Tag = "string",
},
},
VpcId = "string",
VpcServiceProfile = "string",
});
example, err := nsxt.NewVpc(ctx, "vpcResource", &nsxt.VpcArgs{
Context: &nsxt.VpcContextArgs{
ProjectId: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
IpAddressType: pulumi.String("string"),
LoadBalancerVpcEndpoint: &nsxt.VpcLoadBalancerVpcEndpointArgs{
Enabled: pulumi.Bool(false),
},
NsxId: pulumi.String("string"),
PrivateIps: pulumi.StringArray{
pulumi.String("string"),
},
ShortId: pulumi.String("string"),
Tags: nsxt.VpcTagArray{
&nsxt.VpcTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
VpcId: pulumi.String("string"),
VpcServiceProfile: pulumi.String("string"),
})
var vpcResource = new Vpc("vpcResource", VpcArgs.builder()
.context(VpcContextArgs.builder()
.projectId("string")
.build())
.displayName("string")
.description("string")
.ipAddressType("string")
.loadBalancerVpcEndpoint(VpcLoadBalancerVpcEndpointArgs.builder()
.enabled(false)
.build())
.nsxId("string")
.privateIps("string")
.shortId("string")
.tags(VpcTagArgs.builder()
.scope("string")
.tag("string")
.build())
.vpcId("string")
.vpcServiceProfile("string")
.build());
vpc_resource = nsxt.Vpc("vpcResource",
context={
"project_id": "string",
},
display_name="string",
description="string",
ip_address_type="string",
load_balancer_vpc_endpoint={
"enabled": False,
},
nsx_id="string",
private_ips=["string"],
short_id="string",
tags=[{
"scope": "string",
"tag": "string",
}],
vpc_id="string",
vpc_service_profile="string")
const vpcResource = new nsxt.Vpc("vpcResource", {
context: {
projectId: "string",
},
displayName: "string",
description: "string",
ipAddressType: "string",
loadBalancerVpcEndpoint: {
enabled: false,
},
nsxId: "string",
privateIps: ["string"],
shortId: "string",
tags: [{
scope: "string",
tag: "string",
}],
vpcId: "string",
vpcServiceProfile: "string",
});
type: nsxt:Vpc
properties:
context:
projectId: string
description: string
displayName: string
ipAddressType: string
loadBalancerVpcEndpoint:
enabled: false
nsxId: string
privateIps:
- string
shortId: string
tags:
- scope: string
tag: string
vpcId: string
vpcServiceProfile: string
Vpc 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 Vpc resource accepts the following input properties:
- Context
Vpc
Context - Resource context
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- Ip
Address stringType - This defines the IP address type that will be allocated for subnets.
- Load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint - Configuration for Load Balancer Endpoint
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Private
Ips List<string> - IP CIDRs to manage private IPv4 subnets.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- List<Vpc
Tag> - A list of scope + tag pairs to associate with this resource.
- Vpc
Id string - ID of the resource.
- Vpc
Service stringProfile - The path of the configuration profile of the VPC services.
- Context
Vpc
Context Args - Resource context
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- Ip
Address stringType - This defines the IP address type that will be allocated for subnets.
- Load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint Args - Configuration for Load Balancer Endpoint
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Private
Ips []string - IP CIDRs to manage private IPv4 subnets.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- []Vpc
Tag Args - A list of scope + tag pairs to associate with this resource.
- Vpc
Id string - ID of the resource.
- Vpc
Service stringProfile - The path of the configuration profile of the VPC services.
- context
Vpc
Context - Resource context
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- ip
Address StringType - This defines the IP address type that will be allocated for subnets.
- load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint - Configuration for Load Balancer Endpoint
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- private
Ips List<String> - IP CIDRs to manage private IPv4 subnets.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- List<Vpc
Tag> - A list of scope + tag pairs to associate with this resource.
- vpc
Id String - ID of the resource.
- vpc
Service StringProfile - The path of the configuration profile of the VPC services.
- context
Vpc
Context - Resource context
- display
Name string - Display name of the resource.
- description string
- Description of the resource.
- ip
Address stringType - This defines the IP address type that will be allocated for subnets.
- load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint - Configuration for Load Balancer Endpoint
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- private
Ips string[] - IP CIDRs to manage private IPv4 subnets.
- short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- Vpc
Tag[] - A list of scope + tag pairs to associate with this resource.
- vpc
Id string - ID of the resource.
- vpc
Service stringProfile - The path of the configuration profile of the VPC services.
- context
Vpc
Context Args - Resource context
- display_
name str - Display name of the resource.
- description str
- Description of the resource.
- ip_
address_ strtype - This defines the IP address type that will be allocated for subnets.
- load_
balancer_ Vpcvpc_ endpoint Load Balancer Vpc Endpoint Args - Configuration for Load Balancer Endpoint
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- private_
ips Sequence[str] - IP CIDRs to manage private IPv4 subnets.
- short_
id str - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- Sequence[Vpc
Tag Args] - A list of scope + tag pairs to associate with this resource.
- vpc_
id str - ID of the resource.
- vpc_
service_ strprofile - The path of the configuration profile of the VPC services.
- context Property Map
- Resource context
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- ip
Address StringType - This defines the IP address type that will be allocated for subnets.
- load
Balancer Property MapVpc Endpoint - Configuration for Load Balancer Endpoint
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- private
Ips List<String> - IP CIDRs to manage private IPv4 subnets.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- vpc
Id String - ID of the resource.
- vpc
Service StringProfile - The path of the configuration profile of the VPC services.
Outputs
All input properties are implicitly available as output properties. Additionally, the Vpc resource produces the following output properties:
Look up Existing Vpc Resource
Get an existing Vpc 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?: VpcState, opts?: CustomResourceOptions): Vpc
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[VpcContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ip_address_type: Optional[str] = None,
load_balancer_vpc_endpoint: Optional[VpcLoadBalancerVpcEndpointArgs] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
private_ips: Optional[Sequence[str]] = None,
revision: Optional[float] = None,
short_id: Optional[str] = None,
tags: Optional[Sequence[VpcTagArgs]] = None,
vpc_id: Optional[str] = None,
vpc_service_profile: Optional[str] = None) -> Vpc
func GetVpc(ctx *Context, name string, id IDInput, state *VpcState, opts ...ResourceOption) (*Vpc, error)
public static Vpc Get(string name, Input<string> id, VpcState? state, CustomResourceOptions? opts = null)
public static Vpc get(String name, Output<String> id, VpcState state, CustomResourceOptions options)
resources: _: type: nsxt:Vpc 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.
- Context
Vpc
Context - Resource context
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Ip
Address stringType - This defines the IP address type that will be allocated for subnets.
- Load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint - Configuration for Load Balancer Endpoint
- 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 policy resource.
- Private
Ips List<string> - IP CIDRs to manage private IPv4 subnets.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- List<Vpc
Tag> - A list of scope + tag pairs to associate with this resource.
- Vpc
Id string - ID of the resource.
- Vpc
Service stringProfile - The path of the configuration profile of the VPC services.
- Context
Vpc
Context Args - Resource context
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Ip
Address stringType - This defines the IP address type that will be allocated for subnets.
- Load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint Args - Configuration for Load Balancer Endpoint
- 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 policy resource.
- Private
Ips []string - IP CIDRs to manage private IPv4 subnets.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- []Vpc
Tag Args - A list of scope + tag pairs to associate with this resource.
- Vpc
Id string - ID of the resource.
- Vpc
Service stringProfile - The path of the configuration profile of the VPC services.
- context
Vpc
Context - Resource context
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- ip
Address StringType - This defines the IP address type that will be allocated for subnets.
- load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint - Configuration for Load Balancer Endpoint
- 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 policy resource.
- private
Ips List<String> - IP CIDRs to manage private IPv4 subnets.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- List<Vpc
Tag> - A list of scope + tag pairs to associate with this resource.
- vpc
Id String - ID of the resource.
- vpc
Service StringProfile - The path of the configuration profile of the VPC services.
- context
Vpc
Context - Resource context
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- ip
Address stringType - This defines the IP address type that will be allocated for subnets.
- load
Balancer VpcVpc Endpoint Load Balancer Vpc Endpoint - Configuration for Load Balancer Endpoint
- 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 policy resource.
- private
Ips string[] - IP CIDRs to manage private IPv4 subnets.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- Vpc
Tag[] - A list of scope + tag pairs to associate with this resource.
- vpc
Id string - ID of the resource.
- vpc
Service stringProfile - The path of the configuration profile of the VPC services.
- context
Vpc
Context Args - Resource context
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- ip_
address_ strtype - This defines the IP address type that will be allocated for subnets.
- load_
balancer_ Vpcvpc_ endpoint Load Balancer Vpc Endpoint Args - Configuration for Load Balancer Endpoint
- 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 policy resource.
- private_
ips Sequence[str] - IP CIDRs to manage private IPv4 subnets.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short_
id str - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- Sequence[Vpc
Tag Args] - A list of scope + tag pairs to associate with this resource.
- vpc_
id str - ID of the resource.
- vpc_
service_ strprofile - The path of the configuration profile of the VPC services.
- context Property Map
- Resource context
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- ip
Address StringType - This defines the IP address type that will be allocated for subnets.
- load
Balancer Property MapVpc Endpoint - Configuration for Load Balancer Endpoint
- 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 policy resource.
- private
Ips List<String> - IP CIDRs to manage private IPv4 subnets.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set. Can not be updated once VPC is created.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- vpc
Id String - ID of the resource.
- vpc
Service StringProfile - The path of the configuration profile of the VPC services.
Supporting Types
VpcContext, VpcContextArgs
- 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.
VpcLoadBalancerVpcEndpoint, VpcLoadBalancerVpcEndpointArgs
- Enabled bool
- Flag to indicate whether support for load balancing is needed. Setting this flag to
true
causes allocation of private IPs from the private block associated with this VPC for the use of the load balancer.
- Enabled bool
- Flag to indicate whether support for load balancing is needed. Setting this flag to
true
causes allocation of private IPs from the private block associated with this VPC for the use of the load balancer.
- enabled Boolean
- Flag to indicate whether support for load balancing is needed. Setting this flag to
true
causes allocation of private IPs from the private block associated with this VPC for the use of the load balancer.
- enabled boolean
- Flag to indicate whether support for load balancing is needed. Setting this flag to
true
causes allocation of private IPs from the private block associated with this VPC for the use of the load balancer.
- enabled bool
- Flag to indicate whether support for load balancing is needed. Setting this flag to
true
causes allocation of private IPs from the private block associated with this VPC for the use of the load balancer.
- enabled Boolean
- Flag to indicate whether support for load balancing is needed. Setting this flag to
true
causes allocation of private IPs from the private block associated with this VPC for the use of the load balancer.
VpcTag, VpcTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.