Summary:
List details of, modify, or delete a specified profile.
URL:
http(s)://{server hostname}/api/profile/{id}
Methods summary
- GET Method - List details of the specified profile.
- PUT Method - modify details of the specified profile.
- DELETE Method - delete the specified profile.
GET Method detail
Returns details of the specified profile.
Response:
Name | Description |
---|---|
id |
ID of this profile. |
name | user-specified unique name of the profile. |
rank |
rank of the profile. |
views | list of IDs of Views associate with this profile. |
osServices | list of IDs of OS Services associated with this profile. |
Example:
INPUT
curl -v -u -k admin:admin https://localhost/api/profile/6?media=json -H "content-type:application/json"
OUTPUT
{
"id": 6,
"name": "Test 6",
"rank": 1,
"views": [
8
],
"osServices": [
2
]
}
PUT Method detail
Modify the specified profile.
Request:
Name | Description |
---|---|
name | user-specified unique name of the profile. |
rank |
rank of the profile. |
views | list of IDs of Views associate with this profile. |
osServices | list of IDs of OS Services associated with this profile. |
Response:
Details of the profile, as the GET Method would return it.
Example:
INPUT
curl -u admin:admin https://localhost/api/autodiscovery?media=json -X PUT –H "content-type:application/json" -d \ '{"id" : "1"}'{
{
"name": "Test 6",
"rank": 1,
"views": [
8
],
"osServices": [
1
]
}
OUTPUT
{
"id": 6,
"name": "Test 6",
"rank": 1,
"views": [
8
],
"osServices": [
2
]
}
DELETE Method detail
Delete the specified profile.
Returns Status OK if successful.
Comments
0 comments
Please sign in to leave a comment.