OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud
ovh.getCloudProjectGateway
Explore with Pulumi AI
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
- Service
Name string - Service name
- Id string
- Id
- Region string
- Gateway region
- Service
Name string - Service name
- id String
- Id
- region String
- Gateway region
- service
Name String - Service name
- id string
- Id
- region string
- Gateway region
- service
Name string - Service name
- id str
- Id
- region str
- Gateway region
- service_
name str - Service name
- id String
- Id
- region String
- Gateway region
- service
Name String - Service name
getCloudProjectGateway Result
The following output properties are available:
- External
Information GetCloud Project Gateway External Information - External information
- Id string
- Id
- Interfaces
List<Get
Cloud Project Gateway Interface> - Interfaces list of the gateway
- Model string
- Model of the gateway
- Name string
- Name of the gateway
- Region string
- Gateway region
- Service
Name string - Service name
- Status string
- Status of the gateway
- External
Information GetCloud Project Gateway External Information - External information
- Id string
- Id
- Interfaces
[]Get
Cloud Project Gateway Interface - Interfaces list of the gateway
- Model string
- Model of the gateway
- Name string
- Name of the gateway
- Region string
- Gateway region
- Service
Name string - Service name
- Status string
- Status of the gateway
- external
Information GetCloud Project Gateway External Information - External information
- id String
- Id
- interfaces
List<Get
Cloud Project Gateway Interface> - Interfaces list of the gateway
- model String
- Model of the gateway
- name String
- Name of the gateway
- region String
- Gateway region
- service
Name String - Service name
- status String
- Status of the gateway
- external
Information GetCloud Project Gateway External Information - External information
- id string
- Id
- interfaces
Get
Cloud Project Gateway Interface[] - Interfaces list of the gateway
- model string
- Model of the gateway
- name string
- Name of the gateway
- region string
- Gateway region
- service
Name string - Service name
- status string
- Status of the gateway
- external_
information GetCloud Project Gateway External Information - External information
- id str
- Id
- interfaces
Sequence[Get
Cloud 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
- external
Information 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
- service
Name String - Service name
- status String
- Status of the gateway
Supporting Types
GetCloudProjectGatewayExternalInformation
- Ips
List<Get
Cloud Project Gateway External Information Ip> - External ips of the gateway
- Network
Id string - External network ID of the gateway
- Ips
[]Get
Cloud Project Gateway External Information Ip - External ips of the gateway
- Network
Id string - External network ID of the gateway
- ips
List<Get
Cloud Project Gateway External Information Ip> - External ips of the gateway
- network
Id String - External network ID of the gateway
- ips
Get
Cloud Project Gateway External Information Ip[] - External ips of the gateway
- network
Id string - External network ID of the gateway
- ips
Sequence[Get
Cloud 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
- network
Id 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
ovh
Terraform Provider.