IBM Cloud Kubernetes Apiserverconfigs API

The apiserverconfigs API from IBM Cloud Kubernetes — 1 operation(s) for apiserverconfigs.

GitHub OpenAPI

Operations 3

GET /v1/clusters/{idOrName}/apiserverconfigs/auditwebhook View details for an audit webhook configuration #
PUT /v1/clusters/{idOrName}/apiserverconfigs/auditwebhook Create or update an audit webhook configuration for a cluster #
DELETE /v1/clusters/{idOrName}/apiserverconfigs/auditwebhook Delete an audit webhook 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-apiserverconfigs-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-apiserverconfigs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ibm Cloud Kubernetes Apiserverconfigs API
  version: '1.1'
  description: 'Operations tagged apiserverconfigs 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: apiserverconfigs
paths:
  /v1/clusters/{idOrName}/apiserverconfigs/auditwebhook:
    get:
      description: View the URL for the remote logging service that you are sending API server audit logs to.
      tags:
      - apiserverconfigs
      summary: View details for an audit webhook configuration
      operationId: GetAuditWebhook
      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 ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the `GET /v1/clusters/idOrName` API.
        name: X-Auth-Resource-Group
        in: header
        schema:
          type: string
      - description: The name or ID of the cluster that you want audit configuration details from. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the audit webhook configuration.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditWebhookConfig'
        '400':
          description: Bad request. The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request in JSON format.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run `ibmcloud login` and then `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: 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 list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: 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: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ibm-events:
        description: Audit webhooks for a cluster are listed.
        events:
        - name: containers-kubernetes.cluster-audit-webhook.get
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.read
        description: To get the action, the user must have the Viewer platform role to Kubernetes Service in IAM. For more required permissions to create a cluster, see 'https://cloud.ibm.com/docs/containers?topic=containers-access_reference'.
    put:
      description: Create or update an audit webhook configuration for a cluster. The webhook sends Kubernetes API server audit logs that allow you to monitor API requests to your cluster.
      tags:
      - apiserverconfigs
      summary: Create or update an audit webhook configuration for a cluster
      operationId: UpdateAuditWebhook
      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 ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the `GET /v1/clusters/idOrName` API.
        name: X-Auth-Resource-Group
        in: header
        schema:
          type: string
      - description: The name or ID of the cluster where you want to add an audit configuration or change the audit configuration. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Ok. The cluster will send audit logs to the audit server.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
        '400':
          description: Bad request. The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request in JSON format.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run `ibmcloud login` and then `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: 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 list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '412':
          description: Precondition failed. The input parameters in the request body are incorrect. Some typical cases include if the audit server is http and certs are provided or if the server is https and not all certs are provided.
          headers:
            X-Request-Id:
              description: 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: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ibm-events:
        description: A cluster audit webhook for forwarding master API server audit logs is updated.
        events:
        - name: containers-kubernetes.cluster-audit-webhook.update
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.update
        description: To get the action, the user must have the Editor platform role to Kubernetes Service in IAM. For more required permissions to create a cluster, see 'https://cloud.ibm.com/docs/containers?topic=containers-access_reference'.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuditWebhookConfig'
        description: The input parameter for creating or updating an audit webhook configuration. For more information, see https://ibm.biz/audit_config_docs
        required: true
    delete:
      description: Disable the webhook backend configuration for the cluster's API server. Diabling the webhook backend stops forwarding API server audit logs to a remote server.
      tags:
      - apiserverconfigs
      summary: Delete an audit webhook configuration
      operationId: DeleteAuditWebhook
      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 ID of the resource group that the cluster is in. To check the resource group ID of the cluster, use the `GET /v1/clusters/idOrName` API.
        name: X-Auth-Resource-Group
        in: header
        schema:
          type: string
      - description: The name or ID of the cluster for which you want to change the audit config. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Successfully deleted the audit webhook configuration.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
        '400':
          description: Bad request. The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request in JSON format.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run `ibmcloud login` and then `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: 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 list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: 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: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ibm-events:
        description: A cluster audit webhook for forwarding master API server audit logs is removed.
        events:
        - name: containers-kubernetes.cluster-audit-webhook.delete
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.operate
        description: To get the action, the user must have the Operator platform role to Kubernetes Service in IAM. For more required permissions to create a cluster, see 'https://cloud.ibm.com/docs/containers?topic=containers-access_reference'.
    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
    AuditWebhookConfig:
      type: object
      title: AuditWebhookConfig contains user data to set up the auditing configuration in a cluster.
      properties:
        auditServer:
          description: The URL of the server to send audit logs to.
          type: string
          x-go-name: AuditServer
        caCertificate:
          description: The Certificate Authority certificate that is used to connect to the audit server.
          type: string
          x-go-name: CACertificate
        clientCertificate:
          description: The client certificate that is used to connect to the audit server.
          type: string
          x-go-name: ClientCertificate
        clientKey:
          description: The client key that is used to connect to the audit server.
          type: string
          x-go-name: ClientKey
        policy:
          description: The audit policy type to be configured.
          type: string
          x-go-name: Policy
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/api/json
x-refined-from:
- ibm-cloud-kubernetes-swagger.json
- ibm-cloud-kubernetes-openapi.yml