Get Types
Find all the policy types available in the current org.
Retrieves the schema for this policy type
Zero-based page index (0..N)
The size of the page to be returned
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
Number of records you want
1
Number of records you want to skip
1
Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
OK
{
"content": [
{
"config": {
"enableDryRun": false,
"enableEnforcementType": false,
"enableOpaRegoCriteria": false,
"enablePolicyValidation": false,
"enableReconciliation": false,
"enableSingleProjectScope": false,
"enableUpdateNotification": false,
"maxNumberOfPoliciesPerOrg": 0,
"maxNumberOfPoliciesPerProject": 0
},
"definitionSchema": {
"$data": "string",
"$dynamicDefault": "string",
"$ref": "string",
"additionalProperties": false,
"allOf": [
"JsonSchemaImpl Object"
],
"anyOf": [
"JsonSchemaImpl Object"
],
"const": {},
"default": {},
"description": "string",
"encrypted": false,
"enum": [
{}
],
"format": "string",
"formatMaximum": "string",
"formatMinimum": "string",
"items": "ObjectOrListJsonSchemaImpl Object",
"maxItems": 0,
"maxLength": 0,
"maxProperties": 0,
"maximum": "number",
"minItems": 0,
"minLength": 0,
"minProperties": 0,
"minimum": "number",
"not": "JsonSchemaImpl Object",
"oneOf": [
"JsonSchemaImpl Object"
],
"pattern": "string",
"patternProperties": {
"patternProperties": "JsonSchemaImpl Object"
},
"properties": {
"properties": "JsonSchemaImpl Object"
},
"readOnly": false,
"required": [
"string"
],
"title": "string",
"type": "string",
"uniqueItems": false,
"writeOnly": false
},
"displayName": "string",
"id": "string",
"name": "string",
"targetSchema": {
"$data": "string",
"$dynamicDefault": "string",
"$ref": "string",
"additionalProperties": false,
"allOf": [
"JsonSchemaImpl Object"
],
"anyOf": [
"JsonSchemaImpl Object"
],
"const": {},
"default": {},
"description": "string",
"encrypted": false,
"enum": [
{}
],
"format": "string",
"formatMaximum": "string",
"formatMinimum": "string",
"items": "ObjectOrListJsonSchemaImpl Object",
"maxItems": 0,
"maxLength": 0,
"maxProperties": 0,
"maximum": "number",
"minItems": 0,
"minLength": 0,
"minProperties": 0,
"minimum": "number",
"not": "JsonSchemaImpl Object",
"oneOf": [
"JsonSchemaImpl Object"
],
"pattern": "string",
"patternProperties": {
"patternProperties": "JsonSchemaImpl Object"
},
"properties": {
"properties": "JsonSchemaImpl Object"
},
"readOnly": false,
"required": [
"string"
],
"title": "string",
"type": "string",
"uniqueItems": false,
"writeOnly": false
}
}
],
"empty": false,
"first": false,
"last": false,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": false,
"sort": [
{
"ascending": false,
"direction": "string",
"ignoreCase": false,
"nullHandling": "string",
"property": "string"
}
],
"unpaged": false
},
"size": 0,
"sort": [
{
"ascending": false,
"direction": "string",
"ignoreCase": false,
"nullHandling": "string",
"property": "string"
}
],
"totalElements": 0,
"totalPages": 0
}
A type of policy that includes the schema of the policy itself and the schema of the objects affected by the policy
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
Unauthorized
"PagePolicyType Object"
A type of policy that includes the schema of the policy itself and the schema of the objects affected by the policy
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
Forbidden
"PagePolicyType Object"
A type of policy that includes the schema of the policy itself and the schema of the objects affected by the policy
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
curl -H 'Authorization: <value>' https://{api_host}/policy/api/policyTypes