--- title: "get-bucket-cors" slug: "cli-objectstorage-api-level-get-bucket-cors" updated: 2026-09-17T09:16:11Z published: 2026-09-17T09:16:11Z canonical: "cli.ncloud-docs.com/cli-objectstorage-api-level-get-bucket-cors" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # get-bucket-cors Classic/VPC 환경에서 이용 가능합니다. 버킷에 설정된 CORS 규칙을 조회합니다. ## 구문 `get-bucket-cors` 구문은 다음과 같습니다. ``` aws s3api get-bucket-cors \ --bucket \ --endpoint-url ``` ## 옵션 `get-bucket-cors` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `get-bucket-cors`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--bucket` | String | Required | 버킷 이름 | ### 공통 옵션 `aws` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Object Storage 옵션](/docs/guide-objectstorage#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 CORS 규칙 조회 요청이 성공하면 버킷에 설정된 각 규칙의 허용 조건 정보가 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` aws s3api get-bucket-cors --bucket my-test-bucket \ --endpoint-url=https://kr.object.ncloudstorage.com ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "CORSRules": [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "GET", "PUT" ], "AllowedOrigins": [ "*" ], "MaxAgeSeconds": 3000 } ] } ```