1. Packages
  2. OVH
  3. API Docs
  4. getCloudProjectGateway
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

ovh.getCloudProjectGateway

Explore with Pulumi AI

ovh logo
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

    Get gateway

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const gateway = ovh.getCloudProjectGateway({
        serviceName: "<public cloud project ID>",
        region: "GRA11",
        id: "<gateway ID>",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    gateway = ovh.get_cloud_project_gateway(service_name="<public cloud project ID>",
        region="GRA11",
        id="<gateway ID>")
    
    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 {
    		_, err := ovh.GetCloudProjectGateway(ctx, &ovh.GetCloudProjectGatewayArgs{
    			ServiceName: "<public cloud project ID>",
    			Region:      "GRA11",
    			Id:          "<gateway ID>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var gateway = Ovh.GetCloudProjectGateway.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
            Region = "GRA11",
            Id = "<gateway ID>",
        });
    
    });
    
    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.GetCloudProjectGatewayArgs;
    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 gateway = OvhFunctions.getCloudProjectGateway(GetCloudProjectGatewayArgs.builder()
                .serviceName("<public cloud project ID>")
                .region("GRA11")
                .id("<gateway ID>")
                .build());
    
        }
    }
    
    variables:
      gateway:
        fn::invoke:
          function: ovh:getCloudProjectGateway
          arguments:
            serviceName: <public cloud project ID>
            region: GRA11
            id: <gateway ID>
    

    Using getCloudProjectGateway

    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 getCloudProjectGateway(args: GetCloudProjectGatewayArgs, opts?: InvokeOptions): Promise<GetCloudProjectGatewayResult>
    function getCloudProjectGatewayOutput(args: GetCloudProjectGatewayOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectGatewayResult>
    def get_cloud_project_gateway(id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  service_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudProjectGatewayResult
    def get_cloud_project_gateway_output(id: Optional[pulumi.Input[str]] = None,
                                  region: Optional[pulumi.Input[str]] = None,
                                  service_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectGatewayResult]
    func GetCloudProjectGateway(ctx *Context, args *GetCloudProjectGatewayArgs, opts ...InvokeOption) (*GetCloudProjectGatewayResult, error)
    func GetCloudProjectGatewayOutput(ctx *Context, args *GetCloudProjectGatewayOutputArgs, opts ...InvokeOption) GetCloudProjectGatewayResultOutput

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

    public static class GetCloudProjectGateway 
    {
        public static Task<GetCloudProjectGatewayResult> InvokeAsync(GetCloudProjectGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudProjectGatewayResult> Invoke(GetCloudProjectGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudProjectGatewayResult> getCloudProjectGateway(GetCloudProjectGatewayArgs args, InvokeOptions options)
    public static Output<GetCloudProjectGatewayResult> getCloudProjectGateway(GetCloudProjectGatewayArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudProjectGateway:getCloudProjectGateway
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id
    Region string
    Gateway region
    ServiceName string
    Service name
    Id string
    Id
    Region string
    Gateway region
    ServiceName string
    Service name
    id String
    Id
    region String
    Gateway region
    serviceName String
    Service name
    id string
    Id
    region string
    Gateway region
    serviceName string
    Service name
    id str
    Id
    region str
    Gateway region
    service_name str
    Service name
    id String
    Id
    region String
    Gateway region
    serviceName String
    Service name

    getCloudProjectGateway Result

    The following output properties are available:

    ExternalInformation GetCloudProjectGatewayExternalInformation
    External information
    Id string
    Id
    Interfaces List<GetCloudProjectGatewayInterface>
    Interfaces list of the gateway
    Model string
    Model of the gateway
    Name string
    Name of the gateway
    Region string
    Gateway region
    ServiceName string
    Service name
    Status string
    Status of the gateway
    ExternalInformation GetCloudProjectGatewayExternalInformation
    External information
    Id string
    Id
    Interfaces []GetCloudProjectGatewayInterface
    Interfaces list of the gateway
    Model string
    Model of the gateway
    Name string
    Name of the gateway
    Region string
    Gateway region
    ServiceName string
    Service name
    Status string
    Status of the gateway
    externalInformation GetCloudProjectGatewayExternalInformation
    External information
    id String
    Id
    interfaces List<GetCloudProjectGatewayInterface>
    Interfaces list of the gateway
    model String
    Model of the gateway
    name String
    Name of the gateway
    region String
    Gateway region
    serviceName String
    Service name
    status String
    Status of the gateway
    externalInformation GetCloudProjectGatewayExternalInformation
    External information
    id string
    Id
    interfaces GetCloudProjectGatewayInterface[]
    Interfaces list of the gateway
    model string
    Model of the gateway
    name string
    Name of the gateway
    region string
    Gateway region
    serviceName string
    Service name
    status string
    Status of the gateway
    external_information GetCloudProjectGatewayExternalInformation
    External information
    id str
    Id
    interfaces Sequence[GetCloudProjectGatewayInterface]
    Interfaces list of the gateway
    model str
    Model of the gateway
    name str
    Name of the gateway
    region str
    Gateway region
    service_name str
    Service name
    status str
    Status of the gateway
    externalInformation Property Map
    External information
    id String
    Id
    interfaces List<Property Map>
    Interfaces list of the gateway
    model String
    Model of the gateway
    name String
    Name of the gateway
    region String
    Gateway region
    serviceName String
    Service name
    status String
    Status of the gateway

    Supporting Types

    GetCloudProjectGatewayExternalInformation

    Ips List<GetCloudProjectGatewayExternalInformationIp>
    External ips of the gateway
    NetworkId string
    External network ID of the gateway
    Ips []GetCloudProjectGatewayExternalInformationIp
    External ips of the gateway
    NetworkId string
    External network ID of the gateway
    ips List<GetCloudProjectGatewayExternalInformationIp>
    External ips of the gateway
    networkId String
    External network ID of the gateway
    ips GetCloudProjectGatewayExternalInformationIp[]
    External ips of the gateway
    networkId string
    External network ID of the gateway
    ips Sequence[GetCloudProjectGatewayExternalInformationIp]
    External ips of the gateway
    network_id str
    External network ID of the gateway
    ips List<Property Map>
    External ips of the gateway
    networkId String
    External network ID of the gateway

    GetCloudProjectGatewayExternalInformationIp

    Ip string
    External IP of the gateway
    SubnetId string
    Subnet ID of the ip
    Ip string
    External IP of the gateway
    SubnetId string
    Subnet ID of the ip
    ip String
    External IP of the gateway
    subnetId String
    Subnet ID of the ip
    ip string
    External IP of the gateway
    subnetId string
    Subnet ID of the ip
    ip str
    External IP of the gateway
    subnet_id str
    Subnet ID of the ip
    ip String
    External IP of the gateway
    subnetId String
    Subnet ID of the ip

    GetCloudProjectGatewayInterface

    Id string
    ID of the interface
    Ip string
    IP of the interface
    NetworkId string
    Network ID of the interface
    SubnetId string
    Subnet ID of the interface
    Id string
    ID of the interface
    Ip string
    IP of the interface
    NetworkId string
    Network ID of the interface
    SubnetId string
    Subnet ID of the interface
    id String
    ID of the interface
    ip String
    IP of the interface
    networkId String
    Network ID of the interface
    subnetId String
    Subnet ID of the interface
    id string
    ID of the interface
    ip string
    IP of the interface
    networkId string
    Network ID of the interface
    subnetId string
    Subnet ID of the interface
    id str
    ID of the interface
    ip str
    IP of the interface
    network_id str
    Network ID of the interface
    subnet_id str
    Subnet ID of the interface
    id String
    ID of the interface
    ip String
    IP of the interface
    networkId String
    Network ID of the interface
    subnetId String
    Subnet ID of the interface

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud