Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
# @param string $service_id Alphanumeric string identifying the service. (required)
# @param string $pool_id Alphanumeric string identifying a Pool. (required)
# @param int $weight Weight (`1-100`) used to load balance this server against others. (optional, default to 100)
# @param int $max_conn Maximum number of connections. If the value is `0`, it inherits the value from pool's `max_conn_default`. (optional, default to 0)
# @param int $port Port number. Setting port `443` does not force TLS. Set `use_tls` in pool to force TLS. (optional, default to 80)
# @param string $address A hostname, IPv4, or IPv6 address for the server. Required. (optional)
# @param string $comment A freeform descriptive note. (optional)
# @param boolean $disabled Allows servers to be enabled and disabled in a pool. (optional, default to false)
# @param string $override_host 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. (optional, default to 'null')
{
my$params= {
'service_id'=> {
data_type=> 'string',
description=> 'Alphanumeric string identifying the service.',
required=> '1',
},
'pool_id'=> {
data_type=> 'string',
description=> 'Alphanumeric string identifying a Pool.',
required=> '1',
},
'weight'=> {
data_type=> 'int',
description=> 'Weight (`1-100`) used to load balance this server against others.',
required=> '0',
},
'max_conn'=> {
data_type=> 'int',
description=> 'Maximum number of connections. If the value is `0`, it inherits the value from pool's `max_conn_default`.',
required=> '0',
},
'port'=> {
data_type=> 'int',
description=> 'Port number. Setting port `443` does not force TLS. Set `use_tls` in pool to force TLS.',
required=> '0',
},
'address'=> {
data_type=> 'string',
description=> 'A hostname, IPv4, or IPv6 address for the server. Required.',
required=> '0',
},
'comment'=> {
data_type=> 'string',
description=> 'A freeform descriptive note.',
required=> '0',
},
'disabled'=> {
data_type=> 'boolean',
description=> 'Allows servers to be enabled and disabled in a pool.',
required=> '0',
},
'override_host'=> {
data_type=> 'string',
description=> '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.',
# @param string $service_id Alphanumeric string identifying the service. (required)
# @param string $pool_id Alphanumeric string identifying a Pool. (required)
# @param string $server_id Alphanumeric string identifying a Server. (required)
# @param int $weight Weight (`1-100`) used to load balance this server against others. (optional, default to 100)
# @param int $max_conn Maximum number of connections. If the value is `0`, it inherits the value from pool's `max_conn_default`. (optional, default to 0)
# @param int $port Port number. Setting port `443` does not force TLS. Set `use_tls` in pool to force TLS. (optional, default to 80)
# @param string $address A hostname, IPv4, or IPv6 address for the server. Required. (optional)
# @param string $comment A freeform descriptive note. (optional)
# @param boolean $disabled Allows servers to be enabled and disabled in a pool. (optional, default to false)
# @param string $override_host 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. (optional, default to 'null')
{
my$params= {
'service_id'=> {
data_type=> 'string',
description=> 'Alphanumeric string identifying the service.',
required=> '1',
},
'pool_id'=> {
data_type=> 'string',
description=> 'Alphanumeric string identifying a Pool.',
required=> '1',
},
'server_id'=> {
data_type=> 'string',
description=> 'Alphanumeric string identifying a Server.',
required=> '1',
},
'weight'=> {
data_type=> 'int',
description=> 'Weight (`1-100`) used to load balance this server against others.',
required=> '0',
},
'max_conn'=> {
data_type=> 'int',
description=> 'Maximum number of connections. If the value is `0`, it inherits the value from pool's `max_conn_default`.',
required=> '0',
},
'port'=> {
data_type=> 'int',
description=> 'Port number. Setting port `443` does not force TLS. Set `use_tls` in pool to force TLS.',
required=> '0',
},
'address'=> {
data_type=> 'string',
description=> 'A hostname, IPv4, or IPv6 address for the server. Required.',
required=> '0',
},
'comment'=> {
data_type=> 'string',
description=> 'A freeform descriptive note.',
required=> '0',
},
'disabled'=> {
data_type=> 'boolean',
description=> 'Allows servers to be enabled and disabled in a pool.',
required=> '0',
},
'override_host'=> {
data_type=> 'string',
description=> '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.',