OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud
ovh.getCloudProjectGateway
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 dictionaryThe 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 GetCloud Project Gateway External Information 
- External information
- Id string
- Id
- Interfaces
List<GetCloud Project Gateway Interface> 
- 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 GetCloud Project Gateway External Information 
- External information
- Id string
- Id
- Interfaces
[]GetCloud Project Gateway Interface 
- 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 GetCloud Project Gateway External Information 
- External information
- id String
- Id
- interfaces
List<GetCloud Project Gateway Interface> 
- 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 GetCloud Project Gateway External Information 
- External information
- id string
- Id
- interfaces
GetCloud Project Gateway Interface[] 
- 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 GetCloud Project Gateway External Information 
- External information
- id str
- Id
- interfaces
Sequence[GetCloud Project Gateway Interface] 
- 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<GetCloud Project Gateway External Information Ip> 
- External ips of the gateway
- NetworkId string
- External network ID of the gateway
- Ips
[]GetCloud Project Gateway External Information Ip 
- External ips of the gateway
- NetworkId string
- External network ID of the gateway
- ips
List<GetCloud Project Gateway External Information Ip> 
- External ips of the gateway
- networkId String
- External network ID of the gateway
- ips
GetCloud Project Gateway External Information Ip[] 
- External ips of the gateway
- networkId string
- External network ID of the gateway
- ips
Sequence[GetCloud Project Gateway External Information Ip] 
- 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      
GetCloudProjectGatewayInterface    
- 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
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ovhTerraform Provider.
