tencent cloud

Cloud Object Storage

Get Space Extension

Download
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-08-25 14:58:28
Diterjemahkan oleh AI

Overview

Query the extended attributes of a specified Space.

Request

Request Syntax

GET /<SpaceId>/?space-extension HTTP/1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Authorization: Auth String
Note:
SpaceId: It corresponds to the first-level directory of an ObjectKey. To create the corresponding SpaceId, you must first upload an empty first-level directory object using the PUT Object API.
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com. Here, <BucketName-APPID> is the bucket name with the APPID suffix, for example, smhxxxxxxxxxxxxx-1250000000. <Region> is the available region. For details, see Product Overview.
Authorization: Auth String (For details, see Request Signature).

Request Parameters

This API has no request parameters.

Request Body

This API has no request body.

Response

Response Headers

This API only returns common response headers. For details, see Common Response Headers.

Response Body

The request is successful, returning application/xml data that contains the extended attributes of the Space.
<SpaceExtension>
<IsPublicRead>false</IsPublicRead>
<RecognizeSensitiveContent>false</RecognizeSensitiveContent>
<SpaceTag>personal</SpaceTag>
</SpaceExtension>
The detailed node descriptions are as follows:
Node Name (Keyword)
Parent Node
Description
Type
SpaceExtension
None
Stores all information for the Get Space Extension result.
Container
The content of the Container node SpaceExtension:
Node Name (Keyword)
Parent Node
Description
Type
IsPublicRead
SpaceExtension
Whether public read is enabled. When a Space is set to public read, some read APIs do not require an access token when the Space is requested through the SMH interface. For details, see Query Tenant Space Properties.
Boolean
RecognizeSensitiveContent
SpaceExtension
Whether to detect sensitive content
Boolean
SpaceTag
SpaceExtension
Space Tag
string

Examples

Request

GET /test-space/?space-extension HTTP/1.1
Host: smhxxx-1250000000.cos.ap-chengdu.myqcloud.com
Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1566302375;1566309575&q-key-time=1566302375;1566309575&q-header-list=content-length;content-md5;content-type;date;host&q-url-param-list=delete&q-signature=****************************************


Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 118
Date: Tue, 20 Aug 2019 11:59:35 GMT
x-cos-request-id: NWQ1YmUwYTdfM2FiMDJhMDlfYzczN18zMGM1****

<SpaceExtension>
<IsPublicRead>false</IsPublicRead>
<RecognizeSensitiveContent>false</RecognizeSensitiveContent>
<SpaceTag>personal</SpaceTag>
</SpaceExtension>


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan