Queries an image synchronization task 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 GetRepoSyncTask

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

InstanceId String Yes cri-sgedpenzw80e3m3p

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

SyncTaskId String Yes rst-zxjkiv5oil6fki5j

The ID of the synchronization task.

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 A6DEF8B0-5D45-46D6-867D-8C7FF0966B07

The ID of the request.

SyncTaskId String rst-zxjkiv5oil6fki5j

The ID of the synchronization task.

TaskStatus String SUCCESS

The status of the synchronization task.

TaskTrigger String null

The policy used to trigger the synchronization task.

SyncRuleId String crsr-cllro6ho3wne7nk4

The ID of the synchronization rule.

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

[DO NOT TRANSLATE]

Progress Long 1

The progress of the synchronization task.

SyncedSize Long 23655489

The size of the image that has been synchronized.

LayerTasks Array

Synchronization tasks for image layers.

SyncLayerTaskId String rslt-074x4q20fx2dv809

The ID of the synchronization task for the image layer.

TaskStatus String SUCCESS

The status of the synchronization task.

Digest String sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e

The digest of the image layer.

Size Long 23655489

The size of the image layer.

SyncedSize Long 23655489

The size of the image layer that has been synchronized.

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 master

The tag of the image.

InstanceId String cri-sgedpenzw80e3m3p

The ID of the source instance.

ImageTo Struct

The target address of the image.

RegionId String eu-west-1

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 master

The tag of the image.

InstanceId String cri-leqzomz5vijc7dfa

The ID of the target instance.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetRepoSyncTask
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&SyncTaskId=rst-zxjkiv5oil6fki5j
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "ImageFrom":{
        "RepoNamespaceName":"test",
        "ImageTag":"master",
        "InstanceId":"cri-sgedpenzw80e3m3p",
        "RepoName":"test",
        "RegionId":"cn-shanghai"
    },
    "SyncRuleId":"crsr-cllro6ho3wne7nk4",
    "Progress":1.0,
    "RequestId":"A6DEF8B0-5D45-46D6-867D-8C7FF0966B07",
    "LayerTasks":[
        {
            "Digest":"sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e",
            "Size":23655489,
            "TaskStatus":"SUCCESS",
            "SyncLayerTaskId":"rslt-074x4q20fx2dv809",
            "SyncedSize":23655489
        }
    ],
    "ImageTo":{
        "RepoNamespaceName":"test",
        "ImageTag":"master",
        "InstanceId":"cri-leqzomz5vijc7dfa",
        "RepoName":"test",
        "RegionId":"eu-west-1"
    },
    "SyncBatchTaskId":"a9434731-95ef-4087-9cf4-369c8e90a66b",
    "TaskStatus":"SUCCESS",
    "Code":"success",
    "SyncTaskId":"rst-zxjkiv5oil6fki5j",
    "SyncedSize":23655489
}

XML format

<IsSuccess>true</IsSuccess>
<ImageFrom>
    <RepoNamespaceName>test</RepoNamespaceName>
    <ImageTag>master</ImageTag>
    <InstanceId>cri-sgedpenzw80e3m3p</InstanceId>
    <RepoName>test</RepoName>
    <RegionId>cn-shanghai</RegionId>
</ImageFrom>
<SyncRuleId>crsr-cllro6ho3wne7nk4</SyncRuleId>
<Progress>1</Progress>
<RequestId>A6DEF8B0-5D45-46D6-867D-8C7FF0966B07</RequestId>
<LayerTasks>
    <Digest>sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e</Digest>
    <Size>23655489</Size>
    <TaskStatus>SUCCESS</TaskStatus>
    <SyncLayerTaskId>rslt-074x4q20fx2dv809</SyncLayerTaskId>
    <SyncedSize>23655489</SyncedSize>
</LayerTasks>
<ImageTo>
    <RepoNamespaceName>test</RepoNamespaceName>
    <ImageTag>master</ImageTag>
    <InstanceId>cri-leqzomz5vijc7dfa</InstanceId>
    <RepoName>test</RepoName>
    <RegionId>eu-west-1</RegionId>
</ImageTo>
<SyncBatchTaskId>a9434731-95ef-4087-9cf4-369c8e90a66b</SyncBatchTaskId>
<TaskStatus>SUCCESS</TaskStatus>
<Code>success</Code>
<SyncTaskId>rst-zxjkiv5oil6fki5j</SyncTaskId>
<SyncedSize>23655489</SyncedSize>

Error codes

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