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.
openapi: 3.2.0
info:
title: Ibm Cloud Kubernetes User API
version: '1.1'
description: 'Operations tagged user 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: User
paths:
/v1/user-config:
get:
description: 'View whether a user can create free and paid clusters in a region and resource group. If `"freeEnabled": true` is returned, you can create a free cluster in the specified region. If `"storedIaasCredentials": true` is returned, your IBM Cloud account uses IBM Cloud infrastructure (SoftLayer) credentials that were manually set with the `POST /v1/credentials` API or the `ibmcloud ks credential set` command. When you create a standard cluster in the specified region and resource group, these credentials are used.'
tags:
- User
summary: View a user's ability to create free and standard clusters in a region and…
operationId: GetUserConfig
parameters:
- description: Target the IBM Cloud Kubernetes Service region where you want to check the ability to create free and standard clusters. 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 user's permissions to create free and paid clusters is returned.
headers:
X-Request-Id:
description: Unique ID for this request
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/UserConfig'
x-ibm-events:
description: Details on whether a user can create free or standard clusters in a certain region and resource group are returned.
events:
- name: containers-kubernetes.account-user-config.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:
UserConfig:
description: UserConfig describes the config values applicable to a user account
type: object
properties:
freeEnabled:
type: boolean
x-go-name: FreeEnabled
storedIaasCredentials:
type: boolean
x-go-name: StoredIaasCredentials
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