public interface MgmtRolesResource
Modifier and Type | Method and Description |
---|---|
ApiRoleList |
createRoles(ApiRoleList roles)
Create new roles in the Cloudera Management Services.
|
ApiRole |
deleteRole(String roleName)
Delete a role from the Cloudera Management Services.
|
ApiCommandList |
listActiveCommands(String roleName,
DataView dataView)
List active role commands.
|
ApiRole |
readRole(String roleName)
Retrieve detailed information about a Cloudera Management Services role.
|
ApiConfigList |
readRoleConfig(String roleName,
DataView dataView)
Retrieve the configuration of a specific Cloudera Management Services role.
|
ApiRoleList |
readRoles()
List all roles of the Cloudera Management Services.
|
ApiConfigList |
updateRoleConfig(String roleName,
String message,
ApiConfigList config)
Update the configuration of a Cloudera Management Services role.
|
@Path(value="/") ApiRoleList createRoles(ApiRoleList roles)
roles
- Roles to create.@Path(value="/{roleName}") ApiRole deleteRole(String roleName)
roleName
- The role name.@Path(value="/") ApiRoleList readRoles()
@Path(value="/{roleName}") ApiRole readRole(String roleName)
roleName
- The role name.@Path(value="/{roleName}/config") ApiConfigList readRoleConfig(String roleName, DataView dataView)
roleName
- The role to look up.dataView
- The view of the data to materialize,
either "summary" or "full".@Path(value="/{roleName}/config") ApiConfigList updateRoleConfig(String roleName, String message, ApiConfigList config)
If a value is set in the given configuration, it will be added to the role's configuration, replacing any existing entries. If a value is unset (its value is null), the existing configuration for the attribute will be erased, if any.
Attributes that are not listed in the input will maintain their current values in the configuration.
roleName
- The role to modify.message
- Optional message describing the changes.config
- Configuration changes.@Path(value="/{roleName}/commands") ApiCommandList listActiveCommands(String roleName, DataView dataView)
roleName
- The role name.dataView
- The view of the data to materialize,
either "summary" or "full".Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.