Get all behaviors
GET/api/v1/services/:service_id/behaviors/
Returns the list of behaviors of a service.
Request
Path Parameters
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- ViewerProtocolEnum
-
HTTP_AND_HTTPS
- Http And Https -
HTTPS_ONLY
- Https Only -
REDIRECT_HTTP_TO_HTTPS
- Redirect Http To Https ]
]
behavior_actions
object[]
required
Possible values: <= 1024 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: >= -2147483648
and <= 2147483647
Possible values: <= 1024 characters
Possible values: <= 200 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: >= -2147483648
and <= 2147483647
Possible values: <= 255 characters
Possible values: >= -2147483648
and <= 2147483647
viewer_protocol
object
nullable
oneOf
string
Possible values: [HTTP_AND_HTTPS
, HTTPS_ONLY
, REDIRECT_HTTP_TO_HTTPS
]
Possible values: <= 255 characters
, Value must match regular expression ^[a-zA-Z0-9_\-\s]*$
Possible values: <= 1024 characters
[
{
"behavior_actions": [
{
"allowed_methods": "string",
"auto_minify": "string",
"cache_behavior_value": "string",
"cache_key": "string",
"cached_methods": "string",
"cookie": "string",
"cors_allow_origin_domain": true,
"enabled": true,
"host_header": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"max_ttl": 0,
"origin": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"origin_cache_control_enabled": true,
"pattern": "string",
"redirect_url": "string",
"request_header_name": "string",
"request_header_value": "string",
"response_header_name": "string",
"response_header_value": "string",
"response_page_path": "string",
"status_code": 0,
"type": "string",
"unified_log_destination": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"unified_log_sampling_rate": 0,
"use_domain_origin": true,
"viewer_protocol": "HTTP_AND_HTTPS"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_default": true,
"is_partially_contained": true,
"name": "string",
"path_pattern": "string",
"service": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]