Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_apex_redirect | POST /service/{service_id}/version/{version_id}/apex-redirects | Create an apex redirect |
delete_apex_redirect | DELETE /apex-redirects/{apex_redirect_id} | Delete an apex redirect |
get_apex_redirect | GET /apex-redirects/{apex_redirect_id} | Get an apex redirect |
list_apex_redirects | GET /service/{service_id}/version/{version_id}/apex-redirects | List apex redirects |
update_apex_redirect | PUT /apex-redirects/{apex_redirect_id} | Update an apex redirect |
Create an apex redirect for a particular service and version.
let cfg = &Configuration::default();
let params = CreateApexRedirectParams {
// parameters
};
create_apex_redirect(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
service_id2 | Option<String> | |||
version | Option<i32> | |||
created_at | Option<String> | Date and time in ISO 8601 format. | ||
deleted_at | Option<String> | Date and time in ISO 8601 format. | ||
updated_at | Option<String> | Date and time in ISO 8601 format. | ||
status_code | Option<i32> | HTTP status code used to redirect the client. | ||
domains | Option<Vec<String>> | Array of apex domains that should redirect to their WWW subdomain. | ||
feature_revision | Option<i32> | Revision number of the apex redirect feature implementation. Defaults to the most recent revision. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete an apex redirect by its ID.
let cfg = &Configuration::default();
let params = DeleteApexRedirectParams {
// parameters
};
delete_apex_redirect(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
apex_redirect_id | String | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get an apex redirect by its ID.
let cfg = &Configuration::default();
let params = GetApexRedirectParams {
// parameters
};
get_apex_redirect(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
apex_redirect_id | String | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all apex redirects for a particular service and version.
let cfg = &Configuration::default();
let params = ListApexRedirectsParams {
// parameters
};
list_apex_redirects(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] |
Vec<crate::models::ApexRedirect>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update an apex redirect by its ID.
let cfg = &Configuration::default();
let params = UpdateApexRedirectParams {
// parameters
};
update_apex_redirect(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
apex_redirect_id | String | [required] | ||
service_id | Option<String> | |||
version | Option<i32> | |||
created_at | Option<String> | Date and time in ISO 8601 format. | ||
deleted_at | Option<String> | Date and time in ISO 8601 format. | ||
updated_at | Option<String> | Date and time in ISO 8601 format. | ||
status_code | Option<i32> | HTTP status code used to redirect the client. | ||
domains | Option<Vec<String>> | Array of apex domains that should redirect to their WWW subdomain. | ||
feature_revision | Option<i32> | Revision number of the apex redirect feature implementation. Defaults to the most recent revision. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json