You are viewing an older version. Click here to view the latest

Rest API documentation

Server
localhost
Server Variables

Get status of all the deployed addon on the cluster

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

uuidstring

UUID of the cluster

GET /v4/{projectId}/clusters/{uuid}/addons
Copy
Responses application/json
200

OK, after request is submitted successfully

No response body
403

Unauthorized to perform this operation

Response
Copy

Perform either addition/updation/upgrade operation on addon

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

uuidstring

UUID of the cluster

Request Body
objectobject
namestring

name of the addon to be deployed

versionstring

addon operator version of the kudo package

namespacestring

namespace under which the addon operator will be deployed

operationstring

operation to be performed - install/upgrade/uninstall

POST /v4/{projectId}/clusters/{uuid}/addons
Copy
Responses application/json
200

OK, after request is submitted successfully

No response body
403

Unauthorized to perform this operation

Response
Copy

Creates a cluster using auto deploy or manual mode

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

Request Body
POST /v4/{projectId}/clusters
Responses application/json
200

OK, if cluster create request was submitted successfully

No response body
403

Unauthorized to perform this operation

Response
Copy

Upgrade a cluster, identified by the uuid

Auth
Headers
X-Auth-Tokenstring
Path Params
uuidstring

UUID of the cluster

project_uuidstring

UUID of the project the cloud provider account belongs to

Request Body
objectobject
batchUpgradePercentnumber

Number between 1-100 which represents the percent of worker nodes to upgrade in parallel at once during an upgrade

POST /v4/{project_uuid}/clusters/{uuid}/upgrade
Copy
Responses application/json
200

OK, if upgrade request is successfully issued

No response body
403

Unauthorized to perform this operation

Response
Copy

Delete all cluster addons for a PMK cluster as specified by the cluster UUID

Auth
Headers
X-Auth-Tokenstring
Path Params
clusterIdstring

UUID of the cluster

projectIdstring

UUID of the project the cluster belongs to

DELETE /v4/{projectId}/clusters/{clusterId}/addons
Copy
Responses application/json
200

OK, if clusteraddons delete request was submitted successfully

No response body
403

Unauthorized to perform this operation

Response
Copy

Provides a list of supported pf9-kube roles on the DU.

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

POST /v4/{projectId}/clusters/supportedRoleVersions
Copy
Responses application/json
200

OK, List of supported roles versions.

No response body
Response
Copy

Provides a list of all the external clusters available to be added to management plane

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

GET /v4/{projectId}/externalClusters/discover
Copy
Responses application/json
200

OK, List of external clusters.

No response body
Response
Copy

Registers an external cluster

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

Request Body
objectobject
idstring

An unique cluster idenfier

providerstring

Name of the external K8S cluster provider service

cloudProviderIDstring

UUID of a cloud provider in PF9

providerDetailsobject

A dynamic field to include cloud specific parameters. For example, for EKS, we need the region to be able to register a cluster

POST /v4/{projectId}/externalClusters/register
Copy
Responses application/json
200

OK, if cluster create request was submitted successfully

No response body
403

Unauthorized to perform this operation

404

Cluster could not be founds

409

Cluster already registered

Response
Copy

Deregister an external cluster

Auth
Headers
X-Auth-Tokenstring
Path Params
projectIdstring

UUID of the project the cluster belongs to

POST /v4/{projectId}/externalClusters/:clusterID/deregister
Copy
Responses application/json
200

OK, if cluster create request was submitted successfully

No response body
403

Unauthorized to perform this operation

Response
Copy