调用DescribeAutoSnapshotTasks接口查询自动快照的任务列表。

接口说明

DescribeAutoSnapshotTasks接口仅适用于极速型NAS。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeAutoSnapshotTasks

接口名称。

固定取值:DescribeAutoSnapshotTasks

FileSystemType String extreme

文件系统类型。

取值:extreme(极速型NAS)

FileSystemIds String extreme-233e6****,extreme -23vbp****,extreme -23vas****

目标文件系统ID。

一次调用最多指定100个文件系统ID,当您需要查询多个文件系统的快照时,多个文件系统ID之间用半角逗号(,)隔开。

AutoSnapshotPolicyIds String sp-extreme-233e6****,sp-extreme-233e6****, sp-extreme-233e6****

自动快照策略ID。

最多指定100个自动快照策略ID,当您需要查询多个自动快照策略的任务时,多个自动快照策略ID之间用半角逗号(,)隔开。

PageSize Integer 1

自动快照任务列表的页码。

起始值(默认值):1

PageNumber Integer 10

每个分页包含的快照任务数量。

取值范围:1~100

默认值:10

返回数据

名称 类型 示例值 描述
AutoSnapshotTasks Array of AutoSnapshotTask

自动快照任务信息集合。

AutoSnapshotTask
AutoSnapshotPolicyId String sp-extreme-233e6****

自动快照策略的ID。

SourceFileSystemId String extreme-233e6****

文件系统ID。

PageNumber Integer 1

自动快照任务列表的页码。

PageSize Integer 10

分页查询时设置的每页行数。

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

请求ID。

TotalCount Integer 9

自动快照任务的总个数。

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeAutoSnapshotTasks
&FileSystemType=extreme
&<公共请求参数>

正常返回示例

XML 格式

<TotalCount>9</TotalCount>
<PageSize>10</PageSize>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
<PageNumber>1</PageNumber>
<AutoSnapshotTasks>
    <AutoSnapshotTask>
        <SourceFileSystemId>extreme-233e6****</SourceFileSystemId>
        <AutoSnapshotPolicyId>sp-extreme-233e6****</AutoSnapshotPolicyId>
    </AutoSnapshotTask>
</AutoSnapshotTasks>

JSON 格式

{
    "TotalCount": 9,
    "PageSize": 10,
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
    "PageNumber": 1,
    "AutoSnapshotTasks": {
        "AutoSnapshotTask": {
            "SourceFileSystemId": "extreme-233e6****",
            "AutoSnapshotPolicyId": "sp-extreme-233e6****"
        }
    }
}

错误码

访问错误中心查看更多错误码。