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.
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 Params. The value used for this API: ModifyNatGatewayAttribute. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | Yes | String | Common Params. 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 an NAT gateway. If you want to reset the maximum concurrent connections of an NAT gateway, use the ResetNatGatewayConnection
API.
https://vpc.tencentcloudapi.com/?Action=ModifyNatGatewayAttribute
&NatGatewayId=nat-ig8xpno8
&NatGatewayName=Test NAT gateway
&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 |
---|---|
InvalidParameterValue.Malformed | Invalid input parameter format. |
InvalidParameterValue.TooLong | Invalid parameter value. The parameter value is too long. |
ResourceInUse | The resource is occupied. |
ResourceNotFound | The resource does not exist. |
UnsupportedOperation | Unsupported operation. |
本页内容是否解决了您的问题?