Summary:
List the profiles in a specified server configuration set, and add a new profile to a config set.
Note, the OS Service rule information cannot be modified from this profile.
URL:
http(s)://{server hostname}/api/cfg/serverGroupConfig/{serverGroupId}/profiles
Methods summary
- GET Method - returns a list of the profiles in the specified server configuration set.
- POST Method - adds a profile to the specified server configuration set.
GET Method detail
Returns a list of the profiles in the specified server configuration set.
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/cfg/serverGroupConfig/328a7d3a-57fb-463f-a050-9a068b4fd106/profiles?media=json -H "content-type:application/json"
OUTPUT
{
"items" : [ {
"uuid" : "f6889f53-6896-4040-ad8a-43af718f4214",
"name" : "Test Profile for Config Sets",
"rank" : 1,
"viewsUUID" : [ "02782623-5b59-4701-bf94-ccbc870f0be9" ]
} ],
"count" : 1
}
POST Method detail
Add a profile to the specified server configuration set.
Request:
Name | Description |
---|---|
name | user-specified unique name 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:
Displays success or error.
Example:
INPUT
curl -v -u -k admin:admin https://localhost/api/cfg/serverGroupConfig/328a7d3a-57fb-463f-a050-9a068b4fd106/profiles?media=json -X POST -H "content-type:application/json" -d \
OUTPUT
{
"errorCode": "SUCCESS",
"errorDetails": null,
"data": {
"configurationChangeId": 6,
"serverGroupId": "328a7d3a-57fb-463f-a050-9a068b4fd106",
"timestampSec": 1700148868,
"modifiedBy": "admin",
"syncing": false
}
}
Comments
0 comments
Please sign in to leave a comment.