opentelekomcloud.PrivateNatSnatRuleV3
Explore with Pulumi AI
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 resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const transitIpId = config.requireObject("transitIpId");
const networkId = config.requireObject("networkId");
const gatewayId = config.requireObject("gatewayId");
const rule1 = new opentelekomcloud.PrivateNatSnatRuleV3("rule1", {
description: "created",
transitIpIds: ["var.transit_ip_id"],
virsubnetId: networkId,
gatewayId: gatewayId,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
transit_ip_id = config.require_object("transitIpId")
network_id = config.require_object("networkId")
gateway_id = config.require_object("gatewayId")
rule1 = opentelekomcloud.PrivateNatSnatRuleV3("rule1",
description="created",
transit_ip_ids=["var.transit_ip_id"],
virsubnet_id=network_id,
gateway_id=gateway_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, "")
transitIpId := cfg.RequireObject("transitIpId")
networkId := cfg.RequireObject("networkId")
gatewayId := cfg.RequireObject("gatewayId")
_, err := opentelekomcloud.NewPrivateNatSnatRuleV3(ctx, "rule1", &opentelekomcloud.PrivateNatSnatRuleV3Args{
Description: pulumi.String("created"),
TransitIpIds: pulumi.StringArray{
pulumi.String("var.transit_ip_id"),
},
VirsubnetId: pulumi.Any(networkId),
GatewayId: pulumi.Any(gatewayId),
})
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 transitIpId = config.RequireObject<dynamic>("transitIpId");
var networkId = config.RequireObject<dynamic>("networkId");
var gatewayId = config.RequireObject<dynamic>("gatewayId");
var rule1 = new Opentelekomcloud.PrivateNatSnatRuleV3("rule1", new()
{
Description = "created",
TransitIpIds = new[]
{
"var.transit_ip_id",
},
VirsubnetId = networkId,
GatewayId = gatewayId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.PrivateNatSnatRuleV3;
import com.pulumi.opentelekomcloud.PrivateNatSnatRuleV3Args;
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 transitIpId = config.get("transitIpId");
final var networkId = config.get("networkId");
final var gatewayId = config.get("gatewayId");
var rule1 = new PrivateNatSnatRuleV3("rule1", PrivateNatSnatRuleV3Args.builder()
.description("created")
.transitIpIds("var.transit_ip_id")
.virsubnetId(networkId)
.gatewayId(gatewayId)
.build());
}
}
configuration:
transitIpId:
type: dynamic
networkId:
type: dynamic
gatewayId:
type: dynamic
resources:
rule1:
type: opentelekomcloud:PrivateNatSnatRuleV3
properties:
description: created
transitIpIds:
- var.transit_ip_id
virsubnetId: ${networkId}
gatewayId: ${gatewayId}
Create PrivateNatSnatRuleV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateNatSnatRuleV3(name: string, args: PrivateNatSnatRuleV3Args, opts?: CustomResourceOptions);
@overload
def PrivateNatSnatRuleV3(resource_name: str,
args: PrivateNatSnatRuleV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateNatSnatRuleV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
transit_ip_ids: Optional[Sequence[str]] = None,
cidr: Optional[str] = None,
description: Optional[str] = None,
private_nat_snat_rule_v3_id: Optional[str] = None,
timeouts: Optional[PrivateNatSnatRuleV3TimeoutsArgs] = None,
virsubnet_id: Optional[str] = None)
func NewPrivateNatSnatRuleV3(ctx *Context, name string, args PrivateNatSnatRuleV3Args, opts ...ResourceOption) (*PrivateNatSnatRuleV3, error)
public PrivateNatSnatRuleV3(string name, PrivateNatSnatRuleV3Args args, CustomResourceOptions? opts = null)
public PrivateNatSnatRuleV3(String name, PrivateNatSnatRuleV3Args args)
public PrivateNatSnatRuleV3(String name, PrivateNatSnatRuleV3Args args, CustomResourceOptions options)
type: opentelekomcloud:PrivateNatSnatRuleV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PrivateNatSnatRuleV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PrivateNatSnatRuleV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PrivateNatSnatRuleV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateNatSnatRuleV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateNatSnatRuleV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var privateNatSnatRuleV3Resource = new Opentelekomcloud.PrivateNatSnatRuleV3("privateNatSnatRuleV3Resource", new()
{
GatewayId = "string",
TransitIpIds = new[]
{
"string",
},
Cidr = "string",
Description = "string",
PrivateNatSnatRuleV3Id = "string",
Timeouts = new Opentelekomcloud.Inputs.PrivateNatSnatRuleV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VirsubnetId = "string",
});
example, err := opentelekomcloud.NewPrivateNatSnatRuleV3(ctx, "privateNatSnatRuleV3Resource", &opentelekomcloud.PrivateNatSnatRuleV3Args{
GatewayId: pulumi.String("string"),
TransitIpIds: pulumi.StringArray{
pulumi.String("string"),
},
Cidr: pulumi.String("string"),
Description: pulumi.String("string"),
PrivateNatSnatRuleV3Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.PrivateNatSnatRuleV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VirsubnetId: pulumi.String("string"),
})
var privateNatSnatRuleV3Resource = new PrivateNatSnatRuleV3("privateNatSnatRuleV3Resource", PrivateNatSnatRuleV3Args.builder()
.gatewayId("string")
.transitIpIds("string")
.cidr("string")
.description("string")
.privateNatSnatRuleV3Id("string")
.timeouts(PrivateNatSnatRuleV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.virsubnetId("string")
.build());
private_nat_snat_rule_v3_resource = opentelekomcloud.PrivateNatSnatRuleV3("privateNatSnatRuleV3Resource",
gateway_id="string",
transit_ip_ids=["string"],
cidr="string",
description="string",
private_nat_snat_rule_v3_id="string",
timeouts={
"create": "string",
"delete": "string",
},
virsubnet_id="string")
const privateNatSnatRuleV3Resource = new opentelekomcloud.PrivateNatSnatRuleV3("privateNatSnatRuleV3Resource", {
gatewayId: "string",
transitIpIds: ["string"],
cidr: "string",
description: "string",
privateNatSnatRuleV3Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
virsubnetId: "string",
});
type: opentelekomcloud:PrivateNatSnatRuleV3
properties:
cidr: string
description: string
gatewayId: string
privateNatSnatRuleV3Id: string
timeouts:
create: string
delete: string
transitIpIds:
- string
virsubnetId: string
PrivateNatSnatRuleV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PrivateNatSnatRuleV3 resource accepts the following input properties:
- Gateway
Id string - Specifies the private NAT gateway ID.
- Transit
Ip List<string>Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - Cidr string
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - Description string
- Provides supplementary information about the SNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- Private
Nat stringSnat Rule V3Id - Private NAT SNAT rule ID.
- Timeouts
Private
Nat Snat Rule V3Timeouts - Virsubnet
Id string - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- Gateway
Id string - Specifies the private NAT gateway ID.
- Transit
Ip []stringIds - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - Cidr string
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - Description string
- Provides supplementary information about the SNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- Private
Nat stringSnat Rule V3Id - Private NAT SNAT rule ID.
- Timeouts
Private
Nat Snat Rule V3Timeouts Args - Virsubnet
Id string - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- gateway
Id String - Specifies the private NAT gateway ID.
- transit
Ip List<String>Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - cidr String
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - description String
- Provides supplementary information about the SNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- private
Nat StringSnat Rule V3Id - Private NAT SNAT rule ID.
- timeouts
Private
Nat Snat Rule V3Timeouts - virsubnet
Id String - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- gateway
Id string - Specifies the private NAT gateway ID.
- transit
Ip string[]Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - cidr string
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - description string
- Provides supplementary information about the SNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- private
Nat stringSnat Rule V3Id - Private NAT SNAT rule ID.
- timeouts
Private
Nat Snat Rule V3Timeouts - virsubnet
Id string - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- gateway_
id str - Specifies the private NAT gateway ID.
- transit_
ip_ Sequence[str]ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - cidr str
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - description str
- Provides supplementary information about the SNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- private_
nat_ strsnat_ rule_ v3_ id - Private NAT SNAT rule ID.
- timeouts
Private
Nat Snat Rule V3Timeouts Args - virsubnet_
id str - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- gateway
Id String - Specifies the private NAT gateway ID.
- transit
Ip List<String>Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - cidr String
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - description String
- Provides supplementary information about the SNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- private
Nat StringSnat Rule V3Id - Private NAT SNAT rule ID.
- timeouts Property Map
- virsubnet
Id String - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateNatSnatRuleV3 resource produces the following output properties:
- Created
At string - Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Enterprise
Project stringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id 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) orFROZEN
(The SNAT rule is frozen). - Transit
Ip List<PrivateAssociations Nat Snat Rule V3Transit Ip Association> - Indicates the list of details of associated transit IP addresses. The structure is described below.
- Updated
At string - Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Created
At string - Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Enterprise
Project stringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id 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) orFROZEN
(The SNAT rule is frozen). - Transit
Ip []PrivateAssociations Nat Snat Rule V3Transit Ip Association - Indicates the list of details of associated transit IP addresses. The structure is described below.
- Updated
At string - Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- created
At String - Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise
Project StringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id 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) orFROZEN
(The SNAT rule is frozen). - transit
Ip List<PrivateAssociations Nat Snat Rule V3Transit Ip Association> - Indicates the list of details of associated transit IP addresses. The structure is described below.
- updated
At String - Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- created
At string - Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise
Project stringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id 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) orFROZEN
(The SNAT rule is frozen). - transit
Ip PrivateAssociations Nat Snat Rule V3Transit Ip Association[] - Indicates the list of details of associated transit IP addresses. The structure is described below.
- updated
At string - Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- 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.
- enterprise_
project_ strid - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- id str
- The provider-assigned unique ID for this managed resource.
- 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) orFROZEN
(The SNAT rule is frozen). - transit_
ip_ Sequence[Privateassociations Nat Snat Rule V3Transit Ip Association] - Indicates the list of details of associated transit IP addresses. The structure is described below.
- 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.
- created
At String - Indicates the time when the private NAT SNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise
Project StringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id 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) orFROZEN
(The SNAT rule is frozen). - transit
Ip List<Property Map>Associations - Indicates the list of details of associated transit IP addresses. The structure is described below.
- updated
At String - Indicates the time when the private NAT SNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
Look up Existing PrivateNatSnatRuleV3 Resource
Get an existing PrivateNatSnatRuleV3 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?: PrivateNatSnatRuleV3State, opts?: CustomResourceOptions): PrivateNatSnatRuleV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
gateway_id: Optional[str] = None,
private_nat_snat_rule_v3_id: Optional[str] = None,
project_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[PrivateNatSnatRuleV3TimeoutsArgs] = None,
transit_ip_associations: Optional[Sequence[PrivateNatSnatRuleV3TransitIpAssociationArgs]] = None,
transit_ip_ids: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
virsubnet_id: Optional[str] = None) -> PrivateNatSnatRuleV3
func GetPrivateNatSnatRuleV3(ctx *Context, name string, id IDInput, state *PrivateNatSnatRuleV3State, opts ...ResourceOption) (*PrivateNatSnatRuleV3, error)
public static PrivateNatSnatRuleV3 Get(string name, Input<string> id, PrivateNatSnatRuleV3State? state, CustomResourceOptions? opts = null)
public static PrivateNatSnatRuleV3 get(String name, Output<String> id, PrivateNatSnatRuleV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:PrivateNatSnatRuleV3 get: id: ${id}
- 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.
- 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.
- Cidr string
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - Created
At 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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- Enterprise
Project stringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- Gateway
Id string - Specifies the private NAT gateway ID.
- Private
Nat stringSnat Rule V3Id - Private NAT SNAT rule ID.
- Project
Id 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) orFROZEN
(The SNAT rule is frozen). - Timeouts
Private
Nat Snat Rule V3Timeouts - Transit
Ip List<PrivateAssociations Nat Snat Rule V3Transit Ip Association> - Indicates the list of details of associated transit IP addresses. The structure is described below.
- Transit
Ip List<string>Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - Updated
At string - 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 string - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- Cidr string
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - Created
At 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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- Enterprise
Project stringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- Gateway
Id string - Specifies the private NAT gateway ID.
- Private
Nat stringSnat Rule V3Id - Private NAT SNAT rule ID.
- Project
Id 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) orFROZEN
(The SNAT rule is frozen). - Timeouts
Private
Nat Snat Rule V3Timeouts Args - Transit
Ip []PrivateAssociations Nat Snat Rule V3Transit Ip Association Args - Indicates the list of details of associated transit IP addresses. The structure is described below.
- Transit
Ip []stringIds - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - Updated
At string - 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 string - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- cidr String
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - created
At 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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- enterprise
Project StringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- gateway
Id String - Specifies the private NAT gateway ID.
- private
Nat StringSnat Rule V3Id - Private NAT SNAT rule ID.
- project
Id 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) orFROZEN
(The SNAT rule is frozen). - timeouts
Private
Nat Snat Rule V3Timeouts - transit
Ip List<PrivateAssociations Nat Snat Rule V3Transit Ip Association> - Indicates the list of details of associated transit IP addresses. The structure is described below.
- transit
Ip List<String>Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - updated
At String - 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 String - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- cidr string
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - created
At 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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- enterprise
Project stringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- gateway
Id string - Specifies the private NAT gateway ID.
- private
Nat stringSnat Rule V3Id - Private NAT SNAT rule ID.
- project
Id 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) orFROZEN
(The SNAT rule is frozen). - timeouts
Private
Nat Snat Rule V3Timeouts - transit
Ip PrivateAssociations Nat Snat Rule V3Transit Ip Association[] - Indicates the list of details of associated transit IP addresses. The structure is described below.
- transit
Ip string[]Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - updated
At string - 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 string - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- cidr str
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - 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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- enterprise_
project_ strid - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- gateway_
id str - Specifies the private NAT gateway ID.
- private_
nat_ strsnat_ rule_ v3_ id - 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) orFROZEN
(The SNAT rule is frozen). - timeouts
Private
Nat Snat Rule V3Timeouts Args - transit_
ip_ Sequence[Privateassociations Nat Snat Rule V3Transit Ip Association Args] - Indicates the list of details of associated transit IP addresses. The structure is described below.
- transit_
ip_ Sequence[str]ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - 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 - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
- cidr String
- Specifies the CIDR block that matches the SNAT rule. Either this parameter or
virsubnet_id
must be specified. - created
At 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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
- enterprise
Project StringId - Indicates the ID of the enterprise project that is associated with the SNAT rule when the SNAT rule is created.
- gateway
Id String - Specifies the private NAT gateway ID.
- private
Nat StringSnat Rule V3Id - Private NAT SNAT rule ID.
- project
Id 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) orFROZEN
(The SNAT rule is frozen). - timeouts Property Map
- transit
Ip List<Property Map>Associations - Indicates the list of details of associated transit IP addresses. The structure is described below.
- transit
Ip List<String>Ids - Specifies the IDs of the transit IP addresses. A maximum number of
20
IDs is allowed. - updated
At String - 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 String - Specifies the ID of the subnet that matches the SNAT rule. Either this parameter or
cidr
must be specified.
Supporting Types
PrivateNatSnatRuleV3Timeouts, PrivateNatSnatRuleV3TimeoutsArgs
PrivateNatSnatRuleV3TransitIpAssociation, PrivateNatSnatRuleV3TransitIpAssociationArgs
- Transit
Ip stringAddress - Indicates the transit IP address.
- Transit
Ip stringId - Indicates the ID of the transit IP address.
- Transit
Ip stringAddress - Indicates the transit IP address.
- Transit
Ip stringId - Indicates the ID of the transit IP address.
- transit
Ip StringAddress - Indicates the transit IP address.
- transit
Ip StringId - Indicates the ID of the transit IP address.
- transit
Ip stringAddress - Indicates the transit IP address.
- transit
Ip stringId - Indicates the ID of the transit IP address.
- transit_
ip_ straddress - Indicates the transit IP address.
- transit_
ip_ strid - Indicates the ID of the transit IP address.
- transit
Ip StringAddress - Indicates the transit IP address.
- transit
Ip StringId - Indicates the ID of the transit IP address.
Import
Private NAT SNAT rule V3 resource can be imported using the SNAT rule ID, id
.
$ pulumi import opentelekomcloud:index/privateNatSnatRuleV3:PrivateNatSnatRuleV3 rule_1 <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.