policies_expression_used_by_list
GET/api/v3//policies/expression/:policy_uuid/used_by/
Get a list of all objects that use this object
Request
Path Parameters
policy_uuid uuidrequired
A UUID string identifying this Expression Policy.
Responses
- 200
 - 400
 - 403
 
- application/json
 
- Schema
 - Example (from schema)
 
Schema
Array [
]
app stringrequired
model_name stringrequired
pk stringrequired
name stringrequired
action UsedByActionEnum (string)required
Possible values: [cascade, cascade_many, set_null, set_default]
[
  {
    "app": "string",
    "model_name": "string",
    "pk": "string",
    "name": "string",
    "action": "cascade"
  }
]
- application/json
 
- Schema
 - Example (from schema)
 
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
  "non_field_errors": [
    "string"
  ],
  "code": "string"
}
- application/json
 
- Schema
 - Example (from schema)
 
Schema
detail stringrequired
code string
{
  "detail": "string",
  "code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
 - curl
 - dart
 - go
 - http
 - java
 - javascript
 - kotlin
 - c
 - nodejs
 - objective-c
 - ocaml
 - php
 - powershell
 - python
 - r
 - ruby
 - rust
 - shell
 - swift
 
- HTTPCLIENT
 - RESTSHARP
 
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/policies/expression/:policy_uuid/used_by/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());