/clusters/{clusterName}/services/{serviceName}/roles
Mount Point: /api/v1/clusters/{clusterName}/services/{serviceName}/roles
POST
Create new roles in a given service.
| Service Type | Available Role Types |
|---|---|
| HDFS (CDH3) | NAMENODE, DATANODE, SECONDARYNAMENODE, BALANCER, GATEWAY |
| HDFS (CDH4) | NAMENODE, DATANODE, SECONDARYNAMENODE, BALANCER, HTTPFS, FAILOVERCONTROLLER, GATEWAY |
| MAPREDUCE | JOBTRACKER, TASKTRACKER, GATEWAY |
| HBASE | MASTER, REGIONSERVER, GATEWAY |
| YARN | RESROUCEMANAGER, NODEMANAGER, JOBHISTORY, GATEWAY |
| OOZIE | OOZIE_SERVER |
| ZOOKEEPER | SERVER |
| HUE (CDH3) | HUE_SERVER, BEESWAX_SERVER, KT_RENEWER, JOBSUBD |
| HUE (CDH4) | HUE_SERVER, BEESWAX_SERVER, KT_RENEWER |
Parameters
| name | description | type | default |
|---|---|---|---|
| clusterName | The name of the cluster. | path | |
| serviceName | Name of service. | path |
Request Body
| element: | roleList |
Roles to create.
Response Body
| element: | roleList |
List of created roles.
GET
Lists all roles of a given service.
Parameters
| name | description | type | default |
|---|---|---|---|
| clusterName | The name of the cluster. | path | |
| serviceName | Name of service. | path |
Response Body
| element: | roleList |
List of roles.