You can call this operation to update a build rule of 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 UpdateRepoBuildRule

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

BuildRuleId String Yes crbr-ly77w5i3t31fvw2z

The ID of the build rule that you want to update.

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The region where the image repository is deployed.

RepoId String Yes crr-tquyps22md8purzx

The ID of the image repository.

DockerfileLocation String No -

The path to Dockerfile.

DockerfileName String No Dockerfile

The name of Dockerfile.

ImageTag String No v0.9.5

The version of the image.

PushName String No master

The name of the push.

PushType String No GIT_BRANCH

The type of the push. Valid values: GIT_TAG and GIT_BRANCH.

Response parameters

Parameter Type Example Description
BuildRuleId String test

The ID of the build rule that was updated.

Code String success

The return value.

IsSuccess Boolean true

Indicates whether the operation is successful.

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

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=UpdateRepoBuildRule
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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