IBM Cloud Kubernetes Get Workers API
The GetWorkers API from IBM Cloud Kubernetes — 1 operation(s) for getworkers.
The GetWorkers API from IBM Cloud Kubernetes — 1 operation(s) for getworkers.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/ibm-cloud-kubernetes:ibm-cloud-kubernetes-getworkers-api"
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.
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: 3.2.0
info:
title: Ibm Cloud Kubernetes Get Workers API
version: '1.1'
description: 'Operations tagged GetWorkers 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: GetWorkers
paths:
/v2/getWorkers:
get:
description: View detailed information for all worker nodes in a cluster.
tags:
- GetWorkers
summary: View all workers for cluster
operationId: getWorkers
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 /v2/getCluster?cluster=idOrName` API.
name: X-Auth-Resource-Group
in: header
schema:
type: string
- description: The name or ID of the cluster that you want to get the worker node details from. To list the VPC clusters that you have access to, use the `GET /v2/vpc/getClusters` API or run `ibmcloud ks cluster ls --provider vpc-classic`.
name: cluster
in: query
required: true
schema:
type: string
- description: true|false Shows deleted workers
name: showDeleted
in: query
schema:
type: string
responses:
'200':
description: Ok. Details for all workers in the cluster.
headers:
X-Request-Id:
description: Unique ID for this request
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/GetWorkersResponse'
'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 VPC clusters that you have access to, use the `GET /v2/vpc/getClusters` API or run `ibmcloud ks cluster ls --provider vpc-classic`.
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 worker nodes for a cluster are listed.
events:
- name: containers-kubernetes.cluster-worker.list
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:
GetWorkersResponse:
type: array
items:
$ref: '#/components/schemas/GetCombinedWorkerResponse'
x-go-name: getWorkersResponse
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2/combined
GetCombinedWorkerResponse:
type: object
title: GetWorkerResponse is data returned by a GetWorkers request call.
properties:
dedicatedHostId:
type: string
x-go-name: DedicatedHostID
dedicatedHostPoolId:
type: string
x-go-name: DedicatedHostPoolID
flavor:
type: string
x-go-name: Flavor
health:
$ref: '#/components/schemas/GetWorkerResponseHealth'
id:
type: string
x-go-name: ID
kubeVersion:
$ref: '#/components/schemas/GetWorkerResponseKubeVersion'
lifecycle:
$ref: '#/components/schemas/GetWorkerResponseLifecycle'
location:
type: string
x-go-name: Location
networkInformation:
$ref: '#/components/schemas/GetWorkerResponseNetworkInformation'
networkInterfaces:
$ref: '#/components/schemas/GetWorkerResponseNetworkInterfaces'
poolID:
type: string
x-go-name: PoolID
poolName:
type: string
x-go-name: PoolName
provider:
type: string
x-go-name: Provider
x-go-name: GetWorkerResponse
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2/combined
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
GetWorkerResponseKubeVersion:
type: object
title: GetWorkerResponseKubeVersion provides information about the worker kubernetes version.
properties:
actual:
type: string
x-go-name: Actual
desired:
type: string
x-go-name: Desired
eos:
type: string
x-go-name: EOS
masterEOS:
type: string
x-go-name: MasterEOS
target:
type: string
x-go-name: Target
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2
GetWorkerResponseNetworkInterfaces:
type: array
title: GetWorkerResponseNetworkInterfaces represents a list of worker network interfaces.
items:
$ref: '#/components/schemas/GetWorkerResponseNetworkInterface'
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2/vpc
GetWorkerResponseLifecycle:
type: object
title: GetWorkerResponseLifecycle provides information about the state of the worker.
properties:
actualOperatingSystem:
type: string
x-go-name: ActualOperatingSystem
actualState:
type: string
x-go-name: ActualState
desiredOperatingSystem:
type: string
x-go-name: DesiredOperatingSystem
desiredState:
description: Possible state values include critical, deployed, deploying, deploy_failed, normal, provisioning, provision_failed, reloading, reload_failed, reload_pending, unknown, and warning. For more information, see the docs 'http://ibm.biz/worker-health-state'
type: string
x-go-name: DesiredState
message:
type: string
x-go-name: Message
messageDate:
type: string
x-go-name: MessageDate
messageDetails:
type: string
x-go-name: MessageDetails
messageDetailsDate:
type: string
x-go-name: MessageDetailsDate
pendingOperation:
type: string
x-go-name: PendingOperation
reasonForDelete:
type: string
x-go-name: ReasonForDelete
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2
GetWorkerResponseNetworkInterface:
type: object
title: GetWorkerResponseNetworkInterface represents a worker network interface.
properties:
cidr:
type: string
x-go-name: CIDR
ipAddress:
type: string
x-go-name: IPAddress
primary:
type: boolean
x-go-name: Primary
subnetID:
type: string
x-go-name: SubnetID
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2/vpc
ErrorType:
description: ErrorType error type
type: string
x-go-package: github.ibm.com/alchemy-containers/armada-model/errors
GetWorkerResponseHealth:
type: object
title: GetWorkerResponseHealth provides information about a worker's health.
properties:
message:
type: string
x-go-name: Message
state:
type: string
x-go-name: State
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2
GetWorkerResponseNetworkInformation:
type: object
title: GetWorkerResponseNetworkInformation provides classic-specific network information.
properties:
privateIP:
type: string
x-go-name: PrivateIP
privateVLAN:
type: string
x-go-name: PrivateVLAN
publicIP:
type: string
x-go-name: PublicIP
publicVLAN:
type: string
x-go-name: PublicVLAN
x-go-package: github.ibm.com/alchemy-containers/armada-api-model/json/v2/classic
x-refined-from:
- ibm-cloud-kubernetes-swagger.json
- ibm-cloud-kubernetes-openapi.yml