Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_user | POST /user | Create a user |
delete_user | DELETE /user/{user_id} | Delete a user |
get_current_user | GET /current_user | Get the current user |
get_user | GET /user/{user_id} | Get a user |
request_password_reset | POST /user/{user_login}/password/request_reset | Request a password reset |
update_user | PUT /user/{user_id} | Update a user |
update_user_password | POST /current_user/password | Update the user's password |
Create a user.
let cfg = &Configuration::default();
let params = CreateUserParams {
// parameters
};
create_user(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
login | Option<String> | |||
name | Option<String> | The real life name of the user. | ||
limit_services | Option<bool> | Indicates that the user has limited access to the customer's services. | ||
locked | Option<bool> | Indicates whether the is account is locked for editing or not. | ||
require_new_password | Option<bool> | Indicates if a new password is required at next login. | ||
role | Option<crate::models::RoleUser> | |||
two_factor_auth_enabled | Option<bool> | Indicates if 2FA is enabled on the user. | ||
two_factor_setup_required | Option<bool> | Indicates if 2FA is required by the user's customer account. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete a user.
let cfg = &Configuration::default();
let params = DeleteUserParams {
// parameters
};
delete_user(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
user_id | String | Alphanumeric string identifying the user. | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get the logged in user.
let cfg = &Configuration::default();
let params = GetCurrentUserParams {
// parameters
};
get_current_user(cfg, params)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get a specific user.
let cfg = &Configuration::default();
let params = GetUserParams {
// parameters
};
get_user(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
user_id | String | Alphanumeric string identifying the user. | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Requests a password reset for the specified user.
let cfg = &Configuration::default();
let params = RequestPasswordResetParams {
// parameters
};
request_password_reset(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
user_login | String | The login associated with the user (typically, an email address). | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update a user. Only users with the role of superuser
can make changes to other users on the account. Non-superusers may use this endpoint to make changes to their own account. Two-factor attributes are not editable via this endpoint.
let cfg = &Configuration::default();
let params = UpdateUserParams {
// parameters
};
update_user(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
user_id | String | Alphanumeric string identifying the user. | [required] | |
login | Option<String> | |||
name | Option<String> | The real life name of the user. | ||
limit_services | Option<bool> | Indicates that the user has limited access to the customer's services. | ||
locked | Option<bool> | Indicates whether the is account is locked for editing or not. | ||
require_new_password | Option<bool> | Indicates if a new password is required at next login. | ||
role | Option<crate::models::RoleUser> | |||
two_factor_auth_enabled | Option<bool> | Indicates if 2FA is enabled on the user. | ||
two_factor_setup_required | Option<bool> | Indicates if 2FA is required by the user's customer account. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update the user's password to a new one.
let cfg = &Configuration::default();
let params = UpdateUserPasswordParams {
// parameters
};
update_user_password(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
old_password | Option<String> | The user's current password. | ||
new_password | Option<String> | The user's new password. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json