Get Object Metadata

API Description

Get a object metadata.

API Info

API Url Method
https://[HOST]/api/clouddisk-service/clouddisk/object/getmetadata POST
Parameter Value
Authorization Get Token via API (/cas/ebao/v1/json/tickets)

API Parameters

Data format: application/json

Name Type Description Example
bucketName String Bucket name MyBucket
key String file key myfile/cloud.jpg

Successful Response

{
    "status": "Ok",
    "message": null,
    "body": {
        "guid": "xxx",
        "updateDate": "2019-05-07T23:29:36.000Z",
        "bucketName": "xxx",
        "key": "test.png",
        "tenant": "xxx",
        "metadata": {
            "data": {
                ...
            }
        }
    }
}

Failed Response

{
    "status": "Ok",
    "message": null,
    "body": null
}

Exception Response

{
    "status": "Failed",
    "message": "error message",
    "body": null
}

results matching ""

    No results matching ""