List roles

get

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/roles

The API returns list of roles with a given criteria. It returns the first page of results ordered by name (ascending) by default.

Request

Query Parameters
  • Minimum Value: 1
    Maximum Value: 2000
    For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. The api will return no more than the number specified as limit, but might not return that exact number.
    Default Value: 20
  • Exact name of the role to be filtered. It is case insensitive filtering.
    Example:
    ManageCloudRole
  • Part of Role Name used to filter Roles
    Example:
    CloudRole
  • System generated page token of a page.
  • The order of the result set with direction. Allowed sort field is name. Allowed directions are DESC and ASC.
    Example:
    name:DESC

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Roles returned successfully
Body ()
Root Schema : RoleCollection
Type: object
This is the representation of list of Roles.
Show Source
Nested Schema : items
Type: array
The list of roles
Show Source
Nested Schema : RoleSummary
Type: object
It represents a Role
Match All
Show Source
Nested Schema : RoleDetails
Type: object
It represents a Role
Show Source
Match All
Show Source
Nested Schema : RoleCommonDetails
Type: object
It represents some information of a Role
Show Source
  • Description about the Role
    Example: Role has privileges to perform Enterprise Manager administrative operations
  • Private Role has WITH_ADMIN or not. This attribute exists only for Private Roles.
    Example: true

400 Response

Bad Request
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

403 Response

Forbidden
Body ()
Root Schema : MissingPrivErrorResponse
Type: object
Response sent back as an Error in case required privileges are missing
Show Source
Match All
Show Source
Nested Schema : missingPrivileges
Type: array
Privileges which are missing due to that the Error is occurred. This will have privilege internal name and display name only in the Privilege object
Show Source
Nested Schema : ErrorResponse
Type: object
Error response
Show Source
Nested Schema : MissingPrivilegeSummary
Type: object
It represents a Privilege which is missing on a Resource to view or manage it.
Show Source

404 Response

Not Found
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

Default Response

Unexpected Error
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top