Summary:
List details of, modify, or delete a profile within a config set.
Note, the OS Service rule information cannot be modified from this profile.
URL:
http(s)://{server hostname}/api/cfg/serverGroupConfig/{serverGroupId}/profile/{profileName}
Note, for {profileName}, both the profile name and the profile UUID can be used.
Methods summary
- GET Method - return details of a profile in the specified config set.
- PUT Method - modify a profile in the specified config set.
- DELETE Method - delete a profile in the specified config set.
GET Method detail
Return details of a profile in the specified config set.
Response:
Name | Description |
---|---|
uuid | unique universal ID of the profile. |
name | name of the profile. |
rank | rank of the profile. |
viewsUUID | list of Views associated with this profile by their unique universal ID. |
Example:
INPUT
curl -v -u -k admin:admin https://localhost/api/cfg/serverGroupConfig/a28a4692-2693-4c7f-97ee-4ecef7025c69/profiles/28d8b244-d740-48df-887d-d6684bc92ef3?media=json -H "content-type:application/json"
OUTPUT
{
"uuid": "28d8b244-d740-48df-887d-d6684bc92ef3",
"name": "Test Profile for Config Set 2",
"rank": 1,
"viewsUUID": [
"25d11ad6-3afa-43ff-9e78-74d06c1ecf0c",
"64e89bb1-fc21-4dcd-b6e8-9859f4213950"
]
}
PUT Method detail
Modify a profile in the specified config set.
Request:
Name | Description |
---|---|
name | name of the profile. |
rank | rank of the profile. |
viewsUUID | list of Views associated with this profile by their unique universal ID. |
Response:
Returns details as would the GET Method above.
Example:
INPUT
curl -u admin:admin https://localhost/api/cfg/serverGroupConfig/a28a4692-2693-4c7f-97ee-4ecef7025c69/profiles/28d8b244-d740-48df-887d-d6684bc92ef3?media=json -X PUT -H "content-type:application/json" -d '
{
"name": "Test Profile for Config Sets 2 name updated",
"rank": 1,
"viewsUUID": [
"25d11ad6-3afa-43ff-9e78-74d06c1ecf0c",
"64e89bb1-fc21-4dcd-b6e8-9859f4213950"
]
}
OUTPUT
{
"uuid": "28d8b244-d740-48df-887d-d6684bc92ef3",
"name": "Test Profile for Config Set 2 name updated",
"rank": 1,
"viewsUUID": [
"25d11ad6-3afa-43ff-9e78-74d06c1ecf0c",
"64e89bb1-fc21-4dcd-b6e8-9859f4213950"
]
}
DELETE Method detail
Delete a profile in the specified config set.
Returns Status OK if successful.
Comments
0 comments
Please sign in to leave a comment.