Associates a Smart Access Gateway (SAG) APP instance with another enterprise code.

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 UpdateSmartAGEnterpriseCode

The operation that you want to perform.

Set the value to UpdateSmartAGEnterpriseCode.

EnterpriseCode String Yes 12P**

The enterprise code with you want to associate the SAG APP instance.

RegionId String Yes cn-shanghai

The ID of the region where the SAG APP instance is deployed.

SmartAGId String Yes sag-rz2e23c0e78ema****

The ID of the SAG APP instance.

ClientToken String No 02fb3da4-130e****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Response parameters

Parameter Type Example Description
RequestId String FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateSmartAGEnterpriseCode
&EnterpriseCode=12P**
&RegionId=cn-shanghai
&SmartAGId=sag-rz2e23c0e78ema****
&<Common request parameters>

Sample success responses

XML format

<UpdateSmartAGEnterpriseCodeResponse>
  <RequestId>FBDB18D8-E91E-4978-8D6C-6E2E3EE10133</RequestId>
</UpdateSmartAGEnterpriseCodeResponse>

JSON format

{"RequestId":"FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"}

Error codes

HttpCode Error code Error message Description
403 MissingParameter The input parameter is missing, please check your input. The error message returned because a required parameter is not set. Check whether you have set all required parameters.
400 EnterpriseCode.UserNameConflict The specified username already exists. The error message returned because the specified username already exists.
403 InternalError An internal server error occurred. The error code returned because an internal server error occurred.

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