Queries image synchronization tasks in an instance.

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-kmsiwlxxdcvaduwb

The ID of the source instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

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-7lph66uloi6h97d8

The ID of a synchronization task record.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String 7640819A-FB5B-4E25-A227-97717F621B35

The ID of the request.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned per page.

TotalCount String 1

The total number of entries returned.

SyncTasks Array

A list of synchronization tasks for the source instance.

SyncTaskId String rst-4kfd7fk6pohk5rzd

The ID of the synchronization task.

TaskStatus String SUCCESS

The status of the task.

TaskTrigger String PASSIVE

The policy applied to trigger the synchronization task.

SyncRuleId String crsr-7lph66uloi6h97d8

The ID of the synchronization rule.

[DO NOT TRANSLATE] [DO NOT TRANSLATE] [DO NOT TRANSLATE]

[DO NOT TRANSLATE]

CreateTime Long 1572839126000

The time when the synchronization task was created.

ModifedTime Long 1572839133000

The time when the synchronization task was modified.

ImageFrom Struct

The source address of the image.

RegionId String cn-shanghai

The ID of the region where the source instance resides.

RepoNamespaceName String test

The name of the source namespace.

RepoName String test

The name of the source repository.

ImageTag String v0.1

The tag of the image.

InstanceId String cri-kmsiwlxxdcvaduwb

The ID of the source instance.

ImageTo Struct

The target address of the image.

RegionId String cn-shenzhen

The ID of the region where the target instance resides.

RepoNamespaceName String test

The name of the target namespace.

RepoName String test

The name of the target repository.

ImageTag String v0.1

The tag of the image.

InstanceId String cri-k77rd2eo9zttneqo

The ID of the target instance.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListRepoSyncTask
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&PageNo=1
&PageSize=30
&<Common request parameters>

Sample success responses

JSON format

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

XML format

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

Error codes

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