getObjectStorageBucketDetail
- 印刷する
- PDF
getObjectStorageBucketDetail
- 印刷する
- PDF
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
VPC環境で利用できます。
Notebook連携バケットの詳細情報を確認します。
リクエスト
リクエストヘッダ
リクエストボディ
- JSON
{ "bucketName": "string" }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetBucketDetailRequest> <bucketName>string</bucketName> </GetBucketDetailRequest>
レスポンス
レスポンスボディ
- JSON
{ "success": true, "message": "success", "name": "string", "resourceId": "string", "objectCount": 0, "bytesUsed": 0, "bucketProtectionState": "string", "storageLocation": "string", "staticWebsiteEnabled": true, "sseKmsEnabled": true, "createdAt": "2023-11-20T05:03:57.736Z" }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetBucketDetailResponse> <success>true</success> <message>success</message> <name>string</name> <resourceId>string</resourceId> <objectCount>0</objectCount> <bytesUsed>0</bytesUsed> <bucketProtectionState>string</bucketProtectionState> <storageLocation>string</storageLocation> <staticWebsiteEnabled>true</staticWebsiteEnabled> <sseKmsEnabled>true</sseKmsEnabled> <createdAt>2023-11-20T05:07:11.495Z</createdAt> </GetBucketDetailResponse>
エラーコード
例
リクエスト例
POST http://ctrl.kr.df.beta.naverncp.com/api/v2/notebooks/getObjectStorageBucketDetail
HOST: ctrl.kr.df.beta.naverncp.com
Content-Type: application/json
X-NCP-MBR_NO: 1814'
X-NCP-REQUEST_TYPE_CODE: CONSOLE
X-NCP-USER_TYPE: Customer
X-NCP-AUTH_TOKEN: mymO8sbEsfHbARKic3XDOEvoud650ZqAIFNHxfSD8FKccaS0HqVaRN2tcY9pBAO3Ar1m+etW/qlNdQhiCCYrHzwAeYAqCS9YOzwiQ4CIW+pmZf9t4fV3aoPDpqWTJRHGc82LK9AR5BPDenzNg==
X-NCP-IAM-ACCESS-KEY: 17F9A6E9F72BD92ED94B
X-NCP-REGION_CODE: KR
X-NCP-LANG: en-US
X-NCP-USER_REQ_ID: ad3d0dd0-cd48-11ed-afa1-0242ac120002
{
"bucketName": "test"
}
curl -X 'POST' \
'http://ctrl.kr.df.beta.naverncp.com/api/v2/notebooks/getObjectStorageBucketDetail' \
-H 'accept: application/json' \
-H 'X-NCP-MBR_NO: 1814' \
-H 'X-NCP-REQUEST_TYPE_CODE: CONSOLE' \
-H 'X-NCP-USER_TYPE: Customer' \
-H 'X-NCP-AUTH_TOKEN: mymO8sbEsfH2Zgxdr8kE5xdPrsODgcCuuUJM4Ob1rMGVovTQdggukVM0dnmA1k2gtIWrlLkqprHf07833+Koa9Lzj2ccvC6F1M50/TDpCQDEqkUNmvAsqeGz6LTwTlO0BeIHIdPBufCbARKic3XDOEvoud650ZqAIFNHxfSD8FKccaS0HqVaRN2tcY9pBAO3Ar1m+etW/qlNdQhiCCYrHzwAeYAqCS9YOzwiQ4CIW+pmZf9t4fV3aoPDpqWTJRHGc82LK9AR5BPDenzNg==' \
-H 'X-NCP-IAM-ACCESS-KEY: 17F9A6E9F72BD92ED94B' \
-H 'X-NCP-REGION_CODE: KR' \
-H 'X-NCP-LANG: en-US' \
-H 'X-NCP-USER_REQ_ID: ad3d0dd0-cd48-11ed-afa1-0242ac120002' \
-H 'Content-Type: application/json' \
-d '{
"bucketName": "test"
}'
レスポンス例
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "name": "test", "resourceId": "Bucket/dohbot/16431166306", "objectCount": 15, "bytesUsed": 732787, "bucketProtectionState": "DISABLED", "storageLocation": "beta-kr01-container", "staticWebsiteEnabled": true, "sseKmsEnabled": false, "createdAt": "2022-01-25T21:06:06.306" }
この記事は役に立ちましたか?