v1

latestOpenAPI 3.1.0BSD-32026-07-2471176175.5 KB
views

Create a new View

post/v2/views

Headers

cloudzero-idempotency-keystring

If passed, any subsequent operation with the same value for this header will return the exact same result. This is true for all responses, i.e. successes and errors.

cloudzero-test-keystring

If passed, the operation executes in the namespace specified by this key. Resource mutations in the namespace last for 1 hour.

Request body

namestring required

View name

filterViewFilter required

Filter mapping of dimension name to allowed values

principal_dimensionstring required

primary group by dimension for the view

Example request

{
  "filter": {
    "accounts": [
      "123456789012"
    ]
  }
}

Response

Successful Operation

Example response

{
  "view": {
    "filter": {
      "accounts": [
        "123456789012"
      ]
    }
  }
}