List versions of a policy set
List versions of a policy set
GET/zones/{zone_id}/policy-sets/{policy_set_id}/versions
List versions of a policy set
Path Parameters
zone_id: string
policy_set_id: string
Query Parameters
after: optional string
Cursor for forward pagination. Returned in Pagination.after_cursor. Mutually exclusive with before.
minLength1
maxLength255
before: optional string
Cursor for backward pagination. Returned in Pagination.before_cursor. Mutually exclusive with after.
minLength1
maxLength255
expand: optional array of "total_count"
Opt-in to additional response fields. Repeatable; matches the expand[] convention used across the Keycard API.
limit: optional number
Maximum number of items to return per page.
minimum1
maximum100
sort: optional "created_at"
Field to sort by.
Header Parameters
"X-API-Version": optional string
"X-Client-Request-ID": optional string
formatuuid
Returns
List versions of a policy set
curl https://api.keycard.ai/zones/$ZONE_ID/policy-sets/$POLICY_SET_ID/versions{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "created_by",
"manifest": {
"entries": [
{
"policy_id": "policy_id",
"policy_version_id": "policy_version_id",
"sha": "sha"
}
]
},
"manifest_sha": "manifest_sha",
"owner_type": "platform",
"policy_set_id": "policy_set_id",
"schema_version": "schema_version",
"version": 0,
"active": true,
"archived_at": "2019-12-27T18:11:19.117Z",
"archived_by": "archived_by",
"attestation": {
"attested_at": "2019-12-27T18:11:19.117Z",
"attested_by": "attested_by",
"key_id": "key_id",
"manifest_sha": "manifest_sha",
"policy_set_id": "policy_set_id",
"policy_set_version": 0,
"status": "created",
"type": "policy_set_attestation",
"v": 1,
"zone_id": "zone_id"
}
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "created_by",
"manifest": {
"entries": [
{
"policy_id": "policy_id",
"policy_version_id": "policy_version_id",
"sha": "sha"
}
]
},
"manifest_sha": "manifest_sha",
"owner_type": "platform",
"policy_set_id": "policy_set_id",
"schema_version": "schema_version",
"version": 0,
"active": true,
"archived_at": "2019-12-27T18:11:19.117Z",
"archived_by": "archived_by",
"attestation": {
"attested_at": "2019-12-27T18:11:19.117Z",
"attested_by": "attested_by",
"key_id": "key_id",
"manifest_sha": "manifest_sha",
"policy_set_id": "policy_set_id",
"policy_set_version": 0,
"status": "created",
"type": "policy_set_attestation",
"v": 1,
"zone_id": "zone_id"
}
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}