Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getVpc
Explore with Pulumi AI
Provides a datasource to retrieve VPC with vpc_uuid or vpc_name .
Using getVpc
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpc(args: GetVpcArgs, opts?: InvokeOptions): Promise<GetVpcResult>
function getVpcOutput(args: GetVpcOutputArgs, opts?: InvokeOptions): Output<GetVpcResult>
def get_vpc(vpc_name: Optional[str] = None,
vpc_uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcResult
def get_vpc_output(vpc_name: Optional[pulumi.Input[str]] = None,
vpc_uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcResult]
func LookupVpc(ctx *Context, args *LookupVpcArgs, opts ...InvokeOption) (*LookupVpcResult, error)
func LookupVpcOutput(ctx *Context, args *LookupVpcOutputArgs, opts ...InvokeOption) LookupVpcResultOutput
> Note: This function is named LookupVpc
in the Go SDK.
public static class GetVpc
{
public static Task<GetVpcResult> InvokeAsync(GetVpcArgs args, InvokeOptions? opts = null)
public static Output<GetVpcResult> Invoke(GetVpcInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
public static Output<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getVpc:getVpc
arguments:
# arguments dictionary
The following arguments are supported:
getVpc Result
The following output properties are available:
- Api
Version string - The version of the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata Dictionary<string, string>
- The vpc kind metadata.
- Specs
List<Piers
Karsenbarg. Nutanix. Outputs. Get Vpc Spec> - VPC input spec
- Statuses
List<Piers
Karsenbarg. Nutanix. Outputs. Get Vpc Status> - VPC output status
- Vpc
Name string - Vpc
Uuid string
- Api
Version string - The version of the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata map[string]string
- The vpc kind metadata.
- Specs
[]Get
Vpc Spec - VPC input spec
- Statuses
[]Get
Vpc Status - VPC output status
- Vpc
Name string - Vpc
Uuid string
- api
Version String - The version of the API.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String,String>
- The vpc kind metadata.
- specs
List<Get
Vpc Spec> - VPC input spec
- statuses
List<Get
Vpc Status> - VPC output status
- vpc
Name String - vpc
Uuid String
- api
Version string - The version of the API.
- id string
- The provider-assigned unique ID for this managed resource.
- metadata {[key: string]: string}
- The vpc kind metadata.
- specs
Get
Vpc Spec[] - VPC input spec
- statuses
Get
Vpc Status[] - VPC output status
- vpc
Name string - vpc
Uuid string
- api_
version str - The version of the API.
- id str
- The provider-assigned unique ID for this managed resource.
- metadata Mapping[str, str]
- The vpc kind metadata.
- specs
Sequence[Get
Vpc Spec] - VPC input spec
- statuses
Sequence[Get
Vpc Status] - VPC output status
- vpc_
name str - vpc_
uuid str
- api
Version String - The version of the API.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String>
- The vpc kind metadata.
- specs List<Property Map>
- VPC input spec
- statuses List<Property Map>
- VPC output status
- vpc
Name String - vpc
Uuid String
Supporting Types
GetVpcSpec
- Name
This property is required. string - the name.
- Resources
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Spec Resource> - VPC resources status
- Name
This property is required. string - the name.
- Resources
This property is required. []GetVpc Spec Resource - VPC resources status
- name
This property is required. String - the name.
- resources
This property is required. List<GetVpc Spec Resource> - VPC resources status
- name
This property is required. string - the name.
- resources
This property is required. GetVpc Spec Resource[] - VPC resources status
- name
This property is required. str - the name.
- resources
This property is required. Sequence[GetVpc Spec Resource] - VPC resources status
- name
This property is required. String - the name.
- resources
This property is required. List<Property Map> - VPC resources status
GetVpcSpecResource
- Common
Domain Name Server Ip Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Spec Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- External
Subnet Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Spec Resource External Subnet List> - List of external subnets attached to this VPC.
- Externally
Routable Prefix Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Spec Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- Common
Domain Name Server Ip Lists This property is required. []GetVpc Spec Resource Common Domain Name Server Ip List - List of domain name server IPs.
- External
Subnet Lists This property is required. []GetVpc Spec Resource External Subnet List - List of external subnets attached to this VPC.
- Externally
Routable Prefix Lists This property is required. []GetVpc Spec Resource Externally Routable Prefix List - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. List<GetVpc Spec Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- external
Subnet Lists This property is required. List<GetVpc Spec Resource External Subnet List> - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. List<GetVpc Spec Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. GetVpc Spec Resource Common Domain Name Server Ip List[] - List of domain name server IPs.
- external
Subnet Lists This property is required. GetVpc Spec Resource External Subnet List[] - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. GetVpc Spec Resource Externally Routable Prefix List[] - List of external routable ip and prefix .
- common_
domain_ name_ server_ ip_ lists This property is required. Sequence[GetVpc Spec Resource Common Domain Name Server Ip List] - List of domain name server IPs.
- external_
subnet_ lists This property is required. Sequence[GetVpc Spec Resource External Subnet List] - List of external subnets attached to this VPC.
- externally_
routable_ prefix_ lists This property is required. Sequence[GetVpc Spec Resource Externally Routable Prefix List] - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. List<Property Map> - List of domain name server IPs.
- external
Subnet Lists This property is required. List<Property Map> - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. List<Property Map> - List of external routable ip and prefix .
GetVpcSpecResourceCommonDomainNameServerIpList
- Ip
This property is required. string - ip address of domain name server.
- Ip
This property is required. string - ip address of domain name server.
- ip
This property is required. String - ip address of domain name server.
- ip
This property is required. string - ip address of domain name server.
- ip
This property is required. str - ip address of domain name server.
- ip
This property is required. String - ip address of domain name server.
GetVpcSpecResourceExternalSubnetList
- External
Subnet Reference This property is required. Dictionary<string, string> - Reference to a subnet.
- External
Subnet Reference This property is required. map[string]string - Reference to a subnet.
- external
Subnet Reference This property is required. Map<String,String> - Reference to a subnet.
- external
Subnet Reference This property is required. {[key: string]: string} - Reference to a subnet.
- external_
subnet_ reference This property is required. Mapping[str, str] - Reference to a subnet.
- external
Subnet Reference This property is required. Map<String> - Reference to a subnet.
GetVpcSpecResourceExternallyRoutablePrefixList
- Ip
This property is required. string - ip address of domain name server.
- Prefix
Length This property is required. int - prefix length of routable ip .
- Ip
This property is required. string - ip address of domain name server.
- Prefix
Length This property is required. int - prefix length of routable ip .
- ip
This property is required. String - ip address of domain name server.
- prefix
Length This property is required. Integer - prefix length of routable ip .
- ip
This property is required. string - ip address of domain name server.
- prefix
Length This property is required. number - prefix length of routable ip .
- ip
This property is required. str - ip address of domain name server.
- prefix_
length This property is required. int - prefix length of routable ip .
- ip
This property is required. String - ip address of domain name server.
- prefix
Length This property is required. Number - prefix length of routable ip .
GetVpcStatus
- Execution
Contexts This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Status Execution Context> - Execution Context of VPC.
- Name
This property is required. string - the name.
- Resources
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Status Resource> - VPC resources status
- State
This property is required. string - The state of the VPC
- Execution
Contexts This property is required. []GetVpc Status Execution Context - Execution Context of VPC.
- Name
This property is required. string - the name.
- Resources
This property is required. []GetVpc Status Resource - VPC resources status
- State
This property is required. string - The state of the VPC
- execution
Contexts This property is required. List<GetVpc Status Execution Context> - Execution Context of VPC.
- name
This property is required. String - the name.
- resources
This property is required. List<GetVpc Status Resource> - VPC resources status
- state
This property is required. String - The state of the VPC
- execution
Contexts This property is required. GetVpc Status Execution Context[] - Execution Context of VPC.
- name
This property is required. string - the name.
- resources
This property is required. GetVpc Status Resource[] - VPC resources status
- state
This property is required. string - The state of the VPC
- execution_
contexts This property is required. Sequence[GetVpc Status Execution Context] - Execution Context of VPC.
- name
This property is required. str - the name.
- resources
This property is required. Sequence[GetVpc Status Resource] - VPC resources status
- state
This property is required. str - The state of the VPC
- execution
Contexts This property is required. List<Property Map> - Execution Context of VPC.
- name
This property is required. String - the name.
- resources
This property is required. List<Property Map> - VPC resources status
- state
This property is required. String - The state of the VPC
GetVpcStatusExecutionContext
- Task
Uuids This property is required. List<string>
- Task
Uuids This property is required. []string
- task
Uuids This property is required. List<String>
- task
Uuids This property is required. string[]
- task_
uuids This property is required. Sequence[str]
- task
Uuids This property is required. List<String>
GetVpcStatusResource
- Common
Domain Name Server Ip Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Status Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- External
Subnet Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Status Resource External Subnet List> - List of external subnets attached to this VPC.
- Externally
Routable Prefix Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Status Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- Common
Domain Name Server Ip Lists This property is required. []GetVpc Status Resource Common Domain Name Server Ip List - List of domain name server IPs.
- External
Subnet Lists This property is required. []GetVpc Status Resource External Subnet List - List of external subnets attached to this VPC.
- Externally
Routable Prefix Lists This property is required. []GetVpc Status Resource Externally Routable Prefix List - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. List<GetVpc Status Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- external
Subnet Lists This property is required. List<GetVpc Status Resource External Subnet List> - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. List<GetVpc Status Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. GetVpc Status Resource Common Domain Name Server Ip List[] - List of domain name server IPs.
- external
Subnet Lists This property is required. GetVpc Status Resource External Subnet List[] - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. GetVpc Status Resource Externally Routable Prefix List[] - List of external routable ip and prefix .
- common_
domain_ name_ server_ ip_ lists This property is required. Sequence[GetVpc Status Resource Common Domain Name Server Ip List] - List of domain name server IPs.
- external_
subnet_ lists This property is required. Sequence[GetVpc Status Resource External Subnet List] - List of external subnets attached to this VPC.
- externally_
routable_ prefix_ lists This property is required. Sequence[GetVpc Status Resource Externally Routable Prefix List] - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. List<Property Map> - List of domain name server IPs.
- external
Subnet Lists This property is required. List<Property Map> - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. List<Property Map> - List of external routable ip and prefix .
GetVpcStatusResourceCommonDomainNameServerIpList
- Ip
This property is required. string - ip address of domain name server.
- Ip
This property is required. string - ip address of domain name server.
- ip
This property is required. String - ip address of domain name server.
- ip
This property is required. string - ip address of domain name server.
- ip
This property is required. str - ip address of domain name server.
- ip
This property is required. String - ip address of domain name server.
GetVpcStatusResourceExternalSubnetList
- Active
Gateway Nodes This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpc Status Resource External Subnet List Active Gateway Node> - Active Gateway Node. Only present in VPC Status Resources.
- External
Ip Lists This property is required. List<string> - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- External
Subnet Reference This property is required. Dictionary<string, string> - Reference to a subnet.
- Active
Gateway Nodes This property is required. []GetVpc Status Resource External Subnet List Active Gateway Node - Active Gateway Node. Only present in VPC Status Resources.
- External
Ip Lists This property is required. []string - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- External
Subnet Reference This property is required. map[string]string - Reference to a subnet.
- active
Gateway Nodes This property is required. List<GetVpc Status Resource External Subnet List Active Gateway Node> - Active Gateway Node. Only present in VPC Status Resources.
- external
Ip Lists This property is required. List<String> - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external
Subnet Reference This property is required. Map<String,String> - Reference to a subnet.
- active
Gateway Nodes This property is required. GetVpc Status Resource External Subnet List Active Gateway Node[] - Active Gateway Node. Only present in VPC Status Resources.
- external
Ip Lists This property is required. string[] - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external
Subnet Reference This property is required. {[key: string]: string} - Reference to a subnet.
- active_
gateway_ nodes This property is required. Sequence[GetVpc Status Resource External Subnet List Active Gateway Node] - Active Gateway Node. Only present in VPC Status Resources.
- external_
ip_ lists This property is required. Sequence[str] - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external_
subnet_ reference This property is required. Mapping[str, str] - Reference to a subnet.
- active
Gateway Nodes This property is required. List<Property Map> - Active Gateway Node. Only present in VPC Status Resources.
- external
Ip Lists This property is required. List<String> - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external
Subnet Reference This property is required. Map<String> - Reference to a subnet.
GetVpcStatusResourceExternalSubnetListActiveGatewayNode
- Host
Reference This property is required. Dictionary<string, string> - Reference to host.
- Ip
Address This property is required. string - ip address.
- Host
Reference This property is required. map[string]string - Reference to host.
- Ip
Address This property is required. string - ip address.
- host
Reference This property is required. Map<String,String> - Reference to host.
- ip
Address This property is required. String - ip address.
- host
Reference This property is required. {[key: string]: string} - Reference to host.
- ip
Address This property is required. string - ip address.
- host_
reference This property is required. Mapping[str, str] - Reference to host.
- ip_
address This property is required. str - ip address.
- host
Reference This property is required. Map<String> - Reference to host.
- ip
Address This property is required. String - ip address.
GetVpcStatusResourceExternallyRoutablePrefixList
- Ip
This property is required. string - ip address of domain name server.
- Prefix
Length This property is required. int - prefix length of routable ip .
- Ip
This property is required. string - ip address of domain name server.
- Prefix
Length This property is required. int - prefix length of routable ip .
- ip
This property is required. String - ip address of domain name server.
- prefix
Length This property is required. Integer - prefix length of routable ip .
- ip
This property is required. string - ip address of domain name server.
- prefix
Length This property is required. number - prefix length of routable ip .
- ip
This property is required. str - ip address of domain name server.
- prefix_
length This property is required. int - prefix length of routable ip .
- ip
This property is required. String - ip address of domain name server.
- prefix
Length This property is required. Number - prefix length of routable ip .
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.