Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_service | POST /service | Create a service |
delete_service | DELETE /service/{service_id} | Delete a service |
get_service | GET /service/{service_id} | Get a service |
get_service_detail | GET /service/{service_id}/details | Get service details |
list_service_domains | GET /service/{service_id}/domain | List the domains within a service |
list_services | GET /service | List services |
search_service | GET /service/search | Search for a service by name |
update_service | PUT /service/{service_id} | Update a service |
Create a service.
let cfg = &Configuration::default();
let params = CreateServiceParams {
// parameters
};
create_service(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
comment | Option<String> | A freeform descriptive note. | ||
name | Option<String> | The name of the service. | ||
customer_id | Option<String> | Alphanumeric string identifying the customer. | ||
_type | Option<String> | The type of this service. |
crate::models::ServiceResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete a service.
let cfg = &Configuration::default();
let params = DeleteServiceParams {
// parameters
};
delete_service(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get a specific service by id.
let cfg = &Configuration::default();
let params = GetServiceParams {
// parameters
};
get_service(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] |
crate::models::ServiceResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List detailed information on a specified service.
let cfg = &Configuration::default();
let params = GetServiceDetailParams {
// parameters
};
get_service_detail(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version | Option<i32> | Number identifying a version of the service. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List the domains within a service.
let cfg = &Configuration::default();
let params = ListServiceDomainsParams {
// parameters
};
list_service_domains(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] |
Vec<crate::models::DomainResponse>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List services.
let cfg = &Configuration::default();
let params = ListServicesParams {
// parameters
};
list_services(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
page | Option<i32> | Current page. | ||
per_page | Option<i32> | Number of records per page. | [default to 20] | |
sort | Option<String> | Field on which to sort. | [default to created] | |
direction | Option<String> | Direction in which to sort results. | [default to ascend] |
Vec<crate::models::ServiceListResponse>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get a specific service by name.
let cfg = &Configuration::default();
let params = SearchServiceParams {
// parameters
};
search_service(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
name | String | The name of the service. | [required] |
crate::models::ServiceResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update a service.
let cfg = &Configuration::default();
let params = UpdateServiceParams {
// parameters
};
update_service(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
comment | Option<String> | A freeform descriptive note. | ||
name | Option<String> | The name of the service. | ||
customer_id | Option<String> | Alphanumeric string identifying the customer. |
crate::models::ServiceResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json