Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this datasource to get a public cloud project Gateway Interface.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const _interface = ovh.CloudProject.getGatewayInterface({
serviceName: "XXXXXX",
region: "GRA11",
id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
interfaceId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyy",
});
import pulumi
import pulumi_ovh as ovh
interface = ovh.CloudProject.get_gateway_interface(service_name="XXXXXX",
region="GRA11",
id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
interface_id="yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyy")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudproject.GetGatewayInterface(ctx, &cloudproject.GetGatewayInterfaceArgs{
ServiceName: "XXXXXX",
Region: "GRA11",
Id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
InterfaceId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyy",
}, 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 @interface = Ovh.CloudProject.GetGatewayInterface.Invoke(new()
{
ServiceName = "XXXXXX",
Region = "GRA11",
Id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
InterfaceId = "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetGatewayInterfaceArgs;
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 interface = CloudProjectFunctions.getGatewayInterface(GetGatewayInterfaceArgs.builder()
.serviceName("XXXXXX")
.region("GRA11")
.id("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
.interfaceId("yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyy")
.build());
}
}
variables:
interface:
fn::invoke:
function: ovh:CloudProject:getGatewayInterface
arguments:
serviceName: XXXXXX
region: GRA11
id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
interfaceId: yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyy
Using getGatewayInterface
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 getGatewayInterface(args: GetGatewayInterfaceArgs, opts?: InvokeOptions): Promise<GetGatewayInterfaceResult>
function getGatewayInterfaceOutput(args: GetGatewayInterfaceOutputArgs, opts?: InvokeOptions): Output<GetGatewayInterfaceResult>def get_gateway_interface(id: Optional[str] = None,
interface_id: Optional[str] = None,
region: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewayInterfaceResult
def get_gateway_interface_output(id: Optional[pulumi.Input[str]] = None,
interface_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewayInterfaceResult]func LookupGatewayInterface(ctx *Context, args *LookupGatewayInterfaceArgs, opts ...InvokeOption) (*LookupGatewayInterfaceResult, error)
func LookupGatewayInterfaceOutput(ctx *Context, args *LookupGatewayInterfaceOutputArgs, opts ...InvokeOption) LookupGatewayInterfaceResultOutput> Note: This function is named LookupGatewayInterface in the Go SDK.
public static class GetGatewayInterface
{
public static Task<GetGatewayInterfaceResult> InvokeAsync(GetGatewayInterfaceArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayInterfaceResult> Invoke(GetGatewayInterfaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewayInterfaceResult> getGatewayInterface(GetGatewayInterfaceArgs args, InvokeOptions options)
public static Output<GetGatewayInterfaceResult> getGatewayInterface(GetGatewayInterfaceArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getGatewayInterface:getGatewayInterface
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- ID of the gateway
- Interface
Id string - ID of the interface
- Region string
- Region of the gateway
- Service
Name string - ID of the cloud project
- Id string
- ID of the gateway
- Interface
Id string - ID of the interface
- Region string
- Region of the gateway
- Service
Name string - ID of the cloud project
- id String
- ID of the gateway
- interface
Id String - ID of the interface
- region String
- Region of the gateway
- service
Name String - ID of the cloud project
- id string
- ID of the gateway
- interface
Id string - ID of the interface
- region string
- Region of the gateway
- service
Name string - ID of the cloud project
- id str
- ID of the gateway
- interface_
id str - ID of the interface
- region str
- Region of the gateway
- service_
name str - ID of the cloud project
- id String
- ID of the gateway
- interface
Id String - ID of the interface
- region String
- Region of the gateway
- service
Name String - ID of the cloud project
getGatewayInterface Result
The following output properties are available:
- Id string
- ID of the gateway
- Interface
Id string - ID of the interface
- Ip string
- IP of the interface
- Network
Id string - Network ID of the interface
- Region string
- Region of the gateway
- Service
Name string - ID of the cloud project
- Subnet
Id string - ID of the subnet to add
- Id string
- ID of the gateway
- Interface
Id string - ID of the interface
- Ip string
- IP of the interface
- Network
Id string - Network ID of the interface
- Region string
- Region of the gateway
- Service
Name string - ID of the cloud project
- Subnet
Id string - ID of the subnet to add
- id String
- ID of the gateway
- interface
Id String - ID of the interface
- ip String
- IP of the interface
- network
Id String - Network ID of the interface
- region String
- Region of the gateway
- service
Name String - ID of the cloud project
- subnet
Id String - ID of the subnet to add
- id string
- ID of the gateway
- interface
Id string - ID of the interface
- ip string
- IP of the interface
- network
Id string - Network ID of the interface
- region string
- Region of the gateway
- service
Name string - ID of the cloud project
- subnet
Id string - ID of the subnet to add
- id str
- ID of the gateway
- interface_
id str - ID of the interface
- ip str
- IP of the interface
- network_
id str - Network ID of the interface
- region str
- Region of the gateway
- service_
name str - ID of the cloud project
- subnet_
id str - ID of the subnet to add
- id String
- ID of the gateway
- interface
Id String - ID of the interface
- ip String
- IP of the interface
- network
Id String - Network ID of the interface
- region String
- Region of the gateway
- service
Name String - ID of the cloud project
- subnet
Id String - ID of the subnet to add
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
