servergroupinfo/{serverGroupName}/{targetType}

API Name

servergroupinfo/{serverGroupName}/{targetType}

Description

Provides configuration for passed target Type and passed server group. This will return the metric type equivalent to UI.

REST Methods

GET

Precondition

Server Manager Console must be running.

Input Params

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

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

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

serverGroupName: The name of server Group which configuration needs to be fetched.

targetType: The target Type which configuration needs to be fetched.

Sample Request

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

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

--header 'Authorization: Basic amRlX2FkbWluOmpkZV9hZG1pbg=='

Return

HTTP status 200 is returned.

Sample Response

{

"result": {

"targetType": [

"Cache",

"Database",

"Miscellaneous",

"Network",

"Security",

"Web Runtime"

]

}

}

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.