Updates an image build rule for 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 image build rule.

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-tquyps22md8purzx

The ID of the repository.

DockerfileLocation String No /

The directory of the Dockerfile.

DockerfileName String No Dockerfile

The name of the Dockerfile.

PushType String No GIT_BRANCH

The version type of the Git repository where the Dockerfile resides. Valid values: GIT_TAG and GIT_BRANCH.

PushName String No master

The version number of the Git repository where the Dockerfile resides.

ImageTag String No v0.9.5

The tag of the image.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The return value.

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

The ID of the request.

BuildRuleId String test

The ID of the image build rule.


Sample requests

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

Sample success responses

JSON format


XML format


Error codes

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