Identity Broker REST API Reference

UnboundID Logo

/templates

This resource is available only to principals with these entitlements: "ROLE_READ_POLICYTEMPLATE" "ROLE_BROKER_ADMIN"

Mount Point: /auth/api/v1/templates/

GET

This operation is available only to principals with these entitlements: "ROLE_READ_POLICYTEMPLATE" "ROLE_BROKER_ADMIN"

Retrieve a list of Policy Templates from the entire set of defined Policy Templates.

Parameters

name description type default
startIndex The index number of the first item to be provided in the results. A null value is equivalent to 0. query
count The maximum number of items to be provided in the results. A null value signifies no maximum. query
sortBy Specifies how the results should be sorted. Allowed values are defined by com.unboundid.policy.models.PersistedPolicyTemplate.SortBy. A null value returns items in an unspecified order. query NAME_ASCENDING
filterBy Specifies how filtering will occur. Allowed values are defined in com.unboundid.policy.models.PersistedPolicyTemplate.FilterBy. query
filter user-supplied input used for filtering. query
excludesList comma-separated list of ids to exclude from results. query

Response Body

result: persistedPolicyTemplate
media types: application/json

Paged results of all requested Policy Templates.

Status Codes

code description
200 Success

POST

This operation is available only to principals with these entitlements: "ROLE_CREATE_POLICYTEMPLATE" "ROLE_BROKER_ADMIN"

Imports a policy template. If a template already exists with the same template Id, the template is updated, otherwise a new policy template is created.

Parameters

name description type default
name The friendly name for the policy template, or null if the template ID should be used as the friendly name. query

Request Body

element: (custom)
media types: text/xml

XML content of policy template of type com.unboundid.policy.models.xacml.PolicyType

Response Body

result: persistedPolicyTemplate
media types: application/json

The policy template, as persisted.

Status Codes

code description
201 Success
400 Bad Request