Domain name for API request: vpc.tencentcloudapi.com.
This API 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 | No | String | Common Params. This parameter is not required for this API. |
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, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to modify the NAT gateway name and maximum outbound bandwidth. To adjust the maximum concurrent connections of a NAT gateway, please use ResetNatGatewayConnection
.
POST / HTTP/1.1
Host: vpc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyNatGatewayAttribute
<Common request parameters>
{
"InternetMaxBandwidthOut": "500",
"NatGatewayId": "nat-ig8xpno8",
"NatGatewayName": "Test natNAT gateway"
}
{
"Response": {
"RequestId": "e5c289dc-bf4b-4828-8093-3c434d1f0886"
}
}
This example shows you how to modify the StrictSnatMode
status of a NAT gateway
POST / HTTP/1.1
Host: vpc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyNatGatewayAttribute
<Common request parameters>
{
"NatGatewayId": "nat-owj32fec"
}
{
"Response": {
"RequestId": "5acefde4-3be5-4582-a432-742081e1c904"
}
}
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. |
UnsupportedOperation.InsufficientInternetServiceProviders |
本页内容是否解决了您的问题?