All Products
Search
Document Center

Container Registry:UpdateRepoBuildRule

Last Updated:Aug 28, 2026

Updates an image build rule for a repository.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the instance.

cri-kmsiwlxxdcva****

RepoId

string

Yes

The ID of the image repository.

crr-tquyps22md8p****

DockerfileLocation

string

No

The path of the Dockerfile.

/

DockerfileName

string

No

The name of the Dockerfile.

Dockerfile

PushType

string

No

The push type that triggers the build rule. Valid values:

  • GIT_TAG: tag push

  • GIT_BRANCH: branch push

GIT_BRANCH

PushName

string

No

The push name that triggers the build rule.

master

ImageTag

string

No

The tag of the image.

v0.9.5

BuildRuleId

string

Yes

The ID of the build rule.

crbr-ly77w5i3t31f****

BuildArgs

array

No

Build arguments.

string

No

Build arguments.

UserName=Test

Platforms

array

No

Target architecture for image builds. Valid values:

  • linux/amd64

  • linux/arm64

  • linux/386

  • linux/arm/v7

  • linux/arm/v6

Default value: linux/amd64

linux/amd64

string

No

Target architecture for image builds. Valid values:

  • linux/amd64

  • linux/arm64

  • linux/386

  • linux/arm/v7

  • linux/arm/v6

Default value: linux/amd64

linux/amd64

Response elements

Element

Type

Description

Example

object

Code

string

The return value.

success

IsSuccess

boolean

Whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

RequestId

string

The ID of the request.

BC648259-91A7-4502-BED3-EDF64361FA83

BuildRuleId

string

The ID of the build rule.

crbr-ly77w5i3t31f****

Examples

Success response

JSON format

{
  "Code": "success",
  "IsSuccess": true,
  "RequestId": "BC648259-91A7-4502-BED3-EDF64361FA83",
  "BuildRuleId": "crbr-ly77w5i3t31f****"
}

Error codes

HTTP status code

Error code

Error message

Description

500 SystemError Unknown error.
403 NoPrivilege Access denied for this user.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.