Release Notes
Announcements
API | Operation Name | Operation Description |
Querying Metadata of Objects | Query the metadata of an object. |
// Bucket name, which consists of bucketname-appid (appid must be included), can be viewed in the COS console. https://console.tencentcloud.com/cos5/bucketlet bucket = "examplebucket-1250000000";//The location identifier of an object in a bucket, also known as the object keylet cosPath = "exampleobject.txt";let request = new HeadObjectRequest(bucket, cosPath); try { let result = await CosXmlBaseService.default().headObject(request) // The result includes http headers. Headers starting with 'x-cos-meta-*' are the metadata of the Object. } catch (e) { // Exception handling }
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan