Binds a source code repository to an image repository.


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 CreateRepoSourceCodeRepo

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

CodeRepoName String Yes repo

The name of the source code repository.

CodeRepoNamespaceName String Yes namespace

The namespace to which the source code repository belongs.

CodeRepoType String Yes GITHUB

The type of the source code hosting platform. Valid values: GITHUB, GITLAB, GITEE, CODE, and CODEUP.

InstanceId String Yes cri-123456

The ID of the Container Registry Enterprise Edition instance.

RegionId String Yes cn-hangzhou

The ID of the region.

RepoId String Yes crr-123456

The ID of the image repository.

AutoBuild Boolean No true

Specifies whether to trigger image building when the source code is committed.

OverseaBuild Boolean No false

Specifies whether to build images on servers outside mainland China for acceleration.

DisableCacheBuild Boolean No false

Specifies whether to build images without using the cache.

Response parameters

Parameter Type Example Description
Code String success

The return code.

IsSuccess Boolean true

Indicates whether the call was successful.

RequestId String 4CE1F661-75DD-4EBD-A4AD-057B26834ABB

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "IsSuccess": true,
    "RequestId": "4CE1F661-75DD-4EBD-A4AD-057B26834ABB",
    "Code": "success"

Error codes

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