This command creates a new role.
|
Example Request:
POST /api/role/v1/roles HTTP/1.1 Authorization: Basic abcefgMWE= Host: zfs-storage.example.com:215 Accept: application/json Content-Type: application/json Content-Length: 71 {"name":"role_workflow", "description":"Role to run workflows"}
Example Result:
HTTP/1.1 201 Created X-Zfssa-Appliance-Api: 1.0 Content-Type: application/json Content-Length: 143 Location: /api/role/v1/roles/role_workflow { "role": { "authorizations": [], "description": "Role to run workflows", "href": "/api/role/v1/roles/role_workflow", "name": "role_workflow" } }