Skip to main content
POST
/
v2
/
PolicyGet
Get policy information
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": {}
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
policyid
integer

ID of the policy

policyname
string

Name of the policy

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Policy information retrieved successfully

status
string
Example:

"ok"

policyname
string

Name of the policy

policydesc
string

Description of the policy

policy
object

Policy definition