List policies in organization
Lists the policies of an organization or a project: one of each constraint, set there or not, with what applies. To change one, get it alone, for its ETag.
GET
Lists the policies of an organization or a project: one of each constraint, set there or not, with what applies.
To change one, get it alone, for its ETag.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
Match
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$pageSize?integerMaximum number to return. Defaults to 50; values above 500 are treated as 500.
Format
int32Range
0 <= valuepageToken?stringPage token from a previous response.
OK
application/json- response
nextPageToken*stringToken for the next page; empty on the last page.
policies*array<>A policy of each constraint, set here or not, ordered by constraint.
curl -X GET 'https://api.kosem.ai/v1/organizations/string/policies'Example Response
{
"nextPageToken": "string",
"policies": [
{
"constraint": "string",
"effective": {
"allowedValues": [
"string"
],
"enforced": true,
"max": 0,
"requiredPlan": "PRO",
"source": "organization"
},
"inherited": {
"allowedValues": [
"string"
],
"enforced": true,
"max": 0,
"requiredPlan": "PRO",
"source": "organization"
},
"name": "string",
"spec": {
"allowedValues": [
"string"
],
"enforced": true,
"max": 0
},
"updateTime": "2019-08-24T14:15:22Z"
}
]
}