Nutanix v0.5.0 published on Monday, Nov 4, 2024 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)
// 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
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 Dictionary<string, string>
- The vpc kind metadata.
- Specs
List<Piers
Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Spec> - VPC input spec
- Statuses
List<Piers
Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Status> - VPC output status
- Metadata map[string]string
- The vpc kind metadata.
- Specs
[]Get
Vpcs Entity Spec - VPC input spec
- Statuses
[]Get
Vpcs Entity Status - VPC output status
- metadata Map<String,String>
- The vpc kind metadata.
- specs
List<Get
Vpcs Entity Spec> - VPC input spec
- statuses
List<Get
Vpcs Entity Status> - VPC output status
- metadata {[key: string]: string}
- The vpc kind metadata.
- specs
Get
Vpcs Entity Spec[] - VPC input spec
- statuses
Get
Vpcs Entity Status[] - VPC output status
- metadata Mapping[str, str]
- The vpc kind metadata.
- specs
Sequence[Get
Vpcs Entity Spec] - VPC input spec
- statuses
Sequence[Get
Vpcs Entity Status] - 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
List<Piers
Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Spec Resource> - VPC resources status
- Name string
- the name.
- Resources
[]Get
Vpcs Entity Spec Resource - VPC resources status
- name String
- the name.
- resources
List<Get
Vpcs Entity Spec Resource> - VPC resources status
- name string
- the name.
- resources
Get
Vpcs Entity Spec Resource[] - VPC resources status
- name str
- the name.
- resources
Sequence[Get
Vpcs Entity Spec Resource] - VPC resources status
- name String
- the name.
- resources List<Property Map>
- VPC resources status
GetVpcsEntitySpecResource
- Common
Domain List<PiersName Server Ip Lists Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Spec Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- External
Subnet List<PiersLists Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Spec Resource External Subnet List> - List of external subnets attached to this VPC.
- Externally
Routable List<PiersPrefix Lists Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Spec Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- Common
Domain []GetName Server Ip Lists Vpcs Entity Spec Resource Common Domain Name Server Ip List - List of domain name server IPs.
- External
Subnet []GetLists Vpcs Entity Spec Resource External Subnet List - List of external subnets attached to this VPC.
- Externally
Routable []GetPrefix Lists Vpcs Entity Spec Resource Externally Routable Prefix List - List of external routable ip and prefix .
- common
Domain List<GetName Server Ip Lists Vpcs Entity Spec Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- external
Subnet List<GetLists Vpcs Entity Spec Resource External Subnet List> - List of external subnets attached to this VPC.
- externally
Routable List<GetPrefix Lists Vpcs Entity Spec Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- common
Domain GetName Server Ip Lists Vpcs Entity Spec Resource Common Domain Name Server Ip List[] - List of domain name server IPs.
- external
Subnet GetLists Vpcs Entity Spec Resource External Subnet List[] - List of external subnets attached to this VPC.
- externally
Routable GetPrefix Lists Vpcs Entity Spec Resource Externally Routable Prefix List[] - List of external routable ip and prefix .
- common_
domain_ Sequence[Getname_ server_ ip_ lists Vpcs Entity Spec Resource Common Domain Name Server Ip List] - List of domain name server IPs.
- external_
subnet_ Sequence[Getlists Vpcs Entity Spec Resource External Subnet List] - List of external subnets attached to this VPC.
- externally_
routable_ Sequence[Getprefix_ lists Vpcs Entity Spec Resource Externally Routable Prefix List] - List of external routable ip and prefix .
- common
Domain List<Property Map>Name Server Ip Lists - List of domain name server IPs.
- external
Subnet List<Property Map>Lists - List of external subnets attached to this VPC.
- externally
Routable List<Property Map>Prefix Lists - 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
- External
Subnet Dictionary<string, string>Reference - Reference to a subnet.
- External
Subnet map[string]stringReference - Reference to a subnet.
- external
Subnet Map<String,String>Reference - Reference to a subnet.
- external
Subnet {[key: string]: string}Reference - Reference to a subnet.
- external_
subnet_ Mapping[str, str]reference - Reference to a subnet.
- external
Subnet Map<String>Reference - Reference to a subnet.
GetVpcsEntitySpecResourceExternallyRoutablePrefixList
- Ip string
- ip address of domain name server.
- Prefix
Length int - prefix length of routable ip .
- Ip string
- ip address of domain name server.
- Prefix
Length int - prefix length of routable ip .
- ip String
- ip address of domain name server.
- prefix
Length Integer - prefix length of routable ip .
- ip string
- ip address of domain name server.
- prefix
Length 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.
- prefix
Length Number - prefix length of routable ip .
GetVpcsEntityStatus
- Execution
Contexts List<PiersKarsenbarg. Nutanix. Inputs. Get Vpcs Entity Status Execution Context> - Execution Context of VPC.
- Name string
- the name.
- Resources
List<Piers
Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Status Resource> - VPC resources status
- State string
- The state of the VPC
- Execution
Contexts []GetVpcs Entity Status Execution Context - Execution Context of VPC.
- Name string
- the name.
- Resources
[]Get
Vpcs Entity Status Resource - VPC resources status
- State string
- The state of the VPC
- execution
Contexts List<GetVpcs Entity Status Execution Context> - Execution Context of VPC.
- name String
- the name.
- resources
List<Get
Vpcs Entity Status Resource> - VPC resources status
- state String
- The state of the VPC
- execution
Contexts GetVpcs Entity Status Execution Context[] - Execution Context of VPC.
- name string
- the name.
- resources
Get
Vpcs Entity Status Resource[] - VPC resources status
- state string
- The state of the VPC
- execution_
contexts Sequence[GetVpcs Entity Status Execution Context] - Execution Context of VPC.
- name str
- the name.
- resources
Sequence[Get
Vpcs Entity Status Resource] - VPC resources status
- state str
- The state of the VPC
- execution
Contexts 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
- Task
Uuids List<string>
- Task
Uuids []string
- task
Uuids List<String>
- task
Uuids string[]
- task_
uuids Sequence[str]
- task
Uuids List<String>
GetVpcsEntityStatusResource
- Common
Domain List<PiersName Server Ip Lists Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Status Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- External
Subnet List<PiersLists Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Status Resource External Subnet List> - List of external subnets attached to this VPC.
- Externally
Routable List<PiersPrefix Lists Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Status Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- Common
Domain []GetName Server Ip Lists Vpcs Entity Status Resource Common Domain Name Server Ip List - List of domain name server IPs.
- External
Subnet []GetLists Vpcs Entity Status Resource External Subnet List - List of external subnets attached to this VPC.
- Externally
Routable []GetPrefix Lists Vpcs Entity Status Resource Externally Routable Prefix List - List of external routable ip and prefix .
- common
Domain List<GetName Server Ip Lists Vpcs Entity Status Resource Common Domain Name Server Ip List> - List of domain name server IPs.
- external
Subnet List<GetLists Vpcs Entity Status Resource External Subnet List> - List of external subnets attached to this VPC.
- externally
Routable List<GetPrefix Lists Vpcs Entity Status Resource Externally Routable Prefix List> - List of external routable ip and prefix .
- common
Domain GetName Server Ip Lists Vpcs Entity Status Resource Common Domain Name Server Ip List[] - List of domain name server IPs.
- external
Subnet GetLists Vpcs Entity Status Resource External Subnet List[] - List of external subnets attached to this VPC.
- externally
Routable GetPrefix Lists Vpcs Entity Status Resource Externally Routable Prefix List[] - List of external routable ip and prefix .
- common_
domain_ Sequence[Getname_ server_ ip_ lists Vpcs Entity Status Resource Common Domain Name Server Ip List] - List of domain name server IPs.
- external_
subnet_ Sequence[Getlists Vpcs Entity Status Resource External Subnet List] - List of external subnets attached to this VPC.
- externally_
routable_ Sequence[Getprefix_ lists Vpcs Entity Status Resource Externally Routable Prefix List] - List of external routable ip and prefix .
- common
Domain List<Property Map>Name Server Ip Lists - List of domain name server IPs.
- external
Subnet List<Property Map>Lists - List of external subnets attached to this VPC.
- externally
Routable List<Property Map>Prefix Lists - 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
- Active
Gateway List<PiersNodes Karsenbarg. Nutanix. Inputs. Get Vpcs Entity Status Resource External Subnet List Active Gateway Node> - Active Gateway Node. Only present in VPC Status Resources.
- External
Ip List<string>Lists - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- External
Subnet Dictionary<string, string>Reference - Reference to a subnet.
- Active
Gateway []GetNodes Vpcs Entity Status Resource External Subnet List Active Gateway Node - Active Gateway Node. Only present in VPC Status Resources.
- External
Ip []stringLists - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- External
Subnet map[string]stringReference - Reference to a subnet.
- active
Gateway List<GetNodes Vpcs Entity Status Resource External Subnet List Active Gateway Node> - Active Gateway Node. Only present in VPC Status Resources.
- external
Ip List<String>Lists - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external
Subnet Map<String,String>Reference - Reference to a subnet.
- active
Gateway GetNodes Vpcs Entity Status Resource External Subnet List Active Gateway Node[] - Active Gateway Node. Only present in VPC Status Resources.
- external
Ip string[]Lists - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external
Subnet {[key: string]: string}Reference - Reference to a subnet.
- active_
gateway_ Sequence[Getnodes Vpcs Entity Status Resource External Subnet List Active Gateway Node] - Active Gateway Node. Only present in VPC Status Resources.
- external_
ip_ Sequence[str]lists - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external_
subnet_ Mapping[str, str]reference - Reference to a subnet.
- active
Gateway List<Property Map>Nodes - Active Gateway Node. Only present in VPC Status Resources.
- external
Ip List<String>Lists - List of external subnets attached to this VPC. Only present in VPC Status Resources .
- external
Subnet Map<String>Reference - Reference to a subnet.
GetVpcsEntityStatusResourceExternalSubnetListActiveGatewayNode
- Host
Reference Dictionary<string, string> - Reference to host.
- Ip
Address string - ip address.
- Host
Reference map[string]string - Reference to host.
- Ip
Address string - ip address.
- host
Reference Map<String,String> - Reference to host.
- ip
Address String - ip address.
- host
Reference {[key: string]: string} - Reference to host.
- ip
Address string - ip address.
- host_
reference Mapping[str, str] - Reference to host.
- ip_
address str - ip address.
- host
Reference Map<String> - Reference to host.
- ip
Address String - ip address.
GetVpcsEntityStatusResourceExternallyRoutablePrefixList
- Ip string
- ip address of domain name server.
- Prefix
Length int - prefix length of routable ip .
- Ip string
- ip address of domain name server.
- Prefix
Length int - prefix length of routable ip .
- ip String
- ip address of domain name server.
- prefix
Length Integer - prefix length of routable ip .
- ip string
- ip address of domain name server.
- prefix
Length 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.
- prefix
Length Number - prefix length of routable ip .
GetVpcsMetadata
- Filter string
- Kind string
- The kind name (Default value: project).
- Length int
- Offset int
- Sort
Attribute string - Sort
Order string - Total
Matches int
- Filter string
- Kind string
- The kind name (Default value: project).
- Length int
- Offset int
- Sort
Attribute string - Sort
Order string - Total
Matches int
- filter String
- kind String
- The kind name (Default value: project).
- length Integer
- offset Integer
- sort
Attribute String - sort
Order String - total
Matches Integer
- filter string
- kind string
- The kind name (Default value: project).
- length number
- offset number
- sort
Attribute string - sort
Order string - total
Matches 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
- sort
Attribute String - sort
Order String - total
Matches Number
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.