--- title: "get-bucket-cors" slug: "cli-objectstorage-api-level-get-bucket-cors" updated: 2026-10-08T05:01:40Z published: 2026-10-08T05:01:40Z 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 Available in Classic and VPC Get the CORS rules configured for a bucket. ## Syntax The `get-bucket-cors` syntax is as follows: ``` aws s3api get-bucket-cors \ --bucket \ --endpoint-url ``` ## Options This section describes the options available when running `get-bucket-cors`. ### Required options The following options are required for `get-bucket-cors`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--bucket` | String | Required | Bucket name | ### Common options For information about the options common to all `aws` subcommands, see [Object Storage options](/docs/en/guide-objectstorage#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve CORS rules is successful, information about the allow conditions for each rule configured in the bucket is returned. ### Command The command example is as follows: ``` aws s3api get-bucket-cors --bucket my-test-bucket \ --endpoint-url=https://kr.object.ncloudstorage.com ``` ### Output The output example is as follows: ``` { "CORSRules": [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "GET", "PUT" ], "AllowedOrigins": [ "*" ], "MaxAgeSeconds": 3000 } ] } ```