Creating an Automatic Image Synchronization Task
Function
Create an automatic image synchronization task.
URI
POST /v2/manage/namespaces/{namespace}/repos/{repository}/sync_repo
Table 1 describes the parameters.
Request
Request parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| remoteRegionId | Yes | String | Target region ID |
| remoteNamespace | Yes | String | Target organization |
| syncAuto | No | Bool | (Reserved field) Automatic synchronization. You are recommended to retain the default value false. |
| override | No | Bool | Whether to overwrite. The default value is false, which indicates not to overwrite any nonidentical image that has the same name in the target organization. |
{
"remoteRegionId": "cn-north-208",
"remoteNamespace": "sdsad",
"syncAuto": true,
"override": true
} Response
NA
Status Code
Table 3 describes the status codes of this API.
Last Article: Obtaining the List of Automatic Image Synchronization Tasks
Next Article: Deleting an Automatic Image Synchronization Task
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.