Disables ECS traffic monitoring for a NAT gateway.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DisableNatGatewayEcsMetric |
The operation that you want to perform. Set the value to DisableNatGatewayEcsMetric. |
NatGatewayId | String | Yes | ngw-2vc53wynunp35lw1y**** |
The ID of the NAT gateway for which you want to disable Elastic Compute Service (ECS) traffic monitoring. |
RegionId | String | Yes | cn-chengdu |
The ID of the region where the NAT gateway is deployed. You can call the DescribeRegions operation to query region IDs. |
DryRun | Boolean | No | false |
Specifies whether to precheck this request only. Valid values: true: The validity of the request is checked but ECS traffic monitoring is not disabled.
Check items include whether your AccessKey pair is valid, whether Resource Access
Management (RAM) users are authorized, and whether the required parameters are set.
If the request fails the precheck, the corresponding error code is returned. If the
request passes the precheck, the false (default): The validity of the request is checked. If the request passes the precheck, a 2XX HTTP status code is returned and ECS traffic monitoring is disabled. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
The ID of the request. |
Examples
Sample requests
https://vpc.aliyuncs.com/?Action=DisableNatGatewayEcsMetric
&NatGatewayId=ngw-2vc53wynunp35lw1y****
&RegionId=cn-chengdu
&<Common request parameters>
Sample success responses
XML
format
<DisableNatGatewayEcsMetricResponse>
<RequestId>5AF873FB-6669-4AD5-A4DA-478D535C8F0D</RequestId>
</DisableNatGatewayEcsMetricResponse>
JSON
format
{
"RequestId": "5AF873FB-6669-4AD5-A4DA-478D535C8F0D"
}
Error codes
For a list of error codes, visit the API Error Center.