CDN API (v2.0)
Managing resources and logs
Get project.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Responses
Response samples
- 200
- 404
{- "project": {
- "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "is_blocked": false,
- "resources": [
- {
- "id": "16431130-22a5-4da9-9244-9bfd93a1ccbf",
- "internal_fqdn": "16431130-22a5-4da9-9244-9bfd93a1ccbf.fake.co",
- "name": "My CDN Resource",
- "origin_type": "custom",
- "read_only": true,
- "status": "active"
}
], - "selectel_uid": 12345
}
}
Get project limits.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Responses
Response samples
- 200
- 404
{- "current_values": [
- {
- "limit_type": "resources_quantity_limit",
- "provider_type": "string",
- "value": 0
}
], - "project_limits": [
- {
- "limit_type": "resources_quantity_limit",
- "provider_type": "string",
- "value": 0
}
]
}
Get project quotas.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Responses
Response samples
- 200
- 404
{- "akamai_resources": {
- "region": "string",
- "used": 0,
- "value": 0,
- "zone": "string"
}, - "selectel_resources": {
- "region": "string",
- "used": 0,
- "value": 0,
- "zone": "string"
}
}
Update project quotas.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Request Body schema: application/jsonrequired
Dictionary containing provider as key and limit value as value
property name* additional property | integer |
Responses
Request samples
- Payload
{- "property1": 0,
- "property2": 0
}
Response samples
- 404
{- "error": {
- "id": "584105f1-7c20-4fb2-af1a-e96ee6a73752",
- "message": "object not found"
}
}
Get logs for all CDN resources.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
query Parameters
from required | string <date-time> Example: from=2023-08-01T00:00:00Z Gather logs from this time |
to required | string <date-time> Example: to=2023-09-01T00:00:00Z Gather logs up to this time |
Responses
Response samples
- 201
- 400
{- "data": [
- {
- "cache_status": "string",
- "client_ip": "string",
- "cname": "string",
- "method": "string",
- "path": "string",
- "referer": "string",
- "resource_id": "string",
- "sent_http_content_type": "string",
- "size": 0,
- "status": 0,
- "tcpinfo_rtt": 0,
- "timestamp": 0,
- "user_agent": "string"
}
], - "meta": {
- "count": 0
}
}
Create new task of collecting logs.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Request Body schema: application/jsonrequired
Payload
container | string Container Target container (will be created if it does not exist) |
delete_after | integer DeleteAfter Delete logs after specified timeout (in seconds) |
fields | Array of strings Fields Log's fields list |
object Filter Log's filters map. Pass field and values like {"host": ["domain.ru", "another-domain.com"]} | |
provider required | string Provider CDN provider type selectel or akamai |
since required | string date-time without time-zone ISO8601 |
till required | string date-time without time-zone ISO8601 |
Responses
Request samples
- Payload
{- "container": "cdn_logs",
- "delete_after": 3600,
- "fields": [
- "host",
- "client_ip",
- "origin_host",
- "timestamp",
- "server_to_client_bytes"
], - "filters": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "provider": "selectel",
- "since": "2020-08-01T15:04:05",
- "till": "2020-08-01T15:04:05"
}
Response samples
- 201
- 400
{- "created": "string",
- "data": {
- "container": "string",
- "delete_after": 0,
- "fields": [
- "string"
], - "filters": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "provider": "string",
- "since": "string",
- "till": "string"
}, - "id": "string",
- "progress": 0,
- "status": "string",
- "type": "string",
- "updated": "string"
}
Get task info.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
TaskID required | string <uuid> ID log collecting task |
Responses
Response samples
- 200
{- "created": "string",
- "data": {
- "container": "string",
- "delete_after": 0,
- "fields": [
- "string"
], - "filters": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "provider": "string",
- "since": "string",
- "till": "string"
}, - "id": "string",
- "progress": 0,
- "status": "string",
- "type": "string",
- "updated": "string"
}
List CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Responses
Response samples
- 200
- 404
{- "resources": [
- {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
]
}
Create CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
Request Body schema: application/jsonrequired
Payload
required | object |
custom_hostname | string CustomHostname custom third level domain for akamai CDN. This option can't be used with Selectel CDN |
name required | string |
origin_type required | string |
Responses
Request samples
- Payload
{- "config": {
- "certificate": {
- "certificate": "string",
- "name": "string",
- "private_key": "string",
- "provider_cert_id": 0
}, - "options": {
- "custom_host_header": "samplehost.com",
- "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_500",
- "http_502"
], - "set_custom_cache_headers": 86400,
- "websockets": true
}, - "origin_hostnames": [
- "fakeorigin.com"
], - "origin_ips": [
- "1.1.1.1"
], - "origin_protocol": "HTTPS",
- "provider_type": "Selectel"
}, - "custom_hostname": "my-fake.akamaized.net",
- "name": "My CDN Resource",
- "origin_type": "custom"
}
Response samples
- 201
- 404
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}
Delete CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Responses
Response samples
- 404
{- "error": {
- "id": "584105f1-7c20-4fb2-af1a-e96ee6a73752",
- "message": "object not found"
}
}
Get CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Responses
Response samples
- 200
- 404
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}
Update CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Request Body schema: application/jsonrequired
Payload
required | object |
name required | string |
Responses
Request samples
- Payload
{- "config": {
- "certificate": {
- "certificate": "string",
- "name": "string",
- "private_key": "string",
- "provider_cert_id": 0
}, - "client_hostnames": [
- "cdn.example.com"
], - "options": {
- "custom_host_header": "samplehost.com",
- "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_500",
- "http_502"
], - "set_custom_cache_headers": 86400,
- "websockets": true
}, - "origin_hostnames": [
- "example.com"
], - "origin_ips": [
- "1.1.1.1"
], - "origin_protocol": "HTTPS",
- "provider_type": "Selectel"
}, - "name": "string"
}
Response samples
- 202
- 404
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}
Check CDN resource. Deprecated
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Request Body schema: application/jsonrequired
Payload
container | string |
domain required | string |
file_path required | string |
Responses
Request samples
- Payload
{- "container": "string",
- "domain": "example.com",
- "file_path": "string"
}
Response samples
- 200
- 404
{- "cname": true,
- "origin_file": true,
- "resource_file": true
}
Enable LE for CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Responses
Response samples
- 200
- 404
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}
Prefetch cache for CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Request Body schema: application/jsonrequired
Payload
paths required | Array of strings |
Responses
Request samples
- Payload
{- "paths": [
- "/path/file1.jpg",
- "*/images/*.jpg"
]
}
Response samples
- 404
{- "error": {
- "id": "584105f1-7c20-4fb2-af1a-e96ee6a73752",
- "message": "object not found"
}
}
Purge cache for CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Request Body schema: application/jsonrequired
Payload
paths required | Array of strings |
Responses
Request samples
- Payload
{- "paths": [
- "/path/file1.jpg",
- "*/images/*.jpg"
]
}
Response samples
- 404
{- "error": {
- "id": "584105f1-7c20-4fb2-af1a-e96ee6a73752",
- "message": "object not found"
}
}
Rename CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Request Body schema: application/jsonrequired
Payload
name required | string |
Responses
Request samples
- Payload
{- "name": "My CDN Resource"
}
Response samples
- 200
- 404
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}
Resume CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Responses
Response samples
- 200
- 404
- 409
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}
Suspend CDN resource.
Authorizations:
path Parameters
ProjectID required | string <uuid> ID of CDN project |
ResourceID required | string <uuid> ID of CDN resource |
Responses
Response samples
- 200
- 404
- 409
{- "resource": {
- "config": {
- "client_hostnames": [
- "somehostname.co"
], - "default_client_hostname": "33251cee-9ff9-44fc-bda6-d549841236ca.fake.co",
- "options": {
- "client_location": "INDIA",
- "content_characteristics": {
- "catalogue_size": "LARGE",
- "content_type": "GAME",
- "object_size": "TEN_MB_TO_100_MB",
- "popularity_distribution": "LONG_TAIL"
}, - "custom_host_header": "someHeader",
- "custom_origin_headers": {
- "{header1": "value1",
- "header2": "value2}"
}, - "edge_server_cache_expire": 86400,
- "forward_host_header": true,
- "gzip_compression": true,
- "ignore_cookie": true,
- "ignore_query_string": true,
- "large_file_optimisation": true,
- "origin_compression": true,
- "origin_location": "GERMANY",
- "security_options": {
- "cors": {
- "access_control_allow_origin": [
- "host1.com",
- "host2.org"
]
}, - "country_acl": {
- "list": [
- "RU",
- "SW"
]
}, - "ip_acl": {
- "list": [
- "string"
]
}, - "redirect_http_to_https": true,
- "referrer_acl": {
- "list": [
- "string"
]
}, - "secure_key": {
- "include_ip": true,
- "value": "15315f61c4bc9044b8"
}, - "user_agent": {
- "list": [
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
]
}
}, - "serve_stale": [
- "http_429",
- "http_500"
], - "set_custom_cache_headers": 86400,
- "websockets": false
}, - "origin_hostnames": [
- "someoriginhostname.co"
], - "origin_ips": [
- "127.0.0.1:443",
- "[eb59:10b8:32db:ca57:7d49:a56e:445:ec20]:8080"
], - "origin_protocol": "HTTPS"
}, - "id": "33251cee-9ff9-44fc-bda6-d549841236ca",
- "internal_fqdn": "33251cee-9ff9-44fc-bda6-d549841236ca.selcdn.ru",
- "last_update_error": "string",
- "le_certificate_status": "active",
- "name": "Some name",
- "origin_type": "custom",
- "provider": "Selectel",
- "read_only": true,
- "status": "active"
}
}