Resets the logon password of a Container Registry instance.

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 ResetLoginPassword

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

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

Password String Yes test

The logon password.

RegionId String Yes cn-shanghai

The ID of the region.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful.

  • true: successful
  • false: failed
RequestId String EB9C5722-51E2-4497-A573-575B0CA5CE0C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ResetLoginPassword
&InstanceId=cri-kmsiwlxxdcva****
&Password=test
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>EB9C5722-51E2-4497-A573-575B0CA5CE0C</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"EB9C5722-51E2-4497-A573-575B0CA5CE0C",
    "Code":"success"
}

Error codes

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