

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Amazon OpenSearch Serverless コレクショングループの管理
<a name="manage-collection-group"></a>

Amazon OpenSearch Serverless コレクショングループを作成したら、ニーズの変化に応じて設定を変更できます。これらの管理オペレーションを使用して、容量制限を更新し、コレクショングループの詳細を表示します。これらの変更は、リソースの割り当てを最適化し、コレクションの効率的な整理を維持するのに役立ちます。

## コレクショングループを表示する
<a name="view-collection-groups"></a>

OpenSearch Serverless コレクショングループを表示して、設定、関連するコレクション、現在のステータスを確認します。

------
#### [ Console ]

1. [https://console.aws.amazon.com/aos/](https://console.aws.amazon.com/aos/) で Amazon OpenSearch Service コンソールを開きます。

1. 左側のナビゲーションペインで、**サーバーレス**を選択し、**コレクションを選択します。**

1. **コレクショングループタブ**を選択します。アカウントのコレクショングループが表示されます。

1.  コレクショングループ**の名前**を選択して詳細を表示します。

------
#### [ AWS CLI ]
+ [list-collection-groups](https://docs.aws.amazon.com/cli/latest/reference/opensearchserverless/list-collection-groups.html) コマンドを使用して、アカウント内のすべてのコレクショングループを一覧表示します。batch[batch-get-collection-group](https://docs.aws.amazon.com/cli/latest/reference/opensearchserverless/batch-get-collection-group.html) コマンドを使用して、特定のコレクショングループの詳細を表示します。次のコマンドでは、*サンプル*コンテンツを独自の特定の情報に置き換えます。

  すべてのコレクショングループを一覧表示するには:

  ```
  aws opensearchserverless list-collection-groups
  ```

  特定のコレクショングループの詳細を取得するには:

  ```
  aws opensearchserverless batch-get-collection-group \
      --names my-collection-group another-group
  ```

------

## コレクショングループ設定の更新
<a name="update-collection-group"></a>

OpenSearch Serverless コレクショングループ設定を更新して、容量制限や説明などの設定を変更します。

------
#### [ Console ]

1. [https://console.aws.amazon.com/aos/](https://console.aws.amazon.com/aos/) で Amazon OpenSearch Service コンソールを開きます。

1. 左側のナビゲーションペインで、**サーバーレス**を選択し、**コレクションを選択します。**

1. **コレクショングループタブ**を選択します。アカウントのコレクショングループが表示されます。

1.  コレクショングループ**の名前**を選択して詳細を表示します。

1. **コレクショングループの詳細**で、**編集** を選択します。

1. 変更を加え、**保存**を選択します。

------
#### [ AWS CLI ]
+ [update-collection-group](https://docs.aws.amazon.com/cli/latest/reference/opensearchserverless/update-collection-group.html) コマンドを使用して、既存のコレクショングループの説明と容量制限を更新します。次のコマンドで、*サンプル*コンテンツをユーザー自身の情報に置き換えます。

  ```
  aws opensearchserverless update-collection-group \
      --id abcdef123456 \
      --description "Updated description for production workloads" \
      --capacity-limits maxIndexingCapacityInOCU=30,maxSearchCapacityInOCU=30,minIndexingCapacityInOCU=4,minSearchCapacityInOCU=4
  ```

------

容量制限の変更はすぐに有効になり、グループ内のコレクションのスケーリング動作に影響を与える可能性があります。

## コレクショングループを削除する
<a name="delete-collection-group"></a>

コレクショングループを削除する前に、まずグループからすべてのコレクションを削除する必要があります。コレクションを含むコレクショングループを削除することはできません。

------
#### [ Console ]

1. [https://console.aws.amazon.com/aos/](https://console.aws.amazon.com/aos/) で Amazon OpenSearch Service コンソールを開きます。

1. 左側のナビゲーションペインで、**サーバーレス**を選択し、**コレクションを選択します。**

1. **コレクショングループタブ**を選択します。アカウントのコレクショングループが表示されます。

1.  削除するコレクショングループ**の名前**を選択します。
**重要**  
コレクショングループからすべてのコレクションを削除するには、各コレクションを更新してコレクショングループの関連付けを削除するか、他のコレクショングループに移動します。

1. ページの上部で、[**削除**] を選択します。

1. 削除を確定し、**削除**を選択します。

------
#### [ AWS CLI ]
+ delete[delete-collection-group](https://docs.aws.amazon.com/cli/latest/reference/opensearchserverless/delete-collection-group.html) コマンドを使用して、コレクショングループを削除します。
**重要**  
コレクショングループからすべてのコレクションを削除するには、各コレクションを更新してコレクショングループの関連付けを削除するか、他のコレクショングループに移動します。

  次のコマンドで、*サンプル*コンテンツをユーザー自身の情報に置き換えます。

  空のコレクショングループを削除します。

  ```
  aws opensearchserverless delete-collection-group \
      --id abcdef123456
  ```

------