WSO2 Tenant Logs API

The Tenant Logs API from WSO2 — 2 operation(s) for tenant logs.

Business capability
Observability Management BC-4220.20

Operations 3

GET /tenant-logs/{tenant}/apis/ GET log level of APIs #
GET /tenant-logs/{tenant}/apis/{apiId} GET log enabled API data #
PUT /tenant-logs/{tenant}/apis/{apiId} Set logging levels of the API with its api ID #

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/wso2-tenant-logs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

wso2-tenant-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v0.2
  title: WSO2 API Manager - DevOps Tenant Logs API
  description: This document specifies a **RESTful API** for WSO2 **API Manager** - DevOps.
  contact:
    name: WSO2
    url: http://wso2.com/products/api-manager/
    email: architecture@wso2.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://apis.wso2.com/api/am/devops/v0
tags:
- name: Tenant Logs
paths:
  /tenant-logs/{tenant}/apis/:
    get:
      summary: GET log level of APIs
      parameters:
      - $ref: '#/components/parameters/tenant'
      - $ref: '#/components/parameters/logLevel'
      responses:
        '200':
          description: Log level of APIs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoggingApiOutputList'
        '404':
          description: 'Not Found.

            Request API resource or external store Ids not found.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error while retrieving API data to be logged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-code-samples:
      - lang: Curl
        source: 'curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" "https://127.0.0.1:9443/api/am/devops/v0/tenant-logs/carbon.super/apis?log-level=FULL"'
      tags:
      - Tenant Logs
      operationId: getTenantLogsByTenantApis
      x-operation-id-source: derived
  /tenant-logs/{tenant}/apis/{apiId}:
    get:
      summary: GET log enabled API data
      responses:
        '200':
          description: Logs enabled API details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoggingApiOutputList'
        '404':
          description: 'Not Found.

            Request API resource or external store Ids not found.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error while retrieving API data to be logged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - $ref: '#/components/parameters/tenant'
      - $ref: '#/components/parameters/apiId'
      x-code-samples:
      - lang: Curl
        source: 'curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" "https://127.0.0.1:9443/api/am/devops/v0/tenant-logs/carbon.super/apis/12d6e73c-778d-45ac-b57d-117c6c5092a4"'
      tags:
      - Tenant Logs
      operationId: getTenantLogsByTenantApisByApiId
      x-operation-id-source: derived
    put:
      summary: Set logging levels of the API with its api ID
      description: This operation enables you to provide the API context template(context/version) with the log level (OFF|BASIC|STANDARD|FULL). You should either provide the api ID and the api log level.
      parameters:
      - $ref: '#/components/parameters/tenant'
      - $ref: '#/components/parameters/apiId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoggingApiInput'
        description: 'The logLeve is provided as a payload.

          '
      responses:
        '200':
          description: Successfully Enabled the logs for the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoggingApiOutputList'
        '404':
          description: 'Not Found.

            Request API resource or external store Ids not found.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error while configuring API to be logged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-code-samples:
      - lang: Curl
        source: 'curl -k -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" "https://127.0.0.1:9443/api/am/devops/v0/tenant-logs/carbon.super/apis/12d6e73c-778d-45ac-b57d-117c6c5092a4"'
      tags:
      - Tenant Logs
      operationId: putTenantLogsByTenantApisByApiId
      x-operation-id-source: derived
components:
  schemas:
    LoggingApiOutput:
      title: API Info object with log details
      required:
      - context
      - logLevel
      - apiId
      properties:
        context:
          type: string
          example: pizashack/v1.0.0
        logLevel:
          type: string
          example: FULL
        apiId:
          type: string
          example: 12d6e73c-778d-45ac-b57d-117c6c5092a4
        resourceMethod:
          type: string
          example: GET
        resourcePath:
          type: string
          example: /v1.0.0/pizza
    Error:
      title: Error object returned with 4XX HTTP Status
      required:
      - code
      - message
      properties:
        code:
          type: integer
          format: int64
        message:
          type: string
          description: Error message.
        description:
          type: string
          description: 'A detail description about the error message.

            '
        moreInfo:
          type: string
          description: 'Preferably an url with more details about the error.

            '
        error:
          type: array
          description: 'If there are more than one error list them out.

            For example, list out validation errors by each field.

            '
          items:
            $ref: '#/components/schemas/ErrorListItem'
    LoggingApiInput:
      title: API Info object with log details
      required:
      - logLevel
      properties:
        logLevel:
          type: string
          example: FULL
        resourceMethod:
          type: string
          example: GET
        resourcePath:
          type: string
          example: /v1.0.0/pizza
    ErrorListItem:
      title: Description of individual errors that may have occurred during a request.
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
          description: 'Description about individual errors occurred

            '
        description:
          type: string
          description: 'A detail description about the error message.

            '
    LoggingApiOutputList:
      title: apis
      properties:
        apis:
          type: array
          items:
            $ref: '#/components/schemas/LoggingApiOutput'
  parameters:
    logLevel:
      name: log-level
      in: query
      description: 'Log level of the APIs

        '
      required: false
      schema:
        type: string
    tenant:
      name: tenant
      in: path
      description: 'Tenant (organization) name

        '
      required: true
      schema:
        type: string
    apiId:
      name: apiId
      in: path
      description: 'The API ID for the logging operation

        '
      required: true
      schema:
        type: string