Skip to content

data-policies

get-data-policy-metadata

Get data policy metadata for the workspace

Returns data policy metadata for the workspace.

Permissions required: Only apps can make this request. Permission to access the Confluence site ('Can use' global permission).

GET /data-policies/metadata

Example:

bash
cf data-policies get-data-policy-metadata

get-data-policy-spaces

Get spaces with data policies

Returns all spaces. The results will be sorted by id ascending. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.

Permissions required: Only apps can make this request. Permission to access the Confluence site ('Can use' global permission). Only spaces that the app has permission to view will be returned.

GET /data-policies/spaces

FlagTypeRequiredDescription
--cursorstringNoUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
--idsstringNoFilter the results to spaces based on their IDs. Multiple IDs can be specified as a comma-separated list.
--keysstringNoFilter the results to spaces based on their keys. Multiple keys can be specified as a comma-separated list.
--limitstringNoMaximum number of spaces per result to return. If more results exist, use the Link response header to retrieve a relative URL that will return the next set of results.
--sortstringNoUsed to sort the result by a particular field.

Example:

bash
cf data-policies get-data-policy-spaces