API - Map Un-map Account with Account Group
Purpose
A post API to map or un-map account with account group.
Accessing the API
Endpoint: /API/APP/APP007/AccountGroupAction
HTTP METHOD
POST
Parameters
Parameters | Data Type | Required | Description |
---|---|---|---|
GroupName | String | YES | Group name |
AssetType | String | YES | Asset type |
AssetHost | String | YES | Host name |
DBInstance | String | YES | Database instance name |
AccountName | String | YES | Account name |
AccountType | String | YES | Local/AD Account/Just-In-Time Account |
Action | String | YES | Map/Unmap |
Instance | String | YES | Instance name |
Sample Request (JSON)
{
"GroupName":"",
"AssetType":"Windows Server",
"AssetHost":"PI or HOSTNAME",
"DBInstance":"",
"AccountName":"Account Name",
"AccountType":"Local/ADAccount",
"Action":"Map/Unmap",
"Instance":"Default"
}
Sample Response (JSON)
{
"Version":"2.3.0.0",
"IsSuccess":true,
"LogCode":"0",
"Result":"account XXXX unmapped from group (XXXX)",
"StatusCode":"Accepted",
"Timestamp":"03 Jun 2019 12:20:10 GMT 05:30:00"
}