Disables ECS traffic monitoring for a NAT gateway.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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 DryRunOperation error code is returned.

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.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "5AF873FB-6669-4AD5-A4DA-478D535C8F0D"


Error codes

For a list of error codes, visit the API Error Center.