1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudAdditionalIp
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.17.0
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 dictionary
    data "ovh_get_cloud_additional_ip" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    IP address of the additional IP.
    ServiceName string
    Service name of the resource representing the id of the cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Id string
    IP address of the additional IP.
    ServiceName string
    Service name of the resource representing the id of the cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment 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_SERVICE environment variable is used.
    id String
    IP address of the additional IP.
    serviceName String
    Service name of the resource representing the id of the cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    id string
    IP address of the additional IP.
    serviceName string
    Service name of the resource representing the id of the cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment 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_SERVICE environment variable is used.
    id String
    IP address of the additional IP.
    serviceName String
    Service name of the resource representing the id of the cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment 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.
    CurrentState GetCloudAdditionalIpCurrentState
    Current state of the additional IP:
    CurrentTasks List<GetCloudAdditionalIpCurrentTask>
    Ongoing asynchronous tasks related to the additional IP. Each element exports:
    Id string
    Identifier of the current task.
    ResourceStatus string
    Additional IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UNKNOWN, UPDATING).
    ServiceName string
    Checksum string
    Checksum field of the API envelope. Always empty for this read-only IP type.
    CurrentState GetCloudAdditionalIpCurrentState
    Current state of the additional IP:
    CurrentTasks []GetCloudAdditionalIpCurrentTask
    Ongoing asynchronous tasks related to the additional IP. Each element exports:
    Id string
    Identifier of the current task.
    ResourceStatus string
    Additional IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UNKNOWN, UPDATING).
    ServiceName 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.
    currentState GetCloudAdditionalIpCurrentState
    Current state of the additional IP:
    currentTasks List<GetCloudAdditionalIpCurrentTask>
    Ongoing asynchronous tasks related to the additional IP. Each element exports:
    id String
    Identifier of the current task.
    resourceStatus String
    Additional IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UNKNOWN, UPDATING).
    serviceName String
    checksum string
    Checksum field of the API envelope. Always empty for this read-only IP type.
    currentState GetCloudAdditionalIpCurrentState
    Current state of the additional IP:
    currentTasks GetCloudAdditionalIpCurrentTask[]
    Ongoing asynchronous tasks related to the additional IP. Each element exports:
    id string
    Identifier of the current task.
    resourceStatus string
    Additional IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UNKNOWN, UPDATING).
    serviceName string
    checksum str
    Checksum field of the API envelope. Always empty for this read-only IP type.
    current_state GetCloudAdditionalIpCurrentState
    Current state of the additional IP:
    current_tasks Sequence[GetCloudAdditionalIpCurrentTask]
    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.
    currentState Property Map
    Current state of the additional IP:
    currentTasks List<Property Map>
    Ongoing asynchronous tasks related to the additional IP. Each element exports:
    id String
    Identifier of the current task.
    resourceStatus String
    Additional IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UNKNOWN, UPDATING).
    serviceName String

    Supporting Types

    GetCloudAdditionalIpCurrentState

    AssociatedResource GetCloudAdditionalIpCurrentStateAssociatedResource
    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.
    IpBlock string
    IP block the additional IP belongs to. May be null.
    Location GetCloudAdditionalIpCurrentStateLocation
    Location details:
    AssociatedResource GetCloudAdditionalIpCurrentStateAssociatedResource
    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.
    IpBlock string
    IP block the additional IP belongs to. May be null.
    Location GetCloudAdditionalIpCurrentStateLocation
    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:
    associatedResource GetCloudAdditionalIpCurrentStateAssociatedResource
    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.
    ipBlock String
    IP block the additional IP belongs to. May be null.
    location GetCloudAdditionalIpCurrentStateLocation
    Location details:
    associatedResource GetCloudAdditionalIpCurrentStateAssociatedResource
    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.
    ipBlock string
    IP block the additional IP belongs to. May be null.
    location GetCloudAdditionalIpCurrentStateLocation
    Location details:
    associated_resource GetCloudAdditionalIpCurrentStateAssociatedResource
    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 GetCloudAdditionalIpCurrentStateLocation
    Location details:
    associatedResource 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.
    ipBlock String
    IP block the additional IP belongs to. May be null.
    location Property Map
    Location details:

    GetCloudAdditionalIpCurrentStateAssociatedResource

    Id string
    IP address of the additional IP.
    Type string
    Type of the current task.
    Id string
    IP address of the additional IP.
    Type string
    Type of the current task.
    id string
    IP address of the additional IP.
    type string
    Type of the current task.
    id String
    IP address of the additional IP.
    type String
    Type of the current task.
    id string
    IP address of the additional IP.
    type string
    Type of the current task.
    id str
    IP address of the additional IP.
    type str
    Type of the current task.
    id String
    IP address of the additional IP.
    type String
    Type of the current task.

    GetCloudAdditionalIpCurrentStateLocation

    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    availability_zone string
    Availability zone.
    region string
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.
    availabilityZone string
    Availability zone.
    region string
    Region.
    availability_zone str
    Availability zone.
    region str
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.

    GetCloudAdditionalIpCurrentTask

    Errors List<GetCloudAdditionalIpCurrentTaskError>
    Errors that occurred on the task:
    Id string
    IP address of the additional IP.
    Link string
    Link to the task details.
    Status string
    Current global status of the current task.
    Type string
    Type of the current task.
    Errors []GetCloudAdditionalIpCurrentTaskError
    Errors that occurred on the task:
    Id string
    IP address of the additional IP.
    Link string
    Link to the task details.
    Status string
    Current global status of the current task.
    Type string
    Type of the current task.
    errors list(object)
    Errors that occurred on the task:
    id string
    IP address of the additional IP.
    link string
    Link to the task details.
    status string
    Current global status of the current task.
    type string
    Type of the current task.
    errors List<GetCloudAdditionalIpCurrentTaskError>
    Errors that occurred on the task:
    id String
    IP address of the additional IP.
    link String
    Link to the task details.
    status String
    Current global status of the current task.
    type String
    Type of the current task.
    errors GetCloudAdditionalIpCurrentTaskError[]
    Errors that occurred on the task:
    id string
    IP address of the additional IP.
    link string
    Link to the task details.
    status string
    Current global status of the current task.
    type string
    Type of the current task.
    errors Sequence[GetCloudAdditionalIpCurrentTaskError]
    Errors that occurred on the task:
    id str
    IP address of the additional IP.
    link str
    Link to the task details.
    status str
    Current global status of the current task.
    type str
    Type of the current task.
    errors List<Property Map>
    Errors that occurred on the task:
    id String
    IP address of the additional IP.
    link String
    Link to the task details.
    status String
    Current global status of the current task.
    type String
    Type of the current task.

    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 ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.17.0
    published on Friday, Jul 17, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial