Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Use this data source to retrieve information about a floating IP in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const ip = ovh.getCloudFloatingIp({
serviceName: "<public cloud project ID>",
id: "<floating IP address>",
});
export const floatingIpStatus = ip.then(ip => ip.resourceStatus);
import pulumi
import pulumi_ovh as ovh
ip = ovh.get_cloud_floating_ip(service_name="<public cloud project ID>",
id="<floating IP address>")
pulumi.export("floatingIpStatus", ip.resource_status)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ip, err := ovh.LookupCloudFloatingIp(ctx, &ovh.LookupCloudFloatingIpArgs{
ServiceName: pulumi.StringRef("<public cloud project ID>"),
Id: "<floating IP address>",
}, nil)
if err != nil {
return err
}
ctx.Export("floatingIpStatus", ip.ResourceStatus)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var ip = Ovh.GetCloudFloatingIp.Invoke(new()
{
ServiceName = "<public cloud project ID>",
Id = "<floating IP address>",
});
return new Dictionary<string, object?>
{
["floatingIpStatus"] = ip.Apply(getCloudFloatingIpResult => getCloudFloatingIpResult.ResourceStatus),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudFloatingIpArgs;
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 ip = OvhFunctions.getCloudFloatingIp(GetCloudFloatingIpArgs.builder()
.serviceName("<public cloud project ID>")
.id("<floating IP address>")
.build());
ctx.export("floatingIpStatus", ip.resourceStatus());
}
}
variables:
ip:
fn::invoke:
function: ovh:getCloudFloatingIp
arguments:
serviceName: <public cloud project ID>
id: <floating IP address>
outputs:
floatingIpStatus: ${ip.resourceStatus}
Example coming soon!
Using getCloudFloatingIp
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 getCloudFloatingIp(args: GetCloudFloatingIpArgs, opts?: InvokeOptions): Promise<GetCloudFloatingIpResult>
function getCloudFloatingIpOutput(args: GetCloudFloatingIpOutputArgs, opts?: InvokeOptions): Output<GetCloudFloatingIpResult>def get_cloud_floating_ip(id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudFloatingIpResult
def get_cloud_floating_ip_output(id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudFloatingIpResult]func LookupCloudFloatingIp(ctx *Context, args *LookupCloudFloatingIpArgs, opts ...InvokeOption) (*LookupCloudFloatingIpResult, error)
func LookupCloudFloatingIpOutput(ctx *Context, args *LookupCloudFloatingIpOutputArgs, opts ...InvokeOption) LookupCloudFloatingIpResultOutput> Note: This function is named LookupCloudFloatingIp in the Go SDK.
public static class GetCloudFloatingIp
{
public static Task<GetCloudFloatingIpResult> InvokeAsync(GetCloudFloatingIpArgs args, InvokeOptions? opts = null)
public static Output<GetCloudFloatingIpResult> Invoke(GetCloudFloatingIpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudFloatingIpResult> getCloudFloatingIp(GetCloudFloatingIpArgs args, InvokeOptions options)
public static Output<GetCloudFloatingIpResult> getCloudFloatingIp(GetCloudFloatingIpArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudFloatingIp:getCloudFloatingIp
arguments:
# arguments dictionarydata "ovh_get_cloud_floating_ip" "name" {
# arguments
}The following arguments are supported:
- Id string
- IP address of the floating IP.
- Service
Name string - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Id string
- IP address of the floating IP.
- Service
Name string - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id string
- IP address of the floating IP.
- service_
name string - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id String
- IP address of the floating IP.
- service
Name String - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id string
- IP address of the floating IP.
- service
Name string - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id str
- IP address of the floating IP.
- service_
name str - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id String
- IP address of the floating IP.
- service
Name String - Service name of the resource representing the id of the cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getCloudFloatingIp Result
The following output properties are available:
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the floating IP.
- Current
State GetCloud Floating Ip Current State - Current state of the floating IP:
- Current
Tasks List<GetCloud Floating Ip Current Task> - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- Description string
- Description of the floating IP.
- Id string
- Identifier of the current task.
- Location
Get
Cloud Floating Ip Location - Location details:
- Resource
Status string - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Updated
At string - Last update date of the floating IP.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the floating IP.
- Current
State GetCloud Floating Ip Current State - Current state of the floating IP:
- Current
Tasks []GetCloud Floating Ip Current Task - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- Description string
- Description of the floating IP.
- Id string
- Identifier of the current task.
- Location
Get
Cloud Floating Ip Location - Location details:
- Resource
Status string - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Updated
At string - Last update date of the floating IP.
- checksum string
- Computed hash representing the current target specification value.
- created_
at string - Creation date of the floating IP.
- current_
state object - Current state of the floating IP:
- current_
tasks list(object) - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- description string
- Description of the floating IP.
- id string
- Identifier of the current task.
- location object
- Location details:
- resource_
status string - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name string - updated_
at string - Last update date of the floating IP.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the floating IP.
- current
State GetCloud Floating Ip Current State - Current state of the floating IP:
- current
Tasks List<GetCloud Floating Ip Current Task> - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- description String
- Description of the floating IP.
- id String
- Identifier of the current task.
- location
Get
Cloud Floating Ip Location - Location details:
- resource
Status String - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - updated
At String - Last update date of the floating IP.
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Creation date of the floating IP.
- current
State GetCloud Floating Ip Current State - Current state of the floating IP:
- current
Tasks GetCloud Floating Ip Current Task[] - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- description string
- Description of the floating IP.
- id string
- Identifier of the current task.
- location
Get
Cloud Floating Ip Location - Location details:
- resource
Status string - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name string - updated
At string - Last update date of the floating IP.
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the floating IP.
- current_
state GetCloud Floating Ip Current State - Current state of the floating IP:
- current_
tasks Sequence[GetCloud Floating Ip Current Task] - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- description str
- Description of the floating IP.
- id str
- Identifier of the current task.
- location
Get
Cloud Floating Ip Location - Location details:
- resource_
status str - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name str - updated_
at str - Last update date of the floating IP.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the floating IP.
- current
State Property Map - Current state of the floating IP:
- current
Tasks List<Property Map> - Ongoing asynchronous tasks related to the floating IP. Each element exports:
- description String
- Description of the floating IP.
- id String
- Identifier of the current task.
- location Property Map
- Location details:
- resource
Status String - Floating IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - updated
At String - Last update date of the floating IP.
Supporting Types
GetCloudFloatingIpCurrentState
- Associated
Resource GetCloud Floating Ip Current State Associated Resource - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- Description string
- Description of the floating IP.
- Id string
- IP address of the floating IP.
- Ip string
- IP address of the floating IP.
- Location
Get
Cloud Floating Ip Current State Location - Location details:
- Network
Get
Cloud Floating Ip Current State Network - External network the floating IP belongs to:
- Status string
- Current global status of the current task.
- Associated
Resource GetCloud Floating Ip Current State Associated Resource - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- Description string
- Description of the floating IP.
- Id string
- IP address of the floating IP.
- Ip string
- IP address of the floating IP.
- Location
Get
Cloud Floating Ip Current State Location - Location details:
- Network
Get
Cloud Floating Ip Current State Network - External network the floating IP belongs to:
- Status string
- Current global status of the current task.
- associated_
resource object - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- description string
- Description of the floating IP.
- id string
- IP address of the floating IP.
- ip string
- IP address of the floating IP.
- location object
- Location details:
- network object
- External network the floating IP belongs to:
- status string
- Current global status of the current task.
- associated
Resource GetCloud Floating Ip Current State Associated Resource - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- description String
- Description of the floating IP.
- id String
- IP address of the floating IP.
- ip String
- IP address of the floating IP.
- location
Get
Cloud Floating Ip Current State Location - Location details:
- network
Get
Cloud Floating Ip Current State Network - External network the floating IP belongs to:
- status String
- Current global status of the current task.
- associated
Resource GetCloud Floating Ip Current State Associated Resource - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- description string
- Description of the floating IP.
- id string
- IP address of the floating IP.
- ip string
- IP address of the floating IP.
- location
Get
Cloud Floating Ip Current State Location - Location details:
- network
Get
Cloud Floating Ip Current State Network - External network the floating IP belongs to:
- status string
- Current global status of the current task.
- associated_
resource GetCloud Floating Ip Current State Associated Resource - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- description str
- Description of the floating IP.
- id str
- IP address of the floating IP.
- ip str
- IP address of the floating IP.
- location
Get
Cloud Floating Ip Current State Location - Location details:
- network
Get
Cloud Floating Ip Current State Network - External network the floating IP belongs to:
- status str
- Current global status of the current task.
- associated
Resource Property Map - Resource the floating IP is currently attached to. Null when the floating IP is not attached to any resource:
- description String
- Description of the floating IP.
- id String
- IP address of the floating IP.
- ip String
- IP address of the floating IP.
- location Property Map
- Location details:
- network Property Map
- External network the floating IP belongs to:
- status String
- Current global status of the current task.
GetCloudFloatingIpCurrentStateAssociatedResource
GetCloudFloatingIpCurrentStateLocation
- Availability
Zone string - Availability zone.
- Region string
- Region.
- Availability
Zone string - Availability zone.
- Region string
- Region.
- availability_
zone string - Availability zone.
- region string
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
- availability
Zone string - Availability zone.
- region string
- Region.
- availability_
zone str - Availability zone.
- region str
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
GetCloudFloatingIpCurrentStateNetwork
- Id string
- IP address of the floating IP.
- Id string
- IP address of the floating IP.
- id string
- IP address of the floating IP.
- id String
- IP address of the floating IP.
- id string
- IP address of the floating IP.
- id str
- IP address of the floating IP.
- id String
- IP address of the floating IP.
GetCloudFloatingIpCurrentTask
GetCloudFloatingIpCurrentTaskError
- Message string
- Error description.
- Message string
- Error description.
- message string
- Error description.
- message String
- Error description.
- message string
- Error description.
- message str
- Error description.
- message String
- Error description.
GetCloudFloatingIpLocation
- Availability
Zone string - Availability zone.
- Region string
- Region.
- Availability
Zone string - Availability zone.
- Region string
- Region.
- availability_
zone string - Availability zone.
- region string
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
- availability
Zone string - Availability zone.
- region string
- Region.
- availability_
zone str - Availability zone.
- region str
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud