policies_password_list
GET/api/v3//policies/password/
Password Policy Viewset
Request
Query Parameters
amount_digits integer
amount_lowercase integer
amount_symbols integer
amount_uppercase integer
check_have_i_been_pwned boolean
check_static_rules boolean
check_zxcvbn boolean
created date-time
error_message string
execution_logging boolean
hibp_allowed_count integer
last_updated date-time
length_min integer
name string
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
password_field string
policy_uuid uuid
search string
A search term.
symbol_charset string
zxcvbn_score_threshold integer
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pagination
object
required
results
object[]
required
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"execution_logging": true,
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"bound_to": 0,
"password_field": "string",
"amount_digits": 0,
"amount_uppercase": 0,
"amount_lowercase": 0,
"amount_symbols": 0,
"length_min": 0,
"symbol_charset": "string",
"error_message": "string",
"check_static_rules": true,
"check_have_i_been_pwned": true,
"check_zxcvbn": true,
"hibp_allowed_count": 0,
"zxcvbn_score_threshold": 0
}
]
}
- 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/password/");
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());