Get Clusters
This endpoint returns a list of clusters for a particular workspace (“application”). This API is available to API keys with app_policy_management
capability.
GET /openapi/v1/applications/{application_id}/clusters
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
application_id |
string |
The id for the workspace to which the cluster belongs. |
version |
string |
Indications the version of the workspace for which to get the clusters. |
include_inventory |
boolean |
Include the inventory of the clusters. |
Response object: Returns an array of all clusters for this particular workspace and version.
Sample python code
application_id = '5d02b493755f0237a3d6e078'
restclient.get('/applications/%s/clusters' % application_id)