1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudExtNetIps
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 list the external network IPs of a public cloud project. External network IPs are created and deleted through the lifecycle of other products (typically instances attached to the public network), 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 ips = ovh.getCloudExtNetIps({
        serviceName: "<public cloud project ID>",
    });
    export const extNetIpAddresses = ips.then(ips => .map(ip => (ip.id)));
    
    import pulumi
    import pulumi_ovh as ovh
    
    ips = ovh.get_cloud_ext_net_ips(service_name="<public cloud project ID>")
    pulumi.export("extNetIpAddresses", [ip.id for ip in ips.ext_net_ips])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var ips = Ovh.GetCloudExtNetIps.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
        });
    
        return new Dictionary<string, object?>
        {
            ["extNetIpAddresses"] = .Select(ip => 
            {
                return ip.Id;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    

    Using getCloudExtNetIps

    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 getCloudExtNetIps(args: GetCloudExtNetIpsArgs, opts?: InvokeOptions): Promise<GetCloudExtNetIpsResult>
    function getCloudExtNetIpsOutput(args: GetCloudExtNetIpsOutputArgs, opts?: InvokeOptions): Output<GetCloudExtNetIpsResult>
    def get_cloud_ext_net_ips(service_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCloudExtNetIpsResult
    def get_cloud_ext_net_ips_output(service_name: pulumi.Input[Optional[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCloudExtNetIpsResult]
    func GetCloudExtNetIps(ctx *Context, args *GetCloudExtNetIpsArgs, opts ...InvokeOption) (*GetCloudExtNetIpsResult, error)
    func GetCloudExtNetIpsOutput(ctx *Context, args *GetCloudExtNetIpsOutputArgs, opts ...InvokeOption) GetCloudExtNetIpsResultOutput

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

    public static class GetCloudExtNetIps 
    {
        public static Task<GetCloudExtNetIpsResult> InvokeAsync(GetCloudExtNetIpsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudExtNetIpsResult> Invoke(GetCloudExtNetIpsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudExtNetIpsResult> getCloudExtNetIps(GetCloudExtNetIpsArgs args, InvokeOptions options)
    public static Output<GetCloudExtNetIpsResult> getCloudExtNetIps(GetCloudExtNetIpsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudExtNetIps:getCloudExtNetIps
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_ext_net_ips" "name" {
        # arguments
    }

    The following arguments are supported:

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    getCloudExtNetIps Result

    The following output properties are available:

    ExtNetIps List<GetCloudExtNetIpsExtNetIp>
    List of external network IPs. Each element exports:
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    ExtNetIps []GetCloudExtNetIpsExtNetIp
    List of external network IPs. Each element exports:
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    ext_net_ips list(object)
    List of external network IPs. Each element exports:
    id string
    The provider-assigned unique ID for this managed resource.
    service_name string
    extNetIps List<GetCloudExtNetIpsExtNetIp>
    List of external network IPs. Each element exports:
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    extNetIps GetCloudExtNetIpsExtNetIp[]
    List of external network IPs. Each element exports:
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    ext_net_ips Sequence[GetCloudExtNetIpsExtNetIp]
    List of external network IPs. Each element exports:
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    extNetIps List<Property Map>
    List of external network IPs. Each element exports:
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String

    Supporting Types

    GetCloudExtNetIpsExtNetIp

    Checksum string
    Checksum field of the API envelope. Always empty for this read-only IP type.
    CreatedAt string
    Creation date of the external network IP.
    CurrentState GetCloudExtNetIpsExtNetIpCurrentState
    Current state of the external network IP:
    CurrentTasks List<GetCloudExtNetIpsExtNetIpCurrentTask>
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    Id string
    Identifier of the current task.
    ResourceStatus string
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the external network IP.
    Checksum string
    Checksum field of the API envelope. Always empty for this read-only IP type.
    CreatedAt string
    Creation date of the external network IP.
    CurrentState GetCloudExtNetIpsExtNetIpCurrentState
    Current state of the external network IP:
    CurrentTasks []GetCloudExtNetIpsExtNetIpCurrentTask
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    Id string
    Identifier of the current task.
    ResourceStatus string
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the external network IP.
    checksum string
    Checksum field of the API envelope. Always empty for this read-only IP type.
    created_at string
    Creation date of the external network IP.
    current_state object
    Current state of the external network IP:
    current_tasks list(object)
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    id string
    Identifier of the current task.
    resource_status string
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updated_at string
    Last update date of the external network IP.
    checksum String
    Checksum field of the API envelope. Always empty for this read-only IP type.
    createdAt String
    Creation date of the external network IP.
    currentState GetCloudExtNetIpsExtNetIpCurrentState
    Current state of the external network IP:
    currentTasks List<GetCloudExtNetIpsExtNetIpCurrentTask>
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    id String
    Identifier of the current task.
    resourceStatus String
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the external network IP.
    checksum string
    Checksum field of the API envelope. Always empty for this read-only IP type.
    createdAt string
    Creation date of the external network IP.
    currentState GetCloudExtNetIpsExtNetIpCurrentState
    Current state of the external network IP:
    currentTasks GetCloudExtNetIpsExtNetIpCurrentTask[]
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    id string
    Identifier of the current task.
    resourceStatus string
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt string
    Last update date of the external network IP.
    checksum str
    Checksum field of the API envelope. Always empty for this read-only IP type.
    created_at str
    Creation date of the external network IP.
    current_state GetCloudExtNetIpsExtNetIpCurrentState
    Current state of the external network IP:
    current_tasks Sequence[GetCloudExtNetIpsExtNetIpCurrentTask]
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    id str
    Identifier of the current task.
    resource_status str
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updated_at str
    Last update date of the external network IP.
    checksum String
    Checksum field of the API envelope. Always empty for this read-only IP type.
    createdAt String
    Creation date of the external network IP.
    currentState Property Map
    Current state of the external network IP:
    currentTasks List<Property Map>
    Ongoing asynchronous tasks related to the external network IP. Each element exports:
    id String
    Identifier of the current task.
    resourceStatus String
    External network IP readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the external network IP.

    GetCloudExtNetIpsExtNetIpCurrentState

    AssociatedResource GetCloudExtNetIpsExtNetIpCurrentStateAssociatedResource
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    Id string
    Identifier of the current task.
    Ip string
    IP address of the external network IP.
    Location GetCloudExtNetIpsExtNetIpCurrentStateLocation
    Location details:
    AssociatedResource GetCloudExtNetIpsExtNetIpCurrentStateAssociatedResource
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    Id string
    Identifier of the current task.
    Ip string
    IP address of the external network IP.
    Location GetCloudExtNetIpsExtNetIpCurrentStateLocation
    Location details:
    associated_resource object
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    id string
    Identifier of the current task.
    ip string
    IP address of the external network IP.
    location object
    Location details:
    associatedResource GetCloudExtNetIpsExtNetIpCurrentStateAssociatedResource
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    id String
    Identifier of the current task.
    ip String
    IP address of the external network IP.
    location GetCloudExtNetIpsExtNetIpCurrentStateLocation
    Location details:
    associatedResource GetCloudExtNetIpsExtNetIpCurrentStateAssociatedResource
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    id string
    Identifier of the current task.
    ip string
    IP address of the external network IP.
    location GetCloudExtNetIpsExtNetIpCurrentStateLocation
    Location details:
    associated_resource GetCloudExtNetIpsExtNetIpCurrentStateAssociatedResource
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    id str
    Identifier of the current task.
    ip str
    IP address of the external network IP.
    location GetCloudExtNetIpsExtNetIpCurrentStateLocation
    Location details:
    associatedResource Property Map
    Resource the external network IP is currently attached to. Null when the IP is not attached to any resource:
    id String
    Identifier of the current task.
    ip String
    IP address of the external network IP.
    location Property Map
    Location details:

    GetCloudExtNetIpsExtNetIpCurrentStateAssociatedResource

    Id string
    Identifier of the current task.
    Type string
    Type of the current task.
    Id string
    Identifier of the current task.
    Type string
    Type of the current task.
    id string
    Identifier of the current task.
    type string
    Type of the current task.
    id String
    Identifier of the current task.
    type String
    Type of the current task.
    id string
    Identifier of the current task.
    type string
    Type of the current task.
    id str
    Identifier of the current task.
    type str
    Type of the current task.
    id String
    Identifier of the current task.
    type String
    Type of the current task.

    GetCloudExtNetIpsExtNetIpCurrentStateLocation

    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.

    GetCloudExtNetIpsExtNetIpCurrentTask

    Errors List<GetCloudExtNetIpsExtNetIpCurrentTaskError>
    Errors that occurred on the task:
    Id string
    Identifier of the current task.
    Link string
    Link to the task details.
    Status string
    Current global status of the current task.
    Type string
    Type of the current task.
    Errors []GetCloudExtNetIpsExtNetIpCurrentTaskError
    Errors that occurred on the task:
    Id string
    Identifier of the current task.
    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
    Identifier of the current task.
    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<GetCloudExtNetIpsExtNetIpCurrentTaskError>
    Errors that occurred on the task:
    id String
    Identifier of the current task.
    link String
    Link to the task details.
    status String
    Current global status of the current task.
    type String
    Type of the current task.
    errors GetCloudExtNetIpsExtNetIpCurrentTaskError[]
    Errors that occurred on the task:
    id string
    Identifier of the current task.
    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[GetCloudExtNetIpsExtNetIpCurrentTaskError]
    Errors that occurred on the task:
    id str
    Identifier of the current task.
    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
    Identifier of the current task.
    link String
    Link to the task details.
    status String
    Current global status of the current task.
    type String
    Type of the current task.

    GetCloudExtNetIpsExtNetIpCurrentTaskError

    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