API v2: Object Rights πΒΆ
Data StructuresΒΆ
Attribute | Type | Required | Description |
---|---|---|---|
name |
string | yes | Read-only. |
description |
string | yes | Read-only. |
Request for Retrieving Available Attributes of the Object-
RightsModels
ΒΆ
Request
Method | GET |
Path | /api/v2/objspec/{objtype}_right |
Variants |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Available Rights Values for Object TypesΒΆ
Request
Method | GET |
Path | /api/v2/capability/right/{objtype} |
Variants |
|
Example Request
GET /api/v2/capability/right/account
curl -s -k -X GET \
-H 'Authorization:sgfeea6jsaz4mum9su8w6' \
'https://10.31.87.227/api/v2/capability/right/account'
Response
{
"result": "success",
"account_right": [
{
"name": "read",
"description": ""
},
{
"name": "modify",
"description": ""
},
{
"name": "delete",
"description": ""
},
{
"name": "block",
"description": ""
}
]
}
The table below lists the available rights
values for each object type.
Object type | Available rights values |
---|---|
account |
|
group |
|
pool |
|
safe |
|
server |
|
user |
|