Queries image synchronization tasks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListRepoSyncTask

The operation that you want to perform. Set the value to ListRepoSyncTask.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoNamespaceName String No ns

The name of the namespace to which the repository belongs.

RepoName String No test

The name of the repository.

Tag String No nginx

The image tag.

PageNo Integer No 1

The number of the page to return.

PageSize Integer No 30

The number of entries to return on each page.

SyncRecordId String No crsr-7lph66uloi6h****

The record ID of the synchronization task.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The return value.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned per page.

RequestId String 7640819A-FB5B-4E25-A227-97717F62****

The ID of the request.

SyncTasks Array of SyncTasks

The list of synchronization tasks.

CreateTime Long 1572839126000

The time when the synchronization task was created.

CrossUser Boolean true

Indicates whether images are synchronized across accounts. Valid values:

  • true: Images are synchronized across accounts.
  • false: Images are synchronized in the same account.

Default value: false

ImageFrom Struct

The details about the source image.

ImageTag String v0.1

The tag of the image.

InstanceId String cri-kmsiwlxxdcva****

The ID of the source instance.

RegionId String cn-shanghai

The ID of the region.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The namespace to which the repository belongs.

ImageTo Struct

The details about the destination image.

ImageTag String v0.1

The tag of the image.

InstanceId String cri-k77rd2eo9zttneqo

The ID of the destination instance.

RegionId String cn-shenzhen

The ID of the region.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The namespace to which the repository belongs.

ModifedTime Long 1572839133000

The time when the synchronization task was modified.

SyncBatchTaskId String 15DEEB56-9271-4FDD-AC4D-C3A5CC2C****

The ID of the synchronization task for the batch layer.

SyncRuleId String crsr-7lph66uloi6h****

The ID of the synchronization rule.

SyncTaskId String rst-4kfd7fk6pohk****

The ID of the synchronization task.

TaskStatus String SUCCESS

The status of the synchronization task.

TaskTrigger String PASSIVE

The policy applied to trigger the synchronization rule.

TotalCount String 1

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListRepoSyncTask
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>7640819A-FB5B-4E25-A227-97717F62****</RequestId>
<PageNo>1</PageNo>
<SyncTasks>
    <SyncRuleId>crsr-7lph66uloi6h****</SyncRuleId>
    <TaskTrigger>PASSIVE</TaskTrigger>
    <CrossUser>true</CrossUser>
    <CreateTime>1572839126000</CreateTime>
    <SyncBatchTaskId>15DEEB56-9271-4FDD-AC4D-C3A5CC2C****</SyncBatchTaskId>
    <TaskStatus>SUCCESS</TaskStatus>
    <SyncTaskId>rst-4kfd7fk6pohk****</SyncTaskId>
    <ModifedTime>1572839133000</ModifedTime>
    <ImageFrom>
        <RepoNamespaceName>test</RepoNamespaceName>
        <ImageTag>v0.1</ImageTag>
        <InstanceId>cri-kmsiwlxxdcva****</InstanceId>
        <RepoName>test</RepoName>
        <RegionId>cn-shanghai</RegionId>
    </ImageFrom>
    <ImageTo>
        <RepoNamespaceName>test</RepoNamespaceName>
        <ImageTag>v0.1</ImageTag>
        <InstanceId>cri-k77rd2eo9zttneqo</InstanceId>
        <RepoName>test</RepoName>
        <RegionId>cn-shenzhen</RegionId>
    </ImageTo>
</SyncTasks>
<Code>success</Code>

JSON format

{
    "IsSuccess": true,
    "TotalCount": 1,
    "PageSize": 30,
    "RequestId": "7640819A-FB5B-4E25-A227-97717F62****",
    "PageNo": 1,
    "SyncTasks": {
        "SyncRuleId": "crsr-7lph66uloi6h****",
        "TaskTrigger": "PASSIVE",
        "CrossUser": true,
        "CreateTime": 1572839126000,
        "SyncBatchTaskId": "15DEEB56-9271-4FDD-AC4D-C3A5CC2C****",
        "TaskStatus": "SUCCESS",
        "SyncTaskId": "rst-4kfd7fk6pohk****",
        "ModifedTime": 1572839133000,
        "ImageFrom": {
            "RepoNamespaceName": "test",
            "ImageTag": "v0.1",
            "InstanceId": "cri-kmsiwlxxdcva****",
            "RepoName": "test",
            "RegionId": "cn-shanghai"
        },
        "ImageTo": {
            "RepoNamespaceName": "test",
            "ImageTag": "v0.1",
            "InstanceId": "cri-k77rd2eo9zttneqo",
            "RepoName": "test",
            "RegionId": "cn-shenzhen"
        }
    },
    "Code": "success"
}

Error codes

For a list of error codes, visit API Error Center.