调用CreateLifecycleRetrieveJob接口创建数据取回任务。

接口说明

每个阿里云账号在同一地域最多允许存在20个运行中状态的数据取回任务。

调试

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

请求参数

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

接口名称。固定取值:CreateLifecycleRetrieveJob。

FileSystemId String 31a8e4****

文件系统ID。

  • 通用型NAS:31a8e4****。
  • 极速型NAS:必须以extreme-开头,例如extreme-0015****。
Paths.N String ["/pathway/doc1","/pathway/doc2"]

指定取回的目录或文件。

必须以正斜线(/)开头,并且是挂载点中真实存在的路径。N为目录或文件的数量,N取值范围为1~10。

返回数据

名称 类型 示例值 描述
RequestId String BC7C825C-5F65-4B56-BEF6-98C56C7C****

请求ID。

JobId String lrj-nfstest-ia-160****853-hshvw

数据取回任务ID。

示例

请求示例

http(s)://[Endpoint]/?Action=CreateLifecycleRetrieveJob
&FileSystemId=31a8e4****
&Paths=["/pathway/doc1","/pathway/doc2"]
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateLifecycleRetrieveJobResponse>
    <RequestId>BC7C825C-5F65-4B56-BEF6-98C56C7C****</RequestId>
    <JobId>lrj-nfstest-ia-160****853-hshvw</JobId>
</CreateLifecycleRetrieveJobResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "BC7C825C-5F65-4B56-BEF6-98C56C7C****",
  "JobId" : "lrj-nfstest-ia-160****853-hshvw"
}

错误码

HttpCode 错误码 错误信息 描述
400 OperationDenied.FileSystemNotSupportedForLifecycle The file system does not support lifecycle. 指定的文件系统不支持生命周期管理。
400 OperationDenied.EncryptedFileSystemNotSupportedForLifecycle The encrypted file system does not support lifecycle. 加密的文件系统不支持生命周期管理。
400 OperationDenied.LifecycleRetrieveJobCountLimitExceeded The maximum number of LifecycleRetrieveJobs is exceeded. 数据取回任务数量达到上限。
404 InvalidFileSystem.NotFound The specified file system does not exist. 指定的文件系统不存在。
404 InvalidParameter.PathNotExist The specified path does not exist. 指定的路径不存在。

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