1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getNetworkingFloatingip
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getNetworkingFloatingip

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Use this data source to get the ID of an available VKCS floating IP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const fipByPort = vkcs.getNetworkingFloatingip({
        portId: vkcs_networking_port.persistent_etcd.id,
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    fip_by_port = vkcs.get_networking_floatingip(port_id=vkcs_networking_port["persistent_etcd"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.LookupNetworkingFloatingip(ctx, &vkcs.LookupNetworkingFloatingipArgs{
    			PortId: pulumi.StringRef(vkcs_networking_port.Persistent_etcd.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var fipByPort = Vkcs.GetNetworkingFloatingip.Invoke(new()
        {
            PortId = vkcs_networking_port.Persistent_etcd.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetNetworkingFloatingipArgs;
    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 fipByPort = VkcsFunctions.getNetworkingFloatingip(GetNetworkingFloatingipArgs.builder()
                .portId(vkcs_networking_port.persistent_etcd().id())
                .build());
    
        }
    }
    
    variables:
      fipByPort:
        fn::invoke:
          function: vkcs:getNetworkingFloatingip
          arguments:
            portId: ${vkcs_networking_port.persistent_etcd.id}
    

    Using getNetworkingFloatingip

    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 getNetworkingFloatingip(args: GetNetworkingFloatingipArgs, opts?: InvokeOptions): Promise<GetNetworkingFloatingipResult>
    function getNetworkingFloatingipOutput(args: GetNetworkingFloatingipOutputArgs, opts?: InvokeOptions): Output<GetNetworkingFloatingipResult>
    def get_networking_floatingip(address: Optional[str] = None,
                                  description: Optional[str] = None,
                                  fixed_ip: Optional[str] = None,
                                  pool: Optional[str] = None,
                                  port_id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  sdn: Optional[str] = None,
                                  status: Optional[str] = None,
                                  tenant_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetNetworkingFloatingipResult
    def get_networking_floatingip_output(address: Optional[pulumi.Input[str]] = None,
                                  description: Optional[pulumi.Input[str]] = None,
                                  fixed_ip: Optional[pulumi.Input[str]] = None,
                                  pool: Optional[pulumi.Input[str]] = None,
                                  port_id: Optional[pulumi.Input[str]] = None,
                                  region: Optional[pulumi.Input[str]] = None,
                                  sdn: Optional[pulumi.Input[str]] = None,
                                  status: Optional[pulumi.Input[str]] = None,
                                  tenant_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingFloatingipResult]
    func LookupNetworkingFloatingip(ctx *Context, args *LookupNetworkingFloatingipArgs, opts ...InvokeOption) (*LookupNetworkingFloatingipResult, error)
    func LookupNetworkingFloatingipOutput(ctx *Context, args *LookupNetworkingFloatingipOutputArgs, opts ...InvokeOption) LookupNetworkingFloatingipResultOutput

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

    public static class GetNetworkingFloatingip 
    {
        public static Task<GetNetworkingFloatingipResult> InvokeAsync(GetNetworkingFloatingipArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkingFloatingipResult> Invoke(GetNetworkingFloatingipInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkingFloatingipResult> getNetworkingFloatingip(GetNetworkingFloatingipArgs args, InvokeOptions options)
    public static Output<GetNetworkingFloatingipResult> getNetworkingFloatingip(GetNetworkingFloatingipArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getNetworkingFloatingip:getNetworkingFloatingip
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Address string
    optional string → The IP address of the floating IP.
    Description string
    optional string → Human-readable description of the floating IP.
    FixedIp string
    optional string → The specific IP address of the internal port which should be associated with the floating IP.
    Pool string
    optional string → The name of the pool from which the floating IP belongs to.
    PortId string
    optional string → The ID of the port the floating IP is attached.
    Region string
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve floating IP ids. If omitted, the region argument of the provider is used.
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    Status string
    optional string → Status of the floating IP (ACTIVE/DOWN).
    TenantId string
    optional string → The owner of the floating IP.
    Address string
    optional string → The IP address of the floating IP.
    Description string
    optional string → Human-readable description of the floating IP.
    FixedIp string
    optional string → The specific IP address of the internal port which should be associated with the floating IP.
    Pool string
    optional string → The name of the pool from which the floating IP belongs to.
    PortId string
    optional string → The ID of the port the floating IP is attached.
    Region string
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve floating IP ids. If omitted, the region argument of the provider is used.
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    Status string
    optional string → Status of the floating IP (ACTIVE/DOWN).
    TenantId string
    optional string → The owner of the floating IP.
    address String
    optional string → The IP address of the floating IP.
    description String
    optional string → Human-readable description of the floating IP.
    fixedIp String
    optional string → The specific IP address of the internal port which should be associated with the floating IP.
    pool String
    optional string → The name of the pool from which the floating IP belongs to.
    portId String
    optional string → The ID of the port the floating IP is attached.
    region String
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve floating IP ids. If omitted, the region argument of the provider is used.
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status String
    optional string → Status of the floating IP (ACTIVE/DOWN).
    tenantId String
    optional string → The owner of the floating IP.
    address string
    optional string → The IP address of the floating IP.
    description string
    optional string → Human-readable description of the floating IP.
    fixedIp string
    optional string → The specific IP address of the internal port which should be associated with the floating IP.
    pool string
    optional string → The name of the pool from which the floating IP belongs to.
    portId string
    optional string → The ID of the port the floating IP is attached.
    region string
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve floating IP ids. If omitted, the region argument of the provider is used.
    sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status string
    optional string → Status of the floating IP (ACTIVE/DOWN).
    tenantId string
    optional string → The owner of the floating IP.
    address str
    optional string → The IP address of the floating IP.
    description str
    optional string → Human-readable description of the floating IP.
    fixed_ip str
    optional string → The specific IP address of the internal port which should be associated with the floating IP.
    pool str
    optional string → The name of the pool from which the floating IP belongs to.
    port_id str
    optional string → The ID of the port the floating IP is attached.
    region str
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve floating IP ids. If omitted, the region argument of the provider is used.
    sdn str
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status str
    optional string → Status of the floating IP (ACTIVE/DOWN).
    tenant_id str
    optional string → The owner of the floating IP.
    address String
    optional string → The IP address of the floating IP.
    description String
    optional string → Human-readable description of the floating IP.
    fixedIp String
    optional string → The specific IP address of the internal port which should be associated with the floating IP.
    pool String
    optional string → The name of the pool from which the floating IP belongs to.
    portId String
    optional string → The ID of the port the floating IP is attached.
    region String
    optional string → The region in which to obtain the Network client. A Network client is needed to retrieve floating IP ids. If omitted, the region argument of the provider is used.
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
    status String
    optional string → Status of the floating IP (ACTIVE/DOWN).
    tenantId String
    optional string → The owner of the floating IP.

    getNetworkingFloatingip Result

    The following output properties are available:

    Address string
    Description string
    FixedIp string
    Id string
    string → ID of the found floating IP.
    Pool string
    PortId string
    Region string
    Sdn string
    Status string
    TenantId string
    Address string
    Description string
    FixedIp string
    Id string
    string → ID of the found floating IP.
    Pool string
    PortId string
    Region string
    Sdn string
    Status string
    TenantId string
    address String
    description String
    fixedIp String
    id String
    string → ID of the found floating IP.
    pool String
    portId String
    region String
    sdn String
    status String
    tenantId String
    address string
    description string
    fixedIp string
    id string
    string → ID of the found floating IP.
    pool string
    portId string
    region string
    sdn string
    status string
    tenantId string
    address str
    description str
    fixed_ip str
    id str
    string → ID of the found floating IP.
    pool str
    port_id str
    region str
    sdn str
    status str
    tenant_id str
    address String
    description String
    fixedIp String
    id String
    string → ID of the found floating IP.
    pool String
    portId String
    region String
    sdn String
    status String
    tenantId String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs