cURL
curl --request POST \ --url http://localhost:3000/v2/PolicyGet \ --header 'Content-Type: application/json' \ --header 'X-Bunker-Token: <api-key>' \ --data ' { "policyid": 123, "policyname": "<string>", "request_metadata": {} } '
{ "status": "ok", "policyname": "<string>", "policydesc": "<string>", "policy": {} }
Retrieves information about a specific policy
API token for authentication
ID of the policy
Name of the policy
Additional metadata for the request
Policy information retrieved successfully
"ok"
Description of the policy
Policy definition