Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getVpcs
Explore with Pulumi AI
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({});
import pulumi
import pulumi_nutanix as nutanix
test = nutanix.get_vpcs()
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var test = Nutanix.GetVpcs.Invoke();
});
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();
}
}
variables:
test:
fn::invoke:
function: nutanix:getVpcs
arguments: {}
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>
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]
func GetVpcs(ctx *Context, args *GetVpcsArgs, opts ...InvokeOption) (*GetVpcsResult, error)
func GetVpcsOutput(ctx *Context, args *GetVpcsOutputArgs, opts ...InvokeOption) GetVpcsResultOutput
> 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)
}
public static CompletableFuture<GetVpcsResult> getVpcs(GetVpcsArgs args, InvokeOptions options)
public static Output<GetVpcsResult> getVpcs(GetVpcsArgs args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getVpcs:getVpcs
arguments:
# arguments dictionary
The following arguments are supported:
- Metadatas
List<Piers
Karsenbarg. Nutanix. Inputs. Get Vpcs Metadata> - The vpc kind metadata.
- Metadatas
[]Get
Vpcs Metadata - The vpc kind metadata.
- metadatas
List<Get
Vpcs Metadata> - The vpc kind metadata.
- metadatas
Get
Vpcs Metadata[] - The vpc kind metadata.
- metadatas
Sequence[Get
Vpcs Metadata] - The vpc kind metadata.
- metadatas List<Property Map>
- The vpc kind metadata.
getVpcs Result
The following output properties are available:
- Api
Version string - version of the API
- Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Vpcs Entity> - List of VPCs
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
List<Piers
Karsenbarg. Nutanix. Outputs. Get Vpcs Metadata> - The vpc kind metadata.
- Api
Version string - version of the API
- Entities
[]Get
Vpcs Entity - List of VPCs
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
[]Get
Vpcs Metadata - The vpc kind metadata.
- api
Version String - version of the API
- entities
List<Get
Vpcs Entity> - List of VPCs
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas
List<Get
Vpcs Metadata> - The vpc kind metadata.
- api
Version string - version of the API
- entities
Get
Vpcs Entity[] - List of VPCs
- id string
- The provider-assigned unique ID for this managed resource.
- metadatas
Get
Vpcs Metadata[] - The vpc kind metadata.
- api_
version str - version of the API
- entities
Sequence[Get
Vpcs Entity] - List of VPCs
- id str
- The provider-assigned unique ID for this managed resource.
- metadatas
Sequence[Get
Vpcs Metadata] - The vpc kind metadata.
- api
Version 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. Get Vpcs Entity Spec> - VPC input spec
- Statuses
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpcs Entity Status> - VPC output status
- Metadata
This property is required. map[string]string - The vpc kind metadata.
- Specs
This property is required. []GetVpcs Entity Spec - VPC input spec
- Statuses
This property is required. []GetVpcs Entity Status - VPC output status
- metadata
This property is required. Map<String,String> - The vpc kind metadata.
- specs
This property is required. List<GetVpcs Entity Spec> - VPC input spec
- statuses
This property is required. List<GetVpcs Entity Status> - VPC output status
- metadata
This property is required. {[key: string]: string} - The vpc kind metadata.
- specs
This property is required. GetVpcs Entity Spec[] - VPC input spec
- statuses
This property is required. GetVpcs Entity Status[] - VPC output status
- metadata
This property is required. Mapping[str, str] - The vpc kind metadata.
- specs
This property is required. Sequence[GetVpcs Entity Spec] - VPC input spec
- statuses
This property is required. Sequence[GetVpcs Entity Status] - 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. Get Vpcs Entity Spec Resource> - VPC resources status
- Name
This property is required. string - the name.
- Resources
This property is required. []GetVpcs Entity Spec Resource - VPC resources status
- name
This property is required. String - the name.
- resources
This property is required. List<GetVpcs Entity Spec Resource> - VPC resources status
- name
This property is required. string - the name.
- resources
This property is required. GetVpcs Entity Spec Resource[] - VPC resources status
- name
This property is required. str - the name.
- resources
This property is required. Sequence[GetVpcs Entity Spec Resource] - VPC resources status
- name
This property is required. String - the name.
- resources
This property is required. List<Property Map> - VPC resources status
GetVpcsEntitySpecResource
- Common
Domain Name Server Ip Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpcs Entity 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 Vpcs Entity 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 Vpcs Entity Spec Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- Common
Domain Name Server Ip Lists This property is required. []GetVpcs Entity Spec Resource Common Domain Name Server Ip List - List of domain name server IPs.
- External
Subnet Lists This property is required. []GetVpcs Entity Spec Resource External Subnet List - List of external subnets attached to this VPC.
- Externally
Routable Prefix Lists This property is required. []GetVpcs Entity Spec Resource Externally Routable Prefix List - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. List<GetVpcs Entity Spec Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- external
Subnet Lists This property is required. List<GetVpcs Entity Spec Resource External Subnet List> - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. List<GetVpcs Entity Spec Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. GetVpcs Entity Spec Resource Common Domain Name Server Ip List[] - List of domain name server IPs.
- external
Subnet Lists This property is required. GetVpcs Entity Spec Resource External Subnet List[] - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. GetVpcs Entity Spec Resource Externally Routable Prefix List[] - List of external routable ip and prefix .
- common_
domain_ name_ server_ ip_ lists This property is required. Sequence[GetVpcs Entity Spec Resource Common Domain Name Server Ip List] - List of domain name server IPs.
- external_
subnet_ lists This property is required. Sequence[GetVpcs Entity Spec Resource External Subnet List] - List of external subnets attached to this VPC.
- externally_
routable_ prefix_ lists This property is required. Sequence[GetVpcs Entity 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 .
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
- 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.
GetVpcsEntitySpecResourceExternallyRoutablePrefixList
- 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 .
GetVpcsEntityStatus
- Execution
Contexts This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpcs Entity 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 Vpcs Entity Status Resource> - VPC resources status
- State
This property is required. string - The state of the VPC
- Execution
Contexts This property is required. []GetVpcs Entity Status Execution Context - Execution Context of VPC.
- Name
This property is required. string - the name.
- Resources
This property is required. []GetVpcs Entity Status Resource - VPC resources status
- State
This property is required. string - The state of the VPC
- execution
Contexts This property is required. List<GetVpcs Entity Status Execution Context> - Execution Context of VPC.
- name
This property is required. String - the name.
- resources
This property is required. List<GetVpcs Entity Status Resource> - VPC resources status
- state
This property is required. String - The state of the VPC
- execution
Contexts This property is required. GetVpcs Entity Status Execution Context[] - Execution Context of VPC.
- name
This property is required. string - the name.
- resources
This property is required. GetVpcs Entity Status Resource[] - VPC resources status
- state
This property is required. string - The state of the VPC
- execution_
contexts This property is required. Sequence[GetVpcs Entity Status Execution Context] - Execution Context of VPC.
- name
This property is required. str - the name.
- resources
This property is required. Sequence[GetVpcs Entity 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
GetVpcsEntityStatusExecutionContext
- 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>
GetVpcsEntityStatusResource
- Common
Domain Name Server Ip Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpcs Entity 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 Vpcs Entity 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 Vpcs Entity Status Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- Common
Domain Name Server Ip Lists This property is required. []GetVpcs Entity Status Resource Common Domain Name Server Ip List - List of domain name server IPs.
- External
Subnet Lists This property is required. []GetVpcs Entity Status Resource External Subnet List - List of external subnets attached to this VPC.
- Externally
Routable Prefix Lists This property is required. []GetVpcs Entity Status Resource Externally Routable Prefix List - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. List<GetVpcs Entity Status Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- external
Subnet Lists This property is required. List<GetVpcs Entity Status Resource External Subnet List> - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. List<GetVpcs Entity Status Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- common
Domain Name Server Ip Lists This property is required. GetVpcs Entity Status Resource Common Domain Name Server Ip List[] - List of domain name server IPs.
- external
Subnet Lists This property is required. GetVpcs Entity Status Resource External Subnet List[] - List of external subnets attached to this VPC.
- externally
Routable Prefix Lists This property is required. GetVpcs Entity Status Resource Externally Routable Prefix List[] - List of external routable ip and prefix .
- common_
domain_ name_ server_ ip_ lists This property is required. Sequence[GetVpcs Entity Status Resource Common Domain Name Server Ip List] - List of domain name server IPs.
- external_
subnet_ lists This property is required. Sequence[GetVpcs Entity Status Resource External Subnet List] - List of external subnets attached to this VPC.
- externally_
routable_ prefix_ lists This property is required. Sequence[GetVpcs Entity 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 .
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
- Active
Gateway Count This property is required. int - Active
Gateway Nodes This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Vpcs Entity 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 Count This property is required. int - Active
Gateway Nodes This property is required. []GetVpcs Entity 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 Count This property is required. Integer - active
Gateway Nodes This property is required. List<GetVpcs Entity 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 Count This property is required. number - active
Gateway Nodes This property is required. GetVpcs Entity 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_ count This property is required. int - active_
gateway_ nodes This property is required. Sequence[GetVpcs Entity 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 Count This property is required. Number - 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.
GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode
- 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.
GetVpcsEntityStatusResourceExternallyRoutablePrefixList
- 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 .
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 - Sort
Attribute This property is required. string - Sort
Order This property is required. string - 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. int - Offset
This property is required. int - Sort
Attribute This property is required. string - Sort
Order This property is required. string - 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. Integer - offset
This property is required. Integer - sort
Attribute This property is required. String - sort
Order This property is required. String - total
Matches 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 - sort
Attribute This property is required. string - sort
Order This property is required. string - total
Matches 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 - sort
Attribute This property is required. String - sort
Order This property is required. String - total
Matches 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.