opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getNatGatewayV2
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Up-to-date reference of API arguments for NAT Gateway you can get at documentation portal
Use this data source to get the info about an existing V2 NAT Gateway resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const _this = opentelekomcloud.getNatGatewayV2({
name: "tf_nat",
spec: "1",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
this = opentelekomcloud.get_nat_gateway_v2(name="tf_nat",
spec="1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.LookupNatGatewayV2(ctx, &opentelekomcloud.LookupNatGatewayV2Args{
Name: pulumi.StringRef("tf_nat"),
Spec: pulumi.StringRef("1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var @this = Opentelekomcloud.GetNatGatewayV2.Invoke(new()
{
Name = "tf_nat",
Spec = "1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetNatGatewayV2Args;
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 this = OpentelekomcloudFunctions.getNatGatewayV2(GetNatGatewayV2Args.builder()
.name("tf_nat")
.spec("1")
.build());
}
}
variables:
this:
fn::invoke:
function: opentelekomcloud:getNatGatewayV2
arguments:
name: tf_nat
spec: '1'
Using getNatGatewayV2
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 getNatGatewayV2(args: GetNatGatewayV2Args, opts?: InvokeOptions): Promise<GetNatGatewayV2Result>
function getNatGatewayV2Output(args: GetNatGatewayV2OutputArgs, opts?: InvokeOptions): Output<GetNatGatewayV2Result>
def get_nat_gateway_v2(admin_state_up: Optional[bool] = None,
description: Optional[str] = None,
id: Optional[str] = None,
internal_network_id: Optional[str] = None,
name: Optional[str] = None,
nat_id: Optional[str] = None,
region: Optional[str] = None,
router_id: Optional[str] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNatGatewayV2Result
def get_nat_gateway_v2_output(admin_state_up: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
internal_network_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
nat_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
router_id: Optional[pulumi.Input[str]] = None,
spec: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNatGatewayV2Result]
func LookupNatGatewayV2(ctx *Context, args *LookupNatGatewayV2Args, opts ...InvokeOption) (*LookupNatGatewayV2Result, error)
func LookupNatGatewayV2Output(ctx *Context, args *LookupNatGatewayV2OutputArgs, opts ...InvokeOption) LookupNatGatewayV2ResultOutput
> Note: This function is named LookupNatGatewayV2
in the Go SDK.
public static class GetNatGatewayV2
{
public static Task<GetNatGatewayV2Result> InvokeAsync(GetNatGatewayV2Args args, InvokeOptions? opts = null)
public static Output<GetNatGatewayV2Result> Invoke(GetNatGatewayV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNatGatewayV2Result> getNatGatewayV2(GetNatGatewayV2Args args, InvokeOptions options)
public static Output<GetNatGatewayV2Result> getNatGatewayV2(GetNatGatewayV2Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getNatGatewayV2:getNatGatewayV2
arguments:
# arguments dictionary
The following arguments are supported:
- Admin
State boolUp - Specifies whether the NAT gateway is up or down. Possible values are:
- Description string
- The description of the NAT Gateway.
- Id string
- ID of NAT gateway.
- Internal
Network stringId - ID of the network this NAT Gateway connects to.
- Name string
- The name of the NAT Gateway.
- Nat
Id string - The ID of the NAT Gateway.
- Region string
- Region of NAT gateway.
- Router
Id string - ID of the router (or VPC) this NAT Gateway belongs to.
- Spec string
- The specification of the NAT Gateway, valid values are
"1"
,"2"
,"3"
,"4"
. - Status string
- Specifies the NAT gateway status.
- Tenant
Id string - The target tenant ID in which to allocate the NAT Gateway.
- Admin
State boolUp - Specifies whether the NAT gateway is up or down. Possible values are:
- Description string
- The description of the NAT Gateway.
- Id string
- ID of NAT gateway.
- Internal
Network stringId - ID of the network this NAT Gateway connects to.
- Name string
- The name of the NAT Gateway.
- Nat
Id string - The ID of the NAT Gateway.
- Region string
- Region of NAT gateway.
- Router
Id string - ID of the router (or VPC) this NAT Gateway belongs to.
- Spec string
- The specification of the NAT Gateway, valid values are
"1"
,"2"
,"3"
,"4"
. - Status string
- Specifies the NAT gateway status.
- Tenant
Id string - The target tenant ID in which to allocate the NAT Gateway.
- admin
State BooleanUp - Specifies whether the NAT gateway is up or down. Possible values are:
- description String
- The description of the NAT Gateway.
- id String
- ID of NAT gateway.
- internal
Network StringId - ID of the network this NAT Gateway connects to.
- name String
- The name of the NAT Gateway.
- nat
Id String - The ID of the NAT Gateway.
- region String
- Region of NAT gateway.
- router
Id String - ID of the router (or VPC) this NAT Gateway belongs to.
- spec String
- The specification of the NAT Gateway, valid values are
"1"
,"2"
,"3"
,"4"
. - status String
- Specifies the NAT gateway status.
- tenant
Id String - The target tenant ID in which to allocate the NAT Gateway.
- admin
State booleanUp - Specifies whether the NAT gateway is up or down. Possible values are:
- description string
- The description of the NAT Gateway.
- id string
- ID of NAT gateway.
- internal
Network stringId - ID of the network this NAT Gateway connects to.
- name string
- The name of the NAT Gateway.
- nat
Id string - The ID of the NAT Gateway.
- region string
- Region of NAT gateway.
- router
Id string - ID of the router (or VPC) this NAT Gateway belongs to.
- spec string
- The specification of the NAT Gateway, valid values are
"1"
,"2"
,"3"
,"4"
. - status string
- Specifies the NAT gateway status.
- tenant
Id string - The target tenant ID in which to allocate the NAT Gateway.
- admin_
state_ boolup - Specifies whether the NAT gateway is up or down. Possible values are:
- description str
- The description of the NAT Gateway.
- id str
- ID of NAT gateway.
- internal_
network_ strid - ID of the network this NAT Gateway connects to.
- name str
- The name of the NAT Gateway.
- nat_
id str - The ID of the NAT Gateway.
- region str
- Region of NAT gateway.
- router_
id str - ID of the router (or VPC) this NAT Gateway belongs to.
- spec str
- The specification of the NAT Gateway, valid values are
"1"
,"2"
,"3"
,"4"
. - status str
- Specifies the NAT gateway status.
- tenant_
id str - The target tenant ID in which to allocate the NAT Gateway.
- admin
State BooleanUp - Specifies whether the NAT gateway is up or down. Possible values are:
- description String
- The description of the NAT Gateway.
- id String
- ID of NAT gateway.
- internal
Network StringId - ID of the network this NAT Gateway connects to.
- name String
- The name of the NAT Gateway.
- nat
Id String - The ID of the NAT Gateway.
- region String
- Region of NAT gateway.
- router
Id String - ID of the router (or VPC) this NAT Gateway belongs to.
- spec String
- The specification of the NAT Gateway, valid values are
"1"
,"2"
,"3"
,"4"
. - status String
- Specifies the NAT gateway status.
- tenant
Id String - The target tenant ID in which to allocate the NAT Gateway.
getNatGatewayV2 Result
The following output properties are available:
- Admin
State boolUp - Description string
- Id string
- ID of NAT gateway.
- Internal
Network stringId - Name string
- Nat
Id string - Region string
- Region of NAT gateway.
- Router
Id string - Spec string
- Status string
- Tenant
Id string
- Admin
State boolUp - Description string
- Id string
- ID of NAT gateway.
- Internal
Network stringId - Name string
- Nat
Id string - Region string
- Region of NAT gateway.
- Router
Id string - Spec string
- Status string
- Tenant
Id string
- admin
State BooleanUp - description String
- id String
- ID of NAT gateway.
- internal
Network StringId - name String
- nat
Id String - region String
- Region of NAT gateway.
- router
Id String - spec String
- status String
- tenant
Id String
- admin
State booleanUp - description string
- id string
- ID of NAT gateway.
- internal
Network stringId - name string
- nat
Id string - region string
- Region of NAT gateway.
- router
Id string - spec string
- status string
- tenant
Id string
- admin_
state_ boolup - description str
- id str
- ID of NAT gateway.
- internal_
network_ strid - name str
- nat_
id str - region str
- Region of NAT gateway.
- router_
id str - spec str
- status str
- tenant_
id str
- admin
State BooleanUp - description String
- id String
- ID of NAT gateway.
- internal
Network StringId - name String
- nat
Id String - region String
- Region of NAT gateway.
- router
Id String - spec String
- status String
- tenant
Id String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud