public interface ClouderaManagerResourceV2 extends ClouderaManagerResource
Modifier and Type | Method and Description |
---|---|
ApiDeployment |
getDeployment(DataView dataView)
Retrieve full description of the entire Cloudera Manager deployment
including all hosts, clusters, services, roles, users, settings, etc.
|
MgmtServiceResourceV2 |
getMgmtServiceResource()
Return the Cloudera Management Services resource.
|
ApiCommand |
hostsDecommissionCommand(ApiHostNameList hostNameList)
Decommission the given hosts.
|
ApiCommand |
hostsRecommissionCommand(ApiHostNameList hostNameList)
Recommission the given hosts.
|
ApiCommand |
hostsStartRolesCommand(ApiHostNameList hostNameList)
Start all the roles on the given hosts.
|
ApiDeployment |
updateDeployment(ApiDeployment deployment,
Boolean deleteCurrentDeployment)
Apply the supplied deployment description to the system.
|
collectDiagnosticDataCommand, generateCredentialsCommand, getConfig, getLog, getVersion, inspectHostsCommand, listActiveCommands, readLicense, updateConfig, updateLicense
@Path(value="/deployment") ApiDeployment getDeployment(DataView dataView)
This object can be used to reconstruct your entire deployment
Note: Only users with sufficient privileges are allowed to call this.
Note: starting with v3, the deployment information contais data about Cloudera Manager peers configured for the instance. This data contains plain text authentication information used to connect to the remote peer.
dataView
- May be one of "export" (default) or "export_redacted". The latter
replaces configurations that are sensitive with the word "REDACTED".@Path(value="/deployment") ApiDeployment updateDeployment(ApiDeployment deployment, Boolean deleteCurrentDeployment)
You may specify a complete or partial deployment, e.g. you can provide host info with no clusters. However, if you request that the current deployment be deleted, you are required to specify at least one admin user or this call will fail. This is to protect you from creating a system that cannot be logged into again.
If there are any errors creating (or optionally deleting) a deployment, all changes will be rolled back leaving the system exactly as it was before calling this method. The system will never be left in a state where part of the deployment is created and other parts are not.
If the submitted deployment contains entities that require Cloudera Enterprise license, then the license should be provided to Cloudera Manager before making this API call.
deployment
- The deployment to createdeleteCurrentDeployment
- If true, the current deployment is deleted
before the specified deployment is applied@Path(value="/commands/hostsDecommission") ApiCommand hostsDecommissionCommand(ApiHostNameList hostNameList)
@Path(value="/commands/hostsRecommission") ApiCommand hostsRecommissionCommand(ApiHostNameList hostNameList)
@Path(value="/commands/hostsStartRoles") ApiCommand hostsStartRolesCommand(ApiHostNameList hostNameList)
@Path(value="/service") MgmtServiceResourceV2 getMgmtServiceResource()
getMgmtServiceResource
in interface ClouderaManagerResource
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.