1. Packages
  2. Nutanix
  3. API Docs
  4. getFloatingIps
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

nutanix.getFloatingIps

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

    Provides a datasource to retrieve all the floating IPs .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const test = nutanix.getFloatingIps({});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    test = nutanix.get_floating_ips()
    
    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.GetFloatingIps(ctx, nil, 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.GetFloatingIps.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.GetFloatingIpsArgs;
    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.getFloatingIps();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: nutanix:getFloatingIps
          Arguments: {}
    

    Using getFloatingIps

    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 getFloatingIps(args: GetFloatingIpsArgs, opts?: InvokeOptions): Promise<GetFloatingIpsResult>
    function getFloatingIpsOutput(args: GetFloatingIpsOutputArgs, opts?: InvokeOptions): Output<GetFloatingIpsResult>
    def get_floating_ips(metadatas: Optional[Sequence[GetFloatingIpsMetadata]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFloatingIpsResult
    def get_floating_ips_output(metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[GetFloatingIpsMetadataArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFloatingIpsResult]
    func GetFloatingIps(ctx *Context, args *GetFloatingIpsArgs, opts ...InvokeOption) (*GetFloatingIpsResult, error)
    func GetFloatingIpsOutput(ctx *Context, args *GetFloatingIpsOutputArgs, opts ...InvokeOption) GetFloatingIpsResultOutput

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

    public static class GetFloatingIps 
    {
        public static Task<GetFloatingIpsResult> InvokeAsync(GetFloatingIpsArgs args, InvokeOptions? opts = null)
        public static Output<GetFloatingIpsResult> Invoke(GetFloatingIpsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFloatingIpsResult> getFloatingIps(GetFloatingIpsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getFloatingIps:getFloatingIps
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Metadatas []GetFloatingIpsMetadata
    • The floating_ip kind metadata.
    metadatas List<GetFloatingIpsMetadata>
    • The floating_ip kind metadata.
    metadatas GetFloatingIpsMetadata[]
    • The floating_ip kind metadata.
    metadatas Sequence[GetFloatingIpsMetadata]
    • The floating_ip kind metadata.
    metadatas List<Property Map>
    • The floating_ip kind metadata.

    getFloatingIps Result

    The following output properties are available:

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

    Supporting Types

    GetFloatingIpsEntity

    Metadata Dictionary<string, string>
    • The floating_ip kind metadata.
    Specs List<PiersKarsenbarg.Nutanix.Inputs.GetFloatingIpsEntitySpec>
    Floating IP spec
    Statuses List<PiersKarsenbarg.Nutanix.Inputs.GetFloatingIpsEntityStatus>
    Floating IP output status
    Metadata map[string]string
    • The floating_ip kind metadata.
    Specs []GetFloatingIpsEntitySpec
    Floating IP spec
    Statuses []GetFloatingIpsEntityStatus
    Floating IP output status
    metadata Map<String,String>
    • The floating_ip kind metadata.
    specs List<GetFloatingIpsEntitySpec>
    Floating IP spec
    statuses List<GetFloatingIpsEntityStatus>
    Floating IP output status
    metadata {[key: string]: string}
    • The floating_ip kind metadata.
    specs GetFloatingIpsEntitySpec[]
    Floating IP spec
    statuses GetFloatingIpsEntityStatus[]
    Floating IP output status
    metadata Mapping[str, str]
    • The floating_ip kind metadata.
    specs Sequence[GetFloatingIpsEntitySpec]
    Floating IP spec
    statuses Sequence[GetFloatingIpsEntityStatus]
    Floating IP output status
    metadata Map<String>
    • The floating_ip kind metadata.
    specs List<Property Map>
    Floating IP spec
    statuses List<Property Map>
    Floating IP output status

    GetFloatingIpsEntitySpec

    Resources []GetFloatingIpsEntitySpecResource
    Floating IP allocation status.
    resources GetFloatingIpsEntitySpecResource[]
    Floating IP allocation status.
    resources List<Property Map>
    Floating IP allocation status.

    GetFloatingIpsEntitySpecResource

    ExternalSubnetReference Dictionary<string, string>
    The reference to a subnet
    VmNicReference Dictionary<string, string>
    The reference to a vm_nic
    VpcReference Dictionary<string, string>
    The reference to a vpc
    ExternalSubnetReference map[string]string
    The reference to a subnet
    VmNicReference map[string]string
    The reference to a vm_nic
    VpcReference map[string]string
    The reference to a vpc
    externalSubnetReference Map<String,String>
    The reference to a subnet
    vmNicReference Map<String,String>
    The reference to a vm_nic
    vpcReference Map<String,String>
    The reference to a vpc
    externalSubnetReference {[key: string]: string}
    The reference to a subnet
    vmNicReference {[key: string]: string}
    The reference to a vm_nic
    vpcReference {[key: string]: string}
    The reference to a vpc
    external_subnet_reference Mapping[str, str]
    The reference to a subnet
    vm_nic_reference Mapping[str, str]
    The reference to a vm_nic
    vpc_reference Mapping[str, str]
    The reference to a vpc
    externalSubnetReference Map<String>
    The reference to a subnet
    vmNicReference Map<String>
    The reference to a vm_nic
    vpcReference Map<String>
    The reference to a vpc

    GetFloatingIpsEntityStatus

    ExecutionContexts []GetFloatingIpsEntityStatusExecutionContext
    Execution Context of Floating IP.
    Name string
    • the name.
    Resources []GetFloatingIpsEntityStatusResource
    Floating IP allocation status.
    State string
    The state of the floating_ip.
    executionContexts List<GetFloatingIpsEntityStatusExecutionContext>
    Execution Context of Floating IP.
    name String
    • the name.
    resources List<GetFloatingIpsEntityStatusResource>
    Floating IP allocation status.
    state String
    The state of the floating_ip.
    executionContexts GetFloatingIpsEntityStatusExecutionContext[]
    Execution Context of Floating IP.
    name string
    • the name.
    resources GetFloatingIpsEntityStatusResource[]
    Floating IP allocation status.
    state string
    The state of the floating_ip.
    execution_contexts Sequence[GetFloatingIpsEntityStatusExecutionContext]
    Execution Context of Floating IP.
    name str
    • the name.
    resources Sequence[GetFloatingIpsEntityStatusResource]
    Floating IP allocation status.
    state str
    The state of the floating_ip.
    executionContexts List<Property Map>
    Execution Context of Floating IP.
    name String
    • the name.
    resources List<Property Map>
    Floating IP allocation status.
    state String
    The state of the floating_ip.

    GetFloatingIpsEntityStatusExecutionContext

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

    GetFloatingIpsEntityStatusResource

    ExternalSubnetReference Dictionary<string, string>
    The reference to a subnet
    FloatingIp string
    Private IP with which the floating IP is associated.
    VmNicReference Dictionary<string, string>
    The reference to a vm_nic
    VpcReference Dictionary<string, string>
    The reference to a vpc
    ExternalSubnetReference map[string]string
    The reference to a subnet
    FloatingIp string
    Private IP with which the floating IP is associated.
    VmNicReference map[string]string
    The reference to a vm_nic
    VpcReference map[string]string
    The reference to a vpc
    externalSubnetReference Map<String,String>
    The reference to a subnet
    floatingIp String
    Private IP with which the floating IP is associated.
    vmNicReference Map<String,String>
    The reference to a vm_nic
    vpcReference Map<String,String>
    The reference to a vpc
    externalSubnetReference {[key: string]: string}
    The reference to a subnet
    floatingIp string
    Private IP with which the floating IP is associated.
    vmNicReference {[key: string]: string}
    The reference to a vm_nic
    vpcReference {[key: string]: string}
    The reference to a vpc
    external_subnet_reference Mapping[str, str]
    The reference to a subnet
    floating_ip str
    Private IP with which the floating IP is associated.
    vm_nic_reference Mapping[str, str]
    The reference to a vm_nic
    vpc_reference Mapping[str, str]
    The reference to a vpc
    externalSubnetReference Map<String>
    The reference to a subnet
    floatingIp String
    Private IP with which the floating IP is associated.
    vmNicReference Map<String>
    The reference to a vm_nic
    vpcReference Map<String>
    The reference to a vpc

    GetFloatingIpsMetadata

    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.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg