IBM Cloud API Docs

Introduction

Deploy highly available containerized apps in Kubernetes clusters and use the powerful tools of IBM Cloud Kubernetes Service to automate, isolate, secure, manage, and monitor your workloads across cloud locations. Use the IBM Cloud Kubernetes Service API to manage your Kubernetes cluster infrastructure in IBM Cloud. For example, you can create clusters; add capacity for your workloads by resizing worker pools; manage networking, storage, and logging resources that are attached to your cluster; and enable IBM Cloud add-ons to optimize your cluster management experience. To use the Kubernetes API to manage your application workloads within your cluster, see the product documentation.

Before you begin

  • Make sure that you have access to a paid IBM Cloud account.
  • Choose a strategy for setting up and maintaining a cluster. This process includes choosing worker node flavors, setting up networking, and selecting the highest available configuration as possible.

Charges

With IBM Cloud Kubernetes Service clusters, you can use IBM Cloud infrastructure compute, networking, and storage resources with platform services such as Watson AI or Compose Database-as-a-Service. Each resource might entail its own charges that can be fixed, metered, tiered, or reserved. For more information, see What am I charged for when I use IBM Cloud Kubernetes Service?.

Authentication

The IBM Cloud Kubernetes Service API uses IBM Cloud Identity and Access Management (IAM) to authenticate requests. Pass a bearer and a refresh token token in an Authorization header or an apikey. Tokens support authenticated requests without embedding service credentials in every call.

Authorization

To use the IBM Cloud Kubernetes Service API, you must be authorized to work with the service in IBM Cloud Identity and Access Management (IAM). The service uses IAM platform and service access roles to determine your permissions and the actions that you can perform. Make sure that you are assigned Permissions to create a cluster.

Beginning with version 4.0.0, the Node SDK returns a Promise for all methods when a callback isn't specified.

The package location moved to ibm-watson. It's available at watson-developer-cloud but is not updated there. Use ibm-watson to stay up to date.

IAM and Activity Tracker actions by API method

For a list of the IBM Cloud Identity and Access Management (IAM) action and Activity Tracker events by API method, see the product documentation.

API endpoint

Use the following API endpoint for all API requests:

https://containers.cloud.ibm.com/global

Versioning

The API is versioned to support the different infrastructure providers that are available for you to create clusters. All /v1 APIs can be used to work only with IBM Cloud classic infrastructure. To work with a cluster that was provisioned on IBM Virtual Private Cloud (VPC) infrastructure, you must use the /v2 API.

For information about the API versions, see About the API.

Error handling

This API uses standard HTTP response codes to indicate whether a method completed successfully. A 200 response indicates success. A 400 type response is some sort of failure, and a 500 type response usually indicates an internal system error.

HTTP error code Description Recovery
200 Success The request was successful.
400 Bad Request The input parameters in the request body are either incomplete or in the wrong format. Include all required parameters in your request.
401 Unauthorized You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions.
403 Forbidden The supplied authentication is not authorized to access the cluster or an associated cluster resource. Check that you have the correct access credentials and permissions.
404 Not Found The requested resource could not be found.
408 Request Timeout The connection to the server timed out. Wait a few minutes, then try again.
409 Conflict The cluster or an associated cluster resource with the same name or ID already exists.
500 Internal Server Error IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.

Methods

List Satellite Connectors

List Satellite Connectors

GET /v3/connectors

Request

Query Parameters

  • Return Satellite Connectors after this cursor.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression [A-Za-z0-9-_]+

  • Return Satellite Connectors before this cursor.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression [A-Za-z0-9-_]+

  • Return the first N Satellite Connectors.

  • Return the last N Satellite Connectors.

  • Return Satellite Connectors in a specific region.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression [A-Z_]+

Response

Status Code

  • OK

No Sample Response

This method does not specify any sample responses.

Create a Satellite Connector

Create a Satellite Connector

POST /v3/connectors

Request

No Request Parameters

This method does not accept any request parameters.

Response

Status Code

  • OK

No Sample Response

This method does not specify any sample responses.

Delete a Satellite Connector

Delete a Satellite Connector

DELETE /v3/connectors/{id}

Request

Path Parameters

  • Satellite Connector ID to remove.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression [A-Za-z0-9-_]+

Response

Status Code

  • OK

No Sample Response

This method does not specify any sample responses.

Get a Satellite Connector by ID

Get a Satellite Connector by ID

GET /v3/connectors/{id}

Request

Path Parameters

  • The Node's ID to find.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression [A-Za-z0-9-_]+

Response

Status Code

  • OK

No Sample Response

This method does not specify any sample responses.

id=curlclassName=tab-item-selected