1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getNatGatewayV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getNatGatewayV2

Explore with Pulumi AI

opentelekomcloud logo
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:

    AdminStateUp bool
    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.
    InternalNetworkId string
    ID of the network this NAT Gateway connects to.
    Name string
    The name of the NAT Gateway.
    NatId string
    The ID of the NAT Gateway.
    Region string
    Region of NAT gateway.
    RouterId 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.
    TenantId string
    The target tenant ID in which to allocate the NAT Gateway.
    AdminStateUp bool
    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.
    InternalNetworkId string
    ID of the network this NAT Gateway connects to.
    Name string
    The name of the NAT Gateway.
    NatId string
    The ID of the NAT Gateway.
    Region string
    Region of NAT gateway.
    RouterId 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.
    TenantId string
    The target tenant ID in which to allocate the NAT Gateway.
    adminStateUp Boolean
    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.
    internalNetworkId String
    ID of the network this NAT Gateway connects to.
    name String
    The name of the NAT Gateway.
    natId String
    The ID of the NAT Gateway.
    region String
    Region of NAT gateway.
    routerId 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.
    tenantId String
    The target tenant ID in which to allocate the NAT Gateway.
    adminStateUp boolean
    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.
    internalNetworkId string
    ID of the network this NAT Gateway connects to.
    name string
    The name of the NAT Gateway.
    natId string
    The ID of the NAT Gateway.
    region string
    Region of NAT gateway.
    routerId 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.
    tenantId string
    The target tenant ID in which to allocate the NAT Gateway.
    admin_state_up bool
    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_id str
    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.
    adminStateUp Boolean
    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.
    internalNetworkId String
    ID of the network this NAT Gateway connects to.
    name String
    The name of the NAT Gateway.
    natId String
    The ID of the NAT Gateway.
    region String
    Region of NAT gateway.
    routerId 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.
    tenantId String
    The target tenant ID in which to allocate the NAT Gateway.

    getNatGatewayV2 Result

    The following output properties are available:

    AdminStateUp bool
    Description string
    Id string
    ID of NAT gateway.
    InternalNetworkId string
    Name string
    NatId string
    Region string
    Region of NAT gateway.
    RouterId string
    Spec string
    Status string
    TenantId string
    AdminStateUp bool
    Description string
    Id string
    ID of NAT gateway.
    InternalNetworkId string
    Name string
    NatId string
    Region string
    Region of NAT gateway.
    RouterId string
    Spec string
    Status string
    TenantId string
    adminStateUp Boolean
    description String
    id String
    ID of NAT gateway.
    internalNetworkId String
    name String
    natId String
    region String
    Region of NAT gateway.
    routerId String
    spec String
    status String
    tenantId String
    adminStateUp boolean
    description string
    id string
    ID of NAT gateway.
    internalNetworkId string
    name string
    natId string
    region string
    Region of NAT gateway.
    routerId string
    spec string
    status string
    tenantId string
    admin_state_up bool
    description str
    id str
    ID of NAT gateway.
    internal_network_id str
    name str
    nat_id str
    region str
    Region of NAT gateway.
    router_id str
    spec str
    status str
    tenant_id str
    adminStateUp Boolean
    description String
    id String
    ID of NAT gateway.
    internalNetworkId String
    name String
    natId String
    region String
    Region of NAT gateway.
    routerId String
    spec String
    status String
    tenantId String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud