- Home
- Resources
- MgmtRoleCommandsResource
        POST /cm/service/roleCommands/jmapDump 
        Run the jmapDump diagnostic command. The command runs the jmap utility to
capture a dump of the role's java heap.
Available since API v8.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | the names of the roles to jmap. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | List of submitted commands. | 
          
        
       
      
        POST /cm/service/roleCommands/jmapHisto 
        Run the jmapHisto diagnostic command. The command runs the jmap utility to
capture a histogram of the objects on the role's java heap.
Available since API v8.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | the names of the roles to jmap. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | List of submitted commands. | 
          
        
       
      
        POST /cm/service/roleCommands/jstack 
        Run the jstack diagnostic command. The command runs the jstack utility to
capture a role's java thread stacks.
Available since API v8.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | the names of the roles to jstack. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | List of submitted commands. | 
          
        
       
      
        POST /cm/service/roleCommands/lsof 
        Run the lsof diagnostic command. This command runs the lsof utility to
list a role's open files.
Available since API v8.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | the names of the roles to lsof. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | List of submitted commands. | 
          
        
       
      
        POST /cm/service/roleCommands/restart 
        Restart a set of Cloudera Management Services roles.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | The roles to restart. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | A list of submitted commands (summary view). | 
          
        
       
      
        POST /cm/service/roleCommands/start 
        Start a set of Cloudera Management Services roles.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | The roles to start. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | A list of submitted commands (summary view). | 
          
        
       
      
        POST /cm/service/roleCommands/stop 
        Stop a set of Cloudera Management Services roles.
        
          Request Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiRoleNameList
 (JSON) | The roles to stop. | 
          
        
        
          Response Body
          
          
            | media type | data type | description | 
          
          
          
            | application/json | ApiBulkCommandList
 (JSON) | A list of submitted commands (summary view). |