Amazon Managed Service for Prometheus Managed Prometheus Logging API

The Managed Prometheus Logging API from Amazon Managed Service for Prometheus — 1 operation(s) for managed prometheus logging.

GitHub OpenAPI

Operations 8

POST /workspaces/{workspaceId}/logging Create Logging Configuration #
GET /workspaces/{workspaceId}/logging Describe Logging Configuration #
PUT /workspaces/{workspaceId}/logging Update Logging Configuration #
DELETE /workspaces/{workspaceId}/logging Delete Logging Configuration #
POST /workspaces/{workspaceId}/logging/query Create Query Logging Configuration #
GET /workspaces/{workspaceId}/logging/query Describe Query Logging Configuration #
PUT /workspaces/{workspaceId}/logging/query Update Query Logging Configuration #
DELETE /workspaces/{workspaceId}/logging/query Delete Query Logging Configuration #

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-managed-prometheus:amazon-managed-prometheus-logging-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-managed-prometheus-logging-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Prometheus Service Logging API
  version: '2020-08-01'
  description: Generated from AWS's published Smithy model for Amazon Prometheus Service. 8 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://aps.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /workspaces/{workspaceId}/logging:
    post:
      operationId: CreateLoggingConfiguration
      summary: Create Logging Configuration
      description: The CreateLoggingConfiguration operation creates rules and alerting logging configuration for the workspace.
        Use this operation to set the CloudWatch log group to which the logs will be published to. These logging configurations
        are only for rules and alerting logs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateLoggingConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace to create the logging configuration for.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                logGroupArn:
                  type: string
                  description: The ARN of the CloudWatch log group to which the vended log data will be published. This log
                    group must exist prior to calling this operation.
                clientToken:
                  type: string
                  description: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
              required:
              - logGroupArn
      tags:
      - Logging
    get:
      operationId: DescribeLoggingConfiguration
      summary: Describe Logging Configuration
      description: Returns complete information about the current rules and alerting logging configuration of the workspace.
        These logging configurations are only for rules and alerting logs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeLoggingConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace to describe the logging configuration for.
      tags:
      - Logging
    put:
      operationId: UpdateLoggingConfiguration
      summary: Update Logging Configuration
      description: Updates the log group ARN or the workspace ID of the current rules and alerting logging configuration.
        These logging configurations are only for rules and alerting logs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateLoggingConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace to update the logging configuration for.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                logGroupArn:
                  type: string
                  description: The ARN of the CloudWatch log group to which the vended log data will be published.
                clientToken:
                  type: string
                  description: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
              required:
              - logGroupArn
      tags:
      - Logging
    delete:
      operationId: DeleteLoggingConfiguration
      summary: Delete Logging Configuration
      description: Deletes the rules and alerting logging configuration for a workspace. These logging configurations are
        only for rules and alerting logs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace containing the logging configuration to delete.
      - name: clientToken
        in: query
        schema:
          type: string
        description: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
      tags:
      - Logging
  /workspaces/{workspaceId}/logging/query:
    post:
      operationId: CreateQueryLoggingConfiguration
      summary: Create Query Logging Configuration
      description: Creates a query logging configuration for the specified workspace. This operation enables logging of queries
        that exceed the specified QSP threshold.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateQueryLoggingConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace for which to create the query logging configuration.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                destinations:
                  type: array
                  items:
                    $ref: '#/components/schemas/LoggingDestination'
                  description: The destinations where query logs will be sent. Only CloudWatch Logs destination is supported.
                    The list must contain exactly one element.
                clientToken:
                  type: string
                  description: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency
                    of the request.
              required:
              - destinations
      tags:
      - Logging
    get:
      operationId: DescribeQueryLoggingConfiguration
      summary: Describe Query Logging Configuration
      description: Retrieves the details of the query logging configuration for the specified workspace.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeQueryLoggingConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace for which to retrieve the query logging configuration.
      tags:
      - Logging
    put:
      operationId: UpdateQueryLoggingConfiguration
      summary: Update Query Logging Configuration
      description: Updates the query logging configuration for the specified workspace.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateQueryLoggingConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace for which to update the query logging configuration.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                destinations:
                  type: array
                  items:
                    $ref: '#/components/schemas/LoggingDestination'
                  description: The destinations where query logs will be sent. Only CloudWatch Logs destination is supported.
                    The list must contain exactly one element.
                clientToken:
                  type: string
                  description: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency
                    of the request.
              required:
              - destinations
      tags:
      - Logging
    delete:
      operationId: DeleteQueryLoggingConfiguration
      summary: Delete Query Logging Configuration
      description: Deletes the query logging configuration for the specified workspace.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the workspace from which to delete the query logging configuration.
      - name: clientToken
        in: query
        schema:
          type: string
        description: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the
          request.
      tags:
      - Logging
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: aps
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
          description: Description of the error.
      required:
      - message
    CloudWatchLogDestination:
      type: object
      properties:
        logGroupArn:
          type: string
          description: The ARN of the CloudWatch log group to which the vended log data will be published. This log group
            must exist prior to calling this operation.
      required:
      - logGroupArn
    ConflictException:
      type: object
      properties:
        message:
          type: string
          description: Description of the error.
        resourceId:
          type: string
          description: Identifier of the resource affected.
        resourceType:
          type: string
          description: Type of the resource affected.
      required:
      - message
      - resourceId
      - resourceType
    CreateLoggingConfigurationResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/LoggingConfigurationStatus'
      required:
      - status
    CreateQueryLoggingConfigurationResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/QueryLoggingConfigurationStatus'
      required:
      - status
    DescribeLoggingConfigurationResponse:
      type: object
      properties:
        loggingConfiguration:
          $ref: '#/components/schemas/LoggingConfigurationMetadata'
      required:
      - loggingConfiguration
    DescribeQueryLoggingConfigurationResponse:
      type: object
      properties:
        queryLoggingConfiguration:
          $ref: '#/components/schemas/QueryLoggingConfigurationMetadata'
      required:
      - queryLoggingConfiguration
    InternalServerException:
      type: object
      properties:
        message:
          type: string
          description: Description of the error.
        retryAfterSeconds:
          type: integer
          description: Advice to clients on when the call can be safely retried.
      required:
      - message
    LoggingConfigurationMetadata:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/LoggingConfigurationStatus'
        workspace:
          type: string
          description: The ID of the workspace the logging configuration is for.
        logGroupArn:
          type: string
          description: The ARN of the CloudWatch log group to which the vended log data will be published.
        createdAt:
          type: string
          description: The date and time that the logging configuration was created.
        modifiedAt:
          type: string
          description: The date and time that the logging configuration was most recently changed.
      required:
      - status
      - workspace
      - logGroupArn
      - createdAt
      - modifiedAt
    LoggingConfigurationStatus:
      type: object
      properties:
        statusCode:
          type: string
          description: The current status of the current rules and alerting logging configuration. These logging configurations
            are only for rules and alerting logs.
        statusReason:
          type: string
          description: If failed, the reason for the failure.
      required:
      - statusCode
    LoggingDestination:
      type: object
      properties:
        cloudWatchLogs:
          $ref: '#/components/schemas/CloudWatchLogDestination'
        filters:
          $ref: '#/components/schemas/LoggingFilter'
      required:
      - cloudWatchLogs
      - filters
    LoggingFilter:
      type: object
      properties:
        qspThreshold:
          type: integer
          description: The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing
            more samples than this threshold will be captured in logs.
      required:
      - qspThreshold
    QueryLoggingConfigurationMetadata:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/QueryLoggingConfigurationStatus'
        workspace:
          type: string
          description: The ID of the workspace associated with this query logging configuration.
        destinations:
          type: array
          items:
            $ref: '#/components/schemas/LoggingDestination'
          description: The configured destinations for the query logging configuration.
        createdAt:
          type: string
          description: The date and time when the query logging configuration was created.
        modifiedAt:
          type: string
          description: The date and time when the query logging configuration was last modified.
      required:
      - status
      - workspace
      - destinations
      - createdAt
      - modifiedAt
    QueryLoggingConfigurationStatus:
      type: object
      properties:
        statusCode:
          type: string
          description: The current status of the query logging configuration.
        statusReason:
          type: string
          description: If there is a failure, the reason for the failure.
      required:
      - statusCode
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: Description of the error.
        resourceId:
          type: string
          description: Identifier of the resource affected.
        resourceType:
          type: string
          description: Type of the resource affected.
      required:
      - message
      - resourceId
      - resourceType
    UpdateLoggingConfigurationResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/LoggingConfigurationStatus'
      required:
      - status
    UpdateQueryLoggingConfigurationResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/QueryLoggingConfigurationStatus'
      required:
      - status
    ValidationException:
      type: object
      properties:
        message:
          type: string
          description: Description of the error.
        reason:
          type: string
          description: Reason the request failed validation.
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: The field that caused the error, if applicable.
      required:
      - message
      - reason
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the field that caused an exception.
        message:
          type: string
          description: A message describing why the field caused an exception.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/amp/service/2020-08-01/amp-2020-08-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)