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-metadataget-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
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used 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. |
--ids | string | No | Filter the results to spaces based on their IDs. Multiple IDs can be specified as a comma-separated list. |
--keys | string | No | Filter the results to spaces based on their keys. Multiple keys can be specified as a comma-separated list. |
--limit | string | No | Maximum 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. |
--sort | string | No | Used to sort the result by a particular field. |
Example:
bash
cf data-policies get-data-policy-spaces