Updates a delivery chain, such as the node execution sequence.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:UpdateChain |
update |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-4cdrlqmhn4gm**** |
| ChainId |
string |
Yes |
The ID of the delivery chain. |
chi-02ymhtwl3cq8**** |
| Name |
string |
Yes |
The name of the delivery chain. |
test |
| Description |
string |
No |
The description of the delivery chain. |
description |
| ChainConfig |
string |
Yes |
The configuration of the delivery chain in JSON format. |
chainconfig |
| ScopeExclude |
array |
No |
Repositories in which the delivery chain does not take effect. |
|
|
string |
No |
The names of the repositories in which the delivery chain does not take effect. Separate multiple repository names with commas (,). |
repo_name1,repo_name2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The ID of the request. |
85A99B10-3926-5201-958E-C06FA47F**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "85A99B10-3926-5201-958E-C06FA47F****"
}
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.