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 |
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/vnd.api+json
- Accept: application/vnd.api+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/vnd.api+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::InlineResponse2001
- Content-Type: Not defined
- Accept: application/vnd.api+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/vnd.api+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/vnd.api+json, application/problem+json