Skip to main content

Get Service Policy Schema

Request

Allows a user to retrieve the Cedar schema for the given service, in JSON representation. The Cedar schema describes the attributes and resource types that can be referenced in access policy conditions for each action of the service. Access is controlled based on the project identified by projectId.

The auth token's access policy must allow action:use/getServicePolicySchema.

Security
bearerAuth
Path
projectIdstring(ProjectId)^project:[0-9a-zA-Z](?![^:]*-$)(?![^:]*--)[0-...required

Globally unique identifier of a project. Callers may URL encode this value.

Example:project:abc-123
Query
serviceIdstring(ServiceId)^service:[a-zA-Z][a-zA-Z0-9]{0,49}/[a-zA-Z][a...required

Fully qualified, universally unique id of a service.

Example:serviceId=service:equinix/sts
Payload
// No request payload

Responses

Success

Bodyapplication/json
schemaobjectrequired
Response
{ "schema": { "property1": null, "property2": null } }
Was this page helpful?