1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getPrivateNatTransitIpV3
opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud

opentelekomcloud.getPrivateNatTransitIpV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for Private NAT Transit IP you can get at documentation portal

    Manages a V3 Private NAT Transit IP data source within OpenTelekomCloud.

    Example Usage

    List all Transit IPs

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const transitIp1 = opentelekomcloud.getPrivateNatTransitIpV3({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    transit_ip1 = opentelekomcloud.get_private_nat_transit_ip_v3()
    
    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.LookupPrivateNatTransitIpV3(ctx, &opentelekomcloud.LookupPrivateNatTransitIpV3Args{}, 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 transitIp1 = Opentelekomcloud.GetPrivateNatTransitIpV3.Invoke();
    
    });
    
    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.GetPrivateNatTransitIpV3Args;
    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 transitIp1 = OpentelekomcloudFunctions.getPrivateNatTransitIpV3();
    
        }
    }
    
    variables:
      transitIp1:
        fn::invoke:
          function: opentelekomcloud:getPrivateNatTransitIpV3
          arguments: {}
    

    List all Transit IPs in a subnet

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const networkId = config.requireObject("networkId");
    const transitIp1 = opentelekomcloud.getPrivateNatTransitIpV3({
        virsubnetId: networkId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    network_id = config.require_object("networkId")
    transit_ip1 = opentelekomcloud.get_private_nat_transit_ip_v3(virsubnet_id=network_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		networkId := cfg.RequireObject("networkId")
    		_, err := opentelekomcloud.LookupPrivateNatTransitIpV3(ctx, &opentelekomcloud.LookupPrivateNatTransitIpV3Args{
    			VirsubnetId: pulumi.StringRef(networkId),
    		}, 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 config = new Config();
        var networkId = config.RequireObject<dynamic>("networkId");
        var transitIp1 = Opentelekomcloud.GetPrivateNatTransitIpV3.Invoke(new()
        {
            VirsubnetId = networkId,
        });
    
    });
    
    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.GetPrivateNatTransitIpV3Args;
    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 config = ctx.config();
            final var networkId = config.get("networkId");
            final var transitIp1 = OpentelekomcloudFunctions.getPrivateNatTransitIpV3(GetPrivateNatTransitIpV3Args.builder()
                .virsubnetId(networkId)
                .build());
    
        }
    }
    
    configuration:
      networkId:
        type: dynamic
    variables:
      transitIp1:
        fn::invoke:
          function: opentelekomcloud:getPrivateNatTransitIpV3
          arguments:
            virsubnetId: ${networkId}
    

    Get Transit IP by ID

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const id = config.requireObject("id");
    const transitIp1 = opentelekomcloud.getPrivateNatTransitIpV3({
        id: id,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    id = config.require_object("id")
    transit_ip1 = opentelekomcloud.get_private_nat_transit_ip_v3(id=id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		id := cfg.RequireObject("id")
    		_, err := opentelekomcloud.LookupPrivateNatTransitIpV3(ctx, &opentelekomcloud.LookupPrivateNatTransitIpV3Args{
    			Id: pulumi.StringRef(id),
    		}, 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 config = new Config();
        var id = config.RequireObject<dynamic>("id");
        var transitIp1 = Opentelekomcloud.GetPrivateNatTransitIpV3.Invoke(new()
        {
            Id = id,
        });
    
    });
    
    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.GetPrivateNatTransitIpV3Args;
    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 config = ctx.config();
            final var id = config.get("id");
            final var transitIp1 = OpentelekomcloudFunctions.getPrivateNatTransitIpV3(GetPrivateNatTransitIpV3Args.builder()
                .id(id)
                .build());
    
        }
    }
    
    configuration:
      id:
        type: dynamic
    variables:
      transitIp1:
        fn::invoke:
          function: opentelekomcloud:getPrivateNatTransitIpV3
          arguments:
            id: ${id}
    

    Get Transit IP by IP address

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const ipAddress = config.requireObject("ipAddress");
    const transitIp1 = opentelekomcloud.getPrivateNatTransitIpV3({
        ipAddress: ipAddress,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    ip_address = config.require_object("ipAddress")
    transit_ip1 = opentelekomcloud.get_private_nat_transit_ip_v3(ip_address=ip_address)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		ipAddress := cfg.RequireObject("ipAddress")
    		_, err := opentelekomcloud.LookupPrivateNatTransitIpV3(ctx, &opentelekomcloud.LookupPrivateNatTransitIpV3Args{
    			IpAddress: pulumi.StringRef(ipAddress),
    		}, 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 config = new Config();
        var ipAddress = config.RequireObject<dynamic>("ipAddress");
        var transitIp1 = Opentelekomcloud.GetPrivateNatTransitIpV3.Invoke(new()
        {
            IpAddress = ipAddress,
        });
    
    });
    
    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.GetPrivateNatTransitIpV3Args;
    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 config = ctx.config();
            final var ipAddress = config.get("ipAddress");
            final var transitIp1 = OpentelekomcloudFunctions.getPrivateNatTransitIpV3(GetPrivateNatTransitIpV3Args.builder()
                .ipAddress(ipAddress)
                .build());
    
        }
    }
    
    configuration:
      ipAddress:
        type: dynamic
    variables:
      transitIp1:
        fn::invoke:
          function: opentelekomcloud:getPrivateNatTransitIpV3
          arguments:
            ipAddress: ${ipAddress}
    

    Using getPrivateNatTransitIpV3

    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 getPrivateNatTransitIpV3(args: GetPrivateNatTransitIpV3Args, opts?: InvokeOptions): Promise<GetPrivateNatTransitIpV3Result>
    function getPrivateNatTransitIpV3Output(args: GetPrivateNatTransitIpV3OutputArgs, opts?: InvokeOptions): Output<GetPrivateNatTransitIpV3Result>
    def get_private_nat_transit_ip_v3(id: Optional[str] = None,
                                      ip_address: Optional[str] = None,
                                      virsubnet_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPrivateNatTransitIpV3Result
    def get_private_nat_transit_ip_v3_output(id: Optional[pulumi.Input[str]] = None,
                                      ip_address: Optional[pulumi.Input[str]] = None,
                                      virsubnet_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPrivateNatTransitIpV3Result]
    func LookupPrivateNatTransitIpV3(ctx *Context, args *LookupPrivateNatTransitIpV3Args, opts ...InvokeOption) (*LookupPrivateNatTransitIpV3Result, error)
    func LookupPrivateNatTransitIpV3Output(ctx *Context, args *LookupPrivateNatTransitIpV3OutputArgs, opts ...InvokeOption) LookupPrivateNatTransitIpV3ResultOutput

    > Note: This function is named LookupPrivateNatTransitIpV3 in the Go SDK.

    public static class GetPrivateNatTransitIpV3 
    {
        public static Task<GetPrivateNatTransitIpV3Result> InvokeAsync(GetPrivateNatTransitIpV3Args args, InvokeOptions? opts = null)
        public static Output<GetPrivateNatTransitIpV3Result> Invoke(GetPrivateNatTransitIpV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivateNatTransitIpV3Result> getPrivateNatTransitIpV3(GetPrivateNatTransitIpV3Args args, InvokeOptions options)
    public static Output<GetPrivateNatTransitIpV3Result> getPrivateNatTransitIpV3(GetPrivateNatTransitIpV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getPrivateNatTransitIpV3:getPrivateNatTransitIpV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Specifies the private NAT transit IP ID.
    IpAddress string
    Specifies the transit IP address.
    VirsubnetId string
    Specifies the subnet ID of the current project.
    Id string
    Specifies the private NAT transit IP ID.
    IpAddress string
    Specifies the transit IP address.
    VirsubnetId string
    Specifies the subnet ID of the current project.
    id String
    Specifies the private NAT transit IP ID.
    ipAddress String
    Specifies the transit IP address.
    virsubnetId String
    Specifies the subnet ID of the current project.
    id string
    Specifies the private NAT transit IP ID.
    ipAddress string
    Specifies the transit IP address.
    virsubnetId string
    Specifies the subnet ID of the current project.
    id str
    Specifies the private NAT transit IP ID.
    ip_address str
    Specifies the transit IP address.
    virsubnet_id str
    Specifies the subnet ID of the current project.
    id String
    Specifies the private NAT transit IP ID.
    ipAddress String
    Specifies the transit IP address.
    virsubnetId String
    Specifies the subnet ID of the current project.

    getPrivateNatTransitIpV3 Result

    The following output properties are available:

    TransitIps List<GetPrivateNatTransitIpV3TransitIp>
    The list of private NAT transit IPs. The structure is defined below.
    Id string
    Private NAT Transit IP ID.
    IpAddress string
    Indicates the transit IP address.
    VirsubnetId string
    Indicates the subnet ID of the current project.
    TransitIps []GetPrivateNatTransitIpV3TransitIp
    The list of private NAT transit IPs. The structure is defined below.
    Id string
    Private NAT Transit IP ID.
    IpAddress string
    Indicates the transit IP address.
    VirsubnetId string
    Indicates the subnet ID of the current project.
    transitIps List<GetPrivateNatTransitIpV3TransitIp>
    The list of private NAT transit IPs. The structure is defined below.
    id String
    Private NAT Transit IP ID.
    ipAddress String
    Indicates the transit IP address.
    virsubnetId String
    Indicates the subnet ID of the current project.
    transitIps GetPrivateNatTransitIpV3TransitIp[]
    The list of private NAT transit IPs. The structure is defined below.
    id string
    Private NAT Transit IP ID.
    ipAddress string
    Indicates the transit IP address.
    virsubnetId string
    Indicates the subnet ID of the current project.
    transit_ips Sequence[GetPrivateNatTransitIpV3TransitIp]
    The list of private NAT transit IPs. The structure is defined below.
    id str
    Private NAT Transit IP ID.
    ip_address str
    Indicates the transit IP address.
    virsubnet_id str
    Indicates the subnet ID of the current project.
    transitIps List<Property Map>
    The list of private NAT transit IPs. The structure is defined below.
    id String
    Private NAT Transit IP ID.
    ipAddress String
    Indicates the transit IP address.
    virsubnetId String
    Indicates the subnet ID of the current project.

    Supporting Types

    GetPrivateNatTransitIpV3TransitIp

    CreatedAt string
    Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned.
    GatewayId string
    Indicates the ID of the private NAT gateway associated with the transit IP address.
    Id string
    Specifies the private NAT transit IP ID.
    IpAddress string
    Specifies the transit IP address.
    NetworkInterfaceId string
    Indicates the network interface ID of the transit IP address.
    ProjectId string
    Indicates the project ID.
    Status string
    Indicates the private NAT transit IP status. The value can be: ACTIVE (The Transit IP is running properly) or FROZEN (The Transit IP is frozen).
    Tags Dictionary<string, string>
    Indicates the tag list in key/value format.
    UpdatedAt string
    Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    VirsubnetId string
    Specifies the subnet ID of the current project.
    CreatedAt string
    Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned.
    GatewayId string
    Indicates the ID of the private NAT gateway associated with the transit IP address.
    Id string
    Specifies the private NAT transit IP ID.
    IpAddress string
    Specifies the transit IP address.
    NetworkInterfaceId string
    Indicates the network interface ID of the transit IP address.
    ProjectId string
    Indicates the project ID.
    Status string
    Indicates the private NAT transit IP status. The value can be: ACTIVE (The Transit IP is running properly) or FROZEN (The Transit IP is frozen).
    Tags map[string]string
    Indicates the tag list in key/value format.
    UpdatedAt string
    Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    VirsubnetId string
    Specifies the subnet ID of the current project.
    createdAt String
    Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned.
    gatewayId String
    Indicates the ID of the private NAT gateway associated with the transit IP address.
    id String
    Specifies the private NAT transit IP ID.
    ipAddress String
    Specifies the transit IP address.
    networkInterfaceId String
    Indicates the network interface ID of the transit IP address.
    projectId String
    Indicates the project ID.
    status String
    Indicates the private NAT transit IP status. The value can be: ACTIVE (The Transit IP is running properly) or FROZEN (The Transit IP is frozen).
    tags Map<String,String>
    Indicates the tag list in key/value format.
    updatedAt String
    Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnetId String
    Specifies the subnet ID of the current project.
    createdAt string
    Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    enterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned.
    gatewayId string
    Indicates the ID of the private NAT gateway associated with the transit IP address.
    id string
    Specifies the private NAT transit IP ID.
    ipAddress string
    Specifies the transit IP address.
    networkInterfaceId string
    Indicates the network interface ID of the transit IP address.
    projectId string
    Indicates the project ID.
    status string
    Indicates the private NAT transit IP status. The value can be: ACTIVE (The Transit IP is running properly) or FROZEN (The Transit IP is frozen).
    tags {[key: string]: string}
    Indicates the tag list in key/value format.
    updatedAt string
    Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnetId string
    Specifies the subnet ID of the current project.
    created_at str
    Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    enterprise_project_id str
    Indicates the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned.
    gateway_id str
    Indicates the ID of the private NAT gateway associated with the transit IP address.
    id str
    Specifies the private NAT transit IP ID.
    ip_address str
    Specifies the transit IP address.
    network_interface_id str
    Indicates the network interface ID of the transit IP address.
    project_id str
    Indicates the project ID.
    status str
    Indicates the private NAT transit IP status. The value can be: ACTIVE (The Transit IP is running properly) or FROZEN (The Transit IP is frozen).
    tags Mapping[str, str]
    Indicates the tag list in key/value format.
    updated_at str
    Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnet_id str
    Specifies the subnet ID of the current project.
    createdAt String
    Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned.
    gatewayId String
    Indicates the ID of the private NAT gateway associated with the transit IP address.
    id String
    Specifies the private NAT transit IP ID.
    ipAddress String
    Specifies the transit IP address.
    networkInterfaceId String
    Indicates the network interface ID of the transit IP address.
    projectId String
    Indicates the project ID.
    status String
    Indicates the private NAT transit IP status. The value can be: ACTIVE (The Transit IP is running properly) or FROZEN (The Transit IP is frozen).
    tags Map<String>
    Indicates the tag list in key/value format.
    updatedAt String
    Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnetId String
    Specifies the subnet ID of the current project.

    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.48 published on Thursday, Sep 18, 2025 by opentelekomcloud