IBM Cloud Kubernetes Filter API

The filter API from IBM Cloud Kubernetes — 2 operation(s) for filter.

GitHub OpenAPI

Operations 6

GET /v1/logging/{idOrName}/filterconfigs List all logging filter configurations in the cluster #
POST /v1/logging/{idOrName}/filterconfigs Create a logging filter configuration #
DELETE /v1/logging/{idOrName}/filterconfigs Deletes all logging filter configurations for the cluster #
GET /v1/logging/{idOrName}/filterconfigs/{id} View a logging filter configuration #
PUT /v1/logging/{idOrName}/filterconfigs/{id} Update a logging filter configuration #
DELETE /v1/logging/{idOrName}/filterconfigs/{id} Delete a logging filter 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/ibm-cloud-kubernetes:ibm-cloud-kubernetes-filter-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

ibm-cloud-kubernetes-filter-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ibm Cloud Kubernetes Filter API
  version: '1.1'
  description: 'Operations tagged filter across 2 of this provider''s published API definitions: ibm-cloud-kubernetes-swagger.json, ibm-cloud-kubernetes-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /global
- url: https://containers.cloud.ibm.com/global
tags:
- name: Filter
paths:
  /v1/logging/{idOrName}/filterconfigs:
    get:
      description: List the logging filter configurations that you created in a cluster.
      tags:
      - Filter
      summary: List all logging filter configurations in the cluster
      operationId: FetchFilterConfigs
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The unique ID of your IBM Cloud resource group when you created your cluster. To see the cluster's resource group ID, run `ibmcloud ks cluster get --cluster <cluster_name_or_ID>`.
        name: X-Auth-Resource-Group-ID
        in: header
        schema:
          type: string
      - description: The name or ID of the target cluster. To list the clusters that you have access to, run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      - description: Set to true to populate global filters with all matching logging configurations.
        name: showMatches
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Ok. A list of logging filters in the cluster.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                  $ref: '#/components/schemas/FilterConfigResponse'
        '401':
          description: Unauthorized. To retrieve your access tokens, be sure that you're logged in and run `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To see a list of your clusters, run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    post:
      description: Start filtering logs that are forwarded by your logging configuration from the given sources based on one or more selectors.
      tags:
      - Filter
      summary: Create a logging filter configuration
      operationId: CreateFilterConfig
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The unique ID of your IBM Cloud resource group when you created your cluster. To see the cluster's resource group ID, run `ibmcloud ks cluster get --cluster <cluster_name_or_ID>`.
        name: X-Auth-Resource-Group-ID
        in: header
        schema:
          type: string
      - description: The name or ID of the target cluster. To list the clusters that you have access to, run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      - description: Forces the request which may cause a new fluentd version to be deployed to the cluster.
        name: forceUpdate
        in: query
        schema:
          type: boolean
      responses:
        '201':
          description: Ok. Logs from the specified logging configurations will be filtered on the provided selectors.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilterConfigResponse'
        '400':
          description: Bad request. The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all of the required parameters, formatted in JSON. Supported logging types are 'syslog' and 'ibm'. Log forwarding is not supported for the 'ibm-system' and 'kube-system' namespaces.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized. To retrieve your access tokens, be sure that you're logged in and run `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: The unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To see a list of your clusters, run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FilterConfigBody'
        description: The new logging filter configuration.
        required: true
    delete:
      description: Stops log filtering.
      tags:
      - Filter
      summary: Deletes all logging filter configurations for the cluster
      operationId: DeleteFilterConfigs
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The unique ID of your IBM Cloud resource group when you created your cluster. To see the cluster's resource group ID, run `ibmcloud ks cluster get --cluster <cluster_name_or_ID>`.
        name: X-Auth-Resource-Group-ID
        in: header
        schema:
          type: string
      - description: The name or ID of the target cluster. To list the clusters that you have access to, run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      - description: Forces the request which may cause a new fluentd version to be deployed to the cluster.
        name: forceUpdate
        in: query
        schema:
          type: boolean
      responses:
        '204':
          description: Ok. All log filtering configurations have been removed.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
        '401':
          description: Unauthorized. To retrieve your access tokens, be sure that you're logged in and run `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To see a list of your clusters, run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: /global
  /v1/logging/{idOrName}/filterconfigs/{id}:
    get:
      description: View details for a logging filter configuration.
      tags:
      - Filter
      summary: View a logging filter configuration
      operationId: FetchFilterConfig
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The unique ID of your IBM Cloud resource group when you created your cluster. To see the cluster's resource group ID, run `ibmcloud ks cluster get --cluster <cluster_name_or_ID>`.
        name: X-Auth-Resource-Group-ID
        in: header
        schema:
          type: string
      - description: The name or ID of the target cluster. To list the clusters that you have access to, run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      - description: The UUID of the logging filter that you want to fetch.
        name: id
        in: path
        required: true
        schema:
          type: string
      - description: To show matching logging configurations for global filters, set to `true`.
        name: showMatches
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Ok. A logging filter is configured for your cluster.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: string
                $ref: '#/components/schemas/FilterConfigResponse'
        '401':
          description: Unauthorized. To retrieve your access tokens, be sure that you're logged in and run `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To see a list of your clusters, run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    put:
      description: Update a logging filter config where `id` is the UUID for the filter config.
      tags:
      - Filter
      summary: Update a logging filter configuration
      operationId: UpdateFilterConfig
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The unique ID of your IBM Cloud resource group when you created your cluster. To see the cluster's resource group ID, run `ibmcloud ks cluster get --cluster <cluster_name_or_ID>`.
        name: X-Auth-Resource-Group-ID
        in: header
        schema:
          type: string
      - description: The name or ID of the target cluster. To list the clusters that you have access to, run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      - description: The UUID for the filterConfig that you want to update.
        name: id
        in: path
        required: true
        schema:
          type: string
      - description: Forces the request which may cause a new fluentd version to be deployed to the cluster.
        name: forceUpdate
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Ok. The configuration was updated.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilterConfigResponse'
        '400':
          description: Bad request. The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all of the required parameters, formatted in JSON. Supported logging types are 'syslog'. Log forwarding is not supported for the 'ibm-system' and 'kube-system' namespaces.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized. To retrieve your access tokens, be sure that you're logged in and run `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To see a list of your clusters, run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FilterConfigBody'
        description: The new filter configuration for the specified ID.
        required: true
    delete:
      description: Delete the specified logging filter configuration for a cluster.
      tags:
      - Filter
      summary: Delete a logging filter configuration
      operationId: DeleteFilterConfig
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The unique ID of your IBM Cloud resource group when you created your cluster. To see the cluster's resource group ID, run `ibmcloud ks cluster get --cluster <cluster_name_or_ID>`.
        name: X-Auth-Resource-Group-ID
        in: header
        schema:
          type: string
      - description: The name or ID of the target cluster. To list the clusters that you have access to, run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      - description: The UUID for the filterConfig that you want to delete.
        name: id
        in: path
        required: true
        schema:
          type: string
      - description: Forces the request which may cause a new fluentd version to be deployed to the cluster.
        name: forceUpdate
        in: query
        schema:
          type: boolean
      responses:
        '204':
          description: Ok. Logs will no longer be filtered by the specified filter configuration.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
        '401':
          description: Unauthorized. To retrieve your access tokens, be sure that you're logged in and run `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To see a list of your clusters, run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: The unique ID for this request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: /global
components:
  schemas:
    ErrorResponse:
      description: ErrorResponse error response to end users
      type: object
      properties:
        code:
          type: string
          x-go-name: ID
        description:
          type: string
          x-go-name: Err
        incidentID:
          type: string
          x-go-name: ReqID
        recoveryCLI:
          type: string
          x-go-name: RecoveryCLI
        terseDescription:
          type: string
          x-go-name: TerseErr
        type:
          $ref: '#/components/schemas/ErrorType'
      x-go-package: github.ibm.com/alchemy-containers/armada-model/errors
    ErrorType:
      description: ErrorType error type
      type: string
      x-go-package: github.ibm.com/alchemy-containers/armada-model/errors
    FilterConfigBody:
      description: FilterConfigBody is how users will interact with the logging endpoints
      type: object
      properties:
        container:
          description: The name of the container where you want to apply the logging filter.
          type: string
          x-go-name: Container
        logLevel:
          description: The log level that you want to apply to your logging filter.
          type: string
          x-go-name: LogLevel
        loggingConfigs:
          description: A list of logging configuration IDs where you want to apply the logging filter.
          type: array
          items:
            type: string
          x-go-name: LoggingConfigs
        message:
          description: A string in a message to which you want to apply the logging filter.
          type: string
          x-go-name: Message
        namespace:
          description: The Kubernetes namespace where you want to apply the logging filter.
          type: string
          x-go-name: Namespace
        regexMessageEnabled:
          description: Set this value to `true` if you want the message field to be interpreted as a regular expression.
          type: boolean
          x-go-name: RegexMessageEnabled
        type:
          description: The type of the logging filter.
          type: string
          x-go-name: Type
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/logging
    FilterConfigResponse:
      description: FilterConfigResponse is how users will see their logging filter configs from API responses
      type: object
      properties:
        container:
          description: The name of the container that you want to exclude from your logs.
          type: string
          x-go-name: Container
        coveringFilters:
          description: A list of logging filter IDs that the filter covers.
          type: array
          items:
            type: string
          x-go-name: CoveringFilters
        id:
          description: The unique identifier of the logging configuration.
          type: string
          x-go-name: ID
        label:
          description: The pod label that you want to exclude from your logs.
          type: string
          x-go-name: Label
        logLevel:
          description: The log level that you want to apply to your logs. Supported values are `debug` or `info`.
          type: string
          x-go-name: LogLevel
        loggingConfigs:
          description: A list of logging configuration IDs where you want to apply the log filter.
          type: array
          items:
            type: string
          x-go-name: LoggingConfigs
        message:
          description: A string in a log message that you want to exclude from your logs.
          type: string
          x-go-name: Message
        namespace:
          description: The Kubernetes namespace that you want to exclude from your logs.
          type: string
          x-go-name: Namespace
        regexMessageEnabled:
          description: Set this value to `true` if you want to interpret the message field as a regular expression.
          type: boolean
          x-go-name: RegexMessageEnabled
        type:
          description: The type of filter that you want to apply to your logs. Supported values are `container` and `non-container`.
          type: string
          x-go-name: Type
        version:
          description: Internal use only.
          type: string
          x-go-name: Version
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/logging
x-refined-from:
- ibm-cloud-kubernetes-swagger.json
- ibm-cloud-kubernetes-openapi.yml