Amazon Keyspaces API

Cassandra keyspace management

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 5

POST /#CreateKeyspace Create Keyspace #
POST /#DeleteKeyspace Delete Keyspace #
POST /#GetKeyspace Get Keyspace #
POST /#ListKeyspaces List Keyspaces #
POST /#UpdateKeyspace Update Keyspace #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-keyspaces:amazon-keyspaces-keyspaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-keyspaces-keyspaces-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Keyspaces Keyspaces API
  version: '2022-02-10'
  description: Generated from AWS's published Smithy model for Amazon Keyspaces. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://cassandra.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateKeyspace:
    post:
      operationId: CreateKeyspace
      summary: Create Keyspace
      description: The CreateKeyspace operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace
        names must be unique within each Region. CreateKeyspace is an asynchronous operation. You can monitor the creation
        status of the new keyspace by using the GetKeyspace operation. For more information, see Create a keyspace in the
        Amazon Keyspaces Developer Guide.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/CreateKeyspaceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - KeyspacesService.CreateKeyspace
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/CreateKeyspaceRequest'
      tags:
      - Keyspaces
  /#DeleteKeyspace:
    post:
      operationId: DeleteKeyspace
      summary: Delete Keyspace
      description: The DeleteKeyspace operation deletes a keyspace and all of its tables.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/DeleteKeyspaceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - KeyspacesService.DeleteKeyspace
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/DeleteKeyspaceRequest'
      tags:
      - Keyspaces
  /#GetKeyspace:
    post:
      operationId: GetKeyspace
      summary: Get Keyspace
      description: Returns the name of the specified keyspace, the Amazon Resource Name (ARN), the replication strategy, the
        Amazon Web Services Regions of a multi-Region keyspace, and the status of newly added Regions after an UpdateKeyspace
        operation.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/GetKeyspaceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - KeyspacesService.GetKeyspace
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/GetKeyspaceRequest'
      tags:
      - Keyspaces
  /#ListKeyspaces:
    post:
      operationId: ListKeyspaces
      summary: List Keyspaces
      description: The ListKeyspaces operation returns a list of keyspaces.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ListKeyspacesResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - KeyspacesService.ListKeyspaces
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/ListKeyspacesRequest'
      tags:
      - Keyspaces
  /#UpdateKeyspace:
    post:
      operationId: UpdateKeyspace
      summary: Update Keyspace
      description: 'Adds a new Amazon Web Services Region to the keyspace. You can add a new Region to a keyspace that is
        either a single or a multi-Region keyspace. Amazon Keyspaces is going to replicate all tables in the keyspace to the
        new Region. To successfully replicate all tables to the new Region, they must use client-side timestamps for conflict
        resolution. To enable client-side timestamps, specify clientSideTimestamps.status = enabled when invoking the API.
        For more information about client-side timestamps, see Client-side timestamps in Amazon Keyspaces in the Amazon Keyspaces
        Developer Guide. To add a Region to a keyspace using the UpdateKeyspace API, the IAM principal needs permissions for
        the following IAM actions: cassandra:Alter cassandra:AlterMultiRegionResource cassandra:Create cassandra:CreateMultiRegionResource
        cassandra:Select cassandra:SelectMultiRegionResource cassandra:Modify cassandra:ModifyMultiRegionResource If the keyspace
        contains a table that is configured in provisioned mode with auto scaling enabled, the following additional IAM actions
        need to be allowed. application-autoscaling:RegisterScalableTarget application-autoscaling:DeregisterScalableTarget
        application-autoscal'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/UpdateKeyspaceResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - KeyspacesService.UpdateKeyspace
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/UpdateKeyspaceRequest'
      tags:
      - Keyspaces
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: cassandra
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
          description: You don't have the required permissions to perform this operation. Verify your IAM permissions and
            try again.
    ClientSideTimestamps:
      type: object
      properties:
        status:
          type: string
          description: Shows how to enable client-side timestamps settings for the specified table.
      required:
      - status
    ConflictException:
      type: object
      properties:
        message:
          type: string
          description: The requested operation conflicts with the current state of the resource or another concurrent operation.
    CreateKeyspaceRequest:
      type: object
      properties:
        keyspaceName:
          type: string
          description: The name of the keyspace to be created.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A list of key-value pair tags to be attached to the keyspace. For more information, see Adding tags
            and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
        replicationSpecification:
          $ref: '#/components/schemas/ReplicationSpecification'
      required:
      - keyspaceName
    CreateKeyspaceResponse:
      type: object
      properties:
        resourceArn:
          type: string
          description: The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
      required:
      - resourceArn
    DeleteKeyspaceRequest:
      type: object
      properties:
        keyspaceName:
          type: string
          description: The name of the keyspace to be deleted.
      required:
      - keyspaceName
    DeleteKeyspaceResponse:
      type: object
      properties: {}
    GetKeyspaceRequest:
      type: object
      properties:
        keyspaceName:
          type: string
          description: The name of the keyspace.
      required:
      - keyspaceName
    GetKeyspaceResponse:
      type: object
      properties:
        keyspaceName:
          type: string
          description: The name of the keyspace.
        resourceArn:
          type: string
          description: Returns the ARN of the keyspace.
        replicationStrategy:
          type: string
          description: Returns the replication strategy of the keyspace. The options are SINGLE_REGION or MULTI_REGION.
        replicationRegions:
          type: array
          items:
            type: string
          description: If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned.
        replicationGroupStatuses:
          type: array
          items:
            $ref: '#/components/schemas/ReplicationGroupStatus'
          description: A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.
      required:
      - keyspaceName
      - resourceArn
      - replicationStrategy
    InternalServerException:
      type: object
      properties:
        message:
          type: string
          description: An internal service error occurred. Retry your request. If the problem persists, contact Amazon Web
            Services Support.
    KeyspaceSummary:
      type: object
      properties:
        keyspaceName:
          type: string
          description: The name of the keyspace.
        resourceArn:
          type: string
          description: The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
        replicationStrategy:
          type: string
          description: This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available
            values are SINGLE_REGION or MULTI_REGION.
        replicationRegions:
          type: array
          items:
            type: string
          description: If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned.
      required:
      - keyspaceName
      - resourceArn
      - replicationStrategy
    ListKeyspacesRequest:
      type: object
      properties:
        nextToken:
          type: string
          description: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent
            API invocation.
        maxResults:
          type: integer
          description: The total number of keyspaces to return in the output. If the total number of keyspaces available is
            more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken
            value as an argument of a subsequent API invocation.
    ListKeyspacesResponse:
      type: object
      properties:
        nextToken:
          type: string
          description: A token to specify where to start paginating. This is the NextToken from a previously truncated response.
        keyspaces:
          type: array
          items:
            $ref: '#/components/schemas/KeyspaceSummary'
          description: A list of keyspaces.
      required:
      - keyspaces
    ReplicationGroupStatus:
      type: object
      properties:
        region:
          type: string
          description: The name of the Region that was added to the keyspace.
        keyspaceStatus:
          type: string
          description: The status of the keyspace.
        tablesReplicationProgress:
          type: string
          description: This shows the replication progress of tables in the keyspace. The value is expressed as a percentage
            of the newly replicated tables with status Active compared to the total number of tables in the keyspace.
      required:
      - region
      - keyspaceStatus
    ReplicationSpecification:
      type: object
      properties:
        replicationStrategy:
          type: string
          description: The replicationStrategy of a keyspace, the required value is SINGLE_REGION or MULTI_REGION.
        regionList:
          type: array
          items:
            type: string
          description: The regionList contains the Amazon Web Services Regions where the keyspace is replicated in.
      required:
      - replicationStrategy
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The specified resource was not found. Verify the resource identifier and ensure the resource exists
            and is in an ACTIVE state.
        resourceArn:
          type: string
          description: The unique identifier in the format of Amazon Resource Name (ARN) for the resource couldn't be found.
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
          description: The requested operation would exceed the service quota for this resource. Review the service quotas
            and adjust your request accordingly.
    Tag:
      type: object
      properties:
        key:
          type: string
          description: The key of the tag. Tag keys are case sensitive. Each Amazon Keyspaces resource can only have up to
            one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated
            to the new value.
        value:
          type: string
          description: The value of the tag. Tag values are case-sensitive and can be null.
      required:
      - key
      - value
    UpdateKeyspaceRequest:
      type: object
      properties:
        keyspaceName:
          type: string
          description: The name of the keyspace.
        replicationSpecification:
          $ref: '#/components/schemas/ReplicationSpecification'
        clientSideTimestamps:
          $ref: '#/components/schemas/ClientSideTimestamps'
      required:
      - keyspaceName
      - replicationSpecification
    UpdateKeyspaceResponse:
      type: object
      properties:
        resourceArn:
          type: string
          description: The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
      required:
      - resourceArn
    ValidationException:
      type: object
      properties:
        message:
          type: string
          description: The request parameters are invalid or malformed. Review the API documentation and correct the request
            format.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/keyspaces/service/2022-02-10/keyspaces-2022-02-10.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)