--- title: "get-bucket-location" slug: "get-bucket-location" updated: 2026-10-08T09:47:25Z published: 2026-10-08T09:47:25Z canonical: "cli.ncloud-docs.com/get-bucket-location" --- > ## 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-location Classic/VPC環境で利用できます。 Ncloud Storageバケットのリージョン情報を照会します。 参考 Sub Accountユーザーがこのコマンドを実行するには、View/GetBucketLocationアクションの権限が必要です。 ## 構文 `get-bucket-location`構文は次の通りです。 ``` aws s3api get-bucket-location \ --bucket \ --endpoint-url ``` ## オプション `get-bucket-location`の実行時に指定できるオプションについて説明します。 ### 必須オプション `get-bucket-location`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--bucket` | String | Required | バケット名 | ### 共通オプション `aws`コマンドで共通して使用するオプションについては、[Ncloud Storageのオプション](/docs/ja/storage-ncloudstorage#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 バケットリージョンの照会リクエストが成功すると、バケットが所在するリージョン情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` aws s3api get-bucket-location --bucket my-test-bucket \ --endpoint-url=https://kr.ncloudstorage.com ``` ### 出力 出力の例は次の通りです。 ``` { "LocationConstraint": "kr" } ``` ## 関連コマンド 関連コマンドは次の通りです。 - [get-object](/docs/ja/get-object) - [create-bucket](/docs/ja/create-bucket)