1. Packages
  2. Nutanix
  3. API Docs
  4. getVpc
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.getVpc

Explore with Pulumi AI

Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

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>
Copy
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]
Copy
func LookupVpc(ctx *Context, args *LookupVpcArgs, opts ...InvokeOption) (*LookupVpcResult, error)
func LookupVpcOutput(ctx *Context, args *LookupVpcOutputArgs, opts ...InvokeOption) LookupVpcResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
public static Output<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getVpc:getVpc
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

VpcName string
vpc Name
VpcUuid string
vpc UUID
VpcName string
vpc Name
VpcUuid string
vpc UUID
vpcName String
vpc Name
vpcUuid String
vpc UUID
vpcName string
vpc Name
vpcUuid string
vpc UUID
vpc_name str
vpc Name
vpc_uuid str
vpc UUID
vpcName String
vpc Name
vpcUuid String
vpc UUID

getVpc Result

The following output properties are available:

ApiVersion 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<PiersKarsenbarg.Nutanix.Outputs.GetVpcSpec>
VPC input spec
Statuses List<PiersKarsenbarg.Nutanix.Outputs.GetVpcStatus>
VPC output status
VpcName string
VpcUuid string
ApiVersion 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 []GetVpcSpec
VPC input spec
Statuses []GetVpcStatus
VPC output status
VpcName string
VpcUuid string
apiVersion 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<GetVpcSpec>
VPC input spec
statuses List<GetVpcStatus>
VPC output status
vpcName String
vpcUuid String
apiVersion 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 GetVpcSpec[]
VPC input spec
statuses GetVpcStatus[]
VPC output status
vpcName string
vpcUuid 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[GetVpcSpec]
VPC input spec
statuses Sequence[GetVpcStatus]
VPC output status
vpc_name str
vpc_uuid str
apiVersion 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
vpcName String
vpcUuid String

Supporting Types

GetVpcSpec

Name This property is required. string
  • the name.
Resources This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcSpecResource>
VPC resources status
Name This property is required. string
  • the name.
Resources This property is required. []GetVpcSpecResource
VPC resources status
name This property is required. String
  • the name.
resources This property is required. List<GetVpcSpecResource>
VPC resources status
name This property is required. string
  • the name.
resources This property is required. GetVpcSpecResource[]
VPC resources status
name This property is required. str
  • the name.
resources This property is required. Sequence[GetVpcSpecResource]
VPC resources status
name This property is required. String
  • the name.
resources This property is required. List<Property Map>
VPC resources status

GetVpcSpecResource

CommonDomainNameServerIpLists This property is required. []GetVpcSpecResourceCommonDomainNameServerIpList
List of domain name server IPs.
ExternalSubnetLists This property is required. []GetVpcSpecResourceExternalSubnetList
List of external subnets attached to this VPC.
ExternallyRoutablePrefixLists This property is required. []GetVpcSpecResourceExternallyRoutablePrefixList
List of external routable ip and prefix .
commonDomainNameServerIpLists This property is required. List<GetVpcSpecResourceCommonDomainNameServerIpList>
List of domain name server IPs.
externalSubnetLists This property is required. List<GetVpcSpecResourceExternalSubnetList>
List of external subnets attached to this VPC.
externallyRoutablePrefixLists This property is required. List<GetVpcSpecResourceExternallyRoutablePrefixList>
List of external routable ip and prefix .
commonDomainNameServerIpLists This property is required. GetVpcSpecResourceCommonDomainNameServerIpList[]
List of domain name server IPs.
externalSubnetLists This property is required. GetVpcSpecResourceExternalSubnetList[]
List of external subnets attached to this VPC.
externallyRoutablePrefixLists This property is required. GetVpcSpecResourceExternallyRoutablePrefixList[]
List of external routable ip and prefix .
common_domain_name_server_ip_lists This property is required. Sequence[GetVpcSpecResourceCommonDomainNameServerIpList]
List of domain name server IPs.
external_subnet_lists This property is required. Sequence[GetVpcSpecResourceExternalSubnetList]
List of external subnets attached to this VPC.
externally_routable_prefix_lists This property is required. Sequence[GetVpcSpecResourceExternallyRoutablePrefixList]
List of external routable ip and prefix .
commonDomainNameServerIpLists This property is required. List<Property Map>
List of domain name server IPs.
externalSubnetLists This property is required. List<Property Map>
List of external subnets attached to this VPC.
externallyRoutablePrefixLists 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

ExternalSubnetReference This property is required. Dictionary<string, string>
Reference to a subnet.
ExternalSubnetReference This property is required. map[string]string
Reference to a subnet.
externalSubnetReference This property is required. Map<String,String>
Reference to a subnet.
externalSubnetReference 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.
externalSubnetReference This property is required. Map<String>
Reference to a subnet.

GetVpcSpecResourceExternallyRoutablePrefixList

Ip This property is required. string
ip address of domain name server.
PrefixLength This property is required. int
prefix length of routable ip .
Ip This property is required. string
ip address of domain name server.
PrefixLength This property is required. int
prefix length of routable ip .
ip This property is required. String
ip address of domain name server.
prefixLength This property is required. Integer
prefix length of routable ip .
ip This property is required. string
ip address of domain name server.
prefixLength 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.
prefixLength This property is required. Number
prefix length of routable ip .

GetVpcStatus

ExecutionContexts This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcStatusExecutionContext>
Execution Context of VPC.
Name This property is required. string
  • the name.
Resources This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcStatusResource>
VPC resources status
State This property is required. string
The state of the VPC
ExecutionContexts This property is required. []GetVpcStatusExecutionContext
Execution Context of VPC.
Name This property is required. string
  • the name.
Resources This property is required. []GetVpcStatusResource
VPC resources status
State This property is required. string
The state of the VPC
executionContexts This property is required. List<GetVpcStatusExecutionContext>
Execution Context of VPC.
name This property is required. String
  • the name.
resources This property is required. List<GetVpcStatusResource>
VPC resources status
state This property is required. String
The state of the VPC
executionContexts This property is required. GetVpcStatusExecutionContext[]
Execution Context of VPC.
name This property is required. string
  • the name.
resources This property is required. GetVpcStatusResource[]
VPC resources status
state This property is required. string
The state of the VPC
execution_contexts This property is required. Sequence[GetVpcStatusExecutionContext]
Execution Context of VPC.
name This property is required. str
  • the name.
resources This property is required. Sequence[GetVpcStatusResource]
VPC resources status
state This property is required. str
The state of the VPC
executionContexts 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

TaskUuids This property is required. List<string>
TaskUuids This property is required. []string
taskUuids This property is required. List<String>
taskUuids This property is required. string[]
task_uuids This property is required. Sequence[str]
taskUuids This property is required. List<String>

GetVpcStatusResource

CommonDomainNameServerIpLists This property is required. []GetVpcStatusResourceCommonDomainNameServerIpList
List of domain name server IPs.
ExternalSubnetLists This property is required. []GetVpcStatusResourceExternalSubnetList
List of external subnets attached to this VPC.
ExternallyRoutablePrefixLists This property is required. []GetVpcStatusResourceExternallyRoutablePrefixList
List of external routable ip and prefix .
commonDomainNameServerIpLists This property is required. List<GetVpcStatusResourceCommonDomainNameServerIpList>
List of domain name server IPs.
externalSubnetLists This property is required. List<GetVpcStatusResourceExternalSubnetList>
List of external subnets attached to this VPC.
externallyRoutablePrefixLists This property is required. List<GetVpcStatusResourceExternallyRoutablePrefixList>
List of external routable ip and prefix .
commonDomainNameServerIpLists This property is required. GetVpcStatusResourceCommonDomainNameServerIpList[]
List of domain name server IPs.
externalSubnetLists This property is required. GetVpcStatusResourceExternalSubnetList[]
List of external subnets attached to this VPC.
externallyRoutablePrefixLists This property is required. GetVpcStatusResourceExternallyRoutablePrefixList[]
List of external routable ip and prefix .
common_domain_name_server_ip_lists This property is required. Sequence[GetVpcStatusResourceCommonDomainNameServerIpList]
List of domain name server IPs.
external_subnet_lists This property is required. Sequence[GetVpcStatusResourceExternalSubnetList]
List of external subnets attached to this VPC.
externally_routable_prefix_lists This property is required. Sequence[GetVpcStatusResourceExternallyRoutablePrefixList]
List of external routable ip and prefix .
commonDomainNameServerIpLists This property is required. List<Property Map>
List of domain name server IPs.
externalSubnetLists This property is required. List<Property Map>
List of external subnets attached to this VPC.
externallyRoutablePrefixLists 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

ActiveGatewayNodes This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcStatusResourceExternalSubnetListActiveGatewayNode>
Active Gateway Node. Only present in VPC Status Resources.
ExternalIpLists This property is required. List<string>
List of external subnets attached to this VPC. Only present in VPC Status Resources .
ExternalSubnetReference This property is required. Dictionary<string, string>
Reference to a subnet.
ActiveGatewayNodes This property is required. []GetVpcStatusResourceExternalSubnetListActiveGatewayNode
Active Gateway Node. Only present in VPC Status Resources.
ExternalIpLists This property is required. []string
List of external subnets attached to this VPC. Only present in VPC Status Resources .
ExternalSubnetReference This property is required. map[string]string
Reference to a subnet.
activeGatewayNodes This property is required. List<GetVpcStatusResourceExternalSubnetListActiveGatewayNode>
Active Gateway Node. Only present in VPC Status Resources.
externalIpLists This property is required. List<String>
List of external subnets attached to this VPC. Only present in VPC Status Resources .
externalSubnetReference This property is required. Map<String,String>
Reference to a subnet.
activeGatewayNodes This property is required. GetVpcStatusResourceExternalSubnetListActiveGatewayNode[]
Active Gateway Node. Only present in VPC Status Resources.
externalIpLists This property is required. string[]
List of external subnets attached to this VPC. Only present in VPC Status Resources .
externalSubnetReference This property is required. {[key: string]: string}
Reference to a subnet.
active_gateway_nodes This property is required. Sequence[GetVpcStatusResourceExternalSubnetListActiveGatewayNode]
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.
activeGatewayNodes This property is required. List<Property Map>
Active Gateway Node. Only present in VPC Status Resources.
externalIpLists This property is required. List<String>
List of external subnets attached to this VPC. Only present in VPC Status Resources .
externalSubnetReference This property is required. Map<String>
Reference to a subnet.

GetVpcStatusResourceExternalSubnetListActiveGatewayNode

HostReference This property is required. Dictionary<string, string>
Reference to host.
IpAddress This property is required. string
ip address.
HostReference This property is required. map[string]string
Reference to host.
IpAddress This property is required. string
ip address.
hostReference This property is required. Map<String,String>
Reference to host.
ipAddress This property is required. String
ip address.
hostReference This property is required. {[key: string]: string}
Reference to host.
ipAddress 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.
hostReference This property is required. Map<String>
Reference to host.
ipAddress This property is required. String
ip address.

GetVpcStatusResourceExternallyRoutablePrefixList

Ip This property is required. string
ip address of domain name server.
PrefixLength This property is required. int
prefix length of routable ip .
Ip This property is required. string
ip address of domain name server.
PrefixLength This property is required. int
prefix length of routable ip .
ip This property is required. String
ip address of domain name server.
prefixLength This property is required. Integer
prefix length of routable ip .
ip This property is required. string
ip address of domain name server.
prefixLength 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.
prefixLength 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.
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg