Authorizations
Bearer token for authentication
Path Parameters
The name of the policy to retrieve
Query Parameters
if set, it will return the policy with the given digest otherwise it will return the latest version
If set, returns the policy with the given digest; otherwise returns the latest version
Organization owning this policy (empty for best effort fallback)
Organization owning this policy (empty for best effort fallback)
Response
A successful response.
Response containing a policy and its metadata
A policy that can be applied to materials in Chainloop to validate compliance with specific requirements
{
"metadata": {
"name": "name",
"description": "description",
"annotations": { "key": "annotations" },
"display_name": "display_name"
},
"kind": "kind",
"api_version": "api_version",
"spec": {
"path": "path",
"auto_match": { "path": "path", "embedded": "embedded" },
"inputs": [
{
"default": "default",
"name": "name",
"description": "description",
"required": true
},
{
"default": "default",
"name": "name",
"description": "description",
"required": true
}
],
"policies": [
{
"path": "path",
"kind": "kind",
"embedded": "embedded"
},
{
"path": "path",
"kind": "kind",
"embedded": "embedded"
}
],
"type": "type",
"embedded": "embedded"
}
}
A policy that can be applied to materials in Chainloop to validate compliance with specific requirements
{
"metadata": {
"name": "name",
"description": "description",
"annotations": { "key": "annotations" },
"display_name": "display_name"
},
"kind": "kind",
"api_version": "api_version",
"spec": {
"path": "path",
"auto_match": { "path": "path", "embedded": "embedded" },
"inputs": [
{
"default": "default",
"name": "name",
"description": "description",
"required": true
},
{
"default": "default",
"name": "name",
"description": "description",
"required": true
}
],
"policies": [
{
"path": "path",
"kind": "kind",
"embedded": "embedded"
},
{
"path": "path",
"kind": "kind",
"embedded": "embedded"
}
],
"type": "type",
"embedded": "embedded"
}
}
The digest of the policy
{
"format": "FORMAT_UNSPECIFIED",
"body": "body"
}
Whether this is the latest version of the policy
Whether this policy is builtin or custom
ID of the organization owning this policy (empty for builtin policies)
Name of the organization owning this policy
References to all versions of this policy
JSON schema of the inputs required by the policy