You can call this operation to modify the basic information of a gateway.

Debugging

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 ModifyGateway

The operation that you want to perform. Set the value to ModifyGateway.

GatewayDesc String Yes Gateway used in the cloud-based environment

The description of the gateway.

GatewayId String Yes dg-yhss6sdlaffaq68

The ID of the gateway.

GatewayName String Yes Cloud-based environment

The name of the gateway.

Response parameters

Parameter Type Example Description
Code String OK

The response code.

Data String xxx

The returned result.

ErrorMsg String None

The error message.

RequestId String CDDAAA07-D806-AG67-BEE8-1E43AAE024DC

The ID of the request.

Success Boolean true

Indicates whether the call is successful.

Samples

Sample requests


http(s)://dg.[regionId].aliyuncs.com/?Action=ModifyGateway
&GatewayDesc=Gateway used in the cloud-based environment
&GatewayId=dg-yhss6sdlaffaq68
&GatewayName=Cloud-based environment
&<Common request parameters>

Sample success responses

XML format

<ModifyGatewayResponse>
      <RequestId>CDDAAA07-D806-AG67-BEE8-1E43AAE024DC</RequestId>
</ModifyGatewayResponse>

JSON format

{
	"RequestId":"CDDAAA07-D806-AG67-BEE8-1E43AAE024DC"
}

Error codes

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