1. Packages
  2. Nutanix
  3. API Docs
  4. getVpcs
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.getVpcs

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 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({});
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getVpcs:getVpcs
      arguments:
        # arguments dictionary

    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 map[string]string
    • The vpc kind metadata.
    Specs []GetVpcsEntitySpec
    VPC input spec
    Statuses []GetVpcsEntityStatus
    VPC output status
    metadata Map<String,String>
    • The vpc kind metadata.
    specs List<GetVpcsEntitySpec>
    VPC input spec
    statuses List<GetVpcsEntityStatus>
    VPC output status
    metadata {[key: string]: string}
    • The vpc kind metadata.
    specs GetVpcsEntitySpec[]
    VPC input spec
    statuses GetVpcsEntityStatus[]
    VPC output status
    metadata Mapping[str, str]
    • The vpc kind metadata.
    specs Sequence[GetVpcsEntitySpec]
    VPC input spec
    statuses Sequence[GetVpcsEntityStatus]
    VPC output status
    metadata Map<String>
    • The vpc kind metadata.
    specs List<Property Map>
    VPC input spec
    statuses List<Property Map>
    VPC output status

    GetVpcsEntitySpec

    Name string
    • the name.
    Resources []GetVpcsEntitySpecResource
    VPC resources status
    name String
    • the name.
    resources List<GetVpcsEntitySpecResource>
    VPC resources status
    name string
    • the name.
    resources GetVpcsEntitySpecResource[]
    VPC resources status
    name str
    • the name.
    resources Sequence[GetVpcsEntitySpecResource]
    VPC resources status
    name String
    • the name.
    resources List<Property Map>
    VPC resources status

    GetVpcsEntitySpecResource

    commonDomainNameServerIpLists List<Property Map>
    List of domain name server IPs.
    externalSubnetLists List<Property Map>
    List of external subnets attached to this VPC.
    externallyRoutablePrefixLists List<Property Map>
    List of external routable ip and prefix .

    GetVpcsEntitySpecResourceCommonDomainNameServerIpList

    Ip string
    ip address of domain name server.
    Ip string
    ip address of domain name server.
    ip String
    ip address of domain name server.
    ip string
    ip address of domain name server.
    ip str
    ip address of domain name server.
    ip String
    ip address of domain name server.

    GetVpcsEntitySpecResourceExternalSubnetList

    ExternalSubnetReference Dictionary<string, string>
    Reference to a subnet.
    ExternalSubnetReference map[string]string
    Reference to a subnet.
    externalSubnetReference Map<String,String>
    Reference to a subnet.
    externalSubnetReference {[key: string]: string}
    Reference to a subnet.
    external_subnet_reference Mapping[str, str]
    Reference to a subnet.
    externalSubnetReference Map<String>
    Reference to a subnet.

    GetVpcsEntitySpecResourceExternallyRoutablePrefixList

    Ip string
    ip address of domain name server.
    PrefixLength int
    prefix length of routable ip .
    Ip string
    ip address of domain name server.
    PrefixLength int
    prefix length of routable ip .
    ip String
    ip address of domain name server.
    prefixLength Integer
    prefix length of routable ip .
    ip string
    ip address of domain name server.
    prefixLength number
    prefix length of routable ip .
    ip str
    ip address of domain name server.
    prefix_length int
    prefix length of routable ip .
    ip String
    ip address of domain name server.
    prefixLength Number
    prefix length of routable ip .

    GetVpcsEntityStatus

    ExecutionContexts []GetVpcsEntityStatusExecutionContext
    Execution Context of VPC.
    Name string
    • the name.
    Resources []GetVpcsEntityStatusResource
    VPC resources status
    State string
    The state of the VPC
    executionContexts List<GetVpcsEntityStatusExecutionContext>
    Execution Context of VPC.
    name String
    • the name.
    resources List<GetVpcsEntityStatusResource>
    VPC resources status
    state String
    The state of the VPC
    executionContexts GetVpcsEntityStatusExecutionContext[]
    Execution Context of VPC.
    name string
    • the name.
    resources GetVpcsEntityStatusResource[]
    VPC resources status
    state string
    The state of the VPC
    execution_contexts Sequence[GetVpcsEntityStatusExecutionContext]
    Execution Context of VPC.
    name str
    • the name.
    resources Sequence[GetVpcsEntityStatusResource]
    VPC resources status
    state str
    The state of the VPC
    executionContexts List<Property Map>
    Execution Context of VPC.
    name String
    • the name.
    resources List<Property Map>
    VPC resources status
    state String
    The state of the VPC

    GetVpcsEntityStatusExecutionContext

    TaskUuids List<string>
    TaskUuids []string
    taskUuids List<String>
    taskUuids string[]
    task_uuids Sequence[str]
    taskUuids List<String>

    GetVpcsEntityStatusResource

    commonDomainNameServerIpLists List<Property Map>
    List of domain name server IPs.
    externalSubnetLists List<Property Map>
    List of external subnets attached to this VPC.
    externallyRoutablePrefixLists List<Property Map>
    List of external routable ip and prefix .

    GetVpcsEntityStatusResourceCommonDomainNameServerIpList

    Ip string
    ip address of domain name server.
    Ip string
    ip address of domain name server.
    ip String
    ip address of domain name server.
    ip string
    ip address of domain name server.
    ip str
    ip address of domain name server.
    ip String
    ip address of domain name server.

    GetVpcsEntityStatusResourceExternalSubnetList

    ActiveGatewayNodes List<PiersKarsenbarg.Nutanix.Inputs.GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode>
    Active Gateway Node. Only present in VPC Status Resources.
    ExternalIpLists List<string>
    List of external subnets attached to this VPC. Only present in VPC Status Resources .
    ExternalSubnetReference Dictionary<string, string>
    Reference to a subnet.
    ActiveGatewayNodes []GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode
    Active Gateway Node. Only present in VPC Status Resources.
    ExternalIpLists []string
    List of external subnets attached to this VPC. Only present in VPC Status Resources .
    ExternalSubnetReference map[string]string
    Reference to a subnet.
    activeGatewayNodes List<GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode>
    Active Gateway Node. Only present in VPC Status Resources.
    externalIpLists List<String>
    List of external subnets attached to this VPC. Only present in VPC Status Resources .
    externalSubnetReference Map<String,String>
    Reference to a subnet.
    activeGatewayNodes GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode[]
    Active Gateway Node. Only present in VPC Status Resources.
    externalIpLists string[]
    List of external subnets attached to this VPC. Only present in VPC Status Resources .
    externalSubnetReference {[key: string]: string}
    Reference to a subnet.
    active_gateway_nodes Sequence[GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode]
    Active Gateway Node. Only present in VPC Status Resources.
    external_ip_lists Sequence[str]
    List of external subnets attached to this VPC. Only present in VPC Status Resources .
    external_subnet_reference Mapping[str, str]
    Reference to a subnet.
    activeGatewayNodes List<Property Map>
    Active Gateway Node. Only present in VPC Status Resources.
    externalIpLists List<String>
    List of external subnets attached to this VPC. Only present in VPC Status Resources .
    externalSubnetReference Map<String>
    Reference to a subnet.

    GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode

    HostReference Dictionary<string, string>
    Reference to host.
    IpAddress string
    ip address.
    HostReference map[string]string
    Reference to host.
    IpAddress string
    ip address.
    hostReference Map<String,String>
    Reference to host.
    ipAddress String
    ip address.
    hostReference {[key: string]: string}
    Reference to host.
    ipAddress string
    ip address.
    host_reference Mapping[str, str]
    Reference to host.
    ip_address str
    ip address.
    hostReference Map<String>
    Reference to host.
    ipAddress String
    ip address.

    GetVpcsEntityStatusResourceExternallyRoutablePrefixList

    Ip string
    ip address of domain name server.
    PrefixLength int
    prefix length of routable ip .
    Ip string
    ip address of domain name server.
    PrefixLength int
    prefix length of routable ip .
    ip String
    ip address of domain name server.
    prefixLength Integer
    prefix length of routable ip .
    ip string
    ip address of domain name server.
    prefixLength number
    prefix length of routable ip .
    ip str
    ip address of domain name server.
    prefix_length int
    prefix length of routable ip .
    ip String
    ip address of domain name server.
    prefixLength Number
    prefix length of routable ip .

    GetVpcsMetadata

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

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg