List Access Policy Templates
This endpoint returns a paginated list of access policy templates in a tenant. The list can be filtered to only include templates with a specified name or version.
Query Parameters
A cursor value after which the returned list will start
A cursor value before which the returned list will end
The maximum number of results to be returned per page
A filter clause to use in the pagination query
A comma-delimited list of field names to sort the returned results by - the last field name must be 'id'
The order in which results should be sorted (ascending or descending)
The version of the API to be called
Optional - allows filtering by template name
Optional - allows filtering by template version
Optional - if versioned is true, endpoint will return all versions of each access policy template in the response. Otherwise, only the latest version of each template will be returned.
Response Body
curl -X GET "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/accesstemplate?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&template_name=string&template_version=string&versioned=string"
fetch("https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/accesstemplate?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&template_name=string&template_version=string&versioned=string")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/accesstemplate?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&template_name=string&template_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/accesstemplate?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&template_name=string&template_version=string&versioned=string"
response = requests.request("GET", url)
print(response.text)
{
"data": [
{
"created": "2019-08-24T14:15:22Z",
"deleted": "2019-08-24T14:15:22Z",
"description": "string",
"function": "string",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"is_system": true,
"name": "string",
"updated": "2019-08-24T14:15:22Z",
"version": 0
}
],
"has_next": true,
"has_prev": true,
"next": "string",
"prev": null
}