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

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateRepoBuildRule
&BuildRuleId=crbr-ly77w5i3t31fvw2z
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&DockerfileLocation=/
&PushType=GIT_BRANCH
&PushName=master
&ImageTag=v0.9.5
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"F5E2A1DC-F4E4-42D8-8A03-A0D23F04F568",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>F5E2A1DC-F4E4-42D8-8A03-A0D23F04F568</RequestId>
<Code>success</Code>

Error codes

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