UserClouds logo
Tokenizer/Policies/Accesstemplate/Id

Get Access Policy Template

This endpoint gets an access policy template by ID.

GET
/tokenizer/policies/accesstemplate/{id}

Path Parameters

idstring
Formatuuid

Query Parameters

template_version?string

Optional - if not specified, the latest template will be returned

Response Body

curl -X GET "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/accesstemplate/248df4b7-aa70-47b8-a036-33ac447e668d?template_version=string"
fetch("https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/accesstemplate/248df4b7-aa70-47b8-a036-33ac447e668d?template_version=string")
package main

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

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/tokenizer/policies/accesstemplate/248df4b7-aa70-47b8-a036-33ac447e668d?template_version=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/248df4b7-aa70-47b8-a036-33ac447e668d?template_version=string"

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

print(response.text)
{
  "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
}
Empty
Empty
Empty