Creates a synchronization task for an image repository based on a synchronization rule (manual synchronization rules only).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateRepositorySync |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-hpdfkc6utbaq**** |
| RepoId |
string |
Yes |
The image repository ID. |
crr-hnoq7j93or3k**** |
| Tag |
string |
Yes |
The image version to be synchronized. |
1.24 |
| SyncRuleId |
string |
Yes |
The synchronization rule ID. |
crsr-o8n4dijbumgq**** |
| Priority |
integer |
No |
The execution priority of the synchronization task. Synchronization tasks are executed in descending order of priority. Synchronization tasks with the same priority are executed in random order. Valid values: 1 to 5. Default value: 3. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the API call is successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
17A4C658-AE8F-4A08-821F-EDCB5FC74EE8 |
| SyncTaskId |
string |
The synchronization task ID. |
rst-biu4u4pm4it5**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "17A4C658-AE8F-4A08-821F-EDCB5FC74EE8",
"SyncTaskId": "rst-biu4u4pm4it5****"
}
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.