Updates an image repository.

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 UpdateRepository

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

RegionId String Yes cn-shanghai

The region ID of the repository.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

RepoId String Yes crr-tquyps22md8p****

The ID of the repository.

RepoType String Yes PUBLIC

The type of the repository. Valid values:

  • PUBLIC: The repository is a public repository.
  • PRIVATE: The repository is a private repository.
Summary String Yes test repo

The summary of the repository.

Detail String No repo-for-test

The description of the repository.

TagImmutability Boolean No true

Specifies whether the repository tag is immutable. Valid values:

  • true: The repository tag is immutable.
  • false: The image tag is mutable.

Response parameters

Parameter Type Example Description
Code String success

The return value of the status code.

IsSuccess Boolean true

Indicates whether the API call is successful.

RequestId String CC43EC6B-0DD4-40AE-8811-B0519617051A

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateRepository
&InstanceId=cri-kmsiwlxxdcva****
&RepoId=crr-tquyps22md8p****
&RepoType=PUBLIC
&Summary=test repo
&Detail=repo-for-test
&TagImmutability=true
&Common request parameters

Sample success responses

XML format

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

<UpdateRepositoryResponse>
    <Code>success</Code>
    <IsSuccess>true</IsSuccess>
    <RequestId>CC43EC6B-0DD4-40AE-8811-B0519617051A</RequestId>
</UpdateRepositoryResponse>

JSON format

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

{
  "Code" : "success",
  "IsSuccess" : true,
  "RequestId" : "CC43EC6B-0DD4-40AE-8811-B0519617051A"
}

Error codes

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