curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_policy \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <api-key>' \
--data '{
"organizationId": "<string>",
"policyId": "<string>"
}'
{
"policy": {
"policyId": "<string>",
"policyName": "<string>",
"effect": "EFFECT_ALLOW",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
}
Get details about a Policy
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_policy \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <api-key>' \
--data '{
"organizationId": "<string>",
"policyId": "<string>"
}'
{
"policy": {
"policyId": "<string>",
"policyName": "<string>",
"effect": "EFFECT_ALLOW",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
}
A successful response.
The response is of type object
.
Was this page helpful?