- What's New
- Service Overview
- Getting Started
- User Guide
-
Template Reference
- Resource Formation Service
-
Application Orchestration Service
- Template Introduction
-
List of Elements
- Resource Indexes
- AntiDDos.Service
- AOS.Batch
- AOS.Stack
- APIG.API
- APIG.ApiGroup
- APIG.Throttle
- APM.AutoScaler
- APM.Pinpoint
- CCE.Addon.AutoScaler
- CCE.Cluster
- CCE.ConfigMap
- CCE.DaemonSet
- CCE.Deployment
- CCE.HelmRelease
- CCE.Ingress
- CCE.Job
- CCE.NodePool
- CCE.Pod
- CCE.Secret
- CCE.Service
- CCE.StatefulSet
- CCE.Storage.EVS
- CCE.Storage.OBS
- CCE.Storage.SFS
- CCI.ConfigMap
- CCI.Deployment
- CCI.Ingress
- CCI.Job
- CCI.Namespace
- CCI.Secret
- CCI.Service
- CCI.StatefulSet
- CCI.Storage.EVS
- CCI.Storage.SFS
- CDN.Cache
- CDN.Domain
- CDN.Host
- CDN.Https
- CDN.PreheatJob
- CDN.Referer
- CDN.RefreshJob
- CDN.Source
- DBSS.Instance
- DCS.Redis
- DDS.CommunityReplicaSetOrSingle
- DIS.Stream
- ECS.CloudServer
- ECS.ServerGroup
- ECS.KeyPair
- EVS.NonSharedVolume
- EVS.SharedVolume
- FGS.ApigEventMap
- FGS.CtsEventMap
- FGS.DisEventMap
- FGS.DmsEventMap
- FGS.Function
- FGS.LtsEventMap
- FGS.ObsEventMap
- FGS.TimerEventMap
- FGS.SmnEventMap
- HSS.Instance
- IAM.Agency
- IAM.UserGroup
- MRS.Cluster
- NAT.Instance
- NAT.SNatRule
- OBS.Bucket
- RDS.MySQL
- RDS.MySQL.DataBase
- RDS.MySQL.User
- RDS.PostgreSQL
- SCM.Cert
- ServiceStage.Agent
- ServiceStage.AppGroup
- ServiceStage.ContainerComponent
- ServiceStage.Job
- ServiceStage.StatefulApplication
- ServiceStage.StatelessApplication
- SFS.FileSystem
- SMN.Subscription
- SMN.Topic
- ULB.Healthmonitor
- ULB.Listener
- ULB.LoadBalancer
- ULB.Member
- ULB.Pool
- VPCEndpoint.Endpoint
- VPCEndpoint.EndpointService
- VPC.EIP
- VPC.FirewallGroup
- VPC.FirewallPolicy.Egress
- VPC.FirewallPolicy.Ingress
- VPC.FirewallRule
- VPC.SecurityGroup
- VPC.SecurityGroupRule
- VPC.Subnet
- VPC.VIP
- VPC.VPC
- VSS.WebScan
- WAF.service
-
Data Structure
- AOS.BatchItem
- APIG.BackendApi
- APIG.FuncInfo
- APIG.MockInfo
- APM.AutoscalerAction
- APM.AutoscalerActionParameters
- APM.AutoscalerCondition
- APM.AutoscalerRule
- Basic.KeyValuePair
- Basic.Label
- Basic.LabelSelector
- Basic.NameAndSecretValue
- Basic.NameKeyPair
- Basic.NameValuePair
- CCE.Addon.AutoScaler.Node
- CCE.DataVolume
- CCE.HelmChart
- CCE.Labels
- CCE.NodePool
- CCE.PublicIP
- CCI.Network
- CDN.Source
- CDN.CacheRule
- DCS.InstanceBackupPolicy
- DCS.PeriodicalBackupPlan
- DDS.BackupStrategy
- DDS.CommunityReplicaSetOrSingleMode.Flavor
- DDS.DDSCommunity.DataStore
- DDS.DDSCommunityReplicaOrSingle.Flavor
- ECS.DataVolume
- ECS.EIP
- ECS.ExtendParam
- ECS.MountedVolumes
- ECS.NICS
- ECS.Personality
- ECS.PublicIP
- ECS.RootVolume
- ECS.SecurityGroup
- ECS.ServerTags
- ECS.VolumeExtendParam
- EVS.Metadata
- FGS.Environment
- FGS.OBSFilter
- FGS.VpcConfig
- IAM.Agency.Role
- K8S.PodSecurityContext
- K8S.SecurityContext.SeLinuxOptions
- MRS.BootstrapScripts
- MRS.Components
- MRS.TaskNodeGroups
- MRS.Tags
- MySQL.DBUser
- MySQL.DBLinkedUser
- MySQL.DataBase
- MySQL.DataStore
- MySQL.UserDatabase
- PostgreSQL.DataStore
- RDS.BackupStrategy
- RDS.HA
- RDS.HA.Mysql
- RDS.HA.PostgreSQL
- RDS.Volume
- ULB.StickySession
- VPCEndpoint.Ports
- VPC.BandWidth
- VPC.PublicIP
- VSS.Resource
- WAF.Bandwidth
- WAF.Domain
- WAF.Service
- Appendix
-
API Reference
- Before You Start
-
Resource Formation APIs
- Calling APIs
-
Stacks
- Listing Events of a Stack
- Obtaining Stack Metadata
- Listing Stacks
- Creating a Stack
- Obtaining a Stack Template
- Listing Stack Resources
- Listing Stack Outputs
- Continuing to Deploy a Stack
- Deploying a Stack
- Deleting a Stack
- Updating a Stack
- Deleting a Stack with Conditions
- Continuing to Roll Back a Stack
- Execution Plans
- Template Analysis
- Template Management
- Application Orchestration APIs
- Appendix
- FAQs
NAT.SNatRule
Element Description
The NAT.SNatRule element is used to create a source NAT rule, which specifies the network segment for accessing the external network.
Element Properties
Property |
Required |
Descripiton |
---|---|---|
subnetId |
Yes |
ID of the Subnet to which the SNatRule belongs Type: HuaweiCloud.VPC.Subnet.Id Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters. Suggestion: Use the get_input function to pass this parameter. Its value can then be automatically selected when you create a stack on the AOS console. Connect to a subnet object and use the get_reference function to the ID of the newly created subnet. |
floatingIpId |
Yes |
User EIP ID Type: HuaweiCloud.VPC.EIP.Id Value Description: Supports the ID of an existing or new public elastic IP address. Suggestion: 1. Use the get_attribute function to obtain the ID of the elastic public IP address created by the template. 2. On the public elastic IP address page (https://console.huaweicloud.com/vpc?&locale=en-us), obtain the ID of the created IP address. |
natGatewayId |
Yes |
ID of the NatGateWay Type: string Value Description: Obtains the natgateway ID from the NAT service or put snatrule in the natgateway to automatically establish the dependency relationship. Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters. Suggestion: Use the get_input function to pass this parameter. Its value can then be automatically selected when you create a stack on the AOS console. Use the get_reference function to obtain the NatGateWay ID. |
Relationships Between Elements
Description |
Target |
---|---|
Connected |
|
ContainedIn |
|
Connected |
Return Value
Property |
Type |
Description |
---|---|---|
refID |
string |
NAT sNatRule ID |
Blueprint Example
tosca_definitions_version: huaweicloud_tosca_version_1_0 node_templates: nat: type: HuaweiCloud.NAT.Instance properties: subnetId: get_input: nat_subnetId flavor: small vpcId: get_input: nat_vpcId name: get_input: nat_name snatrule: type: HuaweiCloud.NAT.SNatRule properties: subnetId: get_input: snatrule_subnetId floatingIpId: get_input: snatrule_floatingIpId natGatewayId: get_reference: nat requirements: - natGatewayId: node: nat inputs: nat_subnetId: description: ID of the subnet to which the NAT gateway belongs label: '' nat_vpcId: description: ID of the VPC to which the NAT gateway belongs label: '' nat_name: description: NAT name label: '' snatrule_subnetId: description: ID of the subnet to which the source NAT rule belongs label: '' snatrule_floatingIpId: description: ID of the user's elastic IP address label: ''
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.