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 an additional IP in a public cloud project. Additional IPs are created and deleted through the lifecycle of other products (typically instances they are attached to), so this data source is a read-only view.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const ip = ovh.getCloudAdditionalIp({
serviceName: "<public cloud project ID>",
id: "<additional IP address>",
});
export const additionalIpStatus = ip.then(ip => ip.resourceStatus);
import pulumi
import pulumi_ovh as ovh
ip = ovh.get_cloud_additional_ip(service_name="<public cloud project ID>",
id="<additional IP address>")
pulumi.export("additionalIpStatus", 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.GetCloudAdditionalIp(ctx, &ovh.GetCloudAdditionalIpArgs{
ServiceName: pulumi.StringRef("<public cloud project ID>"),
Id: "<additional IP address>",
}, nil)
if err != nil {
return err
}
ctx.Export("additionalIpStatus", ip.ResourceStatus)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var ip = Ovh.GetCloudAdditionalIp.Invoke(new()
{
ServiceName = "<public cloud project ID>",
Id = "<additional IP address>",
});
return new Dictionary<string, object?>
{
["additionalIpStatus"] = ip.Apply(getCloudAdditionalIpResult => getCloudAdditionalIpResult.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.GetCloudAdditionalIpArgs;
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.getCloudAdditionalIp(GetCloudAdditionalIpArgs.builder()
.serviceName("<public cloud project ID>")
.id("<additional IP address>")
.build());
ctx.export("additionalIpStatus", ip.resourceStatus());
}
}
variables:
ip:
fn::invoke:
function: ovh:getCloudAdditionalIp
arguments:
serviceName: <public cloud project ID>
id: <additional IP address>
outputs:
additionalIpStatus: ${ip.resourceStatus}
Example coming soon!
Using getCloudAdditionalIp
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 getCloudAdditionalIp(args: GetCloudAdditionalIpArgs, opts?: InvokeOptions): Promise<GetCloudAdditionalIpResult>
function getCloudAdditionalIpOutput(args: GetCloudAdditionalIpOutputArgs, opts?: InvokeOptions): Output<GetCloudAdditionalIpResult>def get_cloud_additional_ip(id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudAdditionalIpResult
def get_cloud_additional_ip_output(id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudAdditionalIpResult]func GetCloudAdditionalIp(ctx *Context, args *GetCloudAdditionalIpArgs, opts ...InvokeOption) (*GetCloudAdditionalIpResult, error)
func GetCloudAdditionalIpOutput(ctx *Context, args *GetCloudAdditionalIpOutputArgs, opts ...InvokeOption) GetCloudAdditionalIpResultOutput> Note: This function is named GetCloudAdditionalIp in the Go SDK.
public static class GetCloudAdditionalIp
{
public static Task<GetCloudAdditionalIpResult> InvokeAsync(GetCloudAdditionalIpArgs args, InvokeOptions? opts = null)
public static Output<GetCloudAdditionalIpResult> Invoke(GetCloudAdditionalIpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudAdditionalIpResult> getCloudAdditionalIp(GetCloudAdditionalIpArgs args, InvokeOptions options)
public static Output<GetCloudAdditionalIpResult> getCloudAdditionalIp(GetCloudAdditionalIpArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudAdditionalIp:getCloudAdditionalIp
arguments:
# arguments dictionarydata "ovh_get_cloud_additional_ip" "name" {
# arguments
}The following arguments are supported:
- Id string
- IP address of the additional 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 additional 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 additional 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 additional 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 additional 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 additional 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 additional 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.
getCloudAdditionalIp Result
The following output properties are available:
- Checksum string
- Checksum field of the API envelope. Always empty for this read-only IP type.
- Current
State GetCloud Additional Ip Current State - Current state of the additional IP:
- Current
Tasks List<GetCloud Additional Ip Current Task> - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- Id string
- Identifier of the current task.
- Resource
Status string - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - Service
Name string
- Checksum string
- Checksum field of the API envelope. Always empty for this read-only IP type.
- Current
State GetCloud Additional Ip Current State - Current state of the additional IP:
- Current
Tasks []GetCloud Additional Ip Current Task - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- Id string
- Identifier of the current task.
- Resource
Status string - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - Service
Name string
- checksum string
- Checksum field of the API envelope. Always empty for this read-only IP type.
- current_
state object - Current state of the additional IP:
- current_
tasks list(object) - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- id string
- Identifier of the current task.
- resource_
status string - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - service_
name string
- checksum String
- Checksum field of the API envelope. Always empty for this read-only IP type.
- current
State GetCloud Additional Ip Current State - Current state of the additional IP:
- current
Tasks List<GetCloud Additional Ip Current Task> - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- id String
- Identifier of the current task.
- resource
Status String - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - service
Name String
- checksum string
- Checksum field of the API envelope. Always empty for this read-only IP type.
- current
State GetCloud Additional Ip Current State - Current state of the additional IP:
- current
Tasks GetCloud Additional Ip Current Task[] - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- id string
- Identifier of the current task.
- resource
Status string - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - service
Name string
- checksum str
- Checksum field of the API envelope. Always empty for this read-only IP type.
- current_
state GetCloud Additional Ip Current State - Current state of the additional IP:
- current_
tasks Sequence[GetCloud Additional Ip Current Task] - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- id str
- Identifier of the current task.
- resource_
status str - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - service_
name str
- checksum String
- Checksum field of the API envelope. Always empty for this read-only IP type.
- current
State Property Map - Current state of the additional IP:
- current
Tasks List<Property Map> - Ongoing asynchronous tasks related to the additional IP. Each element exports:
- id String
- Identifier of the current task.
- resource
Status String - Additional IP readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UNKNOWN,UPDATING). - service
Name String
Supporting Types
GetCloudAdditionalIpCurrentState
- Associated
Resource GetCloud Additional Ip Current State Associated Resource - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- Id string
- IP address of the additional IP.
- Ip string
- IP address of the additional IP.
- Ip
Block string - IP block the additional IP belongs to. May be null.
- Location
Get
Cloud Additional Ip Current State Location - Location details:
- Associated
Resource GetCloud Additional Ip Current State Associated Resource - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- Id string
- IP address of the additional IP.
- Ip string
- IP address of the additional IP.
- Ip
Block string - IP block the additional IP belongs to. May be null.
- Location
Get
Cloud Additional Ip Current State Location - Location details:
- associated_
resource object - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- id string
- IP address of the additional IP.
- ip string
- IP address of the additional IP.
- ip_
block string - IP block the additional IP belongs to. May be null.
- location object
- Location details:
- associated
Resource GetCloud Additional Ip Current State Associated Resource - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- id String
- IP address of the additional IP.
- ip String
- IP address of the additional IP.
- ip
Block String - IP block the additional IP belongs to. May be null.
- location
Get
Cloud Additional Ip Current State Location - Location details:
- associated
Resource GetCloud Additional Ip Current State Associated Resource - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- id string
- IP address of the additional IP.
- ip string
- IP address of the additional IP.
- ip
Block string - IP block the additional IP belongs to. May be null.
- location
Get
Cloud Additional Ip Current State Location - Location details:
- associated_
resource GetCloud Additional Ip Current State Associated Resource - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- id str
- IP address of the additional IP.
- ip str
- IP address of the additional IP.
- ip_
block str - IP block the additional IP belongs to. May be null.
- location
Get
Cloud Additional Ip Current State Location - Location details:
- associated
Resource Property Map - Resource the additional IP is currently attached to. Null when the IP is not attached to any resource:
- id String
- IP address of the additional IP.
- ip String
- IP address of the additional IP.
- ip
Block String - IP block the additional IP belongs to. May be null.
- location Property Map
- Location details:
GetCloudAdditionalIpCurrentStateAssociatedResource
GetCloudAdditionalIpCurrentStateLocation
- 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.
GetCloudAdditionalIpCurrentTask
GetCloudAdditionalIpCurrentTaskError
- 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.
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