Go to main content

Oracle® ZFS Storage Appliance RESTful API Guide, Release OS8.7.x

Exit Print View

Updated: December 2017
 
 

List Roles

Each role has the following summary properties. For full descriptions of the role properties, see the CLI Help.

Table 45  Role Properties
Type
Property Name
Description
string
name
Role name (immutable after creation)
string
description
Description of role

Example Request:

GET /api/role/v1/roles HTTP/1.1
Authorization: Basic abcefgMWE=
Host: zfssa.example.com:215
Accept: application/json

Example Response:

{
    "roles": [{
        "description": "Basic administration",
        "href": "/api/role/v1/roles/basic",
        "name": "basic",
        "role": "basic"
    }, {
        "description": "a",
        "href": "/api/role/v1/roles/rola",
        "name": "rola",
        "role": "rola"
    }]
}