UserClouds logo
Tokenizer/Policies/Access

List Access Policies

This endpoint returns a list of access policies in a tenant. The list can be filtered to only include policies with a specified name or version.

GET
/tokenizer/policies/access

Query Parameters

starting_after?string

A cursor value after which the returned list will start

ending_before?string

A cursor value before which the returned list will end

limit?string

The maximum number of results to be returned per page

filter?string

A filter clause to use in the pagination query

sort_key?string

A comma-delimited list of field names to sort the returned results by - the last field name must be 'id'

sort_order?string

The order in which results should be sorted (ascending or descending)

version?string

The version of the API to be called

policy_name?string

Optional - allows filtering by access policy name

policy_version?string

Optional - allows filtering by access policy version

versioned?string

Optional - set versioned to be true to include all prior versions of access policies in response

Response Body

curl -X GET "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/access?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&policy_name=string&policy_version=string&versioned=string"
fetch("https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/access?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&policy_name=string&policy_version=string&versioned=string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/access?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&policy_name=string&policy_version=string&versioned=string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/access?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&policy_name=string&policy_version=string&versioned=string"

response = requests.request("GET", url)

print(response.text)
{
  "data": [
    {
      "components": [
        {
          "policy": {
            "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
            "name": "string"
          },
          "template": {
            "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
            "name": "string"
          },
          "template_parameters": "string"
        }
      ],
      "description": "string",
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "is_autogenerated": true,
      "is_system": true,
      "name": "string",
      "policy_type": "composite_and",
      "required_context": {
        "property1": "string",
        "property2": "string"
      },
      "tag_ids": [
        "248df4b7-aa70-47b8-a036-33ac447e668d"
      ],
      "thresholds": {
        "announce_max_execution_failure": true,
        "announce_max_result_failure": true,
        "max_execution_duration_seconds": 0,
        "max_executions": 0,
        "max_results_per_execution": 0
      },
      "version": 0
    }
  ],
  "has_next": true,
  "has_prev": true,
  "next": "string",
  "prev": null
}
Empty
Empty
Empty