Creates a delivery chain.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateChain |
create |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-4cdrlqmhn4gm**** |
| RepoName |
string |
No |
The repository name. |
repo1 |
| RepoNamespaceName |
string |
No |
The namespace name. |
ns1 |
| Name |
string |
Yes |
The name of the delivery chain. |
test |
| Description |
string |
No |
The description of the delivery chain. |
description |
| ChainConfig |
string |
No |
The JSON-serialized entity object that describes the delivery chain. |
chainconfig |
| ScopeExclude |
array |
No |
The collection of repositories excluded from the delivery chain execution. |
|
|
string |
No |
The repository names excluded from the delivery chain execution. Separate multiple repository names with commas (,). |
repo_name1,repo_name2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. |
success |
| ChainId |
string |
The delivery chain ID. |
chi-02ymhtwl3cq8**** |
| IsSuccess |
boolean |
Indicates whether the operation is successful. |
true |
| RequestId |
string |
The request ID. |
4BC03B36-E515-5806-99AC-268AE3C0**** |
Examples
Success response
JSON format
{
"Code": "success",
"ChainId": "chi-02ymhtwl3cq8****",
"IsSuccess": true,
"RequestId": "4BC03B36-E515-5806-99AC-268AE3C0****"
}
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.