Disables an activation code.

Usage notes

To prevent an activation code from being leaked, you can call this operation to disable the activation code. Disabled activation codes can no longer be used to import the information of migration sources. However, migration sources whose information has been imported are not affected.

Request parameters

Parameter Type Required Example Description
Action String Yes DisableAccessToken

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

AccessTokenId String No at-bp12g5gwup0yzmce****

The ID of the activation code.

Response parameters

Parameter Type Example Description
RequestId String 686BB8A6-BBA5-47E5-8A75-D2ADE433****

The ID of the request.

Examples

Sample request

http(s)://smc.aliyuncs.com/?Action=DisableAccessToken
&AccessTokenId=at-bp12g5gwup0yzmce****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DisableAccessTokenResponse>
    <RequestId>686BB8A6-BBA5-47E5-8A75-D2ADE433****</RequestId>
</DisableAccessTokenResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "686BB8A6-BBA5-47E5-8A75-D2ADE433****"
}

Error codes

HTTP status code Error code Error message Description
500 InternalError An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. The error message returned because an internal error has occurred. Try again later. If the error persists, submit a ticket.

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