Updates an image build rule for a repository.
Try it now
Test
RAM authorization
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_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:
Default value: |
linux/amd64 |
|
string |
No |
Target architecture for image builds. Valid values:
Default value: |
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 |
| 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.