Show / Hide Table of Contents

Class SnatEntry

Provides a Sag SnatEntry resource. This topic describes how to add a SNAT entry to enable the SNAT function. The SNAT function can hide internal IP addresses and resolve private IP address conflicts. With this function, on-premises sites can access internal IP addresses, but cannot be accessed by internal IP addresses. If you do not add a SNAT entry, on-premises sites can access each other only when all related IP addresses do not conflict.

For information about Sag SnatEntry and how to use it, see What is Sag SnatEntry.

NOTE: Available in 1.61.0+

NOTE: Only the following regions support. [cn-shanghai, cn-shanghai-finance-1, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1]

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var @default = new AliCloud.RocketMQ.SnatEntry("default", new AliCloud.RocketMQ.SnatEntryArgs
    {
        CidrBlock = "192.168.7.0/24",
        SagId = "sag-3rb1t3iagy3w0zgwy9",
        SnatIp = "192.0.0.2",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SnatEntry
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.RocketMQ
Assembly: Pulumi.AliCloud.dll
Syntax
public class SnatEntry : CustomResource

Constructors

View Source

SnatEntry(String, SnatEntryArgs, CustomResourceOptions)

Create a SnatEntry resource with the given unique name, arguments, and options.

Declaration
public SnatEntry(string name, SnatEntryArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SnatEntryArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CidrBlock

The destination CIDR block.

Declaration
public Output<string> CidrBlock { get; }
Property Value
Type Description
Output<System.String>
View Source

SagId

The ID of the SAG instance.

Declaration
public Output<string> SagId { get; }
Property Value
Type Description
Output<System.String>
View Source

SnatIp

The public IP address.

Declaration
public Output<string> SnatIp { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, SnatEntryState, CustomResourceOptions)

Get an existing SnatEntry resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static SnatEntry Get(string name, Input<string> id, SnatEntryState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SnatEntryState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SnatEntry
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.