Download OpenAPI specification:Download
Use the Imply Cloud Manager API to manage clusters in your Imply Cloud account.
With this API, you can deploy and manage Imply clusters through a secure, scalable, public-facing API. Use the Cloud Manager API to integrate cluster and user management into your infrastructure automation frameworks.
Access the Imply Cloud Manager API through the same custom domain through which you access your Imply Cloud account.
For example, https://{VANITY_DOMAIN}.implycloud.com
.
See the Manager API tutorial for an example of using the Cloud Manager API across a cluster lifecycle.
To use this API, you need the ManageClusters
permission to create, modify, and remove clusters across a customer organization.
Familiarize yourself with the Imply Manager for managing and monitoring an Imply deployment.
The Cloud Manager API uses the OAuth 2.0 protocol for authentication and authorization.
To send authorized requests to the Cloud Manager API, complete the following steps:
Enable SSO for your Imply Cloud account. SSO is disabled by default. Contact your Imply account representative if you need to enable Imply Cloud Auth. For more details, see Imply Cloud SSO auth.
Configure OAuth-based authentication. Refer to OAuth client authentication for how to configure access through a custom OAuth client.
manage-clusters
role in the Service Account Roles tab.When you create your OAuth client, Imply provides you an access token.
Use this access token to make requests to the Cloud Manager API.
Supply the token in the HTTP Authorization
request header using the Bearer
authentication scheme.
The Cloud Manager API provides for interoperability of Imply Cloud management with CI/CD tools. For instance, the Cloud Manager API is well suited for continuous deployment via a GitOps pipeline. With this setup, infrastructure configurations are stored in Git as the single source of truth, and the version-controlled code repository automatically updates production applications and infrastructure.
The following steps below present a high level overview of how you can use the Cloud Manager API in a GitOps scenario:
Cluster
object in JSON format.The following examples demonstrate common tasks performed with the Cloud Manager API.
To create a new cluster, send a POST request to the Clusters API. Submit the cluster configuration in the request body.
POST /clusters
The following example shows the request body:
{
"metadata": {
"name": "test-1"
},
"spec": {
"version": "2021.06",
"awsInstanceRole": "imply-instance",
"awsTags": [],
"encryptVolumes": true,
"commonRuntimeProperties": [],
"master": {
"replicas": 1,
"instanceType": "t2.small",
"coordinatorRuntimeProperties": [],
"overlordRuntimeProperties": []
},
"query": {
"replicas": 3,
"instanceType": "t2.small",
"brokerRuntimeProperties": [],
"routerRuntimeProperties": []
},
"data": {
"historicalRuntimeProperties": [],
"middleManagerRuntimeProperties": [],
"tier1": {
"replicas": 1,
"instanceType": "t2.small",
"historicalRuntimeProperties": [],
"middleManagerRuntimeProperties": []
}
},
"metadataStore": {
"instanceType": "db.t3.small",
"diskSize": 27,
"backupRetention": 14,
"encrypt": true
},
"pivot": {
"accessMode": "PROXIED"
},
"deepStorage": {
"path": "s3://my-bucket/prefix",
"encrypt": true
},
"druidExtensions": [],
"featureFlags": [],
"customFiles": []
}
}
To stop a cluster, send a PATCH request to the Clusters API. Specify the cluster ID in the path and the desired cluster state in the request body.
PATCH /clusters/{clusterId}
Content-Type: application/merge-patch+json
The following example shows the request body:
{
"spec": {
"desiredState": "STOPPED"
}
}
To delete a cluster, send a DELETE request to the Clusters API. Specify the ID of the cluster in the path.
DELETE /clusters/{clusterId}
The Imply Cloud Manager API returns standard HTTP status codes. Common error cases and example responses are listed below.
An HTTP/1.1 400 Bad Request
error is raised due to invalid user input.
The following example shows a response body for a 400 Bad Request
error due to a missing cluster name and an incorrect path for AWS S3 deep storage:
{
"error": {
"code": "BadArgument",
"message": "Request contains invalid arguments",
"details": [
{
"code": "NullValue",
"target": "metadata.name",
"message": "Cluster name must not be null"
},
{
"code": "MalformedValue",
"target": "spec.deepStorage.path",
"message": "Path is not a valid s3 path"
}
]
}
}
An HTTP/1.1 403 Forbidden
error is raised when the attempted action has not been authorized by the user.
The following example shows a response body for a 403 Forbidden
error:
{
"error": {
"code": "Unauthorized",
"message": "Provided user does not have permissions to complete this request"
}
}
An HTTP/1.1 409 Conflict
error is raised when an action is attempted on a cluster that is currently being updated. A cluster can apply only one update at a time.
The following example shows a response body for a 409 Conflict
error:
{
"error": {
"code": "StateConflict",
"message": "Cluster [e9e1e18f-a9e8-4dd7-8a18-768039c57f22] cannot transition from [UPDATING] to [STOPPED]"
}
}
A PUT request to overwrite a cluster configuration returns a 500 Server Error when you don't specify spec.pivot.accessMode
.
While this parameter isn't required to create a cluster, you must supply it when overwriting a cluster configuration.
Use the Clusters API to create and manage Imply clusters. To overwrite a cluster, provide a complete cluster configuration to replace the existing cluster. To update a cluster, provide a partial configuration with only the properties you want to modify.
Returns information on all clusters in your Imply Cloud account.
pretty | boolean Default: false Pretty print the results. |
[- {
- "metadata": {
- "name": "string",
- "uid": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}, - "status": {
- "rootCertificate": "string",
- "loadBalancers": {
- "public": "string",
- "private": "string"
}, - "servers": [
- {
- "instanceId": "string",
- "instanceType": "string",
- "privateIp": "192.168.0.1",
- "publicIp": "192.168.0.1",
- "state": "string",
- "nodeType": "MASTER"
}
], - "initialDruidPassword": "string",
- "status": "OK",
- "state": "PENDING",
- "updateState": {
- "cancellable": true,
- "totalStages": 0,
- "currentStage": 0
}, - "events": [
- {
- "level": "INFO",
- "message": "string",
- "source": "MANAGER",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "resourceVersion": 0
}
}
]
Creates a cluster.
dryRun | boolean Default: false Dry run option. Can be used to validate the cluster configuration. |
pretty | boolean Default: false Pretty print the results. |
Configuration of the cluster to be created.
required | object (ObjectMeta) Metadata that identifies the cluster. |
required | object (ClusterSpec) Metadata about a cluster. |
{- "metadata": {
- "name": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}
}
{- "metadata": {
- "name": "string",
- "uid": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}, - "status": {
- "rootCertificate": "string",
- "loadBalancers": {
- "public": "string",
- "private": "string"
}, - "servers": [
- {
- "instanceId": "string",
- "instanceType": "string",
- "privateIp": "192.168.0.1",
- "publicIp": "192.168.0.1",
- "state": "string",
- "nodeType": "MASTER"
}
], - "initialDruidPassword": "string",
- "status": "OK",
- "state": "PENDING",
- "updateState": {
- "cancellable": true,
- "totalStages": 0,
- "currentStage": 0
}, - "events": [
- {
- "level": "INFO",
- "message": "string",
- "source": "MANAGER",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "resourceVersion": 0
}
}
Returns information for a single cluster.
clusterId required | string The cluster ID |
pretty | boolean Default: false Pretty print the results. |
{- "metadata": {
- "name": "string",
- "uid": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}, - "status": {
- "rootCertificate": "string",
- "loadBalancers": {
- "public": "string",
- "private": "string"
}, - "servers": [
- {
- "instanceId": "string",
- "instanceType": "string",
- "privateIp": "192.168.0.1",
- "publicIp": "192.168.0.1",
- "state": "string",
- "nodeType": "MASTER"
}
], - "initialDruidPassword": "string",
- "status": "OK",
- "state": "PENDING",
- "updateState": {
- "cancellable": true,
- "totalStages": 0,
- "currentStage": 0
}, - "events": [
- {
- "level": "INFO",
- "message": "string",
- "source": "MANAGER",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "resourceVersion": 0
}
}
Updates a cluster.
You can provide a partial configuration to update a single property or a subset of properties.
clusterId required | string The cluster ID |
dryRun | boolean Default: false Dry run option. Can be used to validate the cluster configuration. |
force | boolean Default: false Enables hard updates. Note that rolling updates are the default. If both rolling and hard updates are available, setting this option to true changes the default behavior to hard updates. |
pretty | boolean Default: false Pretty print the results. |
Configuration of the updated cluster. This configuration is merged with the existing cluster definition.
required | object (ObjectMeta) Metadata that identifies the cluster. |
required | object (ClusterSpec) Metadata about a cluster. |
{- "metadata": {
- "name": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}
}
{- "metadata": {
- "name": "string",
- "uid": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}, - "status": {
- "rootCertificate": "string",
- "loadBalancers": {
- "public": "string",
- "private": "string"
}, - "servers": [
- {
- "instanceId": "string",
- "instanceType": "string",
- "privateIp": "192.168.0.1",
- "publicIp": "192.168.0.1",
- "state": "string",
- "nodeType": "MASTER"
}
], - "initialDruidPassword": "string",
- "status": "OK",
- "state": "PENDING",
- "updateState": {
- "cancellable": true,
- "totalStages": 0,
- "currentStage": 0
}, - "events": [
- {
- "level": "INFO",
- "message": "string",
- "source": "MANAGER",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "resourceVersion": 0
}
}
Deletes a cluster.
clusterId required | string The cluster ID |
{- "error": {
- "code": "BadArgument",
- "message": "Request contains invalid arguments",
- "details": [
- {
- "code": "NullValue",
- "target": "metadata.name",
- "message": "Cluster name must not be null"
}, - {
- "code": "MalformedValue",
- "target": "spec.deepStorage.path",
- "message": "Path is not a valid s3 path"
}
]
}
}
Overwrites a cluster configuration with a new configuration.
clusterId required | string The cluster ID |
dryRun | boolean Default: false Dry run option. Can be used to validate the cluster configuration. |
force | boolean Default: false Enables hard updates. Note that rolling updates are the default. If both rolling and hard updates are available, setting this option to true changes the default behavior to hard updates. |
pretty | boolean Default: false Pretty print the results. |
Configuration of the new cluster.
required | object (ObjectMeta) Metadata that identifies the cluster. |
required | object (ClusterSpec) Metadata about a cluster. |
{- "metadata": {
- "name": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}
}
{- "metadata": {
- "name": "string",
- "uid": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}, - "status": {
- "rootCertificate": "string",
- "loadBalancers": {
- "public": "string",
- "private": "string"
}, - "servers": [
- {
- "instanceId": "string",
- "instanceType": "string",
- "privateIp": "192.168.0.1",
- "publicIp": "192.168.0.1",
- "state": "string",
- "nodeType": "MASTER"
}
], - "initialDruidPassword": "string",
- "status": "OK",
- "state": "PENDING",
- "updateState": {
- "cancellable": true,
- "totalStages": 0,
- "currentStage": 0
}, - "events": [
- {
- "level": "INFO",
- "message": "string",
- "source": "MANAGER",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "resourceVersion": 0
}
}
Use the Clusters Historical API to obtain a previous configuration for a cluster. The cluster version number increments when the cluster configuration changes. You can access cluster information from past cluster states using its version number.
Returns information for a single cluster with the specified version.
View the version number in a cluster object at status.resourceVersion
.
clusterId required | string The cluster ID |
resourceVersion required | integer >= 0 Unique incrementing version number of the configuration of the cluster. |
{- "metadata": {
- "name": "string",
- "uid": "string"
}, - "spec": {
- "version": "string",
- "desiredState": "STARTED",
- "awsInstanceRole": "string",
- "awsKeyPair": "string",
- "awsTags": [
- {
- "name": "string",
- "value": { }
}
], - "encryptVolumes": true,
- "commonRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "master": {
- "replicas": null,
- "instanceType": "string",
- "coordinatorRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "overlordRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "query": {
- "replicas": 1,
- "instanceType": "string",
- "brokerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "routerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "pivotConfiguration": "string"
}, - "data": {
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "tier1": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier2": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}, - "tier3": {
- "replicas": 1,
- "instanceType": "string",
- "historicalRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
], - "middleManagerRuntimeProperties": [
- {
- "name": "string",
- "value": { }
}
]
}
}, - "metadataStore": {
- "instanceType": "string",
- "diskSize": 20,
- "backupRetention": 14,
- "monitoring": true,
- "encrypt": true
}, - "pivot": {
- "accessMode": "PROXIED",
- "url": "string",
- "roleAuthority": "NATIVE",
- "options": "string"
}, - "deepStorage": {
- "path": "s3://my-bucket/prefix",
- "encrypt": true
}, - "druidExtensions": [
- "string"
], - "customDruidExtensions": [
- {
- "name": "string",
- "path": "string"
}
], - "featureFlags": [
- "string"
], - "customFiles": [
- {
- "path": "string",
- "type": "USER",
- "executable": false,
- "unpack": false
}
]
}, - "status": {
- "rootCertificate": "string",
- "loadBalancers": {
- "public": "string",
- "private": "string"
}, - "servers": [
- {
- "instanceId": "string",
- "instanceType": "string",
- "privateIp": "192.168.0.1",
- "publicIp": "192.168.0.1",
- "state": "string",
- "nodeType": "MASTER"
}
], - "initialDruidPassword": "string",
- "status": "OK",
- "state": "PENDING",
- "updateState": {
- "cancellable": true,
- "totalStages": 0,
- "currentStage": 0
}, - "events": [
- {
- "level": "INFO",
- "message": "string",
- "source": "MANAGER",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "resourceVersion": 0
}
}
Use the Clusters Servers API when you need to restart a server in a cluster. When a server is restarted, the current server is terminated and a new server automatically starts.
Restarts a server in a cluster.
View server information for a cluster in status.servers
.
clusterId required | string The cluster ID |
instanceId required | string Server instance ID. |
{- "error": {
- "code": "BadArgument",
- "message": "Request contains invalid arguments",
- "details": [
- {
- "code": "NullValue",
- "target": "metadata.name",
- "message": "Cluster name must not be null"
}, - {
- "code": "MalformedValue",
- "target": "spec.deepStorage.path",
- "message": "Path is not a valid s3 path"
}
]
}
}