getObjectStorageBucketList
- 인쇄
- PDF
getObjectStorageBucketList
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
VPC 환경에서 이용 가능합니다.
Notebook 연동 버킷의 목록을 확인합니다.
요청
요청 헤더
요청 바디
- JSON
{}
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetBucketListRequest> </GetBucketListRequest>
응답
응답 바디
- JSON
{ "success": true, "message": "success", "total": 0, "contents": [ { "name": "string", "resourceId": "string", "objectCount": 0, "bytesUsed": 0, "bucketProtectionState": "string", "createdAt": "2023-11-20T05:42:04.547Z", "disabled": true } ] }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetBucketListResponse> <success>true</success> <message>success</message> <total>0</total> <contents> <name>string</name> <resourceId>string</resourceId> <objectCount>0</objectCount> <bytesUsed>0</bytesUsed> <bucketProtectionState>string</bucketProtectionState> <createdAt>2023-11-20T05:43:52.359Z</createdAt> <disabled>true</disabled> </contents> </GetBucketListResponse>
오류코드
예시
요청 예시
POST http://ctrl.kr.df.beta.naverncp.com/api/v2/notebooks/getObjectStorageBucketList
HOST: ctrl.kr.df.beta.naverncp.com
X-NCP-MBR_NO: 1814
'X-NCP-REQUEST_TYPE_CODE: CONSOLE
X-NCP-USER_TYPE: Customer
X-NCP-AUTH_TOKEN: mymO8sbEsfn12NGz6LTwTlO0BeIHIdPBufCbARKic3XDOEvoud650ZqAIFNHxfSD8FKccaS0HqVaRN2tcY9pBAO3Ar1m+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
Content-Type: application/json
curl -X 'POST' \
'http://ctrl.kr.df.beta.naverncp.com/api/v2/notebooks/getObjectStorageBucketList' \
-H 'accept: application/xml' \
-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/TDp3ZfzYCitm61m3xY56oalcyBFyqCh9lOHMDl5S1d+pSBN+M7TRHfa6n12NGz6LTwTlO0BeIHIdPBufCbARKic3XDOEvoud650ZqAIFNHxfSD8FKccaS0HqVaRN2tcY9pBAO3Ar1m+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 '{}'
응답 예시
HTTP
HTTP Status Description 200 OK BASH
<GetBucketListResponse> <success>true</success> <total>1</total> <contents> <name>datacatalog-c2236-1bbd8dac</name> <resourceId>Bucket/datacatalog-c2236-1bbd8dac/1698384642666</resourceId> <objectCount>1</objectCount> <bytesUsed>195488</bytesUsed> <bucketProtectionState>DISABLED</bucketProtectionState> <createdAt>2023-10-27T14:30:42.666</createdAt> <disabled>false</disabled> </contents> </GetBucketListResponse>
이 문서가 도움이 되었습니까?