All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
collect_diagnostic_data | POST /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/diagnosticData | Collects diagnostic data |
create | POST /api/d6.2/environments/{environment}/deployments/{deployment}/clusters | Create a new cluster |
delete | DELETE /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster} | Delete a cluster by name |
export_cluster_configuration | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/config | Exports the cluster configuration for this cluster |
get_administration_settings | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/settings | Get administration settings for a cluster |
get_history | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/history | Get history of updates for a cluster |
get_metrics | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/metrics | Get cluster metrics by name |
get_redacted | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster} | Get a cluster by name |
get_status | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/status | Get a cluster status by name |
get_template_redacted | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/template | Get a cluster template by name |
list | GET /api/d6.2/environments/{environment}/deployments/{deployment}/clusters | List all clusters |
update | PUT /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster} | Update an existing cluster |
update_administration_settings | PUT /api/d6.2/environments/{environment}/deployments/{deployment}/clusters/{cluster}/settings | Update administration settings for a cluster |
collect_diagnostic_data(environment, deployment, cluster)
Collects diagnostic data
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Collects diagnostic data
api_instance.collect_diagnostic_data(environment, deployment, cluster)
except ApiException as e:
print("Exception when calling ClustersApi->collect_diagnostic_data: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create(environment, deployment, cluster_template)
Create a new cluster
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster_template = cloudera.director.ClusterTemplate() # ClusterTemplate |
try:
# Create a new cluster
api_instance.create(environment, deployment, cluster_template)
except ApiException as e:
print("Exception when calling ClustersApi->create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster_template | ClusterTemplate |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete(environment, deployment, cluster)
Delete a cluster by name
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Delete a cluster by name
api_instance.delete(environment, deployment, cluster)
except ApiException as e:
print("Exception when calling ClustersApi->delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str export_cluster_configuration(environment, deployment, cluster)
Exports the cluster configuration for this cluster
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Exports the cluster configuration for this cluster
api_response = api_instance.export_cluster_configuration(environment, deployment, cluster)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->export_cluster_configuration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
str
- Content-Type: Not defined
- Accept: application/hocon
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClusterAdministrationSettings get_administration_settings(environment, deployment, cluster)
Get administration settings for a cluster
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Get administration settings for a cluster
api_response = api_instance.get_administration_settings(environment, deployment, cluster)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->get_administration_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ClusterUpdateEventSummary] get_history(environment, deployment, cluster, num_events=num_events, page=page)
Get history of updates for a cluster
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
num_events = 56 # int | (optional)
page = 56 # int | (optional)
try:
# Get history of updates for a cluster
api_response = api_instance.get_history(environment, deployment, cluster, num_events=num_events, page=page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->get_history: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str | ||
num_events | int | [optional] | |
page | int | [optional] |
list[ClusterUpdateEventSummary]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Metrics get_metrics(environment, deployment, cluster)
Get cluster metrics by name
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Get cluster metrics by name
api_response = api_instance.get_metrics(environment, deployment, cluster)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->get_metrics: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Cluster get_redacted(environment, deployment, cluster)
Get a cluster by name
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Get a cluster by name
api_response = api_instance.get_redacted(environment, deployment, cluster)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->get_redacted: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status get_status(environment, deployment, cluster)
Get a cluster status by name
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Get a cluster status by name
api_response = api_instance.get_status(environment, deployment, cluster)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->get_status: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClusterTemplate get_template_redacted(environment, deployment, cluster)
Get a cluster template by name
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
try:
# Get a cluster template by name
api_response = api_instance.get_template_redacted(environment, deployment, cluster)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->get_template_redacted: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] list(environment, deployment)
List all clusters
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
try:
# List all clusters
api_response = api_instance.list(environment, deployment)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClustersApi->list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str |
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update(environment, deployment, cluster, desired)
Update an existing cluster
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
desired = cloudera.director.ClusterTemplate() # ClusterTemplate |
try:
# Update an existing cluster
api_instance.update(environment, deployment, cluster, desired)
except ApiException as e:
print("Exception when calling ClustersApi->update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str | ||
desired | ClusterTemplate |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_administration_settings(environment, deployment, cluster, administration_settings)
Update administration settings for a cluster
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ClustersApi(cloudera.director.ApiClient(configuration))
environment = 'environment_example' # str |
deployment = 'deployment_example' # str |
cluster = 'cluster_example' # str |
administration_settings = cloudera.director.ClusterAdministrationSettings() # ClusterAdministrationSettings |
try:
# Update administration settings for a cluster
api_instance.update_administration_settings(environment, deployment, cluster, administration_settings)
except ApiException as e:
print("Exception when calling ClustersApi->update_administration_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
environment | str | ||
deployment | str | ||
cluster | str | ||
administration_settings | ClusterAdministrationSettings |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]