servergroupinfo

API Name

servergroupinfo

Description

Creates new Server group. Returns Error if invalid group name is passed or group already exists.

REST Methods

POST

Precondition

Server Manager Console must be running.

Note: For any new Server Group that is created, the name must not be duplicated.

Input Params

TOKEN: The TOKEN Header returned as a response to the /authenticate Server Manager REST API Call.

TOKEN: The TOKEN Cookie returned as a response to the /authenticate Server Manager REST API Call.

AUTHORIZATION: Base64 encoded Basic username:password combination necessary for Authentication.

Sample Request

'http://phoenix175736.appsdev0.fusionappsdphx1.oraclevcn.com:7101/manage/mgmtrestservice/servergroupinfo' \

--header 'Content-Type: application/json' \

--header 'Authorization: Basic amRlX2FkbWluOmpkZV9hZG1pbg==' \

--data '{

"serverGroupName":"Test",

"serverGroupDescription":"test Group"

}'

Return

HTTP status 200 is returned.

Sample Response

NA

Exception

400: Bad Request Status Code is returned in case the Request is not well formed for the API which is being invoked.

403: Forbidden, Valid Authentication Information is not passed with the Request.

500: Internal Server Error. In the unlikely case of error occurring on the Server. Refer to the logs for more details.