云空间服务 KOODRIVE-获取文件详情:响应示例

时间:2024-10-25 10:26:02

响应示例

状态码: 200

文件详情

{
  "id" : "FtSCRFXCYtFjo315lPfRHeKRiqrDdmm_Y",
  "fileName" : "下载_20231213_160540.png",
  "mimeType" : "image/png",
  "fileSuffix" : "png",
  "recycled" : false,
  "size" : 81243,
  "parentFolder" : [ "DEUI7pa0C24ArootIAADfsBFCO6WtAtuA315074383680425b8aa9a130cba2d4" ],
  "containers" : [ "IAADfsBFCO6WtAtuA315074383680425b8aa9a130cba2d4" ],
  "properties" : {
    "localCreatedAt" : "",
    "localUpdatedAt" : "",
    "createUser" : "369528171409614001",
    "lastEditUser" : "369528171409614001"
  },
  "attachments" : [ {
    "asset" : {
      "id" : "1310155787561278720",
      "versionId" : "1310155787561278721",
      "version" : 612304,
      "mimeType" : "image/png",
      "state" : 0,
      "createdTime" : "2023-12-13T08:05:40.655Z",
      "modifiedTime" : "2023-12-13T08:05:40.655Z",
      "resource" : {
        "id" : "1275457496273837312",
        "length" : 81243,
        "sha256" : "f08b00d63f9109fda252e45cc70e2762347907aba7c5dea4de7eb179ddad1ab2",
        "object" : {
          "id" : "b91e8df8afba4145a310dde1bfb9f8c5086",
          "start" : 0,
          "downloadUrl" : {
            "url" : "https://b10-obs-ykj-uat-01.obs.cidc-rp-2006.joint.cmecloud.cn/b91e8df8afba4145a310dde1bfb9f8c5086?response-content-disposition=attachment%3B%20filename%3D%22%25E4%25B8%258B%25E8%25BD%25BD_20231213_160540.png%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231227T073619Z&X-Amz-SignedHeaders=host&X-Amz-Expires=10000&X-Amz-Credential=MKRISPBZAJWFHNBJ5WLB%2F20231227%2Fcidc-rp-2006%2Fs3%2Faws4_request&X-Amz-Signature=6fc56f74a9478e088e1e044f453c33f8cc7b403f4478d3aefd923449349373e4",
            "method" : "GET"
          }
        }
      },
      "attributes" : {
        "fileName" : "下载.png",
        "localCreatedAt" : "",
        "createdBy" : "40086000004871666",
        "resource" : {
          "id" : "1275457496273837312",
          "object" : {
            "bucket" : "b10-obs-ykj-uat-01",
            "objectId" : "b91e8df8afba4145a310dde1bfb9f8c5086"
          }
        },
        "localUpdatedAt" : ""
      }
    },
    "hash" : "f08b00d63f9109fda252e45cc70e2762347907aba7c5dea4de7eb179ddad1ab2",
    "usage" : "content",
    "sha256" : "f08b00d63f9109fda252e45cc70e2762347907aba7c5dea4de7eb179ddad1ab2"
  } ],
  "owners" : [ {
    "category" : "drive#user",
    "me" : true,
    "permissionId" : "1243622029865966464",
    "userId" : "NDEzMDA4NjAwMDAwMjc0MTY2NS00MDA4NjAwMDAwNDg3MTY2Ng",
    "displayName" : "租户管理员"
  } ],
  "lastEditor" : {
    "category" : "drive#user",
    "me" : true,
    "permissionId" : "1243622029865966464",
    "userId" : "NDEzMDA4NjAwMDAwMjc0MTY2NS00MDA4NjAwMDAwNDg3MTY2Ng",
    "displayName" : "租户管理员"
  },
  "fileType" : "15",
  "createdTime" : "2023-12-13T08:05:40.601Z",
  "editedTime" : "2023-12-13T08:05:41.054Z",
  "code" : 0,
  "msg" : "Success."
}
support.huaweicloud.com/api-koodrive/getFile.html