v1

latestOpenAPI 3.0.2Apache-2.02026-07-142963051.0 MB
Standard and Zones Storage Policy Assignments

List storage policy assignments

Fetches all the storage policy assignment for an enterprise or user.

get/storage_policy_assignments

Query parameters

markerstring

Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.

This requires usemarker to be set to true.

resolved_for_type'user' | 'enterprise' required

The target type to return assignments for.

resolved_for_idstring required

The ID of the user or enterprise to return assignments for.

Response

Returns a collection of storage policies for the enterprise or user.

limitinteger

The limit that was used for these entries. This will be the same as the limit query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.

next_markerstring nullable

The marker for the start of the next page of results.

prev_markerstring nullable

The marker for the start of the previous page of results.

Example response

{
  "limit": 1000,
  "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
  "prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih",
  "entries": [
    {
      "id": "ZW50ZXJwcmlzZV8xMjM0NTY3ODkw",
      "type": "storage_policy_assignment",
      "storage_policy": {
        "id": "11446498",
        "type": "storage_policy"
      },
      "assigned_to": {
        "id": "11446498",
        "type": "file"
      }
    }
  ]
}