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

opentelekomcloud.getPrivateNatSnatRuleV3

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 SNAT rule you can get at documentation portal

    Manages a V3 Private NAT SNAT rule data source within OpenTelekomCloud.

    Example Usage

    List all Private NAT SNAT rules

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const rule1 = opentelekomcloud.getPrivateNatSnatRuleV3({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    rule1 = opentelekomcloud.get_private_nat_snat_rule_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.LookupPrivateNatSnatRuleV3(ctx, &opentelekomcloud.LookupPrivateNatSnatRuleV3Args{}, 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 rule1 = Opentelekomcloud.GetPrivateNatSnatRuleV3.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.GetPrivateNatSnatRuleV3Args;
    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 rule1 = OpentelekomcloudFunctions.getPrivateNatSnatRuleV3();
    
        }
    }
    
    variables:
      rule1:
        fn::invoke:
          function: opentelekomcloud:getPrivateNatSnatRuleV3
          arguments: {}
    

    Using getPrivateNatSnatRuleV3

    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 getPrivateNatSnatRuleV3(args: GetPrivateNatSnatRuleV3Args, opts?: InvokeOptions): Promise<GetPrivateNatSnatRuleV3Result>
    function getPrivateNatSnatRuleV3Output(args: GetPrivateNatSnatRuleV3OutputArgs, opts?: InvokeOptions): Output<GetPrivateNatSnatRuleV3Result>
    def get_private_nat_snat_rule_v3(id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetPrivateNatSnatRuleV3Result
    def get_private_nat_snat_rule_v3_output(id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetPrivateNatSnatRuleV3Result]
    func LookupPrivateNatSnatRuleV3(ctx *Context, args *LookupPrivateNatSnatRuleV3Args, opts ...InvokeOption) (*LookupPrivateNatSnatRuleV3Result, error)
    func LookupPrivateNatSnatRuleV3Output(ctx *Context, args *LookupPrivateNatSnatRuleV3OutputArgs, opts ...InvokeOption) LookupPrivateNatSnatRuleV3ResultOutput

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

    public static class GetPrivateNatSnatRuleV3 
    {
        public static Task<GetPrivateNatSnatRuleV3Result> InvokeAsync(GetPrivateNatSnatRuleV3Args args, InvokeOptions? opts = null)
        public static Output<GetPrivateNatSnatRuleV3Result> Invoke(GetPrivateNatSnatRuleV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivateNatSnatRuleV3Result> getPrivateNatSnatRuleV3(GetPrivateNatSnatRuleV3Args args, InvokeOptions options)
    public static Output<GetPrivateNatSnatRuleV3Result> getPrivateNatSnatRuleV3(GetPrivateNatSnatRuleV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getPrivateNatSnatRuleV3:getPrivateNatSnatRuleV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Specifies the private NAT SNAT rule ID.
    Id string
    Specifies the private NAT SNAT rule ID.
    id String
    Specifies the private NAT SNAT rule ID.
    id string
    Specifies the private NAT SNAT rule ID.
    id str
    Specifies the private NAT SNAT rule ID.
    id String
    Specifies the private NAT SNAT rule ID.

    getPrivateNatSnatRuleV3 Result

    The following output properties are available:

    SnatRules List<GetPrivateNatSnatRuleV3SnatRule>
    Indicates the private NAT SNAT rules. The structure is defined below.
    Id string
    Private NAT SNAT rule ID.
    SnatRules []GetPrivateNatSnatRuleV3SnatRule
    Indicates the private NAT SNAT rules. The structure is defined below.
    Id string
    Private NAT SNAT rule ID.
    snatRules List<GetPrivateNatSnatRuleV3SnatRule>
    Indicates the private NAT SNAT rules. The structure is defined below.
    id String
    Private NAT SNAT rule ID.
    snatRules GetPrivateNatSnatRuleV3SnatRule[]
    Indicates the private NAT SNAT rules. The structure is defined below.
    id string
    Private NAT SNAT rule ID.
    snat_rules Sequence[GetPrivateNatSnatRuleV3SnatRule]
    Indicates the private NAT SNAT rules. The structure is defined below.
    id str
    Private NAT SNAT rule ID.
    snatRules List<Property Map>
    Indicates the private NAT SNAT rules. The structure is defined below.
    id String
    Private NAT SNAT rule ID.

    Supporting Types

    GetPrivateNatSnatRuleV3SnatRule

    Cidr string
    Indicates the CIDR block that matches the SNAT rule.
    CreatedAt string
    Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    Description string
    Provides supplementary information about the SNAT rule.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
    GatewayId string
    Indicates the private NAT gateway ID.
    Id string
    Specifies the private NAT SNAT rule ID.
    ProjectId string
    Indicates the project ID.
    Status string
    Indicates the private NAT SNAT rule status. The value can be: ACTIVE (The SNAT rule is running properly) or FROZEN (The SNAT rule is frozen).
    TransitIpAssociations List<GetPrivateNatSnatRuleV3SnatRuleTransitIpAssociation>
    Indicates the list of details of associated transit IP addresses. The structure is described below.
    TransitIpIds List<string>
    Indicates the IDs of the transit IP addresses.
    UpdatedAt string
    Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    VirsubnetId string
    Indicates the ID of the subnet that matches the SNAT rule.
    Cidr string
    Indicates the CIDR block that matches the SNAT rule.
    CreatedAt string
    Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    Description string
    Provides supplementary information about the SNAT rule.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
    GatewayId string
    Indicates the private NAT gateway ID.
    Id string
    Specifies the private NAT SNAT rule ID.
    ProjectId string
    Indicates the project ID.
    Status string
    Indicates the private NAT SNAT rule status. The value can be: ACTIVE (The SNAT rule is running properly) or FROZEN (The SNAT rule is frozen).
    TransitIpAssociations []GetPrivateNatSnatRuleV3SnatRuleTransitIpAssociation
    Indicates the list of details of associated transit IP addresses. The structure is described below.
    TransitIpIds []string
    Indicates the IDs of the transit IP addresses.
    UpdatedAt string
    Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    VirsubnetId string
    Indicates the ID of the subnet that matches the SNAT rule.
    cidr String
    Indicates the CIDR block that matches the SNAT rule.
    createdAt String
    Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description String
    Provides supplementary information about the SNAT rule.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
    gatewayId String
    Indicates the private NAT gateway ID.
    id String
    Specifies the private NAT SNAT rule ID.
    projectId String
    Indicates the project ID.
    status String
    Indicates the private NAT SNAT rule status. The value can be: ACTIVE (The SNAT rule is running properly) or FROZEN (The SNAT rule is frozen).
    transitIpAssociations List<GetPrivateNatSnatRuleV3SnatRuleTransitIpAssociation>
    Indicates the list of details of associated transit IP addresses. The structure is described below.
    transitIpIds List<String>
    Indicates the IDs of the transit IP addresses.
    updatedAt String
    Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnetId String
    Indicates the ID of the subnet that matches the SNAT rule.
    cidr string
    Indicates the CIDR block that matches the SNAT rule.
    createdAt string
    Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description string
    Provides supplementary information about the SNAT rule.
    enterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
    gatewayId string
    Indicates the private NAT gateway ID.
    id string
    Specifies the private NAT SNAT rule ID.
    projectId string
    Indicates the project ID.
    status string
    Indicates the private NAT SNAT rule status. The value can be: ACTIVE (The SNAT rule is running properly) or FROZEN (The SNAT rule is frozen).
    transitIpAssociations GetPrivateNatSnatRuleV3SnatRuleTransitIpAssociation[]
    Indicates the list of details of associated transit IP addresses. The structure is described below.
    transitIpIds string[]
    Indicates the IDs of the transit IP addresses.
    updatedAt string
    Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnetId string
    Indicates the ID of the subnet that matches the SNAT rule.
    cidr str
    Indicates the CIDR block that matches the SNAT rule.
    created_at str
    Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description str
    Provides supplementary information about the SNAT rule.
    enterprise_project_id str
    Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
    gateway_id str
    Indicates the private NAT gateway ID.
    id str
    Specifies the private NAT SNAT rule ID.
    project_id str
    Indicates the project ID.
    status str
    Indicates the private NAT SNAT rule status. The value can be: ACTIVE (The SNAT rule is running properly) or FROZEN (The SNAT rule is frozen).
    transit_ip_associations Sequence[GetPrivateNatSnatRuleV3SnatRuleTransitIpAssociation]
    Indicates the list of details of associated transit IP addresses. The structure is described below.
    transit_ip_ids Sequence[str]
    Indicates the IDs of the transit IP addresses.
    updated_at str
    Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnet_id str
    Indicates the ID of the subnet that matches the SNAT rule.
    cidr String
    Indicates the CIDR block that matches the SNAT rule.
    createdAt String
    Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description String
    Provides supplementary information about the SNAT rule.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
    gatewayId String
    Indicates the private NAT gateway ID.
    id String
    Specifies the private NAT SNAT rule ID.
    projectId String
    Indicates the project ID.
    status String
    Indicates the private NAT SNAT rule status. The value can be: ACTIVE (The SNAT rule is running properly) or FROZEN (The SNAT rule is frozen).
    transitIpAssociations List<Property Map>
    Indicates the list of details of associated transit IP addresses. The structure is described below.
    transitIpIds List<String>
    Indicates the IDs of the transit IP addresses.
    updatedAt String
    Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    virsubnetId String
    Indicates the ID of the subnet that matches the SNAT rule.

    GetPrivateNatSnatRuleV3SnatRuleTransitIpAssociation

    TransitIpAddress string
    Indicates the transit IP address.
    TransitIpId string
    Indicates the ID of the transit IP address.
    TransitIpAddress string
    Indicates the transit IP address.
    TransitIpId string
    Indicates the ID of the transit IP address.
    transitIpAddress String
    Indicates the transit IP address.
    transitIpId String
    Indicates the ID of the transit IP address.
    transitIpAddress string
    Indicates the transit IP address.
    transitIpId string
    Indicates the ID of the transit IP address.
    transit_ip_address str
    Indicates the transit IP address.
    transit_ip_id str
    Indicates the ID of the transit IP address.
    transitIpAddress String
    Indicates the transit IP address.
    transitIpId String
    Indicates the ID of the transit IP address.

    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