curl --request POST \
--url http://localhost:3000/v2/PolicyCreate \
--header 'Content-Type: application/json' \
--header 'X-Bunker-Token: <api-key>' \
--data '
{
"policyname": "<string>",
"policy": {
"Effect": "Allow",
"Principal": {},
"Action": [
"<string>"
],
"Resource": [
"<string>"
],
"Condition": {}
},
"policydesc": "<string>",
"request_metadata": {}
}
'{
"status": "ok",
"policyid": 123
}Creates a new access control policy
curl --request POST \
--url http://localhost:3000/v2/PolicyCreate \
--header 'Content-Type: application/json' \
--header 'X-Bunker-Token: <api-key>' \
--data '
{
"policyname": "<string>",
"policy": {
"Effect": "Allow",
"Principal": {},
"Action": [
"<string>"
],
"Resource": [
"<string>"
],
"Condition": {}
},
"policydesc": "<string>",
"request_metadata": {}
}
'{
"status": "ok",
"policyid": 123
}API token for authentication
Name of the policy
Policy definition
Description of the policy
Additional metadata for the request