Overview
Defining service of compute public API service
Version information
Version : 0.9.112
License information
License : Apache 2.0
Terms of service : https://www.cloudera.com/legal/commercial-terms-and-conditions.html
URI scheme
Schemes : HTTPS
Consumes
-
application/json
Produces
-
application/json
Paths
Describes a deployment
POST /api/v1/compute/describeDeployment
Description
Gets a single deployment along with its extended history. This can also include all of the known templates.
Parameters
Type | Name | Schema |
---|---|---|
Body |
input |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Expected response to a valid request. |
|
default |
The default response on an error. |
List compute clusters
POST /api/v1/compute/listClusters
Description
List all compute clusters in a CDP Environment
Parameters
Type | Name | Schema |
---|---|---|
Body |
input |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Expected response to a valid request. |
|
default |
The default response on an error. |
Upgrades a deployment to a different chart.
POST /api/v1/compute/upgradeDeployment
Description
Upgrades a deployment to a different chart.
Parameters
Type | Name | Schema |
---|---|---|
Body |
input |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Expected response to a valid request. |
|
default |
The default response on an error. |
Definitions
AvailableDeploymentUpgrade
Available deployment upgrade structure.
Name | Description | Schema |
---|---|---|
applicationVersion |
The version of the components which would be installed from this deployment. |
string |
deploymentVersion |
The version of the deployment that is available to upgrade to. |
string |
Chart
Chart structure.
Name | Description | Schema |
---|---|---|
applicationVersion |
The version (usually of the images) of the components being deployed. |
string |
deploymentVersion |
The version of this chart (which is not the version of the components being deployed). |
string |
description |
The chart description. |
string |
name |
The chart name. |
string |
values |
Escaped JSON for values.yaml of that chart. |
string |
CommonImageCatalogResp
Image catalog response structure.
Name | Description | Schema |
---|---|---|
crn |
The catalog CRN (either CRN or name is required). |
string |
name |
The catalog name (either CRN or name is required). |
string |
CommonStorageSpecResp
Storage spec response structure.
Name | Description | Schema |
---|---|---|
csiEnabled |
Flag to enable CSI (Container Storage Interface). It further sets specific inline cloud formation policies required for CSI. |
boolean |
ComputeClusterOwner
Compute cluster owner structure.
Name | Description | Schema |
---|---|---|
accountId |
Owner’s account ID. |
string |
crn |
Owner’s actor CRN. |
string |
email |
Owner’s email. |
string |
firstName |
Owner’s firstname. |
string |
lastName |
Owner’s lastname. |
string |
userId |
Owner’s user ID. |
string |
ComputeClusterType
Object representing compute cluster types.
DedicatedExternal
- Value representing an external dedicated compute cluster. Shared
- Value representing a shared compute cluster. Dedicated
- Value representing an embedded dedicated compute cluster.
Type : enum (DedicatedExternal, Shared, Dedicated)
ComputePlatform
object representing CDP Compute Cluster Platform provider
OPENSHIFT
- OpenShift Container Platform cluster as compute platform (private cloud only). EKS
- EKS cluster as compute platform AKS
- AKS cluster as compute platform RKE
- Rancher RKE as compute platform (private cloud only).
Type : enum (OPENSHIFT, EKS, AKS, RKE)
Deployment
Deployment structure.
Name | Description | Schema |
---|---|---|
chart |
Chart that the deployment was created from. |
|
liftieManaged |
True if Liftie is managing this deployment. |
boolean |
name |
The name of the deployment. |
string |
namespace |
The namespace of the deployment. |
string |
overrides |
Escaped JSON overrides for the deployment’s properties. |
string |
revision |
Helm revision. |
integer (int32) |
status |
Status of the deployment. Currently supported values are UNKNOWN, DEPLOYED, UNINSTALLED, SUPERSEDED, FAILED, PENDING-INSTALL, PENDING-UPGRADE and PENDING-ROLLBACK. New values may be added in the future. |
string |
upgrades |
Any upgrades available for this deployment. |
< AvailableDeploymentUpgrade > array |
DescribeDeploymentRequest
Request structure for describing a deployment.
Name | Description | Schema |
---|---|---|
clusterCrn |
Compute cluster CRN. |
string |
name |
The name of the deployment. |
string |
namespace |
The namespace of the deployment. |
string |
DescribeDeploymentResponse
Response structure for describing a deployment.
Name | Description | Schema |
---|---|---|
deployment |
Deployment details. |
|
history |
History of the deployment. |
< History > array |
overrides |
Escaped JSON overrides for the deployment’s properties. Deprecated. |
string |
EnvCloudProvider
object representing CDP Environment cloud provider type
AWS
- CDP Environment installed in AWS AZURE
- CDP Environment installed in Azure OPENSHIFT
- CDP Environment installed as on-premise instalation using CDP DC services in base cluster
Type : enum (AWS, AZURE, OPENSHIFT)
Error
An object returned on an error.
Name | Description | Schema |
---|---|---|
code |
The error code. |
string |
message |
The error message. |
string |
History
History structure.
Name | Description | Schema |
---|---|---|
chart |
Chart that the deployment was created from. |
|
overrides |
Escaped JSON overrides for the deployment’s properties for given revision. |
string |
revision |
Helm revision. |
integer (int32) |
status |
Status of the deployment. Currently supported values are UNKNOWN, DEPLOYED, UNINSTALLED, SUPERSEDED, FAILED, PENDING-INSTALL, PENDING-UPGRADE and PENDING-ROLLBACK. New values may be added in the future. |
string |
ListClusterItem
List clusters item structure.
Name | Description | Schema |
---|---|---|
account |
/ CDP account ID. |
string |
availableUpgrades |
List of available kubernetes upgrades. |
< string > array |
clusterCrn |
Compute cluster CRN. |
string |
clusterId |
Compute cluster ID. |
string |
clusterName |
Compute cluster name. |
string |
clusterOwner |
Cluster owner. |
|
clusterSize |
Number of nodes in the cluster. |
integer (int32) |
clusterStateVersion |
Cluster state version. |
integer (int32) |
clusterType |
Compute cluster type. |
|
computePlatform |
Compute cluster platform provider. |
|
computePlatformVersion |
Compute cluster platform version. |
string |
creationTime |
Compute cluster creation time in ISO format. |
string |
deletionTime |
Compute cluster deletion time in ISO format. |
string |
envCloudProvider |
CDP environment cloud provider. |
|
envCrn |
CDP environment CRN. |
string |
envName |
CDP environment name. |
string |
imageCatalog |
The image catalog details. |
|
kubernetesVersion |
Kubernetes version. |
string |
labels |
Map of labels associated with this cluster. |
< string, string > map |
message |
Message with additional details about the cluster status. |
string |
region |
Region. |
string |
status |
Compute cluster status. |
string |
storage |
The storage specifications. |
|
updateTime |
Compute cluster update time in ISO format. |
string |
ListClustersRequest
Request object to list clusters.
Name | Description | Schema |
---|---|---|
envNameOrCrn |
Environment name or crn. |
string |
includeDeleted |
Include deleted clusters in the response. Optional. |
boolean |
pageSize |
The size of each page. Default is 100. |
integer (int32) |
startingToken |
A token to specify where to start paginating. This is the nextToken from a previously truncated response. 1 or empty for first page. |
string |
status |
Cluster Status for status filtering. |
string |
workloads |
Workloads for workload filtering. |
string |
ListClustersResponse
List clusters response.
Name | Description | Schema |
---|---|---|
clusters |
Array of CDP compute clusters. |
< ListClusterItem > array |
nextToken |
The token to use when requesting the next set of results. If not present, there are no additional results. |
string |
totalClusters |
Total number of clusters. |
integer (int32) |
totalPages |
Total number of pages. |
integer (int32) |
UpgradeDeploymentRequest
Request structure for upgrading a deployment.
Name | Description | Schema |
---|---|---|
chartVersion |
The version of the deployment to upgrade to. Defaults to latest version. |
string |
clusterCrn |
Compute cluster CRN. |
string |
name |
The name of the deployment. |
string |
namespace |
The namespace of the deployment. |
string |
overrides |
Escaped JSON overrides for the deployment’s properties. |
string |
UpgradeDeploymentResponse
Response structure for upgrading a deployment.
Name | Description | Schema |
---|---|---|
chart |
Chart that the deployment was created from. |
|
message |
A message returned about the status of the upgrade operation. |
string |
name |
The name of the deployment. |
string |
namespace |
The namespace of the deployment. |
string |
revision |
Helm revision. |
integer (int32) |
status |
Status of the deployment. Currently supported values are UNKNOWN, DEPLOYED, UNINSTALLED, SUPERSEDED, FAILED, PENDING-INSTALL, PENDING-UPGRADE and PENDING-ROLLBACK. New values may be added in the future. |
string |