Skip to main content
Version: v4 (next)

Get a Schema Authorization Policy

MOD-CS-QRY-5

Get a single Schema Authorization Policy (SAP) by its numeric ID.

Query Parameters

NameDescriptionMandatory
idID of the schema authorization policy to getyes

Execute the Query

Usage

veranad query cs get-sap [id] --node $NODE_RPC --output json

Example

veranad query cs get-sap 1 --node $NODE_RPC --output json

Response schema

No SAP has been created on the public networks yet, so no live output is available. The response is QueryGetSchemaAuthorizationPolicyResponse, wrapping a single SchemaAuthorizationPolicy:

FieldTypeDescription
iduint64Policy ID
schema_iduint64Credential schema the policy is attached to
roleenumSCHEMA_AUTHORIZATION_POLICY_ROLE_ISSUER | SCHEMA_AUTHORIZATION_POLICY_ROLE_VERIFIER
urlstringURL of the policy document
digest_sristringSRI digest of the policy document
effective_fromtimestampWhen the version became active; null while pending
effective_untiltimestampWhen the version stopped being active; null while current
revokedboolWhether the version has been revoked
createdtimestampCreation time
versionuint32Version number of the policy