Skip to main content

Delete a specific fence

Available since 2021 Update 6

tip

You can try out this workflow at REST API Playground.

Learn more about MicroStrategy REST API Playground here.

You want to delete the 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 delete an existing fence.

info

Obtain the authorization token needed to execute the request using POST /api/auth/login.

Delete an existing fence

Endpoint: DELETE /api/v2/iserver/fences/{id}.

Sample Request Header:

"accept": "application/json"
"X-MSTR-AuthToken": "g97nfc2l7icgsb37vjdh4b6gcu"

Sample Request Body: Empty

Sample Curl:

curl -X DELETE \
'demo.microstrategy.com/MicroStrategyLibrary/api/v2/iserver/fences/YWRtaW5pc3RyYXRvcl91c2VyX2ZlbmNl' \
-H 'accept: */*' \
-H 'X-MSTR-AuthToken: 27tm0ok3pno1qb9nd4opt7qq07'

Sample Response Body: Empty

Response Code: 204 (User fence is deleted successfully.)