Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_pool_server | POST /service/{service_id}/pool/{pool_id}/server | Add a server to a pool |
delete_pool_server | DELETE /service/{service_id}/pool/{pool_id}/server/{server_id} | Delete a server from a pool |
get_pool_server | GET /service/{service_id}/pool/{pool_id}/server/{server_id} | Get a pool server |
list_pool_servers | GET /service/{service_id}/pool/{pool_id}/servers | List servers in a pool |
update_pool_server | PUT /service/{service_id}/pool/{pool_id}/server/{server_id} | Update a server |
Creates a single server for a particular service and pool.
let cfg = &Configuration::default();
let params = CreatePoolServerParams {
// parameters
};
create_pool_server(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
pool_id | String | Alphanumeric string identifying a Pool. | [required] | |
weight | Option<i32> | Weight (1-100 ) used to load balance this server against others. |
[default to 100] | |
max_conn | Option<i32> | Maximum number of connections. If the value is 0 , it inherits the value from pool's max_conn_default . |
[default to 0] | |
port | Option<i32> | Port number. Setting port 443 does not force TLS. Set use_tls in pool to force TLS. |
[default to 80] | |
address | Option<String> | A hostname, IPv4, or IPv6 address for the server. Required. | ||
comment | Option<String> | A freeform descriptive note. | ||
disabled | Option<bool> | Allows servers to be enabled and disabled in a pool. | [default to false] | |
override_host | Option<String> | The hostname to override the Host header. Defaults to null meaning no override of the Host header if not set. This setting can also be added to a Pool definition. However, the server setting will override the Pool setting. |
[default to null] |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Deletes a single server for a particular service and pool.
let cfg = &Configuration::default();
let params = DeletePoolServerParams {
// parameters
};
delete_pool_server(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
pool_id | String | Alphanumeric string identifying a Pool. | [required] | |
server_id | String | Alphanumeric string identifying a Server. | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Gets a single server for a particular service and pool.
let cfg = &Configuration::default();
let params = GetPoolServerParams {
// parameters
};
get_pool_server(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
pool_id | String | Alphanumeric string identifying a Pool. | [required] | |
server_id | String | Alphanumeric string identifying a Server. | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Lists all servers for a particular service and pool.
let cfg = &Configuration::default();
let params = ListPoolServersParams {
// parameters
};
list_pool_servers(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
pool_id | String | Alphanumeric string identifying a Pool. | [required] |
Vec<crate::models::ServerResponse>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Updates a single server for a particular service and pool.
let cfg = &Configuration::default();
let params = UpdatePoolServerParams {
// parameters
};
update_pool_server(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
pool_id | String | Alphanumeric string identifying a Pool. | [required] | |
server_id | String | Alphanumeric string identifying a Server. | [required] | |
weight | Option<i32> | Weight (1-100 ) used to load balance this server against others. |
[default to 100] | |
max_conn | Option<i32> | Maximum number of connections. If the value is 0 , it inherits the value from pool's max_conn_default . |
[default to 0] | |
port | Option<i32> | Port number. Setting port 443 does not force TLS. Set use_tls in pool to force TLS. |
[default to 80] | |
address | Option<String> | A hostname, IPv4, or IPv6 address for the server. Required. | ||
comment | Option<String> | A freeform descriptive note. | ||
disabled | Option<bool> | Allows servers to be enabled and disabled in a pool. | [default to false] | |
override_host | Option<String> | The hostname to override the Host header. Defaults to null meaning no override of the Host header if not set. This setting can also be added to a Pool definition. However, the server setting will override the Pool setting. |
[default to null] |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json