IBM Cloud Kubernetes Accounts API

The accounts API from IBM Cloud Kubernetes — 4 operation(s) for accounts.

GitHub OpenAPI

Operations 6

GET /v1/credentials View the IBM Cloud classic infrastructure account credentials that are set for… #
POST /v1/credentials Set IBM Cloud classic infrastructure account credentials for your IBM Cloud… #
DELETE /v1/credentials Remove IBM Cloud classic infrastructure account credentials from your IBM Cloud… #
GET /v1/infra-permissions Get details on the permissions that the IBM Cloud infrastructure (SoftLayer)… #
POST /v1/keys Reset the IAM API key #
GET /v1/subnets/vlan-spanning View the VLAN spanning status #

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-accounts-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-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ibm Cloud Kubernetes Accounts API
  version: '1.1'
  description: 'Operations tagged accounts 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: Accounts
paths:
  /v1/credentials:
    get:
      description: Get the infrastructure user name of the credentials that are used to access the IBM Cloud classic infrastructure portfolio. Infrastructure credentials are set per region and resource group.
      tags:
      - Accounts
      summary: View the IBM Cloud classic infrastructure account credentials that are set for…
      operationId: GetUserCredentials
      parameters:
      - description: Target the IBM Cloud Kubernetes Service region where you want to get infrastructure credential details. To list available regions, use the `GET /v1/regions` API or run `ibmcloud ks region ls`.
        name: X-Region
        in: header
        required: true
        schema:
          type: string
      - 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
      responses:
        '200':
          description: Ok. The IBM Cloud infrastructure (SoftLayer) account credentials were successfully retrieved from IBM Cloud Kubernetes Service.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Credentials'
        '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. No IBM Cloud infrastructure account credentials are stored in the Kubernetes Service account for this region and resource group.
          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: Details on the classic infrastructure credentials that are set for managing clusters in the region and resource group are returned.
        events:
        - name: containers-kubernetes.account-infra-credential.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.
    post:
      description: Set the IBM Cloud classic infrastructure user name and API key for the region and resource group in your IBM Cloud Kubernetes Service account. Do not set multiple credentials for one IBM Cloud Kubernetes Service account. Every IBM Cloud Kubernetes Service account is linked to one IBM Cloud infrastructure portfolio only. When you manually set infrastructure credentials with this API, these credentials are used instead of any API key that is set for the region and resource group.
      tags:
      - Accounts
      summary: Set IBM Cloud classic infrastructure account credentials for your IBM Cloud…
      operationId: StoreUserCredentials
      parameters:
      - description: Target the IBM Cloud Kubernetes Service region where you want to set infrastructure credentials. To list available regions, use the `GET /v1/regions` API or run `ibmcloud ks region ls`.
        name: X-Region
        in: header
        required: true
        schema:
          type: string
      - 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 user name of the IBM Cloud classic infrastructure account that you want to use with Kubernetes Service. To retrieve your user name, log in to the IBM Cloud account that you want to use, click Manage > Access (IAM) > Users > your user profile. Then, from the User Details tab, go to the VPN password section. The user name is in a format similar to 1234567_name@email.com.
        name: X-Auth-Softlayer-Username
        in: header
        schema:
          type: string
      - description: The classic infrastructure API key of the IBM Cloud account that you want to use with Kubernetes Service. To retrieve your API key, log in to the IBM Cloud account that you want to use, click Manage > Access (IAM) > API keys. Filter the view for Classic infrastructure API keys. In the row for the API key, click the action menu > Details. In the API key details pane, click the eye icon to view the API key value.
        name: X-Auth-Softlayer-APIKey
        in: header
        schema:
          type: string
      responses:
        '204':
          description: Ok. The IBM Cloud infrastructure account credentials were successfully set for this region and resource group.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
        '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'
        '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: Classic infrastructure credentials for managing clusters in the region and resource group are set.
        events:
        - name: containers-kubernetes.account-infra-credential.set
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.create
        description: To get the action, the user must have the Administrator platform role to Kubernetes Service in IAM.
    delete:
      description: 'Remove the IBM Cloud classic infrastructure user name and API key from the region and resource group in your IBM Cloud Kubernetes Service account. After removing the credentials, you cannot access that IBM Cloud classic infrastructure account through your IBM Cloud Kubernetes Service account anymore. Instead, the default infrastructure account for your IBM Cloud account and the corresponding API key is used.

        Before you remove the infrastructure credentials, check which clusters use these credentials and make a plan to re-create the clusters in the new infrastructure environment. Otherwise, you might not be able to perform infrastructure actions, like updating or adding worker nodes, to the clusters that use the old credentials.'
      tags:
      - Accounts
      summary: Remove IBM Cloud classic infrastructure account credentials from your IBM Cloud…
      operationId: RemoveUserCredentials
      parameters:
      - description: Target the IBM Cloud Kubernetes Service region where you want to remove infrastructure credentials. To list available regions, use the `GET /v1/regions` API or run `ibmcloud ks region ls`.
        name: X-Region
        in: header
        required: true
        schema:
          type: string
      - 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
      responses:
        '204':
          description: Ok. The IBM Cloud infrastructure account credentials were successfully removed from your IBM Cloud Kubernetes Service account for this region and resource group.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
        '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. No IBM Cloud infrastructure account credentials are stored in the Kubernetes Service account for this region and resource group.
          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: Classic infrastructure credentials for managing clusters in the region and resource group are deleted.
        events:
        - name: containers-kubernetes.account-infra-credential.delete
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.create
        description: To get the action, the user must have the Administrator platform role to Kubernetes Service in IAM.
    servers:
    - url: /global
  /v1/infra-permissions:
    get:
      description: Get details on the compute, networking, and storage permissions that the IBM Cloud infrastructure (SoftLayer) credentials have in this region and resource group. To review what IBM Cloud infrastructure (SoftLayer) credentials are set, use the `GET /v1/credentials` API, or run `ibmcloud ks credential get` or `ibmcloud ks api-key info`.
      tags:
      - Accounts
      summary: Get details on the permissions that the IBM Cloud infrastructure (SoftLayer)…
      operationId: GetInfraPermissions
      parameters:
      - description: Target the IBM Cloud Kubernetes Service region where you want to check the infrastructure permissions. To list available regions, use the `GET /v1/regions` API or run `ibmcloud ks region ls`.
        name: X-Region
        in: header
        required: true
        schema:
          type: string
      - 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. To list available resource group IDs, run `ibmcloud resource groups`.
        name: X-Auth-Resource-Group
        in: header
        schema:
          type: string
      responses:
        '200':
          description: Ok.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountStatus'
        '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: Details on the compute, networking, and storage classic infrastructure permissions that are set for managing clusters in the region and resource group are returned.
        events:
        - name: containers-kubernetes.account-infra-permission.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.
    servers:
    - url: /global
  /v1/keys:
    post:
      description: Replace the IAM API key for the IBM Cloud Kubernetes Service in a region and resource group. The API key is used to access several services, such as the IBM Cloud classic infratructure portfolio, and is required to manage your clusters. To avoid service interruptions, do not replace the API key unless your existing key is compromised.
      tags:
      - Accounts
      summary: Reset the IAM API key
      operationId: ResetUserAPIKey
      parameters:
      - description: Target the IBM Cloud Kubernetes Service region where you want to reset the IAM API key. To list available regions, use the `GET /v1/regions` API or run `ibmcloud ks region ls`.
        name: X-Region
        in: header
        required: true
        schema:
          type: string
      - description: The ID of the resource group where you want to set the API key.
        name: X-Auth-Resource-Group
        in: header
        schema:
          type: string
      - 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
      responses:
        '204':
          description: Ok. The IAM API key is successfully reset.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
        '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'
        '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: The API key that is used for all clusters in the region and resource group is set to the requesting user's API key credentials.
        events:
        - name: containers-kubernetes.account-api-key.reset
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.create
        description: To get the action, the user must have the Administrator platform role to Kubernetes Service in IAM.
    servers:
    - url: /global
  /v1/subnets/vlan-spanning:
    get:
      description: View the VLAN spanning status for an IBM Cloud Infrastructure (SoftLayer) account. VLAN spanning enables all devices on an account to communicate with each other by means of the private network, regardless of its assigned VLAN.
      tags:
      - Accounts
      summary: View the VLAN spanning status
      operationId: GetVlanSpanning
      parameters:
      - description: Target the IBM Cloud Kubernetes Service region where you want to check the VLAN spanning status. To list available regions, use the `GET /v1/regions` API or run `ibmcloud ks region ls`.
        name: X-Region
        in: header
        required: true
        schema:
          type: string
      - 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. To list available resource group IDs, run `ibmcloud resource groups`.
        name: X-Auth-Resource-Group
        in: header
        schema:
          type: string
      responses:
        '200':
          description: Ok. Details of VLAN spanning enablement.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VlanSpan'
        '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'
        '403':
          description: Unable to determine whether VLAN spanning is enabled in the IBM Cloud infrastructure account.
          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: Details on whether the IBM Cloud account has VLAN spanning enabled are returned.
        events:
        - name: containers-kubernetes.account-subnet-vlan-spanning.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.
    servers:
    - url: /global
components:
  schemas:
    AccountStatus:
      description: AccountStatus summarises the IaaS user's view of the provider account
      type: object
      properties:
        account:
          description: 'ProviderAccountID may contain personally

            identifiable information'
          type: string
          x-go-name: ProviderAccountID
        accountType:
          description: 'AccountType returns if the account information pertains to a linked

            or an IaaS account'
          type: string
          x-go-name: AccountType
        networkManagerPermissions:
          $ref: '#/components/schemas/Permissions'
        physicalWorkerManagerPermissions:
          $ref: '#/components/schemas/Permissions'
        storageManagerPermissions:
          $ref: '#/components/schemas/Permissions'
        virtualWorkerManagerPermissions:
          $ref: '#/components/schemas/Permissions'
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/api/json
    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
    PermissionsAnalysis:
      description: 'PermissionsAnalysis describes the result of checking granted permissions

        Note: the default zero/empty value implies sufficient permissions'
      type: object
      properties:
        insufficient:
          description: 'Insufficient is true if granted permissions are insufficient

            Note: the default zero/empty value implies sufficient permissions'
          type: boolean
          x-go-name: Insufficient
        missingPermissions:
          description: 'MissingPermissions describes why granted permissions are insufficient,

            using IaaS-specific terminology (e.g to present to the user in permissions

            warning or failure messages)'
          type: array
          items:
            type: string
          x-go-name: MissingPermissions
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/api/json
    Credentials:
      description: Credentials provides information about user infrastructure credentials
      type: object
      properties:
        apiUser:
          type: string
          x-go-name: APIUser
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/api/json
    Permissions:
      description: 'Permissions describes the result of checking granted permissions

        Note: the default zero/empty value implies sufficient permissions'
      type: object
      properties:
        recommended:
          $ref: '#/components/schemas/PermissionsAnalysis'
        required:
          $ref: '#/components/schemas/PermissionsAnalysis'
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/api/json
    ErrorType:
      description: ErrorType error type
      type: string
      x-go-package: github.ibm.com/alchemy-containers/armada-model/errors
    VlanSpan:
      type: object
      title: VlanSpan the vlan spanning flag.
      properties:
        enabled:
          type: boolean
          x-go-name: Enabled
        modifiedDate:
          type: string
          x-go-name: ModifiedDate
      x-go-package: github.ibm.com/alchemy-containers/armada-model/model/api/json/v1
x-refined-from:
- ibm-cloud-kubernetes-swagger.json
- ibm-cloud-kubernetes-openapi.yml