UserClouds logo
Authz/Edges

List Edges

This endpoint returns a paginated list of all edges in a tenant. The list can be filtered to only include edges with a specified organization, source object or target object.

GET
/authz/edges

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

source_object_id?string

Optional - allows filtering by source object ID

target_object_id?string

Optional - allows filtering by target object ID

edge_type_id?string

Optional - allows filtering by edge ID

Response Body

curl -X GET "https://your-tenant-name.tenant.userclouds.com/authz/edges?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&source_object_id=string&target_object_id=string&edge_type_id=string"
fetch("https://your-tenant-name.tenant.userclouds.com/authz/edges?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&source_object_id=string&target_object_id=string&edge_type_id=string")
package main

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

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/authz/edges?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&source_object_id=string&target_object_id=string&edge_type_id=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/authz/edges?starting_after=string&ending_before=string&limit=string&filter=string&sort_key=string&sort_order=string&version=string&source_object_id=string&target_object_id=string&edge_type_id=string"

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

print(response.text)
{
  "data": [
    {
      "created": "2019-08-24T14:15:22Z",
      "deleted": "2019-08-24T14:15:22Z",
      "edge_type_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "source_object_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "target_object_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "updated": "2019-08-24T14:15:22Z"
    }
  ],
  "has_next": true,
  "has_prev": true,
  "next": "string",
  "prev": null
}
Empty
Empty
Empty