

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 키스페이스의 태그 보기
<a name="Tagging.Operations.view.keyspace"></a>

다음 예제에서는 콘솔, CQL 또는 AWS CLI를 사용하여 태그를 읽는 방법을 보여줍니다.

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

**Amazon Keyspaces 콘솔을 사용하여 키스페이스의 태그 보기**

1. 에 로그인 AWS Management Console하고 [https://console.aws.amazon.com/keyspaces/home](https://console.aws.amazon.com/keyspaces/home) Amazon Keyspaces 콘솔을 엽니다.

1. 탐색 창에서 **Keyspaces**를 선택합니다.

1. 목록에서 키스페이스를 선택합니다. 그런 다음 키스페이스의 태그를 볼 수 있는 **태그** 탭을 선택합니다.

------
#### [ Cassandra Query Language (CQL) ]

**CQL을 사용하여 키스페이스의 태그 보기**

키스페이스에 첨부된 태그를 읽으려면 다음 CQL 문을 사용합니다.

```
SELECT * FROM system_schema_mcs.tags WHERE valid_where_clause;
```

이 `WHERE` 절은 필수이며 다음 형식 중 하나를 사용해야 합니다.
+ `keyspace_name = 'mykeyspace' AND resource_type = 'keyspace'`
+ `resource_id = arn`
+ 다음 문은 키스페이스에 태그가 있는지 여부를 보여 줍니다.

  ```
  SELECT * FROM system_schema_mcs.tags WHERE keyspace_name = 'mykeyspace' AND resource_type = 'keyspace';
  ```

  쿼리의 출력은 다음과 같습니다.

  ```
  resource_id                                                      | keyspace_name | resource_name | resource_type | tags
  -----------------------------------------------------------------+---------------+---------------+---------------+------
  arn:aws:cassandra:us-east-1:111122223333:/keyspace/mykeyspace/      | mykeyspace    | mykeyspace    | keyspace      | {'key1': 'val1', 'key2': 'val2'}
  ```

------
#### [ CLI ]

**를 사용하여 키스페이스의 태그 보기 AWS CLI**
+ 이 예제에서는 지정된 리소스의 태그를 나열하는 방법을 보여줍니다.

  ```
  aws keyspaces list-tags-for-resource --resource-arn 'arn:aws:cassandra:us-east-1:111122223333:/keyspace/myKeyspace/'
  ```

  마지막 명령의 출력은 다음과 같습니다.

  ```
  {
      "tags": [
          {
              "key": "key1",
              "value": "val1"
          },
          {
              "key": "key2",
              "value": "val2"
          },
          {
              "key": "key3",
              "value": "val3"
          },
          {
              "key": "key4",
              "value": "val4"
          }
      ]
  }
  ```

------