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

nutanix.getVpcs

Explore with Pulumi AI

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

Provides a datasource to retrieve all the vpcs.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";

const test = nutanix.getVpcs({});
Copy
import pulumi
import pulumi_nutanix as nutanix

test = nutanix.get_vpcs()
Copy
package main

import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.GetVpcs(ctx, &nutanix.GetVpcsArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;

return await Deployment.RunAsync(() => 
{
    var test = Nutanix.GetVpcs.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetVpcsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = NutanixFunctions.getVpcs();

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: nutanix:getVpcs
      arguments: {}
Copy

Using getVpcs

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 getVpcs(args: GetVpcsArgs, opts?: InvokeOptions): Promise<GetVpcsResult>
function getVpcsOutput(args: GetVpcsOutputArgs, opts?: InvokeOptions): Output<GetVpcsResult>
Copy
def get_vpcs(metadatas: Optional[Sequence[GetVpcsMetadata]] = None,
             opts: Optional[InvokeOptions] = None) -> GetVpcsResult
def get_vpcs_output(metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[GetVpcsMetadataArgs]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetVpcsResult]
Copy
func GetVpcs(ctx *Context, args *GetVpcsArgs, opts ...InvokeOption) (*GetVpcsResult, error)
func GetVpcsOutput(ctx *Context, args *GetVpcsOutputArgs, opts ...InvokeOption) GetVpcsResultOutput
Copy

> Note: This function is named GetVpcs in the Go SDK.

public static class GetVpcs 
{
    public static Task<GetVpcsResult> InvokeAsync(GetVpcsArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcsResult> Invoke(GetVpcsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpcsResult> getVpcs(GetVpcsArgs args, InvokeOptions options)
public static Output<GetVpcsResult> getVpcs(GetVpcsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getVpcs:getVpcs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Metadatas []GetVpcsMetadata
  • The vpc kind metadata.
metadatas List<GetVpcsMetadata>
  • The vpc kind metadata.
metadatas GetVpcsMetadata[]
  • The vpc kind metadata.
metadatas Sequence[GetVpcsMetadata]
  • The vpc kind metadata.
metadatas List<Property Map>
  • The vpc kind metadata.

getVpcs Result

The following output properties are available:

ApiVersion string
version of the API
Entities List<PiersKarsenbarg.Nutanix.Outputs.GetVpcsEntity>
List of VPCs
Id string
The provider-assigned unique ID for this managed resource.
Metadatas List<PiersKarsenbarg.Nutanix.Outputs.GetVpcsMetadata>
  • The vpc kind metadata.
ApiVersion string
version of the API
Entities []GetVpcsEntity
List of VPCs
Id string
The provider-assigned unique ID for this managed resource.
Metadatas []GetVpcsMetadata
  • The vpc kind metadata.
apiVersion String
version of the API
entities List<GetVpcsEntity>
List of VPCs
id String
The provider-assigned unique ID for this managed resource.
metadatas List<GetVpcsMetadata>
  • The vpc kind metadata.
apiVersion string
version of the API
entities GetVpcsEntity[]
List of VPCs
id string
The provider-assigned unique ID for this managed resource.
metadatas GetVpcsMetadata[]
  • The vpc kind metadata.
api_version str
version of the API
entities Sequence[GetVpcsEntity]
List of VPCs
id str
The provider-assigned unique ID for this managed resource.
metadatas Sequence[GetVpcsMetadata]
  • The vpc kind metadata.
apiVersion String
version of the API
entities List<Property Map>
List of VPCs
id String
The provider-assigned unique ID for this managed resource.
metadatas List<Property Map>
  • The vpc kind metadata.

Supporting Types

GetVpcsEntity

Metadata This property is required. Dictionary<string, string>
  • The vpc kind metadata.
Specs This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcsEntitySpec>
VPC input spec
Statuses This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcsEntityStatus>
VPC output status
Metadata This property is required. map[string]string
  • The vpc kind metadata.
Specs This property is required. []GetVpcsEntitySpec
VPC input spec
Statuses This property is required. []GetVpcsEntityStatus
VPC output status
metadata This property is required. Map<String,String>
  • The vpc kind metadata.
specs This property is required. List<GetVpcsEntitySpec>
VPC input spec
statuses This property is required. List<GetVpcsEntityStatus>
VPC output status
metadata This property is required. {[key: string]: string}
  • The vpc kind metadata.
specs This property is required. GetVpcsEntitySpec[]
VPC input spec
statuses This property is required. GetVpcsEntityStatus[]
VPC output status
metadata This property is required. Mapping[str, str]
  • The vpc kind metadata.
specs This property is required. Sequence[GetVpcsEntitySpec]
VPC input spec
statuses This property is required. Sequence[GetVpcsEntityStatus]
VPC output status
metadata This property is required. Map<String>
  • The vpc kind metadata.
specs This property is required. List<Property Map>
VPC input spec
statuses This property is required. List<Property Map>
VPC output status

GetVpcsEntitySpec

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

GetVpcsEntitySpecResource

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

GetVpcsEntitySpecResourceCommonDomainNameServerIpList

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.

GetVpcsEntitySpecResourceExternalSubnetList

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.

GetVpcsEntitySpecResourceExternallyRoutablePrefixList

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 .

GetVpcsEntityStatus

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

GetVpcsEntityStatusExecutionContext

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>

GetVpcsEntityStatusResource

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

GetVpcsEntityStatusResourceCommonDomainNameServerIpList

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.

GetVpcsEntityStatusResourceExternalSubnetList

ActiveGatewayCount This property is required. int
ActiveGatewayNodes This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode>
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.
ActiveGatewayCount This property is required. int
ActiveGatewayNodes This property is required. []GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode
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.
activeGatewayCount This property is required. Integer
activeGatewayNodes This property is required. List<GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode>
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.
activeGatewayCount This property is required. number
activeGatewayNodes This property is required. GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode[]
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_count This property is required. int
active_gateway_nodes This property is required. Sequence[GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode]
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.
activeGatewayCount This property is required. Number
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.

GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode

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.

GetVpcsEntityStatusResourceExternallyRoutablePrefixList

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 .

GetVpcsMetadata

Filter This property is required. string
Kind This property is required. string
  • The kind name (Default value: project).
Length This property is required. int
Offset This property is required. int
SortAttribute This property is required. string
SortOrder This property is required. string
TotalMatches This property is required. int
Filter This property is required. string
Kind This property is required. string
  • The kind name (Default value: project).
Length This property is required. int
Offset This property is required. int
SortAttribute This property is required. string
SortOrder This property is required. string
TotalMatches This property is required. int
filter This property is required. String
kind This property is required. String
  • The kind name (Default value: project).
length This property is required. Integer
offset This property is required. Integer
sortAttribute This property is required. String
sortOrder This property is required. String
totalMatches This property is required. Integer
filter This property is required. string
kind This property is required. string
  • The kind name (Default value: project).
length This property is required. number
offset This property is required. number
sortAttribute This property is required. string
sortOrder This property is required. string
totalMatches This property is required. number
filter This property is required. str
kind This property is required. str
  • The kind name (Default value: project).
length This property is required. int
offset This property is required. int
sort_attribute This property is required. str
sort_order This property is required. str
total_matches This property is required. int
filter This property is required. String
kind This property is required. String
  • The kind name (Default value: project).
length This property is required. Number
offset This property is required. Number
sortAttribute This property is required. String
sortOrder This property is required. String
totalMatches This property is required. Number

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