弹性文件服务 SFS-获取文件系统异步任务详情:响应示例

时间:2024-11-18 17:16:10

响应示例

状态码: 200

成功

{
  "task_id" : "2b31ed520xxxxxxebedb6e57xxxxxxxx",
  "status" : "SUC CES S",
  "dir_usage" : {
    "path" : "/path",
    "used_capacity" : 0,
    "file_count" : {
      "dir" : 0,
      "regular" : 0,
      "pipe" : 0,
      "char" : 0,
      "block" : 0,
      "socket" : 0,
      "symlink" : 0
    },
    "message" : ""
  },
  "begin_time" : "2023-03-01 11:46:01",
  "end_time" : "2023-03-01 11:46:01"
}

状态码: 400

错误响应

{
  "errCode" : "SFS.TURBO.0123",
  "errMsg" : "feature invalid"
}

状态码: 404

错误响应

{
  "errCode" : "SFS.TURBO.0124",
  "errMsg" : "task_id not found"
}

状态码: 500

错误响应

{
  "errCode" : "SFS.TURBO.0005",
  "errMsg" : "Internal server error"
}
support.huaweicloud.com/api-sfs/ShowFsTask.html