List Storage Policies

List Storage Policies

API code: LIST_STORAGE_POLICIES
Pre-authorized role(s): TENANT_ADMIN | PROVIDER_ADMIN
Platform(s): CLOUDIAN

Request
URI
GET
https://apaas-29.eng.vmware.com//api/v1/core/storage-policies
COPY
Query Parameters
string
region
Optional

The region of a resource.

boolean
include-usage
Optional

Indicating whether to show the buckets which are using the storage policy.

integer
offset
Optional

The start index of items to return for the current page.

integer
limit
Optional

The max count of items to return for the current page.

string
order
Optional

The sort spec of the collection. The value is of pattern 'property ASC|DESC'. Only single property order is supported.
Examples:

  • lastModifiedDate DESC
  • name ASC

string
filter
Optional

The RSQL expression to filter page results based on property comparison.
The logical operations include:

  • Logical AND ';' or 'and'
  • Logical OR ',' or 'or'
The comparison operations include:
  • Equal to '=='
  • Not equal to '!='
  • Less than '=lt=' or '<'
  • Less than or equal to '=le=' or '<='
  • Greater than operator '=gt=' or '>'
  • Greater than or equal to '=ge=' or '>='
  • In '=in='
  • Not in '=out='
The logic operations can be grouped by parentheses:
  • (..)
  • (..);(..)
  • (..),(..)
To know which property supports which filter operators, please refer to the type resource, e.g. /api/v1/types/bucket.
Date property value format must be ISO8601 compliant, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ. When a timezone offset is presented with a plus (+) separator, the plus character must be encoded as %2D.
Examples:
  • lastModifiedDate<2018-10-14T02:36:08.262%2D0000
  • foo1=="value1" and foo2>value2
  • foo1=in=(value1,value2);foo2=out=(value3,value4,value5),foo3==value6*value7


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns PageStoragePolicy of type(s) application/json
{
    "items": [
        {
            "id": "string",
            "name": "string",
            "description": "string",
            "replicationScheme": {
                "replicationScheme": 0
            },
            "ecScheme": {
                "dataCenters": [
                    "string"
                ],
                "k": 0,
                "m": 0,
                "replicated": false
            },
            "usage": {
                "tenants": 0,
                "buckets": 0
            },
            "visibleTenants": [
                {
                    "id": "string",
                    "name": "string",
                    "storageTenantId": "string",
                    "siteId": "string",
                    "isRemote": false
                }
            ],
            "regionDefault": false,
            "status": "string",
            "region": "string"
        }
    ],
    "pageInfo": {
        "offset": 0,
        "limit": 0,
        "total": 0
    }
}
items
Optional

items

pageInfo
Optional

pageInfo