Retrieve a specific fence
You want to get the detailed information of user fence administrator_user_fence
having id YWRtaW5pc3RyYXRvcl91c2VyX2ZlbmNl, which reserves env-296739laio1use1
node and configured for Administrator
user/usergroups.
The user ID is 54F3D26011D2896560009A8E67019608
. The usergroup ID is E96685CD4E60068559F7DFAC7C2AA851
.
DssXmlPrivilegesConfigureServerBasic and DssXmlPrivilegesUseClusterMonitor privileges are required to retrieve a specific user fence.
Obtain the authorization token needed to execute the request using POST /api/auth/login.
Get the detailed information of a specific fence
Endpoint: GET /api/v2/iserver/fences/{id}.
Sample Request Header:
"accept": "application/json"
"X-MSTR-AuthToken": "g97nfc2l7icgsb37vjdh4b6gcu"
Sample Request Body: Empty
Sample Curl:
curl -X GET \
'https://demo.microstrategy.com/MicroStrategyLibrary/api/iserver/fences/YWRtaW5pc3RyYXRvcl91c2VyX2ZlbmNl' \
-H 'accept: application/json' \
-H 'X-MSTR-AuthToken: g97nfc2l7icgsb37vjdh4b6gcu'
Sample Response Body:
users
and usergroups
can be configured only for user fence, therefore the response body for workload fence should contain empty users
and usergroups
fields.
You can view the detailed information of administrator_user_fence
user fence in the body of the response. The detailed information includes rank
, name
, type
, reserved nodes
, configured users
, usergroups
and projects
.
{
"rank": 1,
"name": "administrator_user_fence",
"type": "user_fence",
"nodes": ["env-295232laiouse1"],
"users": [
{
"id": "54F3D26011D2896560009A8E67019608",
"name": "Administrator"
}
],
"usergroups": [
{
"id": "E96685CD4E60068559F7DFAC7C2AA851",
"name": "Administrator"
}
],
"projects": [
{
"id": "B7CA92F04B9FAE8D941C3E9B7E0CD754",
"name": "MicroStrategy Tutorial"
}
],
"id": "YWRtaW5pc3RyYXRvcl91c2VyX2ZlbmNl"
}
Response Code: 200 (The detailed information of a given fence is returned successfully.)