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",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.rocketmq.SnatEntry("default",
    cidr_block="192.168.7.0/24",
    sag_id="sag-3rb1t3iagy3w0zgwy9",
    snat_ip="192.0.0.2")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultSnatEntry = new alicloud.rocketmq.SnatEntry("default", {
    cidrBlock: "192.168.7.0/24",
    sagId: "sag-3rb1t3iagy3w0zgwy9",
    snatIp: "192.0.0.2",
});

Create a SnatEntry Resource

def SnatEntry(resource_name, opts=None, cidr_block=None, sag_id=None, snat_ip=None, __props__=None);
func NewSnatEntry(ctx *Context, name string, args SnatEntryArgs, opts ...ResourceOption) (*SnatEntry, error)
public SnatEntry(string name, SnatEntryArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SnatEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SnatEntryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SnatEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SnatEntry Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SnatEntry resource accepts the following input properties:

CidrBlock string

The destination CIDR block.

SagId string

The ID of the SAG instance.

SnatIp string

The public IP address.

CidrBlock string

The destination CIDR block.

SagId string

The ID of the SAG instance.

SnatIp string

The public IP address.

cidrBlock string

The destination CIDR block.

sagId string

The ID of the SAG instance.

snatIp string

The public IP address.

cidr_block str

The destination CIDR block.

sag_id str

The ID of the SAG instance.

snat_ip str

The public IP address.

Outputs

All input properties are implicitly available as output properties. Additionally, the SnatEntry resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing SnatEntry Resource

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

public static get(name: string, id: Input<ID>, state?: SnatEntryState, opts?: CustomResourceOptions): SnatEntry
static get(resource_name, id, opts=None, cidr_block=None, sag_id=None, snat_ip=None, __props__=None);
func GetSnatEntry(ctx *Context, name string, id IDInput, state *SnatEntryState, opts ...ResourceOption) (*SnatEntry, error)
public static SnatEntry Get(string name, Input<string> id, SnatEntryState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CidrBlock string

The destination CIDR block.

SagId string

The ID of the SAG instance.

SnatIp string

The public IP address.

CidrBlock string

The destination CIDR block.

SagId string

The ID of the SAG instance.

SnatIp string

The public IP address.

cidrBlock string

The destination CIDR block.

sagId string

The ID of the SAG instance.

snatIp string

The public IP address.

cidr_block str

The destination CIDR block.

sag_id str

The ID of the SAG instance.

snat_ip str

The public IP address.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.