Note
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| create_automation_token | POST /automation-tokens | Create Automation Token |
| get_automation_token_id | GET /automation-tokens/{id} | Retrieve an Automation Token by ID |
| get_automation_tokens_id_services | GET /automation-tokens/{id}/services | List Automation Token Services |
| get_automation_tokens_id_workspaces | GET /automation-tokens/{id}/workspaces | List Automation Token Workspaces |
| list_automation_tokens | GET /automation-tokens | List Customer Automation Tokens |
| revoke_automation_token_id | DELETE /automation-tokens/{id} | Revoke an Automation Token by ID |
Creates a new automation token.
let cfg = &Configuration::default();
let params = CreateAutomationTokenParams {
// parameters
};
create_automation_token(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| automation_token_create_request | Option<AutomationTokenCreateRequest> |
crate::models::AutomationTokenCreateResponse
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Retrieves an automation token by ID.
let cfg = &Configuration::default();
let params = GetAutomationTokenIdParams {
// parameters
};
get_automation_token_id(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | [required] |
crate::models::AutomationTokenResponse
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
List of services associated with the automation token.
let cfg = &Configuration::default();
let params = GetAutomationTokensIdServicesParams {
// parameters
};
get_automation_tokens_id_services(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | [required] | ||
| per_page | Option<i32> | |||
| page | Option<i32> |
crate::models::InlineResponse2004
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Lists the Next-Gen WAF workspaces accessible by an automation token. Only applicable for tokens with roles that support workspace access (such as Next-Gen WAF roles).
let cfg = &Configuration::default();
let params = GetAutomationTokensIdWorkspacesParams {
// parameters
};
get_automation_tokens_id_workspaces(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | The alphanumeric string identifying the automation token. | [required] | |
| limit | Option<i32> | Maximum number of workspaces to return per page. | [default to 20] | |
| cursor | Option<String> | Pagination cursor from a previous response. Pass the next_cursor value to retrieve the next page, or previous_cursor to go back. |
crate::models::AutomationTokenWorkspacesResponse
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Lists all automation tokens for a customer.
let cfg = &Configuration::default();
let params = ListAutomationTokensParams {
// parameters
};
list_automation_tokens(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| per_page | Option<i32> | |||
| page | Option<i32> |
Vec<crate::models::AutomationTokenResponse>
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Revoke an automation token by ID.
let cfg = &Configuration::default();
let params = RevokeAutomationTokenIdParams {
// parameters
};
revoke_automation_token_id(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | [required] |
crate::models::AutomationTokenErrorResponse
- Content-Type: Not defined
- Accept: application/json, application/problem+json