Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

NAT Gateway

Updated on 2025-02-25 GMT+08:00

The Organizations service provides Service Control Policies (SCPs) to set access control policies.

SCPs do not actually grant any permissions to a principal. They only set the permissions boundary for the principal. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permissions to that member account or OU. Instead, the SCPs just determine what permissions are available for that member account or the member accounts under that OU.

This section describes the elements used by Organizations SCPs. The elements include actions, resources, and conditions.

For details about how to use these elements to create a custom SCP, see Creating an SCP.

Actions

Actions are specific operations that are allowed or denied in an SCP.

  • The Access Level column describes how the action is classified (List, Read, or Write). This classification helps you understand the level of access that an action grants when you use it in an SCP.
  • The Resource Type column indicates whether the action supports resource-level permissions.
    • You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions, and you must specify all resources ("*") in your SCP statements.
    • If this column includes a resource type, you must specify the URN in the Resource element of your statements.
    • Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.

    For details about the resource types defined by NAT Gateway, see Resources.

  • The Condition Key column contains keys that you can specify in the Condition element of an SCP statement.
    • If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
    • If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
    • If the Condition Key column is empty (-) for an action, the action does not support any condition keys.

    For details about the condition keys defined by NAT Gateway, see Conditions.

The following table lists the actions that you can define in SCP statements for NAT Gateway.

Table 1 Actions supported by NAT Gateway

Action

Description

Access Level

Resource Type (*: required)

Condition Key

nat:privateNatGateways:list

Grants permission to query private NAT gateways.

list

privateGateway *

g:EnterpriseProjectId

nat:privateNatGateways:create

Grants permission to create a private NAT gateway.

write

privateGateway *

-

subnet *

-

-

  • g:EnterpriseProjectId
  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:privateNatGateways:delete

Grants permission to delete a private NAT gateway.

write

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:privateNatGateways:get

Grants permission to query a private NAT gateway.

read

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:privateNatGateways:update

Grants permission to update a private NAT gateway.

write

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:privateNatDnatRules:list

Grants permission to query DNAT rules on a private NAT gateway.

list

privateDnatRule *

g:EnterpriseProjectId

nat:privateNatDnatRules:create

Grants permission to create a DNAT rule on a private NAT gateway.

write

privateGateway *

g:ResourceTag/<tag-key>

privateDnatRule *

-

privateTransitIp *

g:ResourceTag/<tag-key>

port

-

-

g:EnterpriseProjectId

nat:privateNatDnatRules:delete

Grants permission to delete a DNAT rule on a private NAT gateway.

write

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

privateDnatRule *

g:EnterpriseProjectId

nat:privateNatDnatRules:get

Grants permission to query a DNAT rule on a private NAT gateway.

read

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

privateDnatRule *

g:EnterpriseProjectId

nat:privateNatDnatRules:update

Grants permission to update a DNAT rule on a private NAT gateway.

write

privateGateway *

g:ResourceTag/<tag-key>

privateDnatRule *

-

privateTransitIp

g:ResourceTag/<tag-key>

port

-

-

g:EnterpriseProjectId

nat:privateNatSnatRules:list

Grants permission to query SNAT rules on a private NAT gateway.

list

privateSnatRule *

g:EnterpriseProjectId

nat:privateNatSnatRules:create

Grants permission to create an SNAT rule on a private NAT gateway.

write

privateGateway *

g:ResourceTag/<tag-key>

privateSnatRule *

-

privateTransitIp *

g:ResourceTag/<tag-key>

subnet

-

-

g:EnterpriseProjectId

nat:privateNatSnatRules:delete

Grants permission to delete an SNAT rule on a private NAT gateway.

write

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

privateSnatRule *

g:EnterpriseProjectId

nat:privateNatSnatRules:get

Grants permission to query an SNAT rule on a private NAT gateway.

read

privateGateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

privateSnatRule *

g:EnterpriseProjectId

nat:privateNatSnatRules:update

Grants permission to update an SNAT rule on a private NAT gateway.

write

privateGateway *

g:ResourceTag/<tag-key>

privateSnatRule *

-

privateTransitIp

g:ResourceTag/<tag-key>

-

g:EnterpriseProjectId

nat:privateNatTransitIps:list

Grants permission to query transit IP addresses.

list

privateTransitIp *

g:EnterpriseProjectId

nat:privateNatTransitIps:create

Grants permission to assign a transit IP address.

write

privateTransitIp *

-

subnet

-

-

  • g:EnterpriseProjectId
  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:privateNatTransitIps:delete

Grants permission to release a transit IP address.

write

privateTransitIp *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:privateNatTransitIps:get

Grants permission to query a transit IP address.

read

privateTransitIp *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:natGateways:list

Grants permission to query public NAT gateways.

list

gateway *

g:EnterpriseProjectId

nat:natGateways:create

Grants permission to create a public NAT gateway.

write

gateway *

-

vpc *

-

subnet *

-

-

  • g:EnterpriseProjectId
  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:natGateways:delete

Grants permission to delete a public NAT gateway.

write

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:natGateways:get

Grants permission to query a public NAT gateway.

read

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:natGateways:update

Grants permission to update a public NAT gateway.

write

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

nat:dnatRules:list

Grants permission to query DNAT rules on a public NAT gateway.

list

dnatRule *

g:EnterpriseProjectId

nat:dnatRules:create

Grants permission to create a DNAT rule on a public NAT gateway.

write

gateway *

g:ResourceTag/<tag-key>

dnatRule *

-

publicip

-

globalEip

-

port

-

-

g:EnterpriseProjectId

nat:dnatRules:get

Grants permission to query a DNAT rule on a public NAT gateway.

read

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

dnatRule *

g:EnterpriseProjectId

nat:dnatRules:update

Grants permission to update a DNAT rule on a public NAT gateway.

write

gateway *

g:ResourceTag/<tag-key>

dnatRule *

-

publicip

-

globalEip

-

port

-

-

g:EnterpriseProjectId

nat:dnatRules:delete

Grants permission to delete a DNAT rule on a public NAT gateway.

write

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

dnatRule *

g:EnterpriseProjectId

nat:snatRules:list

Grants permission to query SNAT rules on a public NAT gateway.

list

snatRule *

g:EnterpriseProjectId

nat:snatRules:create

Grants permission to create an SNAT rule on a public NAT gateway.

write

gateway *

g:ResourceTag/<tag-key>

snatRule *

-

publicip

-

globalEip

-

subnet

-

-

g:EnterpriseProjectId

nat:snatRules:get

Grants permission to query an SNAT rule on a public NAT gateway.

read

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

snatRule *

g:EnterpriseProjectId

nat:snatRules:update

Grants permission to update an SNAT rule on a public NAT gateway.

write

gateway *

g:ResourceTag/<tag-key>

snatRule *

-

publicip

-

globalEip

-

-

g:EnterpriseProjectId

nat:snatRules:delete

Grants permission to delete an SNAT rule on a public NAT gateway.

write

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

snatRule *

g:EnterpriseProjectId

nat:privateNatGateways:createTags

Grants permission to add a tag to a private NAT gateway.

tagging

privateGateway *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:privateNatGateways:deleteTags

Grants permission to delete a tag of a private NAT gateway.

tagging

privateGateway *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:privateNatGateways:listTags

Grants permission to query tags of a private NAT gateway.

list

privateGateway

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

nat:privateNatTransitIps:createTags

Grants permission to add a tag to a transit IP address.

tagging

privateTransitIp *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:privateNatTransitIps:deleteTags

Grants permission to delete a tag of a transit IP address.

tagging

privateTransitIp *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:privateNatTransitIps:listTags

Grants permission to query tags of a transit IP address.

list

privateTransitIp

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

nat:natGateways:createTags

Grants permission to add a tag to a public NAT gateway.

tagging

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:natGateways:deleteTags

Grants permission to delete a tag of a public NAT gateway.

tagging

gateway *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

nat:natGateways:listTags

Grants permission to query tags of a public NAT gateway.

list

gateway

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

Each API of NAT Gateway usually supports one or more actions. Table 2 lists the supported actions and dependencies.

Table 2 Actions and dependencies supported by NAT Gateway APIs

API

Action

Dependencies

GET /v3/{project_id}/private-nat/gateways

nat:privateNatGateways:list

-

POST /v3/{project_id}/private-nat/gateways

nat:privateNatGateways:create

-

DELETE /v3/{project_id}/private-nat/gateways/{gateway_id}

nat:privateNatGateways:delete

-

GET /v3/{project_id}/private-nat/gateways/{gateway_id}

nat:privateNatGateways:get

-

PUT /v3/{project_id}/private-nat/gateways/{gateway_id}

nat:privateNatGateways:update

-

GET /v3/{project_id}/private-nat/dnat-rules

nat:privateNatDnatRules:list

-

POST /v3/{project_id}/private-nat/dnat-rules

nat:privateNatDnatRules:create

-

DELETE /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id}

nat:privateNatDnatRules:delete

-

GET /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id}

nat:privateNatDnatRules:get

-

PUT /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id}

nat:privateNatDnatRules:update

-

GET /v3/{project_id}/private-nat/snat-rules

nat:privateNatSnatRules:list

-

POST /v3/{project_id}/private-nat/snat-rules

nat:privateNatSnatRules:create

-

DELETE /v3/{project_id}/private-nat/snat-rules/{snat_rule_id}

nat:privateNatSnatRules:delete

-

GET /v3/{project_id}/private-nat/snat-rules/{snat_rule_id}

nat:privateNatSnatRules:get

-

PUT /v3/{project_id}/private-nat/snat-rules/{snat_rule_id}

nat:privateNatSnatRules:update

-

GET /v3/{project_id}/private-nat/transit-ips

nat:privateNatTransitIps:list

-

POST /v3/{project_id}/private-nat/transit-ips

nat:privateNatTransitIps:create

-

DELETE /v3/{project_id}/private-nat/transit-ips/{transit_ip_id}

nat:privateNatTransitIps:delete

-

GET /v3/{project_id}/private-nat/transit-ips/{transit_ip_id}

nat:privateNatTransitIps:get

-

GET /v2/{project_id}/nat_gateways

nat:natGateways:list

-

POST /v2/{project_id}/nat_gateways

nat:natGateways:create

-

DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}

nat:natGateways:delete

-

GET /v2/{project_id}/nat_gateways/{nat_gateway_id}

nat:natGateways:get

-

PUT /v2/{project_id}/nat_gateways/{nat_gateway_id}

nat:natGateways:update

-

GET /v2/{project_id}/dnat_rules

nat:dnatRules:list

-

POST /v2/{project_id}/dnat_rules

nat:dnatRules:create

eip:publicIps:associateInstance

GET /v2/{project_id}/dnat_rules/{dnat_rule_id}

nat:dnatRules:get

-

PUT /v2/{project_id}/dnat_rules/{dnat_rule_id}

nat:dnatRules:update

  • eip:publicIps:associateInstance
  • eip:publicIps:disassociateInstance

POST /v2/{project_id}/dnat_rules/batch

nat:dnatRules:create

eip:publicIps:associateInstance

DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/dnat_rules/{dnat_rule_id}

nat:dnatRules:delete

eip:publicIps:disassociateInstance

GET /v2/{project_id}/snat_rules

nat:snatRules:list

-

POST /v2/{project_id}/snat_rules

nat:snatRules:create

eip:publicIps:associateInstance

GET /v2/{project_id}/snat_rules/{snat_rule_id}

nat:snatRules:get

-

PUT /v2/{project_id}/snat_rules/{snat_rule_id}

nat:snatRules:update

  • eip:publicIps:associateInstance
  • eip:publicIps:disassociateInstance

DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/snat_rules/{snat_rule_id}

nat:snatRules:delete

eip:publicIps:disassociateInstance

POST /v3/{project_id}/private-nat-gateways/resource_instances/action

nat:privateNatGateways:listTags

-

POST /v3/{project_id}/private-nat-gateways/{resource_id}/tags/action

nat:privateNatGateways:createTags

nat:privateNatGateways:deleteTags

POST /v3/{project_id}/private-nat-gateways/{resource_id}/tags

nat:privateNatGateways:createTags

-

GET /v3/{project_id}/private-nat-gateways/{resource_id}/tags

nat:privateNatGateways:listTags

-

DELETE /v3/{project_id}/private-nat-gateways/{resource_id}/tags/{key}

nat:privateNatGateways:deleteTags

-

GET /v3/{project_id}/private-nat-gateways/tags

nat:privateNatGateways:listTags

-

POST /v3/{project_id}/transit-ips/resource_instances/action

nat:privateNatTransitIps:listTags

-

POST /v3/{project_id}/transit-ips/{resource_id}/tags/action

nat:privateNatTransitIps:createTags

nat:privateNatTransitIps:deleteTags

POST /v3/{project_id}/transit-ips/{resource_id}/tags

nat:privateNatTransitIps:createTags

-

GET /v3/{project_id}/transit-ips/{resource_id}/tags

nat:privateNatTransitIps:listTags

-

DELETE /v3/{project_id}/transit-ips/{resource_id}/tags/{key}

nat:privateNatTransitIps:deleteTags

-

GET /v3/{project_id}/transit-ips/tags

nat:privateNatTransitIps:listTags

-

POST /v2.0/{project_id}/nat_gateways/resource_instances/action

nat:natGateways:listTags

-

POST /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags/action

nat:natGateways:createTags

nat:natGateways:deleteTags

POST /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags

nat:natGateways:createTags

-

GET /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags

nat:natGateways:listTags

-

DELETE /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags/{key}

nat:natGateways:deleteTags

-

GET /v2.0/{project_id}/nat_gateways/tags

nat:natGateways:listTags

-

Resources

A resource type indicates the resources that an SCP applies to. If you specify a resource type for any action in Table 3, the resource URN must be specified in the SCP statements using that action, and the SCP applies only to resources of this type. If no resource type is specified, the Resource element is marked with an asterisk (*) and the SCP applies to all resources. You can also set condition keys in an SCP to define resource types.

The following table lists the resource types that you can define in SCP statements for NAT Gateway.

Table 3 Resource types supported by NAT Gateway

Resource Type

URN

snatRule

nat:<region>:<account-id>:snatRule:<snat-rule-id>

privateSnatRule

nat:<region>:<account-id>:privateSnatRule:<private-snat-rule-id>

port

vpc:<region>:<account-id>:port:<port-id>

privateGateway

nat:<region>:<account-id>:privateGateway:<private-gateway-id>

vpc

vpc:<region>:<account-id>:vpc:<vpc-id>

publicip

vpc:<region>:<account-id>:publicip:<publicip-id>

gateway

nat:<region>:<account-id>:gateway:<gateway-id>

privateTransitIp

nat:<region>:<account-id>:privateTransitIp:<private-transit-ip-id>

dnatRule

nat:<region>:<account-id>:dnatRule:<dnat-rule-id>

globalEip

eip:<region>:<account-id>:globalEip:<geip-id>

privateDnatRule

nat:<region>:<account-id>:privateDnatRule:<private-dnat-rule-id>

subnet

vpc:<region>:<account-id>:subnet:<subnet-id>

Conditions

Only global condition keys applicable to all cloud services can be configured for NAT Gateway. For details, see Global Condition Keys.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback