Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

View the tags of a keyspace

Focus mode
View the tags of a keyspace - Amazon Keyspaces (for Apache Cassandra)

The following examples show how to read tags using the console, CQL or the AWS CLI.

Console
View the tags of a keyspace using the Amazon Keyspaces console
  1. Sign in to the AWS Management Console, and open the Amazon Keyspaces console at https://console.aws.amazon.com/keyspaces/home.

  2. In the navigation pane, choose Keyspaces.

  3. Choose a keyspace from the list. Then choose the Tags tab where you can view the tags of the keyspace.

Cassandra Query Language (CQL)
View the tags of a keyspace using CQL

To read the tags attached to a keyspace, use the following CQL statement.

SELECT * FROM system_schema_mcs.tags WHERE valid_where_clause;

The WHERE clause is required, and must use one of the following formats:

  • keyspace_name = 'mykeyspace' AND resource_type = 'keyspace'

  • resource_id = arn

  • The following statement shows whether a keyspace has tags.

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

    The output of the query looks like the following.

    resource_id | keyspace_name | resource_name | resource_type | tags -----------------------------------------------------------------+---------------+---------------+---------------+------ arn:aws:cassandra:us-east-1:123456789:/keyspace/mykeyspace/ | mykeyspace | mykeyspace | keyspace | {'key1': 'val1', 'key2': 'val2'}
CLI
View the tags of a keyspace using the AWS CLI
  • This example shows how to list the tags of the specified resource.

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

    The output of the last command looks like this.

    { "tags": [ { "key": "key1", "value": "val1" }, { "key": "key2", "value": "val2" }, { "key": "key3", "value": "val3" }, { "key": "key4", "value": "val4" } ] }
View the tags of a keyspace using the Amazon Keyspaces console
  1. Sign in to the AWS Management Console, and open the Amazon Keyspaces console at https://console.aws.amazon.com/keyspaces/home.

  2. In the navigation pane, choose Keyspaces.

  3. Choose a keyspace from the list. Then choose the Tags tab where you can view the tags of the keyspace.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.