Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
add_role_permissions | POST /roles/{role_id}/permissions | Add permissions to a role |
create_a_role | POST /roles | Create a role |
delete_a_role | DELETE /roles/{role_id} | Delete a role |
get_a_role | GET /roles/{role_id} | Get a role |
list_role_permissions | GET /roles/{role_id}/permissions | List permissions in a role |
list_roles | GET /roles | List roles |
remove_role_permissions | DELETE /roles/{role_id}/permissions | Remove permissions from a role |
update_a_role | PATCH /roles/{role_id} | Update a role |
Add permissions to a role.
let cfg = &Configuration::default();
let params = AddRolePermissionsParams {
// parameters
};
add_role_permissions(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
role_id | String | Alphanumeric string identifying the role. | [required] | |
request_body | Option<::std::collections::HashMap<String, serde_json::Value>> |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Create a role.
let cfg = &Configuration::default();
let params = CreateARoleParams {
// parameters
};
create_a_role(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
request_body | Option<::std::collections::HashMap<String, serde_json::Value>> |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete a role.
let cfg = &Configuration::default();
let params = DeleteARoleParams {
// parameters
};
delete_a_role(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
role_id | String | Alphanumeric string identifying the role. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Get a role.
let cfg = &Configuration::default();
let params = GetARoleParams {
// parameters
};
get_a_role(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
role_id | String | Alphanumeric string identifying the role. | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all permissions in a role.
let cfg = &Configuration::default();
let params = ListRolePermissionsParams {
// parameters
};
list_role_permissions(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
role_id | String | Alphanumeric string identifying the role. | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all roles.
let cfg = &Configuration::default();
let params = ListRolesParams {
// parameters
};
list_roles(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
per_page | Option<i32> | Number of records per page. | [default to 20] | |
page | Option<i32> | Current page. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Remove permissions from a role.
let cfg = &Configuration::default();
let params = RemoveRolePermissionsParams {
// parameters
};
remove_role_permissions(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
role_id | String | Alphanumeric string identifying the role. | [required] | |
request_body | Option<::std::collections::HashMap<String, serde_json::Value>> |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Update a role.
let cfg = &Configuration::default();
let params = UpdateARoleParams {
// parameters
};
update_a_role(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
role_id | String | Alphanumeric string identifying the role. | [required] | |
request_body | Option<::std::collections::HashMap<String, serde_json::Value>> |
- Content-Type: application/json
- Accept: application/json