Domain name for API request: vpc.tencentcloudapi.com.
This API (ModifyNatGatewayAttribute) is used to modify the attributes of a NAT gateway.
A maximum of 100 requests can be initiated per second for this API.
Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: vpc.ap-shanghai-fsi.tencentcloudapi.com
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: ModifyNatGatewayAttribute. |
Version | Yes | String | Common parameter. The value used for this API: 2017-03-12. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. |
NatGatewayId | Yes | String | The ID of the NAT gateway, such as nat-df45454 . |
NatGatewayName | No | String | The NAT gateway name, such as test_nat . |
InternetMaxBandwidthOut | No | Integer | The maximum outbound bandwidth of the NAT gateway. Unit: Mbps. |
ModifySecurityGroup | No | Boolean | Whether to modify the security group bound to the NAT Gateway |
SecurityGroupIds.N | No | Array of String | The final security groups bound to the NAT Gateway, such as ['sg-1n232323', 'sg-o4242424'] . An empty list indicates that all the security groups have been deleted. |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to change the name and public network outbound bandwidth cap of a NAT Gateway. If you want to reset the maximum concurrent connections of a NAT Gateway, use the ResetNatGatewayConnection
API.
https://vpc.tencentcloudapi.com/?Action=ModifyNatGatewayAttribute
&NatGatewayId=nat-ig8xpno8
&NatGatewayName=testnatgateway
&InternetMaxBandwidthOut=500
&<Common request parameters>
{
"Response": {
"RequestId": "e5c289dc-bf4b-4828-8093-3c434d1f0886"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
ResourceInUse | The resource is occupied. |
ResourceNotFound | The resource does not exist. |
UnsupportedOperation | Unsupported operation. |
Was this page helpful?