You can call this operation to update a build rule of an image repository.
Debugging
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. |
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
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>F5E2A1DC-F4E4-42D8-8A03-A0D23F04F568</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess":true,
"RequestId":"F5E2A1DC-F4E4-42D8-8A03-A0D23F04F568",
"Code":"success"
}
Error codes
For a list of error codes, visit the API Error Center.