Help Center> SoftWare Repository for Container> API Reference> API> Obtaining the List of Automatic Image Synchronization Tasks

Obtaining the List of Automatic Image Synchronization Tasks

Function

Obtain the list of automatic image synchronization tasks.

URI

GET /v2/manage/namespaces/{namespace}/repos/{repository}/sync_repo

Table 1 describes the parameters.

Table 1 Parameter description

Parameter

Mandatory

Type

Description

namespace

Yes

String

Organization name

repository

Yes

String

Image repository name

Request

Request parameters

NA

Response

Response parameters

Table 2 Response body parameter description

Parameter

Type

Description

createdAt

String

Creation time

domainID

String

Account ID

domainName

String

Account name

id

Interger

ID

namespace

String

Organization name

override

Bool

Whether to overwrite

remoteNamespace

String

Target organization

remoteRegionId

String

Target region

repoName

String

Repository name

syncAuto

Bool

Automatic synchronization

updatedAt

String

Update time

Response example

[
    {
        "createdAt": "2020-04-17T02:11:03.53183Z",
        "domainID": "8b1e81************************633fb",
        "domainName": "p*********59",
        "id": 45,
        "namespace": "test",
        "override": true,
        "remoteNamespace": "sdsad",
        "remoteRegionId": "cn-north-1",
        "repoName": "grpc-helloworld",
        "syncAuto": true,
        "updatedAt": "2020-04-17T02:11:03.531831Z"
    }
]

Status Code

Table 3 describes the status codes of this API.

Table 3 Status code

Status Code

Description

200

Operation succeeded.

400

Request error.

401

Authentication failed.

404

The organization or the repository does not exist.

500

Failed to complete the request because of an internal service error.