--- title: "get-bucket-cors" slug: "cli-objectstorage-api-level-get-bucket-cors" updated: 2026-10-08T09:50:40Z published: 2026-10-08T09:50: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 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/ja/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 } ] } ```