Download OpenAPI specification:Download
Our REST-compliant web services facilitate the integration of our services into your workflow(s), applications, or interfaces.
Key information about our REST API services:
Protocol: HTTPS
Communication (i.e., request-response) with our web services is only permitted through HTTPS. This ensures the privacy and integrity of your data.
Authentication/Authorization: Authorization
Header
Authenticate and authorize your requests by generating a token and then passing it through the Authorization
header:
Authorization: Bearer <OAUTH 2.0 TOKEN>
Request-Response (Accept and Content-Type): JSON
We expect the request body to use JavaScript Object Notation (JSON) format. Inform our web servers that the expected format for the request-response will be JSON through the Accept
and Content-Type
request headers.
Programming Language: Agnostic
Our REST API services are designed to be programming language-agnostic. Feel free to use your preferred programming language (e.g., JavaScript, Python, C#, etc.).
Services: Our REST API consists of the following services:
Service | Version | Functionality |
---|---|---|
cache | 0.1 | Purge cached content and find out purge status. |
config | 0.1 | Deploy CDN configurations, retrieve deployment information and log data, and manage environment variables. |
accounts | 0.1 | Retrieve and manage organizations, properties, and environments. |
waf | 0.9 | Retrieve and manage the following configurations: security apps, access rules, rate rules, custom rules, and managed rules. |
bot-security | 0.9 | Retrieve and manage bot manager configurations. |
api-security | 0.9 | Retrieve and manage API security configurations. |
Each service is versioned independently. This allows us to apply major enhancements to a service without impacting other services.
Get started with our latest APIs by performing the following steps:
Authorization
request header.curl --request GET \
--url https://edgioapis.com/waf/v0.9/12345678-1234-1234-1234-1234567890ab/scopes \
--header 'Authorization: Bearer A1bcbGciImtpZCI6Ij13N1VGQ01z...17cRRKYQ'
A scope authorizes an API client to perform specific actions (e.g., create and retrieve configurations). One or more scope(s) must also be defined when requesting an access token. You may only specify a scope that has been explicitly granted or inherited from a broader scope. Common scopes are listed below.
Scope | Description |
---|---|
app.cache | Authorizes full access for purging cached content and retrieve purge status information. |
app.config | Authorizes full access for deploying CDN configurations, retrieving deployment information and log data, and managing environment variables. |
app.accounts | Authorizes full access to manage organizations, properties, and environments. |
app.waf | Authorizes full access to security apps, access rules, rate rules, custom rules, and managed rules. |
app.bot_security | Authorizes full access to Bot Manager. |
app.api_security | Authorizes full access to API Security. |
Each request to a REST API service must be authorized by passing an access token to the Authorization
request header. Access tokens provide temporary authorization (e.g., 1 minute) to our REST API service. The duration of this authorization is determined by the API client's Access Token Lifetime (Seconds) option. Once an access token expires, it may no longer be used to authorize requests. Attempting to authorize a request with an expired token will result in a 401 Unauthenticated Access
response.
Requesting an access token requires:
Submitting a POST
request to the following URL:
https://id.edgio.app/connect/token
A Content-Type
header set to application/x-www-form-urlencoded
.
A request body that contains the following four parameters:
client_id=<CLIENT ID>&client_secret=<SECRET>&grant_type=client_credentials&scope=<SCOPES>
Parameter | Description |
---|---|
client_id | Replace <CLIENT ID> with the system-defined ID assigned to your REST API client. |
client_secret | Replace <SECRET> with the secret assigned to your REST API client. |
grant_type | Set this parameter to client_credentials . |
scope | Replace <SCOPES> with one or more scopes. Use a space character or the plus symbol (+) to delimit each scope. |
Sample access token request:
curl --request POST \
--url https://id.edgio.app/connect/token \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'client_id=J23d...B2Cd&client_secret=Fdad...DF3v&grant_type=client_credentials&scope=app.waf'
Sample response:
{
"access_token": "A1bcbGciImtpZCI6Ij13N1VGQ01z...17cRRKYQ",
"expires_in": 300,
"token_type": "Bearer",
"scope": "app.waf"
}
Pass an access token through the Authorization
header when requesting the desired API operation.
Sample API request:
curl --request GET \
--url https://edgioapis.com/waf/v0.9/12345678-1234-1234-1234-1234567890ab/scopes \
--header 'Authorization: Bearer A1bcbGciImtpZCI6Ij13N1VGQ01z...17cRRKYQ'
HTTP method is a critical component of a request to our REST API service as it determines the type of action being requested.
Our REST API service may return a 405 Method Not Allowed
response for requests submitted with an unsupported HTTP method.
The base URL for our REST API follows this basic pattern:
https://edgioapis.com/<SERVICE>/<VERSION>/
<SERVICE>
: Identifies the REST API web service (e.g., cache, waf, and bot-security) designed to manage requests for a specific set of resources.<VERSION>
: Identifies the version of the REST API service that will be called.Sample Request URL:
https://edgioapis.com/cache/v0.1/purge-requests
Request headers provide information about your request to a REST API service. This information allows our server to authenticate your request and provides information that allows it to receive and translate the request body.
Key information:
Request Header | Description |
---|---|
Authorization | Authorize requests through the Authorization request header. Learn more about authorization. |
Accept | This header should indicate the format in which the response will be returned. If you pass this header, set it to: application/json . |
Content-Type | This header should indicate the format of the request body. If you pass this header, set it to: application/json . You may omit this header when an endpoint does not have request properties. |
Host | This header, which is set by the user agent, indicates the host name corresponding to the requested endpoint (i.e., edgioapis.com or id.edgio.app). |
Content-Length | This header, which is set by the user agent, indicates the number of bytes contained in the request body. |
POST
, PUT
, and PATCH
requests typically require request body properties that describe the action that will take place. These request body properties are case-sensitive.
Response headers provide information about the response to your request to the REST API service. A brief description is provided for the response headers that are returned by most endpoints. Standard HTTP response headers are typically returned along with these common response headers.
Response Header | Description |
---|---|
Cache-Control | Indicates the cache-control policy for the response body. |
Content-Length | Indicates the number of bytes in the response body. |
Content-Type | Indicates the format of the response body (e.g., application/json; charset=utf-8 ). |
I_am | This header is reserved for internal use. |
Date | Identifies the date and time (UTC) at which your request was processed. |
The rate limit for our APIs varies by service and HTTP method.
Service | HTTP Method | Rate Limit |
---|---|---|
cache | ALL | 2,000 requests per 5 minutes |
config | GET | 2,000 requests per 5 minutes |
config | POST, PUT, PATCH, and DELETE | 600 requests per 5 minutes |
accounts | GET | 2,000 requests per 5 minutes |
accounts | POST, PUT, PATCH, and DELETE | 600 requests per 5 minutes |
waf | ALL | 300 requests per hour 1,000 requests per day |
bot-security | ALL | 300 requests per hour 1,000 requests per day |
api-security | ALL | 300 requests per hour 1,000 requests per day |
Our API service returns a 429 Too Many Requests
response when a client exceeds one of the above rate limits.
Retrieves information, including status, about a purge request.
request_id required | string The purge request's system-defined ID. This ID is returned by the Purge Cache operation. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/cache/v0.1/purge-requests/{request_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "progress_percentage": 0
}
Submits a request to purge cached content from a specific environment. Purging content invalidates the cached version of an asset from our edge servers. You may submit up to 50 concurrent purge requests. For the purpose of concurrency, each value defined within the values
property is considered a separate purge request. Find out the current status of your purge request by passing the purge request ID, which is returned by the id
property, to the Get Purge Request operation.
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
purge_type required | string Enum: "all_entries" "path" "surrogate_key"
|
values | Array of strings Defines the set of content to be purged. The
|
hostname | string Default: null If specified, cached paths will only be purged for this specific hostname. If omitted, the specified paths will be purged for all hostnames. |
{- "environment_id": "string",
- "purge_type": "all_entries",
- "values": [
- "string"
], - "hostname": null
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "progress_percentage": 0
}
Deploy or retrieve a CDN configuration. This type of configuration consists of origin configurations, hostnames, rules, and experiments.
Retrieve an environment's origin configurations, hostnames, rules, and experiments.
config_id required | string The system-defined ID for a configuration that was deployed to an environment. Use the Get Environment operation to retrieve the system-defined ID ( |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/configs/{config_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "origins": [
- {
- "name": "string",
- "type": "customer_origin",
- "hosts": [
- {
- "weight": 100,
- "dns_max_ttl": 4294967295,
- "dns_preference": "prefv4",
- "max_hard_pool": 65535,
- "dns_min_ttl": 4294967295,
- "location": [
- {
- "port": 1,
- "hostname": "string"
}
], - "max_pool": 65535,
- "balancer": "carp",
- "scheme": "http",
- "override_host_header": "string",
- "sni_hint_and_strict_san_check": "string",
- "use_sni": true
}
], - "balancer": "primary_failover",
- "override_host_header": "string",
- "shields": {
- "global": "string",
- "apac": "string",
- "emea": "string",
- "us_west": "string",
- "us_east": "string"
}, - "pci_certified_shields": true,
- "tls_verify": {
- "use_sni": true,
- "sni_hint_and_strict_san_check": "string",
- "allow_self_signed_certs": true,
- "pinned_certs": [
- "stringstringstringstringstringstringstri"
]
}, - "retry": {
- "status_codes": [
- 200
], - "ignore_retry_after_header": true,
- "after_seconds": 0,
- "max_requests": 0,
- "max_wait_seconds": 0
}, - "read_idle_timeout_seconds": 380,
- "path_prefix": "string",
- "path_rewrite": {
- "source": "string",
- "destination": "string",
- "syntax": "regexp"
}, - "signing": {
- "enabled": true,
- "default_credential_name": "string",
- "algorithm": "AWSV4",
- "region": "string",
- "service": "string",
- "additional_headers": [
- "string"
]
}
}
], - "hostnames": [
- {
- "hostname": "string",
- "default_origin_name": "string",
- "report_code": 0,
- "tls": {
- "npn": true,
- "alpn": true,
- "protocols": "string",
- "use_sigalgs": true,
- "sni": true,
- "sni_strict": true,
- "sni_host_match": true,
- "client_renegotiation": true,
- "options": "string",
- "cipher_list": "string",
- "named_curve": "string",
- "oscp": true,
- "pem": "string",
- "ca": "string"
}, - "directory": "string"
}
], - "rules": [
- {
- "if": [
- { },
- { }
], - "comment": "string"
}
], - "experiments": [
- { }
], - "edge_functions_sources": {
- "my-edge-function.js": "export async function handleHttpRequest(request, context) {\n return new Response(\n JSON.stringify({ message: \"Hello from the edge function!\"}),\n {\n headers: {\n \"Content-Type\": \"application/json\"\n }\n }\n )\n}\n"
}, - "edge_function_init_script": "string"
}
Deploys your configuration to a specific environment. This deployment overwrites any existing origin configurations, hostnames, rules, and experiments.
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | Array of objects (properties-origins) [ 1 .. 10000 ] items |
required | Array of objects (properties-hostnames) non-empty |
Array of matches (object) or features (object) or Array of features (object) (properties-rules) | |
experiments | Array of strings List of experiments. |
purge_cache_on_deploy | boolean Overwrite the default value, effectively allowing defining purge cache behaviour with each deployment. |
edge_functions_sources | object JSON object of Edge Functions sources:
|
edge_function_init_script | string Name of the Edge function initialization script. |
{- "environment_id": "string",
- "origins": [
- {
- "name": "string",
- "type": "customer_origin",
- "hosts": [
- {
- "weight": 100,
- "dns_max_ttl": 4294967295,
- "dns_preference": "prefv4",
- "max_hard_pool": 65535,
- "dns_min_ttl": 4294967295,
- "location": [
- {
- "port": 1,
- "hostname": "string"
}
], - "max_pool": 65535,
- "balancer": "carp",
- "scheme": "http",
- "override_host_header": "string",
- "sni_hint_and_strict_san_check": "string",
- "use_sni": true
}
], - "balancer": "primary_failover",
- "override_host_header": "string",
- "shields": {
- "global": "string",
- "apac": "string",
- "emea": "string",
- "us_west": "string",
- "us_east": "string"
}, - "pci_certified_shields": true,
- "tls_verify": {
- "use_sni": true,
- "sni_hint_and_strict_san_check": "string",
- "allow_self_signed_certs": true,
- "pinned_certs": [
- "stringstringstringstringstringstringstri"
]
}, - "retry": {
- "status_codes": [
- 200
], - "ignore_retry_after_header": true,
- "after_seconds": 0,
- "max_requests": 0,
- "max_wait_seconds": 0
}, - "read_idle_timeout_seconds": 380,
- "path_prefix": "string",
- "path_rewrite": {
- "source": "string",
- "destination": "string",
- "syntax": "regexp"
}, - "signing": {
- "enabled": true,
- "default_credential_name": "string",
- "algorithm": "AWSV4",
- "region": "string",
- "service": "string",
- "additional_headers": [
- "string"
]
}
}
], - "hostnames": [
- {
- "hostname": "string",
- "default_origin_name": "string",
- "report_code": 0,
- "tls": {
- "npn": true,
- "alpn": true,
- "protocols": "string",
- "use_sigalgs": true,
- "sni": true,
- "sni_strict": true,
- "sni_host_match": true,
- "client_renegotiation": true,
- "options": "string",
- "cipher_list": "string",
- "named_curve": "string",
- "oscp": true,
- "pem": "string",
- "ca": "string"
}, - "directory": "string"
}
], - "rules": [
- {
- "if": [
- { },
- { }
], - "comment": "string"
}
], - "experiments": [
- { }
], - "purge_cache_on_deploy": true,
- "edge_functions_sources": {
- "my-edge-function.js": "export async function handleHttpRequest(request, context) {\n return new Response(\n JSON.stringify({ message: \"Hello from the edge function!\"}),\n {\n headers: {\n \"Content-Type\": \"application/json\"\n }\n }\n )\n}\n"
}, - "edge_function_init_script": "string"
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "origins": [
- {
- "name": "string",
- "type": "customer_origin",
- "hosts": [
- {
- "weight": 100,
- "dns_max_ttl": 4294967295,
- "dns_preference": "prefv4",
- "max_hard_pool": 65535,
- "dns_min_ttl": 4294967295,
- "location": [
- {
- "port": 1,
- "hostname": "string"
}
], - "max_pool": 65535,
- "balancer": "carp",
- "scheme": "http",
- "override_host_header": "string",
- "sni_hint_and_strict_san_check": "string",
- "use_sni": true
}
], - "balancer": "primary_failover",
- "override_host_header": "string",
- "shields": {
- "global": "string",
- "apac": "string",
- "emea": "string",
- "us_west": "string",
- "us_east": "string"
}, - "pci_certified_shields": true,
- "tls_verify": {
- "use_sni": true,
- "sni_hint_and_strict_san_check": "string",
- "allow_self_signed_certs": true,
- "pinned_certs": [
- "stringstringstringstringstringstringstri"
]
}, - "retry": {
- "status_codes": [
- 200
], - "ignore_retry_after_header": true,
- "after_seconds": 0,
- "max_requests": 0,
- "max_wait_seconds": 0
}, - "read_idle_timeout_seconds": 380,
- "path_prefix": "string",
- "path_rewrite": {
- "source": "string",
- "destination": "string",
- "syntax": "regexp"
}, - "signing": {
- "enabled": true,
- "default_credential_name": "string",
- "algorithm": "AWSV4",
- "region": "string",
- "service": "string",
- "additional_headers": [
- "string"
]
}
}
], - "hostnames": [
- {
- "hostname": "string",
- "default_origin_name": "string",
- "report_code": 0,
- "tls": {
- "npn": true,
- "alpn": true,
- "protocols": "string",
- "use_sigalgs": true,
- "sni": true,
- "sni_strict": true,
- "sni_host_match": true,
- "client_renegotiation": true,
- "options": "string",
- "cipher_list": "string",
- "named_curve": "string",
- "oscp": true,
- "pem": "string",
- "ca": "string"
}, - "directory": "string"
}
], - "rules": [
- {
- "if": [
- { },
- { }
], - "comment": "string"
}
], - "experiments": [
- { }
], - "edge_functions_sources": {
- "my-edge-function.js": "export async function handleHttpRequest(request, context) {\n return new Response(\n JSON.stringify({ message: \"Hello from the edge function!\"}),\n {\n headers: {\n \"Content-Type\": \"application/json\"\n }\n }\n )\n}\n"
}, - "edge_function_init_script": "string"
}
Automate environment variable management. Changes to your environment variables will not take effect until the next deployment.
Deletes an environment variable.
environment_variable_id required | string An environment variable's system-defined ID. Use the Get All Environment Variables operation to retrieve a list of environment variables and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/config/v0.1/environment-variables/{environment_variable_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "invalid_input",
- "title": "Bad request",
- "description": [
- "Request has one or more errors and cannot be processed"
], - "status_code": 400,
- "details": [
- {
- "@type": "ErrorDetail",
- "description": "string",
- "@links": { },
- "source": "string"
}
]
}
Returns an environment variable.
environment_variable_id required | string An environment variable's system-defined ID. Use the Get All Environment Variables operation to retrieve a list of environment variables and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/environment-variables/{environment_variable_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "key": "string",
- "value": "string",
- "secret": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Creates or updates an environment variable.
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
key required | string The environment variable's name. |
value required | string The environment variable's value. |
secret | boolean Determines whether the environment variable's value will be partially masked using asterisks. |
{- "environment_id": "string",
- "key": "string",
- "value": "string",
- "secret": true
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "key": "string",
- "value": "string",
- "secret": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns all environment variables associated with an environment.
page | integer <int32> Default: 0 0-based page number. |
page_size | integer <int32> Default: 20 Number of results per page. Valid values are: 1 - 100. Default value: 20 |
key | string Find an environment variable by its name. |
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/environment-variables', qs: { page: 'SOME_INTEGER_VALUE', page_size: 'SOME_INTEGER_VALUE', key: 'SOME_STRING_VALUE', environment_id: 'SOME_STRING_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": {
- "first": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "next": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "previous": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "last": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}
}, - "total_items": 0,
- "items": [
- {
- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "key": "string",
- "value": "string",
- "secret": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Manage or retrieve a list of URLs for which we will return a 3xx
response with a Location
header set to the desired URL. Changes to your bulk redirects will not take effect until the next deployment.
Deletes a bulk redirect.
environment_redirect_id required | string The bulk redirect's system-defined ID. Retrieve a list of bulk redirects and their system-defined IDs through the Get All Bulk Redirects operation. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/config/v0.1/environment-redirects/{environment_redirect_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "invalid_input",
- "title": "Bad request",
- "description": [
- "Request has one or more errors and cannot be processed"
], - "status_code": 400,
- "details": [
- {
- "@type": "ErrorDetail",
- "description": "string",
- "@links": { },
- "source": "string"
}
]
}
Returns a bulk redirect.
environment_redirect_id required | string The bulk redirect's system-defined ID. Retrieve a list of bulk redirects and their system-defined IDs through the Get All Bulk Redirects operation. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/environment-redirects/{environment_redirect_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "from": "string",
- "to": "string",
- "status": 0,
- "forward_query_string": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Creates or updates a bulk redirect.
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
from required | string An absolute or relative URL that will be redirected. |
to required | string An absolute or relative URL to which clients will be redirected. |
status | integer <int32>
|
forward_query_string | boolean Determines whether the |
{- "environment_id": "string",
- "from": "string",
- "to": "string",
- "status": 0,
- "forward_query_string": true
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "from": "string",
- "to": "string",
- "status": 0,
- "forward_query_string": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns all bulk redirects associated with an environment.
page | integer <int32> Default: 0 0-based page number. |
page_size | integer <int32> Default: 20 Number of results per page. Valid values are: 1 - 100. Default value: 20 |
from | string Find a bulk redirect by its source URL ( |
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/environment-redirects', qs: { page: 'SOME_INTEGER_VALUE', page_size: 'SOME_INTEGER_VALUE', from: 'SOME_STRING_VALUE', environment_id: 'SOME_STRING_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": {
- "first": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "next": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "previous": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "last": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}
}, - "total_items": 0,
- "items": [
- {
- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "from": "string",
- "to": "string",
- "status": 0,
- "forward_query_string": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Retrieve information and log data for a previous deployment.
Retrieve log data for a specific deployment.
deployment_id required | string The deployment's system-defined ID. This ID is returned by the Deploy CDN Configuration operation's |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/deployments/{deployment_id}/logs', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "logs": [
- {
- "message": "string",
- "level": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
]
}
Retrieve information about a specific deployment.
deployment_id required | string The deployment's system-defined ID. This ID is returned by the Deploy CDN Configuration operation's |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/deployments/{deployment_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z"
}
Upload your own TLS certificate, retrieve existing TLS certificates, or request TLS certificate generation for a specific environment.
Returns a TLS certificate.
cert_id required | string The TLS certificate's system-defined ID. Use the Get All Certificates operation to retrieve a list of TLS certificates and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/tls-certs/{cert_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "primary_cert": "string",
- "intermediate_cert": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "status": "string",
- "generated": true,
- "serial": "string",
- "common_name": "string",
- "alternative_names": [
- "string"
], - "activation_error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Upload your TLS certificate to activate it within a specific environment.
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
primary_cert required | string Your TLS certificate. We require this certificate to be issued by a Certificate Authority. |
intermediate_cert required | string The intermediate certificates (IC) used by the CA, including the CA’s signing certificate. |
private_key | string The private key that was generated with the CSR. |
{- "environment_id": "string",
- "primary_cert": "string",
- "intermediate_cert": "string",
- "private_key": "string"
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "primary_cert": "string",
- "intermediate_cert": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "status": "string",
- "generated": true,
- "serial": "string",
- "common_name": "string",
- "alternative_names": [
- "string"
], - "activation_error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns all TLS certificates associated with an environment.
page | integer <int32> Default: 0 0-based page number. |
page_size | integer <int32> Default: 20 Number of results per page. Valid values are: 1 - 100. Default value: 20 |
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/config/v0.1/tls-certs', qs: { page: 'SOME_INTEGER_VALUE', page_size: 'SOME_INTEGER_VALUE', environment_id: 'SOME_STRING_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": {
- "first": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "next": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "previous": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "last": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}
}, - "total_items": 0,
- "items": [
- {
- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "primary_cert": "string",
- "intermediate_cert": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "status": "string",
- "generated": true,
- "serial": "string",
- "common_name": "string",
- "alternative_names": [
- "string"
], - "activation_error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Generates a Let's Encrypt certificate for each eligible hostname associated with the specified environment. A hostname is eligible for automatic certificate generation when the CA is allowed to issue certificates for that hostname and your control over the domain is established through an _acme_challenge
CNAME record. Learn more.
environment_id required | string An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
{- "environment_id": "string"
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "environment_id": "string",
- "primary_cert": "string",
- "intermediate_cert": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "status": "string",
- "generated": true,
- "serial": "string",
- "common_name": "string",
- "alternative_names": [
- "string"
], - "activation_error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
An access rule identifies legitimate traffic and threats through access controls.
Creates an access rule that identifies threats through whitelists, accesslists, and blacklists.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
version | string Reserved for future use. |
id | string The access rule's system-defined ID. |
name | string The access rule's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this access rule. This field does not reflect updates performed through the REST API. |
object (ACL Strings) Contains access controls for countries. Each country is identified by its country code. | |
object (ACL Strings) Contains access controls for country subdivisions. Each country subdivision is identified by its ISO-3166-2 code. | |
object (ACL Strings) Contains access controls for IPv4 and/or IPv6 addresses. Each IP address is defined through standard IPv4/IPv6 and CIDR notation. | |
object (ACL Strings) Contains access controls for referrers. All referrers defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Contains access controls for URL paths. This URL path starts directly after the hostname. All URL paths defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Contains access controls for cookie names. All cookies defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Contains access controls for user agents. All user agents defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Requires Edgio Premier. Contains access controls for JA3 fingerprints. | |
object (ACL Strings) Requires Edgio Premier. Contains access controls for JA4 fingerprints. | |
object (ACL ASNs) Contains access controls for autonomous system numbers (ASNs). | |
allow_anonymous_proxy | boolean Determines whether we will detect requests that use an anonymizer or anonymous proxy tool. |
super_capacity | boolean Determines whether this access rule is restricted to 10,000 or 1,000 IP addresses or IP blocks. Edgio Premier and Standard customers are allowed to create up to 2 high-capacity access rules. |
allowed_http_methods | Array of strings Identifies each allowed HTTP method (e.g., |
allowed_request_content_types | Array of strings Identifies each allowed media type (e.g., |
disallowed_extensions | Array of strings A list of file extension(s) for which WAF will send an alert or block the request. |
disallowed_headers | Array of strings A list of request header(s) for which WAF will send an alert or block the request. |
max_file_size | integer <uint64> The maximum file size, in bytes, for a |
response_header_name | string The name of the response header that will be included with blocked requests. |
team_config required | boolean This property must always be |
{- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "country": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "sd_iso": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ip": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "referer": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "url": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "cookie": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "user_agent": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ja3": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ja4": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "asn": {
- "accesslist": [
- 0
], - "blacklist": [
- 0
], - "whitelist": [
- 0
]
}, - "allow_anonymous_proxy": true,
- "super_capacity": true,
- "allowed_http_methods": [
- "string"
], - "allowed_request_content_types": [
- "string"
], - "disallowed_extensions": [
- "string"
], - "disallowed_headers": [
- "string"
], - "max_file_size": 0,
- "response_header_name": "string",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of access rules. An access rule identifies whether a request is a threat through whitelists, accesslists, and blacklists.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/acls', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "fMKolMmb",
- "name": "My First Access Rule",
- "super_capacity": false,
- "last_modified_date": "2023-08-16T19:00:05.443647Z"
}, - {
- "id": "N2A2zH3K",
- "name": "My Second Access Rule",
- "super_capacity": false,
- "last_modified_date": "2023-08-16T18:56:37.532190Z"
}
]
Retrieves an access rule that identifies threats through whitelists, accesslists, and blacklists.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
acl_id required | string An access rule's system-defined ID. Use the Get All Access Rules operation to retrieve a list of access rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/acls/{acl_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "allow_anonymous_proxy": true,
- "allowed_http_methods": [
- "GET",
- "POST"
], - "allowed_request_content_types": [
- "application/json",
- "application/x-amf",
- "application/x-www-form-urlencoded",
- "application/xml",
- "multipart/form-data",
- "text/html",
- "text/plain",
- "text/xml"
], - "asn": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "cookie": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "country": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "disallowed_extensions": [
- ".asa",
- ".asax",
- ".ascx",
- ".axd",
- ".backup",
- ".bak",
- ".bat",
- ".cdx",
- ".cer",
- ".cfg",
- ".cmd",
- ".conf",
- ".config",
- ".cs",
- ".csproj",
- ".csr",
- ".dat",
- ".db",
- ".dbf",
- ".dll",
- ".dos",
- ".exe",
- ".htr",
- ".htw",
- ".ida",
- ".idc",
- ".idq",
- ".inc",
- ".ini",
- ".key",
- ".licx",
- ".lnk",
- ".log",
- ".mdb",
- ".old",
- ".pass",
- ".pdb",
- ".pol",
- ".printer",
- ".pwd",
- ".resources",
- ".resx",
- ".sql",
- ".sys",
- ".vb",
- ".vbproj",
- ".vbs",
- ".vsdisco",
- ".webinfo",
- ".xsd",
- ".xsx"
], - "disallowed_headers": [ ],
- "id": "6ZLms6Dh",
- "ip": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "last_modified_by": "jsernaque@edg.io via Edgio AppOps Console",
- "last_modified_date": "2023-09-29T19:46:48.401989Z",
- "max_file_size": 6291456,
- "name": "My Access Rule",
- "referer": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "response_header_name": "",
- "sd_iso": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "super_capacity": false,
- "team_config": true,
- "url": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "user_agent": {
- "accesslist": [ ],
- "blacklist": [ ],
- "whitelist": [ ]
}, - "version": null
}
Updates an access rule that identifies threats through whitelists, accesslists, and blacklists.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
acl_id required | string An access rule's system-defined ID. Use the Get All Access Rules operation to retrieve a list of access rules and their system-defined IDs. |
version | string Reserved for future use. |
id | string The access rule's system-defined ID. |
name | string The access rule's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this access rule. This field does not reflect updates performed through the REST API. |
object (ACL Strings) Contains access controls for countries. Each country is identified by its country code. | |
object (ACL Strings) Contains access controls for country subdivisions. Each country subdivision is identified by its ISO-3166-2 code. | |
object (ACL Strings) Contains access controls for IPv4 and/or IPv6 addresses. Each IP address is defined through standard IPv4/IPv6 and CIDR notation. | |
object (ACL Strings) Contains access controls for referrers. All referrers defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Contains access controls for URL paths. This URL path starts directly after the hostname. All URL paths defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Contains access controls for cookie names. All cookies defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Contains access controls for user agents. All user agents defined within a whitelist, accesslist, or blacklist are regular expressions. | |
object (ACL Strings) Requires Edgio Premier. Contains access controls for JA3 fingerprints. | |
object (ACL Strings) Requires Edgio Premier. Contains access controls for JA4 fingerprints. | |
object (ACL ASNs) Contains access controls for autonomous system numbers (ASNs). | |
allow_anonymous_proxy | boolean Determines whether we will detect requests that use an anonymizer or anonymous proxy tool. |
super_capacity | boolean Determines whether this access rule is restricted to 10,000 or 1,000 IP addresses or IP blocks. Edgio Premier and Standard customers are allowed to create up to 2 high-capacity access rules. |
allowed_http_methods | Array of strings Identifies each allowed HTTP method (e.g., |
allowed_request_content_types | Array of strings Identifies each allowed media type (e.g., |
disallowed_extensions | Array of strings A list of file extension(s) for which WAF will send an alert or block the request. |
disallowed_headers | Array of strings A list of request header(s) for which WAF will send an alert or block the request. |
max_file_size | integer <uint64> The maximum file size, in bytes, for a |
response_header_name | string The name of the response header that will be included with blocked requests. |
team_config required | boolean This property must always be |
{- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "country": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "sd_iso": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ip": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "referer": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "url": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "cookie": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "user_agent": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ja3": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ja4": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "asn": {
- "accesslist": [
- 0
], - "blacklist": [
- 0
], - "whitelist": [
- 0
]
}, - "allow_anonymous_proxy": true,
- "super_capacity": true,
- "allowed_http_methods": [
- "string"
], - "allowed_request_content_types": [
- "string"
], - "disallowed_extensions": [
- "string"
], - "disallowed_headers": [
- "string"
], - "max_file_size": 0,
- "response_header_name": "string",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes an access rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
acl_id required | string An access rule's system-defined ID. Use the Get All Access Rules operation to retrieve a list of access rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/acls/{acl_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific access rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
acl_id required | string An access rule's system-defined ID. Use the Get All Access Rules operation to retrieve a list of access rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/acls/{acl_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of an access rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
acl_id required | string An access rule's system-defined ID. Use the Get All Access Rules operation to retrieve a list of access rules and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/acls/{acl_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "country": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "sd_iso": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ip": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "referer": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "url": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "cookie": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "user_agent": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ja3": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "ja4": {
- "accesslist": [
- "string"
], - "blacklist": [
- "string"
], - "whitelist": [
- "string"
]
}, - "asn": {
- "accesslist": [
- 0
], - "blacklist": [
- 0
], - "whitelist": [
- 0
]
}, - "allow_anonymous_proxy": true,
- "super_capacity": true,
- "allowed_http_methods": [
- "string"
], - "allowed_request_content_types": [
- "string"
], - "disallowed_extensions": [
- "string"
], - "disallowed_headers": [
- "string"
], - "max_file_size": 0,
- "response_header_name": "string",
- "team_config": true
}
}
An API Security ruleset contains one or more API Security rule(s). Each of these rules identifies an API schema and the conditions under which it will be enforced.
By default, Edgio validates all POST
, PUT
, and PATCH
requests that satisfy your security app’s hostname and URL path requirements. If your website uses those HTTP methods for non-API requests, then it is strongly recommended to define one or more URL path(s) within your API Security rule.
Creates an API Security ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
id | string The API Security ruleset's system-defined ID. |
name | string The API Security ruleset's name. |
customer_id | string An internal system-defined ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this API Security ruleset. This field does not reflect updates performed through the REST API. |
team_config required | boolean This property must always be |
Array of objects (API Rule Object) Contains one or more rule(s) that identify a set of requests and a JSON schema through which Edgio will screen that traffic. |
{- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "team_config": true,
- "rules": [
- {
- "name": "string",
- "id": "string",
- "methods": [
- "string"
], - "path": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "schema_id": "string"
}
]
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of API Security rulesets.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-gateways', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "TGnXjOIc",
- "name": "My API Security Ruleset",
- "last_modified_date": "2023-09-29T23:31:39.402145Z"
}
]
Retrieves an API Security ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_gateway_id required | string An API Security Ruleset's system-defined ID. Use the Get All API Security Rulesets operation to retrieve a list of API Security Rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-gateways/{api_gateway_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "id": "VzhYZAMT",
- "last_modified_by": "jsmith@example.com via Edgio AppOps Console",
- "last_modified_date": "2023-09-29T23:34:42.193976Z",
- "name": "My API Security Ruleset",
- "rules": [
- {
- "id": "uDS9SUgt",
- "methods": [
- "PUT",
- "POST"
], - "name": "API Security Rule 1",
- "path": {
- "type": "GLOB",
- "value": "*"
}, - "schema_id": "OTZ3opxX"
}
], - "team_config": true
}
Updates an API Security ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_gateway_id required | string An API Security Ruleset's system-defined ID. Use the Get All API Security Rulesets operation to retrieve a list of API Security Rulesets and their system-defined IDs. |
id | string The API Security ruleset's system-defined ID. |
name | string The API Security ruleset's name. |
customer_id | string An internal system-defined ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this API Security ruleset. This field does not reflect updates performed through the REST API. |
team_config required | boolean This property must always be |
Array of objects (API Rule Object) Contains one or more rule(s) that identify a set of requests and a JSON schema through which Edgio will screen that traffic. |
{- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "team_config": true,
- "rules": [
- {
- "name": "string",
- "id": "string",
- "methods": [
- "string"
], - "path": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "schema_id": "string"
}
]
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes an API Security ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_gateway_id required | string An API Security Ruleset's system-defined ID. Use the Get All API Security Rulesets operation to retrieve a list of API Security Rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-gateways/{api_gateway_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of API schemas associated with an API Security ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_gateway_id required | string An API Security Ruleset's system-defined ID. Use the Get All API Security Rulesets operation to retrieve a list of API Security Rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-gateways/{api_gateway_id}/schemas', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "name": "Access Rules",
- "schema": {
- "type": "object",
- "properties": {
- "customer_id": {
- "type": "string"
}, - "directive": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sec_rule": {
- "type": "object",
- "properties": {
- "action": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
}, - "msg": {
- "type": "string"
}, - "t": {
- "type": "array",
- "items": {
- "type": "string"
}
}
}
}, - "chained_rule": {
- "type": "array"
}, - "id": {
- "type": "string"
}, - "name": {
- "type": "string"
}, - "operator": {
- "type": "object",
- "properties": {
- "is_negated": {
- "type": "boolean"
}, - "is_regex": {
- "type": "boolean"
}, - "type": {
- "type": "string"
}, - "value": {
- "type": "string"
}
}
}, - "variable": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "is_count": {
- "type": "boolean"
}, - "match": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "is_negated": {
- "type": "boolean"
}, - "is_regex": {
- "type": "boolean"
}, - "value": {
- "type": "string"
}
}
}
}, - "type": {
- "type": "string"
}
}
}
}
}
}
}
}
}, - "id": {
- "type": "string"
}, - "name": {
- "type": "string"
}, - "team_config": {
- "type": "boolean"
}
}
}, - "api_gw_id": "TGnXjOIc",
- "team_config": true,
- "last_modified_by": "jsmith@example.com via Edgio AppOps Console",
- "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "last_modified_date": "2023-09-29T23:31:41.193941Z",
- "id": "OTZ3opxX"
}
]
Retrieve a list of versions for a specific API gateway.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_gateway_id required | string An API Security Ruleset's system-defined ID. Use the Get All API Security Rulesets operation to retrieve a list of API Security Rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-gateways/{api_gateway_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of an API gateway.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_gateway_id required | string An API Security Ruleset's system-defined ID. Use the Get All API Security Rulesets operation to retrieve a list of API Security Rulesets and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-gateways/{api_gateway_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "team_config": true,
- "rules": [
- {
- "name": "string",
- "id": "string",
- "methods": [
- "string"
], - "path": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "schema_id": "string"
}
]
}
}
An API schema is a JSON schema that describes the structure for a valid API payload.
Creates an API schema. An API schema contains a JSON schema (draft 4) that may be used to screen API requests.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
id | string The API schema’s system-defined ID. |
api_gw_id | string The API Security ruleset's system-defined ID. |
customer_id | string An internal system-defined ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
{- "id": "string",
- "api_gw_id": "string",
- "customer_id": "string",
- "last_modified_date": "string"
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of API schemas.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-schemas', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "e3mpHQY5",
- "name": "sample_api_schema_config",
- "last_modified_date": "2023-09-29T23:31:41.193941Z"
}
]
Retrieves an API schema. An API schema contains a JSON schema (draft 4) that may be used to screen API requests.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_schema_id required | string An API schema's system-defined ID. Use the Get All API Schemas operation to retrieve a list of API schemas and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-schemas/{api_schema_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "api_gw_id": "VzhYZAMT",
- "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "id": "OTZ3opxX",
- "last_modified_by": "jsmith@example.com via Edgio AppOps Console",
- "last_modified_date": "2023-09-29T23:31:41.193941Z",
- "name": "Access Rules",
- "schema": {
- "properties": {
- "customer_id": {
- "type": "string"
}, - "directive": {
- "items": {
- "properties": {
- "sec_rule": {
- "properties": {
- "action": {
- "properties": {
- "id": {
- "type": "string"
}, - "msg": {
- "type": "string"
}, - "t": {
- "items": {
- "type": "string"
}, - "type": "array"
}
}, - "type": "object"
}, - "chained_rule": {
- "type": "array"
}, - "id": {
- "type": "string"
}, - "name": {
- "type": "string"
}
}, - "type": "object"
}
}, - "type": "object"
}, - "type": "array"
}, - "id": {
- "type": "string"
}, - "name": {
- "type": "string"
}, - "team_config": {
- "type": "boolean"
}
}, - "type": "object"
}, - "team_config": true
}
Updates an API schema. An API schema contains a JSON schema (draft 4) that may be used to screen API requests.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_schema_id required | string An API schema's system-defined ID. Use the Get All API Schemas operation to retrieve a list of API schemas and their system-defined IDs. |
id | string The API schema’s system-defined ID. |
api_gw_id | string The API Security ruleset's system-defined ID. |
customer_id | string An internal system-defined ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
{- "id": "string",
- "api_gw_id": "string",
- "customer_id": "string",
- "last_modified_date": "string"
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes an API schema.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_schema_id required | string An API schema's system-defined ID. Use the Get All API Schemas operation to retrieve a list of API schemas and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-schemas/{api_schema_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific API schema.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_schema_id required | string An API schema's system-defined ID. Use the Get All API Schemas operation to retrieve a list of API schemas and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-schemas/{api_schema_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of an API schema.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
api_schema_id required | string An API schema's system-defined ID. Use the Get All API Schemas operation to retrieve a list of API schemas and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/api-security/v0.9/{organization_id}/api-schemas/{api_schema_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "id": "string",
- "api_gw_id": "string",
- "customer_id": "string",
- "last_modified_date": "string"
}
}
A rate rule restricts the flow of site traffic.
Creates a rate rule that determines the maximum number of requests that will be allowed within a given time period.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
version | integer <uint32> Reserved for future use. |
id | string The rate rule's system-defined ID. |
name | string The rate rule's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this rate rule. This field does not reflect updates performed through the REST API. |
disabled | boolean Indicates whether this rate rule will be enforced. Valid values are:
|
duration_sec | integer <uint32> Enum: 1 5 10 30 60 120 300 600 900 1800 The duration, in seconds, of the window that tracks the number of requests eligible for rate limiting. Edgio Security Premier customers may define a maximum duration of 1,800 seconds when grouping requests by IP address (i.e., the The |
num | integer <uint32> The number of requests that will trigger rate limiting. |
keys | Array of strings Items Enum: "IP" "USER_AGENT" "ASN" "JA3" "JA4" "HEADER:<name>" "ARGS:<name>" "COOKIE:<name>" "STATUS_CODE:<code>" The method by which requests will be grouped for the purposes of this rate rule. Select up to two methods (e.g.,
|
Array of objects (ConditionGroup) Contains the set of condition groups associated with a rule. | |
team_config required | boolean This property must always be |
{- "version": 0,
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "disabled": true,
- "duration_sec": 1,
- "num": 0,
- "keys": [
- "IP"
], - "condition_groups": [
- {
- "id": "string",
- "name": "string",
- "conditions": [
- {
- "target": {
- "type": "FILE_EXT",
- "value": "string"
}, - "op": {
- "type": "RX",
- "value": "string",
- "is_regex": true,
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true
}
}
]
}
], - "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of rate rules. A rate rule determines the maximum number of requests that will be allowed within a given time period.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/limits', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "VzhYZAMT",
- "name": "My Rate Rule",
- "last_modified_date": "2023-09-28T00:16:18.589777Z"
}, - {
- "id": "F60gu16u",
- "name": "CC Transactions",
- "last_modified_date": "2023-09-27T00:16:12.389364Z"
}
]
Retrieves a rate rule. A rate rule determines the maximum number of requests that will be allowed within a given time period.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
limit_id required | string A rate rule's system-defined ID. Use the Get All Rate Rules operation to retrieve a list of rate rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/limits/{limit_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "condition_groups": [
- {
- "conditions": [
- {
- "op": {
- "is_negated": true,
- "type": "EM",
- "values": [
- "US",
- "CA",
- "MX"
]
}, - "target": {
- "type": "GEO"
}
}
], - "id": "VzhYZAMT",
- "name": "Negative Country Match"
}
], - "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "disabled": false,
- "duration_sec": 60,
- "id": "F60gu16u",
- "keys": [
- "IP"
], - "last_modified_by": "jsmith@example.com via Edgio AppOps Console",
- "last_modified_date": "2023-09-28T00:16:18.589777Z",
- "name": "My Rate Rule",
- "num": 200,
- "team_config": true
}
Updates a rate rule that determines the maximum number of requests that will be allowed within a given time period.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
limit_id required | string A rate rule's system-defined ID. Use the Get All Rate Rules operation to retrieve a list of rate rules and their system-defined IDs. |
version | integer <uint32> Reserved for future use. |
id | string The rate rule's system-defined ID. |
name | string The rate rule's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this rate rule. This field does not reflect updates performed through the REST API. |
disabled | boolean Indicates whether this rate rule will be enforced. Valid values are:
|
duration_sec | integer <uint32> Enum: 1 5 10 30 60 120 300 600 900 1800 The duration, in seconds, of the window that tracks the number of requests eligible for rate limiting. Edgio Security Premier customers may define a maximum duration of 1,800 seconds when grouping requests by IP address (i.e., the The |
num | integer <uint32> The number of requests that will trigger rate limiting. |
keys | Array of strings Items Enum: "IP" "USER_AGENT" "ASN" "JA3" "JA4" "HEADER:<name>" "ARGS:<name>" "COOKIE:<name>" "STATUS_CODE:<code>" The method by which requests will be grouped for the purposes of this rate rule. Select up to two methods (e.g.,
|
Array of objects (ConditionGroup) Contains the set of condition groups associated with a rule. | |
team_config required | boolean This property must always be |
{- "version": 0,
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "disabled": true,
- "duration_sec": 1,
- "num": 0,
- "keys": [
- "IP"
], - "condition_groups": [
- {
- "id": "string",
- "name": "string",
- "conditions": [
- {
- "target": {
- "type": "FILE_EXT",
- "value": "string"
}, - "op": {
- "type": "RX",
- "value": "string",
- "is_regex": true,
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true
}
}
]
}
], - "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes a rate rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
limit_id required | string A rate rule's system-defined ID. Use the Get All Rate Rules operation to retrieve a list of rate rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/limits/{limit_id}' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific rate rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
limit_id required | string A rate rule's system-defined ID. Use the Get All Rate Rules operation to retrieve a list of rate rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/limits/{limit_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of a rate rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
limit_id required | string A rate rule's system-defined ID. Use the Get All Rate Rules operation to retrieve a list of rate rules and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/limits/{limit_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "version": 0,
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "disabled": true,
- "duration_sec": 1,
- "num": 0,
- "keys": [
- "IP"
], - "condition_groups": [
- {
- "id": "string",
- "name": "string",
- "conditions": [
- {
- "target": {
- "type": "FILE_EXT",
- "value": "string"
}, - "op": {
- "type": "RX",
- "value": "string",
- "is_regex": true,
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true
}
}
]
}
], - "team_config": true
}
}
A bot manager configuration:
Identifies a bot ruleset.
The enforcement action that will be applied to traffic identified as a bot.
Determines whether known bots will be automatically detected and the enforcement action that will be applied to that traffic.
Traffic that will be exempt from bot detection.
Creates a bot manager configuration.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
object (Actions) Contains an object for each enforcement action associated with this bot manager configuration. | |
bots_prod_id | string The system-defined ID for the bot ruleset that will be applied to production traffic when this bot manager configuration is applied to a Security App. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
exception_cookie | Array of strings Identifies traffic that will be exempt from bot detection by cookie. Cookie syntax: Edgio treats the cookie’s value as a regular expression. |
exception_ja3 | Array of strings Identifies traffic that will be exempt from bot detection by JA3 fingerprint. A JA3 fingerprint identifies a client using key characteristics from a TLS request. |
exception_ja4 | Array of strings Identifies traffic that will be exempt from bot detection by JA4 fingerprint. A JA4 fingerprint identifies a client using key characteristics from a TLS request. |
exception_url | Array of strings A regular expression that identifies traffic that will be exempt from bot detection by URL. |
exception_user_agent | Array of strings A regular expression that identifies traffic that will be exempt from bot detection by user agent. |
inspect_known_bots | boolean Determines whether Edgio will automatically detect the known bots defined within the |
Array of objects (Known Bot Category Object) Contains a list of known bot categories. Each category contains a list of known bots that can be automatically detected by Edgio and a configuration that determines how known bot and spoofed bot traffic will be handled. | |
Array of objects (Known Bot Object) Deprecated Use | |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this bot ruleset. This field does not reflect updates performed through the REST API. |
name | string The bot manager configuration's name. |
spoof_bot_action_type | string Enum: "ALERT" "BLOCK_REQUEST" "CUSTOM_RESPONSE" "BROWSER_CHALLENGE" "REDIRECT_302" "RECAPTCHA" "SILENT_CLOSE" The default enforcement action that will be applied to traffic spoofing a known bot defined within the |
team_config required | boolean This property must always be |
{- "actions": {
- "ALERT": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "CUSTOM_RESPONSE": {
- "id": "string",
- "name": "string",
- "enf_type": "CUSTOM_RESPONSE",
- "response_body_base64": "string",
- "status": 0,
- "response_headers": {
- "property1": "string",
- "property2": "string"
}
}, - "BLOCK_REQUEST": {
- "id": "string",
- "name": "string",
- "enf_type": "BLOCK_REQUEST"
}, - "REDIRECT_302": {
- "id": "string",
- "name": "string",
- "enf_type": "REDIRECT_302",
- "url": "string"
}, - "BROWSER_CHALLENGE": {
- "id": "string",
- "name": "string",
- "enf_type": "BROWSER_CHALLENGE",
- "is_custom_challenge": true,
- "challenge_level": 0,
- "challenge_difficulty": 0,
- "response_body_base64": "string",
- "valid_for_sec": 0,
- "status": 0
}, - "RECAPTCHA": {
- "id": "string",
- "name": "string",
- "enf_type": "RECAPTCHA",
- "valid_for_sec": 0,
- "status": 0,
- "failed_action_type": "ALERT"
}, - "SILENT_CLOSE": {
- "id": "string",
- "name": "string",
- "enf_type": "SILENT_CLOSE"
}, - "IGNORE": {
- "id": "string",
- "name": "string",
- "enf_type": "IGNORE"
}
}, - "bots_prod_id": "string",
- "exception_cookie": [
- "string"
], - "exception_ja3": [
- "string"
], - "exception_ja4": [
- "string"
], - "exception_url": [
- "string"
], - "exception_user_agent": [
- "string"
], - "inspect_known_bots": true,
- "categories": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "category": "string",
- "companies": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "bot_token": "string",
- "strict_match": true
}
]
}
], - "known_bots": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "bot_token": "string",
- "strict_match": true
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "name": "string",
- "spoof_bot_action_type": "ALERT",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of bot manager configurations. A bot manager configuration can detect and mitigate undesired bot traffic.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bot-managers', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "e3mpHQY5",
- "name": "my_bot_manager_configuration",
- "last_modified_date": "2023-09-29T23:31:39.402145Z"
}
]
Retrieves a bot manager configuration.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_manager_id required | string A bot manager configuration's system-defined ID. Use the Get All Bot Managers operation to retrieve a list of bot manager configurations and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bot-managers/{bot_manager_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "actions": {
- "ALERT": {
- "enf_type": "ALERT",
- "id": "HJMoufdM",
- "name": "known_bot action"
}, - "BLOCK_REQUEST": {
- "enf_type": "BLOCK_REQUEST",
- "id": "1cwCQpgv",
- "name": "known_bot action"
}, - "BROWSER_CHALLENGE": {
- "enf_type": "BROWSER_CHALLENGE",
- "id": "lpqOMXaF",
- "name": "known_bot action",
- "status": 200,
- "valid_for_sec": 200
}
}, - "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "id": "e34YwKtg",
- "inspect_known_bots": true,
- "known_bots": [ ],
- "last_modified_date": "2023-10-13T23:29:34.170006Z",
- "name": "bot-manager-configuration-1",
- "spoof_bot_action_type": "ALERT",
- "team_config": true
}
Updates a bot manager configuration.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_manager_id required | string A bot manager configuration's system-defined ID. Use the Get All Bot Managers operation to retrieve a list of bot manager configurations and their system-defined IDs. |
object (Actions) Contains an object for each enforcement action associated with this bot manager configuration. | |
bots_prod_id | string The system-defined ID for the bot ruleset that will be applied to production traffic when this bot manager configuration is applied to a Security App. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
exception_cookie | Array of strings Identifies traffic that will be exempt from bot detection by cookie. Cookie syntax: Edgio treats the cookie’s value as a regular expression. |
exception_ja3 | Array of strings Identifies traffic that will be exempt from bot detection by JA3 fingerprint. A JA3 fingerprint identifies a client using key characteristics from a TLS request. |
exception_ja4 | Array of strings Identifies traffic that will be exempt from bot detection by JA4 fingerprint. A JA4 fingerprint identifies a client using key characteristics from a TLS request. |
exception_url | Array of strings A regular expression that identifies traffic that will be exempt from bot detection by URL. |
exception_user_agent | Array of strings A regular expression that identifies traffic that will be exempt from bot detection by user agent. |
inspect_known_bots | boolean Determines whether Edgio will automatically detect the known bots defined within the |
Array of objects (Known Bot Category Object) Contains a list of known bot categories. Each category contains a list of known bots that can be automatically detected by Edgio and a configuration that determines how known bot and spoofed bot traffic will be handled. | |
Array of objects (Known Bot Object) Deprecated Use | |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this bot ruleset. This field does not reflect updates performed through the REST API. |
name | string The bot manager configuration's name. |
spoof_bot_action_type | string Enum: "ALERT" "BLOCK_REQUEST" "CUSTOM_RESPONSE" "BROWSER_CHALLENGE" "REDIRECT_302" "RECAPTCHA" "SILENT_CLOSE" The default enforcement action that will be applied to traffic spoofing a known bot defined within the |
team_config required | boolean This property must always be |
{- "actions": {
- "ALERT": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "CUSTOM_RESPONSE": {
- "id": "string",
- "name": "string",
- "enf_type": "CUSTOM_RESPONSE",
- "response_body_base64": "string",
- "status": 0,
- "response_headers": {
- "property1": "string",
- "property2": "string"
}
}, - "BLOCK_REQUEST": {
- "id": "string",
- "name": "string",
- "enf_type": "BLOCK_REQUEST"
}, - "REDIRECT_302": {
- "id": "string",
- "name": "string",
- "enf_type": "REDIRECT_302",
- "url": "string"
}, - "BROWSER_CHALLENGE": {
- "id": "string",
- "name": "string",
- "enf_type": "BROWSER_CHALLENGE",
- "is_custom_challenge": true,
- "challenge_level": 0,
- "challenge_difficulty": 0,
- "response_body_base64": "string",
- "valid_for_sec": 0,
- "status": 0
}, - "RECAPTCHA": {
- "id": "string",
- "name": "string",
- "enf_type": "RECAPTCHA",
- "valid_for_sec": 0,
- "status": 0,
- "failed_action_type": "ALERT"
}, - "SILENT_CLOSE": {
- "id": "string",
- "name": "string",
- "enf_type": "SILENT_CLOSE"
}, - "IGNORE": {
- "id": "string",
- "name": "string",
- "enf_type": "IGNORE"
}
}, - "bots_prod_id": "string",
- "exception_cookie": [
- "string"
], - "exception_ja3": [
- "string"
], - "exception_ja4": [
- "string"
], - "exception_url": [
- "string"
], - "exception_user_agent": [
- "string"
], - "inspect_known_bots": true,
- "categories": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "category": "string",
- "companies": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "bot_token": "string",
- "strict_match": true
}
]
}
], - "known_bots": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "bot_token": "string",
- "strict_match": true
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "name": "string",
- "spoof_bot_action_type": "ALERT",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes a bot manager configuration.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_manager_id required | string A bot manager configuration's system-defined ID. Use the Get All Bot Managers operation to retrieve a list of bot manager configurations and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bot-managers/{bot_manager_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific bot manager configuration.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_manager_id required | string A bot manager configuration's system-defined ID. Use the Get All Bot Managers operation to retrieve a list of bot manager configurations and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bot-managers/{bot_manager_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of a bot manager configuration.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_manager_id required | string A bot manager configuration's system-defined ID. Use the Get All Bot Managers operation to retrieve a list of bot manager configurations and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bot-managers/{bot_manager_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "actions": {
- "ALERT": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "CUSTOM_RESPONSE": {
- "id": "string",
- "name": "string",
- "enf_type": "CUSTOM_RESPONSE",
- "response_body_base64": "string",
- "status": 0,
- "response_headers": {
- "property1": "string",
- "property2": "string"
}
}, - "BLOCK_REQUEST": {
- "id": "string",
- "name": "string",
- "enf_type": "BLOCK_REQUEST"
}, - "REDIRECT_302": {
- "id": "string",
- "name": "string",
- "enf_type": "REDIRECT_302",
- "url": "string"
}, - "BROWSER_CHALLENGE": {
- "id": "string",
- "name": "string",
- "enf_type": "BROWSER_CHALLENGE",
- "is_custom_challenge": true,
- "challenge_level": 0,
- "challenge_difficulty": 0,
- "response_body_base64": "string",
- "valid_for_sec": 0,
- "status": 0
}, - "RECAPTCHA": {
- "id": "string",
- "name": "string",
- "enf_type": "RECAPTCHA",
- "valid_for_sec": 0,
- "status": 0,
- "failed_action_type": "ALERT"
}, - "SILENT_CLOSE": {
- "id": "string",
- "name": "string",
- "enf_type": "SILENT_CLOSE"
}, - "IGNORE": {
- "id": "string",
- "name": "string",
- "enf_type": "IGNORE"
}
}, - "bots_prod_id": "string",
- "exception_cookie": [
- "string"
], - "exception_ja3": [
- "string"
], - "exception_ja4": [
- "string"
], - "exception_url": [
- "string"
], - "exception_user_agent": [
- "string"
], - "inspect_known_bots": true,
- "categories": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "category": "string",
- "companies": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "bot_token": "string",
- "strict_match": true
}
]
}
], - "known_bots": [
- {
- "action_type": "ALERT",
- "spoof_action_type": "ALERT",
- "bot_token": "string",
- "strict_match": true
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "name": "string",
- "spoof_bot_action_type": "ALERT",
- "team_config": true
}
}
A bot ruleset contains one or more rule(s) for determining how bots will be identified.
Creates a bot ruleset. A bot ruleset defines criteria for bot identification.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
id | string The bot ruleset's system-defined ID. |
required | Array of Reputation DB Include (object) or Security Rule (object) Contains the bot rules associated with this bot ruleset. You may create up to 10 bot rules per bot ruleset. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this bot ruleset was last modified. |
name | string The bot ruleset's name. |
team_config required | boolean This property must always be |
{- "id": "string",
- "directive": [
- {
- "include": "r3010_ec_bot_challenge_reputation.conf.json"
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "name": "string",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Lists all bot rulesets.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bots', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "e3mpHQY5",
- "name": "my_bot_ruleset",
- "last_modified_date": "2023-09-29T23:31:39.402145Z"
}
]
Retrieves a bot ruleset. A bot ruleset defines criteria for bot identification.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_id required | string A bot ruleset's system-defined ID. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bots/{bot_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "customer_id": "ae2b89dc-b7a5-45bb-98af-5039ac0fe989",
- "directive": [
- {
- "sec_rule": {
- "action": {
- "bot_action": "BLOCK_REQUEST",
- "id": "77777777",
- "msg": "Blocked",
- "t": [
- "NONE"
]
}, - "chained_rule": [ ],
- "id": "Db0z7Gh5",
- "name": "My second bot rule",
- "operator": {
- "is_negated": false,
- "is_regex": false,
- "type": "STREQ",
- "value": "faux"
}, - "variable": [
- {
- "is_count": false,
- "match": [ ],
- "type": "REQUEST_COOKIES"
}
]
}
}
], - "id": "vipDxgOV",
- "last_modified_date": "2023-10-13T23:36:11.333280Z",
- "name": "My first bot ruleset",
- "team_config": true
}
Updates a bot ruleset. A bot ruleset defines criteria for bot identification.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_id required | string A bot ruleset's system-defined ID. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
id | string The bot ruleset's system-defined ID. |
required | Array of Reputation DB Include (object) or Security Rule (object) Contains the bot rules associated with this bot ruleset. You may create up to 10 bot rules per bot ruleset. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this bot ruleset was last modified. |
name | string The bot ruleset's name. |
team_config required | boolean This property must always be |
{- "id": "string",
- "directive": [
- {
- "include": "r3010_ec_bot_challenge_reputation.conf.json"
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "name": "string",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes a bot ruleset. A bot ruleset defines criteria for bot identification.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_id required | string A bot ruleset's system-defined ID. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bots/{bot_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific bot ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_id required | string A bot ruleset's system-defined ID. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bots/{bot_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of a bot ruleset.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
bot_id required | string A bot ruleset's system-defined ID. Use the Get All Bot Rulesets operation to retrieve a list of bot rulesets and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/{organization_id}/bots/{bot_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "id": "string",
- "directive": [
- {
- "include": "r3010_ec_bot_challenge_reputation.conf.json"
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "name": "string",
- "team_config": true
}
}
Retrieves a list of all known bots. Each known bot is identified by a token (e.g., google
and yahoo
).
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/bot-security/v0.9/known-bots/companies', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- "ahrefs",
- "apple",
- "aspiegel",
- "baidu",
- "datadog",
- "line",
- "msn",
- "neeva",
- "pingdom",
- "semrush",
- "uptimerobot",
- "yahoo",
- "yandex",
- "google",
- "facebook",
- "twitter",
- "other"
]
A custom rule tailors how Edgio Security identifies a threat.
Creates a custom rule that defines custom threat assessment criteria.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
id | string The custom rule's system-defined ID. |
Array of objects (Security Rule) Contains custom rules. Each | |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
name | string The custom rule's name. |
team_config required | boolean This property must always be |
{- "id": "string",
- "directive": [
- {
- "sec_rule": {
- "id": "string",
- "name": "string",
- "variable": [
- {
- "type": "REQUEST_HEADERS",
- "match": [
- {
- "value": "string",
- "is_negated": true,
- "is_regex": true
}
], - "is_count": true
}
], - "operator": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "action": {
- "id": "string",
- "msg": "string",
- "t": [
- "NONE"
]
}, - "chained_rule": [
- {
- "variable": [
- {
- "type": "REQUEST_HEADERS",
- "match": [
- {
- "value": null,
- "is_negated": null,
- "is_regex": null
}
], - "is_count": true
}
], - "operator": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "action": {
- "id": "string",
- "msg": "string",
- "t": [
- "NONE"
]
}
}
]
}
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "name": "string",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of custom rules. A custom rule allows you to define custom threat assessment criterion.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/rules', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "e3mpHQY5",
- "name": "sample_rule_config",
- "last_modified_date": "2023-09-29T22:28:09.790308Z"
}
]
Retrieves a custom rule. Use a custom rule to define custom threat assessment criteria.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
rule_id required | string A custom rule's system-defined ID. Use the Get All Custom Rules operation to retrieve a list of custom rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/rules/{rule_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "customer_id": "ae2b89dc-b7a5-45bb-98af-5039ac0fe989",
- "directive": [
- {
- "sec_rule": {
- "action": {
- "id": "66000001",
- "msg": "Outside of North America",
- "t": [
- "NONE"
]
}, - "chained_rule": [ ],
- "id": "R20zyMd4",
- "name": "new custom rules 01",
- "operator": {
- "is_negated": true,
- "is_regex": false,
- "type": "EQ",
- "value": "US, CA, MX"
}, - "variable": [
- {
- "is_count": false,
- "match": [
- {
- "is_negated": false,
- "is_regex": false,
- "value": "COUNTRY_CODE"
}
], - "type": "GEO"
}
]
}
}
], - "id": "9kaZvYXo",
- "last_modified_by": "jsmith@example.com via Edgio AppOps Console",
- "last_modified_date": "2023-09-29T22:28:09.790308Z",
- "name": "My Custom Rule",
- "team_config": true
}
Updates a custom rule that defines custom threat assessment criteria.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
rule_id required | string A custom rule's system-defined ID. Use the Get All Custom Rules operation to retrieve a list of custom rules and their system-defined IDs. |
id | string The custom rule's system-defined ID. |
Array of objects (Security Rule) Contains custom rules. Each | |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
name | string The custom rule's name. |
team_config required | boolean This property must always be |
{- "id": "string",
- "directive": [
- {
- "sec_rule": {
- "id": "string",
- "name": "string",
- "variable": [
- {
- "type": "REQUEST_HEADERS",
- "match": [
- {
- "value": "string",
- "is_negated": true,
- "is_regex": true
}
], - "is_count": true
}
], - "operator": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "action": {
- "id": "string",
- "msg": "string",
- "t": [
- "NONE"
]
}, - "chained_rule": [
- {
- "variable": [
- {
- "type": "REQUEST_HEADERS",
- "match": [
- {
- "value": null,
- "is_negated": null,
- "is_regex": null
}
], - "is_count": true
}
], - "operator": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "action": {
- "id": "string",
- "msg": "string",
- "t": [
- "NONE"
]
}
}
]
}
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "name": "string",
- "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes a custom rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
rule_id required | string A custom rule's system-defined ID. Use the Get All Custom Rules operation to retrieve a list of custom rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/rules/{rule_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific custom rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
rule_id required | string A custom rule's system-defined ID. Use the Get All Custom Rules operation to retrieve a list of custom rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/rules/{rule_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve a specific version of a custom rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
rule_id required | string A custom rule's system-defined ID. Use the Get All Custom Rules operation to retrieve a list of custom rules and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/rules/{rule_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "id": "string",
- "directive": [
- {
- "sec_rule": {
- "id": "string",
- "name": "string",
- "variable": [
- {
- "type": "REQUEST_HEADERS",
- "match": [
- {
- "value": "string",
- "is_negated": true,
- "is_regex": true
}
], - "is_count": true
}
], - "operator": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "action": {
- "id": "string",
- "msg": "string",
- "t": [
- "NONE"
]
}, - "chained_rule": [
- {
- "variable": [
- {
- "type": "REQUEST_HEADERS",
- "match": [
- null
], - "is_count": true
}
], - "operator": {
- "type": "RX",
- "value": "string",
- "is_negated": true
}, - "action": {
- "id": "string",
- "msg": "string",
- "t": [
- "NONE"
]
}
}
]
}
}
], - "customer_id": "string",
- "last_modified_date": "string",
- "name": "string",
- "team_config": true
}
}
A managed rule identifies threats through predefined security policies. You may fine-tune these security policies to prevent false positives.
Creates a managed rule that identifies a ruleset configuration and describes a valid request.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
version | string Reserved for future use. |
id | string The managed rule's system-defined ID. |
name | string The managed rule's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this managed rule. This field does not reflect updates performed through the REST API. |
ruleset_id | string The system-defined ID for the Edgio ruleset associated with this managed rule. Use the Get Edgio Rulesets endpoint to retrieve a list of Edgio rulesets and their system-defined IDs. |
ruleset_version | string The version of the Edgio ruleset associated with this managed rule. Use the Get Edgio Rulesets endpoint to retrieve a list of Edgio rulesets and their versions. |
policies | Array of strings Contains a list of policies that have been enabled on this managed rule. |
object (General Settings) Contains settings that define the profile for a valid request. | |
Array of objects (Disabled Rule) Contains all disabled rules. Default Value: Null | |
Array of objects (Rule Target Update) Defines one or more targets that will be ignored and/or replaced. Key information:
| |
Array of objects (Redacted Variable) Remove sensitive information from WAF log data. | |
team_config required | boolean This property must always be |
{- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "ruleset_id": "string",
- "ruleset_version": "string",
- "policies": [
- "string"
], - "general_settings": {
- "arg_length": 0,
- "arg_name_length": 0,
- "max_num_args": 0,
- "total_arg_length": 0,
- "combined_file_sizes": 0,
- "max_file_size": 0,
- "response_header_name": "string",
- "validate_utf8_encoding": true,
- "xml_parser": true,
- "process_request_body": true,
- "json_parser": true,
- "paranoia_level": 0,
- "anomaly_threshold": 0,
- "ignore_cookie": [
- "string"
], - "ignore_header": [
- "string"
], - "ignore_query_args": [
- "string"
]
}, - "disabled_rules": [
- {
- "policy_id": "string",
- "rule_id": "string"
}
], - "rule_target_updates": [
- {
- "target": "string",
- "target_match": "string",
- "rule_id": "string",
- "is_regex": true,
- "is_negated": true
}
], - "redacted_variables": [
- {
- "match_on": "string",
- "replacement_name": "string",
- "replacement_value": "string"
}
], - "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of managed rules. A managed rule identifies a ruleset configuration and describes a valid request.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/profiles', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "e3mpHQY5",
- "name": "sample_profile_config",
- "created_date": "06/10/2020 05:54:31 PM",
- "ruleset_version": "2019-11-01",
- "ruleset_id": "ECRS"
}
]
Retrieves a managed rule that identifies a ruleset configuration and describes a valid request.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
profile_id required | string A managed rule's system-defined ID. Use the Get All Managed Rules operation to retrieve a list of managed rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/profiles/{profile_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "created_date": "09/27/2023 05:16:28 PM",
- "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "general_settings": {
- "anomaly_threshold": 4,
- "arg_length": 8000,
- "arg_name_length": 1024,
- "ignore_cookie": [ ],
- "ignore_header": [ ],
- "ignore_query_args": [ ],
- "json_parser": true,
- "max_num_args": 512,
- "paranoia_level": 1,
- "process_request_body": true,
- "process_response_body": false,
- "response_header_name": "X-E-Security-Audit",
- "total_arg_length": 64000,
- "validate_utf8_encoding": true,
- "xml_parser": true
}, - "id": "VzhYZAMT",
- "last_modified_date": "2023-09-27T17:16:28.114124Z",
- "name": "My Managed Rule",
- "policies": [
- "r2000_ec_custom_rule.conf.json",
- "r4000_tw_ip_reputation.conf.json",
- "r4030_tw_iis.conf.json",
- "r4080_tw_vbulletin.conf.json",
- "r4120_tw_apache.conf.json",
- "r4130_tw_java_spring.conf.json",
- "r4140_tw_confluence.conf.json",
- "r5010_scanner_detection.conf.json",
- "r5020_http_protocol_violation.conf.json",
- "r5021_http_attack.conf.json",
- "r5030_local_file_inclusion.conf.json",
- "r5031_remote_file_inclusion.conf.json",
- "r5032_remote_code_execution.conf.json",
- "r5033_php_injection.conf.json",
- "r5034_generic_attack.conf.json",
- "r5040_cross_site_scripting.conf.json",
- "r5041_sql_injection.conf.json",
- "r5042_session_fixation.conf.json",
- "r5043_java_attack.conf.json",
- "r9055_web_shells.conf.json",
- "modsecurity_crs_23_request_limits.conf",
- "modsecurity_crs_49_inbound_blocking.conf"
], - "rule_target_updates": [ ],
- "ruleset_id": "ERS",
- "ruleset_version": "latest",
- "team_config": true,
- "version": null
}
Updates a managed rule that identifies a ruleset configuration and describes a valid request.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
profile_id required | string A managed rule's system-defined ID. Use the Get All Managed Rules operation to retrieve a list of managed rules and their system-defined IDs. |
version | string Reserved for future use. |
id | string The managed rule's system-defined ID. |
name | string The managed rule's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which this configuration was last modified. |
last_modified_by | string The Edgio Console user that last modified this managed rule. This field does not reflect updates performed through the REST API. |
ruleset_id | string The system-defined ID for the Edgio ruleset associated with this managed rule. Use the Get Edgio Rulesets endpoint to retrieve a list of Edgio rulesets and their system-defined IDs. |
ruleset_version | string The version of the Edgio ruleset associated with this managed rule. Use the Get Edgio Rulesets endpoint to retrieve a list of Edgio rulesets and their versions. |
policies | Array of strings Contains a list of policies that have been enabled on this managed rule. |
object (General Settings) Contains settings that define the profile for a valid request. | |
Array of objects (Disabled Rule) Contains all disabled rules. Default Value: Null | |
Array of objects (Rule Target Update) Defines one or more targets that will be ignored and/or replaced. Key information:
| |
Array of objects (Redacted Variable) Remove sensitive information from WAF log data. | |
team_config required | boolean This property must always be |
{- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "ruleset_id": "string",
- "ruleset_version": "string",
- "policies": [
- "string"
], - "general_settings": {
- "arg_length": 0,
- "arg_name_length": 0,
- "max_num_args": 0,
- "total_arg_length": 0,
- "combined_file_sizes": 0,
- "max_file_size": 0,
- "response_header_name": "string",
- "validate_utf8_encoding": true,
- "xml_parser": true,
- "process_request_body": true,
- "json_parser": true,
- "paranoia_level": 0,
- "anomaly_threshold": 0,
- "ignore_cookie": [
- "string"
], - "ignore_header": [
- "string"
], - "ignore_query_args": [
- "string"
]
}, - "disabled_rules": [
- {
- "policy_id": "string",
- "rule_id": "string"
}
], - "rule_target_updates": [
- {
- "target": "string",
- "target_match": "string",
- "rule_id": "string",
- "is_regex": true,
- "is_negated": true
}
], - "redacted_variables": [
- {
- "match_on": "string",
- "replacement_name": "string",
- "replacement_value": "string"
}
], - "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes a managed rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
profile_id required | string A managed rule's system-defined ID. Use the Get All Managed Rules operation to retrieve a list of managed rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/profiles/{profile_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve a list of versions for a specific managed rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
profile_id required | string A managed rule's system-defined ID. Use the Get All Managed Rules operation to retrieve a list of managed rules and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/profiles/{profile_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "ruleset_version": "string",
- "ruleset_id": 0
}
]
}
Retrieve a specific version of a managed rule.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
profile_id required | string A managed rule's system-defined ID. Use the Get All Managed Rules operation to retrieve a list of managed rules and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/profiles/{profile_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "ruleset_id": "string",
- "ruleset_version": "string",
- "policies": [
- "string"
], - "general_settings": {
- "arg_length": 0,
- "arg_name_length": 0,
- "max_num_args": 0,
- "total_arg_length": 0,
- "combined_file_sizes": 0,
- "max_file_size": 0,
- "response_header_name": "string",
- "validate_utf8_encoding": true,
- "xml_parser": true,
- "process_request_body": true,
- "json_parser": true,
- "paranoia_level": 0,
- "anomaly_threshold": 0,
- "ignore_cookie": [
- "string"
], - "ignore_header": [
- "string"
], - "ignore_query_args": [
- "string"
]
}, - "disabled_rules": [
- {
- "policy_id": "string",
- "rule_id": "string"
}
], - "rule_target_updates": [
- {
- "target": "string",
- "target_match": "string",
- "rule_id": "string",
- "is_regex": true,
- "is_negated": true
}
], - "redacted_variables": [
- {
- "match_on": "string",
- "replacement_name": "string",
- "replacement_value": "string"
}
], - "team_config": true
}, - "ruleset_version": "string",
- "ruleset_id": 0
}
An Edgio ruleset contains a set of managed security policies that identifies threats and provides generic protection against a variety of unknown vulnerabilities. Edgio rulesets are versioned. A new version is released whenever an Edgio ruleset is updated.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/rulesets', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "ECRS",
- "description": "NA",
- "versions": [
- "2018-09-14",
- "2019-02-11",
- "2019-08-07",
- "2019-09-05",
- "2019-10-01",
- "2019-11-01",
- "2020-01-09",
- "2020-02-04",
- "2020-03-06",
- "2020-04-03",
- "2020-05-01",
- "2020-06-08",
- "2020-08-01",
- "2020-09-01",
- "2020-10-05",
- "2020-11-02",
- "2020-12-04",
- "2021-01-04",
- "2021-02-05",
- "2021-03-01",
- "2021-03-09",
- "2021-04-02",
- "2021-05-03",
- "2021-06-01",
- "2021-07-01",
- "2021-08-03",
- "2021-09-07",
- "2021-10-04",
- "2021-11-04",
- "2021-12-10",
- "2021-12-13",
- "2022-02-09",
- "2022-03-08",
- "2022-05-25",
- "2022-06-03",
- "2022-08-10",
- "2022-11-04",
- "2022-12-14",
- "latest"
], - "display": "ECRS"
}, - {
- "id": "ERS",
- "description": "NA",
- "versions": [
- "2022-11-04",
- "2022-12-14",
- "2023-04-15",
- "2023-07-15",
- "latest"
], - "display": "ERS"
}
]
Retrieve a list of the available versions for a specific Edgio ruleset.
ruleset_id required | string The Edgio ruleset's system-defined ID. Use the Get Edgio Rulesets operation to retrieve a list of Edgio rulesets and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/rulesets/{ruleset_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- "2023-07-15",
- "latest",
- "2023-04-15",
- "2022-11-04",
- "2022-12-14"
]
Retrieve a list of policies associated with an Edgio ruleset.
ruleset_id required | string The Edgio ruleset's system-defined ID. Use the Get Edgio Rulesets operation to retrieve a list of Edgio rulesets and their system-defined IDs. |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/rulesets/{ruleset_id}/version/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "index": "string",
- "name": "string",
- "id": "string",
- "rules": [
- {
- "id": "string",
- "msg": "string",
- "targets": [
- "string"
], - "tag": [
- "string"
]
}
], - "counts": "string"
}
]
Client-Side Protection allows you to apply a consistent Content Security Policy (CSP) across all of your pages. The purpose of a CSP is to detect and mitigate attacks, such as cross-site scripting (XSS) and code injection.
Creates a Client-Side Protection policy.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
id | string The Client-Side Protection policy's system-defined ID. |
name | string The Client-Side Protection policy's name. |
customer_id | string An internal system-defined ID. |
last_modified_date | string The date and time at which this policy was last modified. |
last_modified_by | string The Edgio Console user that last modified this Client-Side Protection policy. This field does not reflect updates performed through the REST API. |
team_config required | boolean This property must always be |
Array of objects (Header Entry) Contains request header information to be added to edge responses. | |
csp_script_nonce | string This property is reserved for internal use. |
{- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "team_config": true,
- "headers": [
- {
- "key": "string",
- "value": "string",
- "overwrite": true,
- "enforce": true
}
], - "csp_script_nonce": "string"
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of Client-Side Protection policies.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/client-waf/v0.9/{organization_id}/client-wafs', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "TGnXjOIc",
- "name": "My Client-Side Protection policy",
- "last_modified_date": "2023-09-29T23:31:39.402145Z"
}
]
Updates a Client-Side Protection policy.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
client_waf_id required | string A Client-Side Protection policy's system-defined ID. Use the Get All Client-Side Protection Policies operation to retrieve a list of Client-Side Protection policies and their system-defined IDs. |
id | string The Client-Side Protection policy's system-defined ID. |
name | string The Client-Side Protection policy's name. |
customer_id | string An internal system-defined ID. |
last_modified_date | string The date and time at which this policy was last modified. |
last_modified_by | string The Edgio Console user that last modified this Client-Side Protection policy. This field does not reflect updates performed through the REST API. |
team_config required | boolean This property must always be |
Array of objects (Header Entry) Contains request header information to be added to edge responses. | |
csp_script_nonce | string This property is reserved for internal use. |
{- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "team_config": true,
- "headers": [
- {
- "key": "string",
- "value": "string",
- "overwrite": true,
- "enforce": true
}
], - "csp_script_nonce": "string"
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Deletes a Client-Side Protection policy.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
client_waf_id required | string A Client-Side Protection policy's system-defined ID. Use the Get All Client-Side Protection Policies operation to retrieve a list of Client-Side Protection policies and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/client-waf/v0.9/{organization_id}/client-wafs/{client_waf_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
A Security App:
Identifies the set of traffic to which it applies by hostname, a URL path, or both.
Defines how threats will be detected through access rules, API security ruleset, rate rules, bot manager configuration, custom ruleset, and managed rules.
Audit new access rules, API Security rules, custom rules, and managed rules.
Defines the production and audit enforcement action that will be applied to the requests identified as threats by access rules, API security ruleset, rate rules, custom ruleset, and managed rules.
Initializes Security App by creating your first Security App configuration. If one or more Security App(s) exist, you may only use the Manage All Security Apps operation to add, update, or delete Security Apps.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
version | string Reserved for future use |
id | string The Security App's system-defined ID. |
name | string The Security App's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which a Security App returned by the |
last_modified_by | string The Edgio Console user that last modified this Security App configuration. This field does not reflect updates performed through the REST API. |
Array of objects (Scope) Contains a list of Security Apps. | |
team_config required | boolean This property must always be |
{- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "scopes": [
- {
- "id": "string",
- "name": "string",
- "recaptcha_action_name": "string",
- "recaptcha_secret_key": "string",
- "recaptcha_site_key": "string",
- "host": {
- "value": "string",
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true,
- "type": "GLOB"
}, - "path": {
- "value": "string",
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true,
- "type": "GLOB"
}, - "acl_audit_id": "string",
- "acl_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "acl_prod_id": "string",
- "acl_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "rules_audit_id": "string",
- "rules_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "rules_prod_id": "string",
- "rules_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "profile_audit_id": "string",
- "profile_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "profile_prod_id": "string",
- "profile_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "bot_manager_config_id": "string",
- "api_gw_audit_id": "string",
- "api_gw_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "api_gw_prod_id": "string",
- "api_gw_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "limits": [
- {
- "id": "string",
- "action": {
- "id": "string",
- "name": "string",
- "duration_sec": 10,
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}
}
]
}
], - "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieves a list of Security Apps.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/scopes', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "account_type": "E",
- "bot_tier": "B",
- "customer_id": "12345678-1234-1234-1234-1234567890ab",
- "id": "aZC7ehsy",
- "last_modified_by": "jsmith@example.com via Edgio AppOps Console",
- "last_modified_date": "2023-09-29T19:47:25.334678Z",
- "name": "New Name",
- "scopes": [
- {
- "acl_audit_id": "6ZLms6Dh",
- "acl_prod_action": {
- "enf_type": "BLOCK_REQUEST",
- "id": "4dXToEHF",
- "name": "acl action"
}, - "acl_prod_id": "xMKolMmb",
- "bot_manager_config_id": "Ei2Zd66e",
- "host": {
- "is_case_insensitive": true,
- "is_negated": false,
- "type": "EM",
- "values": [
- "cdn.example.com"
]
}, - "id": "94kExYyx",
- "limits": [
- {
- "action": {
- "duration_sec": 300,
- "enf_type": "CUSTOM_RESPONSE",
- "id": "moHGmang",
- "name": "limit action",
- "response_body_base64": "Ym9keWJvZHlib2R5",
- "status": 404
}, - "id": "F60gu16u"
}
], - "name": "Security App for cdn.example.com",
- "path": {
- "is_negated": false,
- "type": "GLOB",
- "value": "*"
}, - "profile_audit_action": null,
- "profile_audit_id": "YHtiNvh5",
- "profile_prod_action": {
- "enf_type": "BLOCK_REQUEST",
- "id": "uohNJAQ6",
- "name": "profile action"
}, - "profile_prod_id": "YHtiNvh5"
}, - {
- "acl_audit_action": null,
- "acl_audit_id": "VzhYZAMT",
- "acl_prod_action": {
- "enf_type": "BLOCK_REQUEST",
- "id": "PHHBIEig",
- "name": "acl action"
}, - "acl_prod_id": "xMKolMmb",
- "bot_manager_config_id": "Ei2Zd66e",
- "host": {
- "is_negated": false,
- "type": "GLOB",
- "value": "*"
}, - "id": "Zcvn7YUS",
- "limits": [
- {
- "action": {
- "duration_sec": 300,
- "enf_type": "REDIRECT_302",
- "id": "1mJ8Sp9v",
- "name": "limit action",
}, - "id": "F60gu16u"
}
], - "name": "Security App for Resources",
- "path": {
- "is_negated": false,
- "type": "GLOB",
- "value": "/resources/*"
}, - "profile_audit_action": null,
- "profile_audit_id": "YHtiNvh5",
- "profile_prod_action": {
- "enf_type": "BLOCK_REQUEST",
- "id": "8QZINnSu",
- "name": "profile action"
}, - "profile_prod_id": "IBXcaxuR",
- "recaptcha_action_name": null,
- "recaptcha_secret_key": null,
- "recaptcha_site_key": null,
- "rules_audit_action": null,
- "rules_audit_id": null,
- "rules_prod_action": null,
- "rules_prod_id": null
}
], - "team_config": true
}
Creates, updates, and deletes one or more Security App(s). Each Security App:
Identifies the set of traffic to which it applies by hostname, a URL path, or both.
Defines how threats will be detected through access rules, custom rules, managed rules, and rate rules.
If one or more condition group(s) have been defined within a rate rule, then traffic will only be rate limited when it also satisfies at least one of those condition groups.
Defines how threats will be handled through a production enforcement action, audit enforcement action, or both.
Key information:
This operation allows you to quickly create, update, or delete one or more Security App(s). These actions cannot be undone.
Create a Security App by adding a scope
object to the request.
Update a Security App by modifying the corresponding scope
object in the request. The id
property identifies the Security App that will be updated.
Delete a Security App by excluding the corresponding scope
object from the request.
All Security Apps that are not explicitly defined within the request will be deleted.
The recommended method for updating your Security Apps is to perform the following steps:
If you have not created at least one Security App, then you should do so either through the Edgio Console or through the Initialize Security Apps operation.
Retrieve your current set of Security Apps through the Get All Security Apps operation.
Add, modify, or remove Security App(s) from the response as needed.
Pass the updated payload to this operation.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
version | string Reserved for future use |
id | string The Security App's system-defined ID. |
name | string The Security App's name. |
customer_id | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
last_modified_date | string The date and time at which a Security App returned by the |
last_modified_by | string The Edgio Console user that last modified this Security App configuration. This field does not reflect updates performed through the REST API. |
Array of objects (Scope) Contains a list of Security Apps. | |
team_config required | boolean This property must always be |
{- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "scopes": [
- {
- "id": "string",
- "name": "string",
- "recaptcha_action_name": "string",
- "recaptcha_secret_key": "string",
- "recaptcha_site_key": "string",
- "host": {
- "value": "string",
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true,
- "type": "GLOB"
}, - "path": {
- "value": "string",
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true,
- "type": "GLOB"
}, - "acl_audit_id": "string",
- "acl_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "acl_prod_id": "string",
- "acl_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "rules_audit_id": "string",
- "rules_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "rules_prod_id": "string",
- "rules_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "profile_audit_id": "string",
- "profile_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "profile_prod_id": "string",
- "profile_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "bot_manager_config_id": "string",
- "api_gw_audit_id": "string",
- "api_gw_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "api_gw_prod_id": "string",
- "api_gw_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "limits": [
- {
- "id": "string",
- "action": {
- "id": "string",
- "name": "string",
- "duration_sec": 10,
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}
}
]
}
], - "team_config": true
}
{- "id": "VzhYZAMT",
- "status": "success",
- "success": true
}
Retrieve version history for your Security App configuration(s).
Security App configurations are versioned as a single entity. This means that applying a change to one or more Security App configuration(s) causes Edgio to save and version all Security App configurations. This allows you to retrieve the state of your Security App configurations at a specific point-in-time.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
scope_id required | string The system-defined ID for a collection of Security App configurations. Use the Get All Security Apps operation to retrieve the system-defined ID for this collection. This ID is reported by the |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/scopes/{scope_id}/versions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "items": [
- {
- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string"
}
]
}
Retrieve the set of Security App configurations associated with a specific version.
Security App configurations are versioned as a single entity. This means that applying a change to one or more Security App configuration(s) causes Edgio to save and version all Security App configurations. This allows you to retrieve the state of your Security App configurations at a specific point-in-time.
organization_id required | string Your organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, select your organization from the top menu and then click Settings. It is listed under Organization ID. |
scope_id required | string The system-defined ID for a collection of Security App configurations. Use the Get All Security Apps operation to retrieve the system-defined ID for this collection. This ID is reported by the |
version_id required | string A resource's version number (e.g., Retrieve the resource's version history to find out the available versions. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/waf/v0.9/{organization_id}/scopes/{scope_id}/versions/{version_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "string",
- "@type": "string",
- "version": 0,
- "config_id": "string",
- "draft": true,
- "modified_date": "string",
- "modified_by": "string",
- "config_name": "string",
- "config_payload": {
- "version": "string",
- "id": "string",
- "name": "string",
- "customer_id": "string",
- "last_modified_date": "string",
- "last_modified_by": "string",
- "scopes": [
- {
- "id": "string",
- "name": "string",
- "recaptcha_action_name": "string",
- "recaptcha_secret_key": "string",
- "recaptcha_site_key": "string",
- "host": {
- "value": "string",
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true,
- "type": "GLOB"
}, - "path": {
- "value": "string",
- "values": [
- "string"
], - "is_negated": true,
- "is_case_insensitive": true,
- "type": "GLOB"
}, - "acl_audit_id": "string",
- "acl_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "acl_prod_id": "string",
- "acl_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "rules_audit_id": "string",
- "rules_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "rules_prod_id": "string",
- "rules_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "profile_audit_id": "string",
- "profile_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "profile_prod_id": "string",
- "profile_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "bot_manager_config_id": "string",
- "api_gw_audit_id": "string",
- "api_gw_audit_action": {
- "id": "string",
- "name": "string",
- "enf_type": "ALERT"
}, - "api_gw_prod_id": "string",
- "api_gw_prod_action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}, - "limits": [
- {
- "id": "string",
- "action": {
- "id": "string",
- "name": "string",
- "duration_sec": 10,
- "url": "string",
- "status": 0,
- "response_body_base64": "string",
- "enf_type": "REDIRECT_302",
- "response_headers": [
- {
- "property1": "string",
- "property2": "string"
}
]
}
}
]
}
], - "team_config": true
}
}
Deletes an organization.
organization_id required | string The organization's system-defined ID. From the Edgio Console, navigate to the desired organization and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/accounts/v0.1/organizations/{organization_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "invalid_input",
- "title": "Bad request",
- "description": [
- "Request has one or more errors and cannot be processed"
], - "status_code": 400,
- "details": [
- {
- "@type": "ErrorDetail",
- "description": "string",
- "@links": { },
- "source": "string"
}
]
}
Updates an organization.
organization_id required | string The organization's system-defined ID. From the Edgio Console, navigate to the desired organization and then click Settings. It is listed under Organization ID. |
name | string The organization's name. |
{- "name": "string"
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "partner_id": "string",
- "name": "string",
- "pci_compliance": "pci",
- "pci_dns_domain_name": "string",
- "non_pci_dns_domain_name": "string",
- "tier": "free",
- "domain_count": 0,
- "assets_under_management_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves information about an organization.
organization_id required | string The organization's system-defined ID. From the Edgio Console, navigate to the desired organization and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/organizations/{organization_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "partner_id": "string",
- "name": "string",
- "pci_compliance": "pci",
- "pci_dns_domain_name": "string",
- "non_pci_dns_domain_name": "string",
- "tier": "free",
- "domain_count": 0,
- "assets_under_management_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Automate an organization's membership including the role assigned to each member.
Deletes a member.
member_id required | string The organization member's system-defined ID. Retrieve a list of an organization's members and their system-defined IDs through the Get All Members operation. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/accounts/v0.1/members/{member_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "invalid_input",
- "title": "Bad request",
- "description": [
- "Request has one or more errors and cannot be processed"
], - "status_code": 400,
- "details": [
- {
- "@type": "ErrorDetail",
- "description": "string",
- "@links": { },
- "source": "string"
}
]
}
Updates a member.
member_id required | string The organization member's system-defined ID. Retrieve a list of an organization's members and their system-defined IDs through the Get All Members operation. |
role | string Enum: "none" "viewer" "purger" "security_auditor" "security_manager" "editor" "maintainer" "admin" |
Array of objects Override the role assigned to the member at the organization level for a specific property. | |
Array of objects Override the role assigned to the member at the organization or property level for a specific environment. |
{- "role": "none",
- "property_roles": [
- {
- "role": "viewer",
- "property_id": "string"
}
], - "environment_roles": [
- {
- "role": "viewer",
- "environment_id": "string"
}
]
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_email": "string",
- "environment_roles": [
- {
- "environment_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "property_roles": [
- {
- "property_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Retrieves information about a member.
member_id required | string The organization member's system-defined ID. Retrieve a list of an organization's members and their system-defined IDs through the Get All Members operation. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/members/{member_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_email": "string",
- "environment_roles": [
- {
- "environment_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "property_roles": [
- {
- "property_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a member.
user_email required | string The member's email address. |
organization_id required | string The organization's system-defined ID. From the Edgio Console, navigate to the desired organization and then click Settings. It is listed under Organization ID. |
role | string Enum: "none" "viewer" "purger" "security_auditor" "security_manager" "editor" "maintainer" "admin" |
Array of objects Override the role assigned to the member at the organization level for a specific property. | |
Array of objects Override the role assigned to the member at the organization or property level for a specific environment. |
{- "user_email": "string",
- "organization_id": "string",
- "role": "none",
- "property_roles": [
- {
- "role": "viewer",
- "property_id": "string"
}
], - "environment_roles": [
- {
- "role": "viewer",
- "environment_id": "string"
}
]
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_email": "string",
- "environment_roles": [
- {
- "environment_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "property_roles": [
- {
- "property_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Returns all members.
page | integer <int32> Default: 0 0-based page number. |
page_size | integer <int32> Default: 20 Number of results per page. Valid values are: 1 - 100. Default value: 20 |
organization_id required | string |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/members', qs: { page: 'SOME_INTEGER_VALUE', page_size: 'SOME_INTEGER_VALUE', organization_id: 'SOME_STRING_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": {
- "first": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "next": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "previous": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "last": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}
}, - "total_items": 0,
- "items": [
- {
- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_email": "string",
- "environment_roles": [
- {
- "environment_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "property_roles": [
- {
- "property_id": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
Delete a property.
property_id required | string The property's system-defined ID. Retrieve a list of properties and their system-defined IDs through the Get All Properties operation. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/accounts/v0.1/properties/{property_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "invalid_input",
- "title": "Bad request",
- "description": [
- "Request has one or more errors and cannot be processed"
], - "status_code": 400,
- "details": [
- {
- "@type": "ErrorDetail",
- "description": "string",
- "@links": { },
- "source": "string"
}
]
}
Update a property.
property_id required | string The property's system-defined ID. Retrieve a list of properties and their system-defined IDs through the Get All Properties operation. |
slug | string The property's name. Space characters are converted to dashes. |
{- "slug": "string"
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "organization_id": "string",
- "slug": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieve a property.
property_id required | string The property's system-defined ID. Retrieve a list of properties and their system-defined IDs through the Get All Properties operation. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/properties/{property_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "organization_id": "string",
- "slug": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Create a property.
slug required | string The property's name. Space characters are converted to dashes. |
organization_id required | string The system-defined ID for the organization under which this property will be created. |
{- "slug": "string",
- "organization_id": "string"
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "organization_id": "string",
- "slug": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns all properties.
page | integer <int32> Default: 0 0-based page number. |
page_size | integer <int32> Default: 20 Number of results per page. Valid values are: 1 - 100. Default value: 20 |
organization_id required | string An organization's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired organization and then click Settings. It is listed under Organization ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/properties', qs: { page: 'SOME_INTEGER_VALUE', page_size: 'SOME_INTEGER_VALUE', organization_id: 'SOME_STRING_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": {
- "first": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "next": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "previous": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "last": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}
}, - "total_items": 0,
- "items": [
- {
- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "organization_id": "string",
- "slug": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Automate environment management.
You may also manage environment variables through our REST API.
Deletes an environment.
environment_id required | string The environment's system-defined ID. Retrieve a list of environments and their system-defined IDs through the Get All Environments operation. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/accounts/v0.1/environments/{environment_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "invalid_input",
- "title": "Bad request",
- "description": [
- "Request has one or more errors and cannot be processed"
], - "status_code": 400,
- "details": [
- {
- "@type": "ErrorDetail",
- "description": "string",
- "@links": { },
- "source": "string"
}
]
}
Updates an environment.
environment_id required | string The environment's system-defined ID. Retrieve a list of environments and their system-defined IDs through the Get All Environments operation. |
name | string The environment's name. This name may only consist of lowercase characters, numbers, dashes, and underscores. |
can_members_deploy | boolean Determines whether all organization memmbers may deploy to this environment. Disabling this option restricts deployments to admin users and the deploy token. |
http_request_logging | boolean Determines whether deep-request inspection for serverless logs will be enabled. |
preserve_cache | boolean Determines whether deploying a new build to this environment will use the same cache as the previous deployment. |
{- "name": "string",
- "can_members_deploy": true,
- "http_request_logging": true,
- "preserve_cache": true
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "property_id": "string",
- "legacy_account_number": "string",
- "name": "string",
- "can_members_deploy": true,
- "only_maintainers_can_deploy": true,
- "http_request_logging": true,
- "default_domain_name": "string",
- "pci_compliance": true,
- "dns_domain_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves an environment's settings and metadata.
environment_id required | string The environment's system-defined ID. Retrieve a list of environments and their system-defined IDs through the Get All Environments operation. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/environments/{environment_id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "property_id": "string",
- "legacy_account_number": "string",
- "name": "string",
- "can_members_deploy": true,
- "only_maintainers_can_deploy": true,
- "http_request_logging": true,
- "default_domain_name": "string",
- "pci_compliance": true,
- "dns_domain_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Creates an environment.
property_id required | string The property's system-defined ID. |
name required | string The environment's name. This name may only consist of lowercase characters, numbers, dashes, and underscores. |
can_members_deploy | boolean Deprecated by the |
only_maintainers_can_deploy | boolean Determines whether Editors will be restricted to read-only access. Enabling this option restricts configuration and deployments to deploy tokens, Maintainers, and Admins. |
http_request_logging | boolean Determines whether deep-request inspection for serverless logs will be enabled. |
{- "property_id": "string",
- "name": "string",
- "can_members_deploy": true,
- "only_maintainers_can_deploy": true,
- "http_request_logging": true
}
{- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "property_id": "string",
- "legacy_account_number": "string",
- "name": "string",
- "can_members_deploy": true,
- "only_maintainers_can_deploy": true,
- "http_request_logging": true,
- "default_domain_name": "string",
- "pci_compliance": true,
- "dns_domain_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns all environments that belong to the specified property.
page | integer <int32> Default: 0 0-based page number. |
page_size | integer <int32> Default: 20 Number of results per page. Valid values are: 1 - 100. Default value: 20 |
property_id required | string The property's system-defined ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/accounts/v0.1/environments', qs: { page: 'SOME_INTEGER_VALUE', page_size: 'SOME_INTEGER_VALUE', property_id: 'SOME_STRING_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "string",
- "@id": "string",
- "@links": {
- "first": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "next": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "previous": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}, - "last": {
- "href": "string",
- "description": "string",
- "base_path": "string"
}
}, - "total_items": 0,
- "items": [
- {
- "@type": "string",
- "@id": "string",
- "@links": { },
- "id": "string",
- "property_id": "string",
- "legacy_account_number": "string",
- "name": "string",
- "can_members_deploy": true,
- "only_maintainers_can_deploy": true,
- "http_request_logging": true,
- "default_domain_name": "string",
- "pci_compliance": true,
- "dns_domain_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Generate report data through which you can analyze traffic trends, such as traffic volume, cache hit ratios, response times, geographical distribution of users, and origin server performance.
Key concepts:
Dataset: A dataset is a structured collection of data that represents a set of events. Each dataset consists of metrics and dimensions.
Dimension: A dimension describes an attribute of a request and is typically used to correlate the desired set of requests with metrics.
For example, the country_code
dimension identifies the country from which a request originated.
Metric: A metric measures the rate, an amount, or the total number of times that a particular attribute occurred over a given record.
For example, the requests_edge_total
metric reports the total number of requests submitted to our network.
Returns all available datasets. A dataset is a structured collection of data that represents a set of events. Each dataset consists of metrics and dimensions.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/metrics/v1/datasets', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/datasets",
- "@type": "Collection",
- "items": [
- {
- "@id": "/datasets/edge_usage_by_country",
- "@type": "MetricsDataset",
- "name": "edge_usage_by_country",
- "description": "Environment-specific aggregated edge usage metrics that can be broken down by time, country, or both.",
- "created_at": "2024-04-15T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "STRING",
- "description": "The user's country code. It consists of two lowercase letters, or a single hyphen '-' if the country is unknown."
}
], - "metrics": [
- {
- "name": "requests_edge_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge."
}, - {
- "name": "requests_per_second_edge",
- "type": "NUMBER",
- "description": "Number of requests per second to the edge."
}, - {
- "name": "requests_hit_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge that were served from the cache."
}, - {
- "name": "requests_cache_hit_ratio",
- "type": "NUMBER",
- "description": "Ratio of requests served from the cache, including both hits and stale responses, to total number of requests made to the edge."
}, - {
- "name": "requests_miss_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge that resulted in cache misses."
}, - {
- "name": "requests_stale_total",
- "type": "NUMBER",
- "description": "Total number of edge requests that resulted in the serving of stale content."
}, - {
- "name": "requests_prefetch_total",
- "type": "NUMBER",
- "description": "Total number of requests initiated by prefetch functionality."
}, - {
- "name": "requests_prefetch_cache_hit_ratio",
- "type": "NUMBER",
- "description": "Ratio of requests served from the cache as a result of prefetching, including both hits and stale responses, to the total number of prefetch requests."
}, - {
- "name": "requests_cachable_total",
- "type": "NUMBER",
- "description": "Total number of cacheble requests."
}, - {
- "name": "requests_2xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 2xx status code (200 - 299)."
}, - {
- "name": "requests_3xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 3xx status code (300 - 399)."
}, - {
- "name": "requests_4xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 4xx status code (400 - 499)."
}, - {
- "name": "requests_5xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 5xx status code (500 - 599)."
}, - {
- "name": "requests_error_ratio",
- "type": "NUMBER",
- "description": "Ratio of requests resulting in server errors (5xx status codes) to the total number of requests made to the edge."
}, - {
- "name": "bytes_edge_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from the edge."
}, - {
- "name": "bytes_hit_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from egde cache.",
- "created_at": "2024-05-14T00:00:00Z"
}, - {
- "name": "bytes_miss_total",
- "type": "NUMBER",
- "description": "Total number of bytes that were not found in edge cache.",
- "created_at": "2024-05-14T00:00:00Z"
}, - {
- "name": "bytes_stale_total",
- "type": "NUMBER",
- "description": "Total number of bytes served by edge as stale content.",
- "created_at": "2024-05-14T00:00:00Z"
}, - {
- "name": "bits_per_second_edge",
- "type": "NUMBER",
- "description": "Edge bandwith usage measured in bits per second (bps)."
}, - {
- "name": "ttfb_edge_ms_5_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 5th percentile."
}, - {
- "name": "ttfb_edge_ms_25_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 25th percentile."
}, - {
- "name": "ttfb_edge_ms_50_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 50th percentile."
}, - {
- "name": "ttfb_edge_ms_75_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 75th percentile."
}, - {
- "name": "ttfb_edge_ms_95_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 95th percentile."
}, - {
- "name": "ttfb_edge_ms_99_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 99th percentile."
}, - {
- "name": "response_time_edge_ms_5_percentile",
- "type": "NUMBER",
- "description": "Edge response time, in milliseconds, at the 5th percentile."
}, - {
- "name": "response_time_edge_ms_25_percentile",
- "type": "NUMBER",
- "description": "Edge response time, in milliseconds, at the 25th percentile."
}, - {
- "name": "response_time_edge_ms_50_percentile",
- "type": "NUMBER",
- "description": "Edge response time, in milliseconds, at the 50th percentile."
}, - {
- "name": "response_time_edge_ms_75_percentile",
- "type": "NUMBER",
- "description": "Edge response, in milliseconds, at the 75th percentile."
}, - {
- "name": "response_time_edge_ms_95_percentile",
- "type": "NUMBER",
- "description": "Edge response, in milliseconds, at the 95th percentile."
}, - {
- "name": "response_time_edge_ms_99_percentile",
- "type": "NUMBER",
- "description": "Edge response, in milliseconds, at the 99th percentile."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "array",
- "required": false,
- "description": "Filters data by a two-letter country code or `-` for when the country of origin is unknown."
}
]
}, - {
- "@id": "/datasets/edge_errors",
- "@type": "MetricsDataset",
- "name": "edge_errors",
- "description": "Environment-specific aggregated usage metrics for 5xx responses.",
- "created_at": "2024-04-15T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "STRING",
- "description": "The request's country code which consists of two lowercase letters. Returns `-` when the country cannot be identified."
}, - {
- "name": "http_status_code",
- "type": "NUMBER",
- "description": "The response's 5xx status code (500 - 599)."
}
], - "metrics": [
- {
- "name": "requests_edge_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "array",
- "required": false,
- "description": "Filters data by a two-letter country code or `-` for when the country of origin is unknown."
}, - {
- "name": "http_status_code",
- "type": "array",
- "required": false,
- "description": "Filters data by HTTP status code."
}
]
}, - {
- "@id": "/datasets/origin_usage_by_country",
- "@type": "MetricsDataset",
- "name": "origin_usage_by_country",
- "description": "Environment-specific aggregated origin usage metrics that can be broken down by time, country, origin, or any combination of these dimensions.",
- "created_at": "2024-04-15T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "STRING",
- "description": "The request's country code which consists of two lowercase letters. Returns `-` when the country cannot be identified."
}, - {
- "name": "origin_name",
- "type": "STRING",
- "description": "The origin configuration's name."
}
], - "metrics": [
- {
- "name": "requests_origin_total",
- "type": "NUMBER",
- "description": "Total number of requests to an origin."
}, - {
- "name": "bytes_origin_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from an origin."
}, - {
- "name": "ttfb_origin_ms_5_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 5th percentile."
}, - {
- "name": "ttfb_origin_ms_25_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 25th percentile."
}, - {
- "name": "ttfb_origin_ms_50_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 50th percentile."
}, - {
- "name": "ttfb_origin_ms_75_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 75th percentile."
}, - {
- "name": "ttfb_origin_ms_95_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 95th percentile."
}, - {
- "name": "ttfb_origin_ms_99_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 99th percentile."
}, - {
- "name": "response_time_origin_ms_5_percentile",
- "type": "NUMBER",
- "description": "Origin response time, in milliseconds, at the 5th percentile."
}, - {
- "name": "response_time_origin_ms_25_percentile",
- "type": "NUMBER",
- "description": "Origin response time, in milliseconds, at the 25th percentile."
}, - {
- "name": "response_time_origin_ms_50_percentile",
- "type": "NUMBER",
- "description": "Origin response time, in milliseconds, at the 50th percentile."
}, - {
- "name": "response_time_origin_ms_75_percentile",
- "type": "NUMBER",
- "description": "Origin response, in milliseconds, at the 75th percentile."
}, - {
- "name": "response_time_origin_ms_95_percentile",
- "type": "NUMBER",
- "description": "Origin response, in milliseconds, at the 95th percentile."
}, - {
- "name": "response_time_origin_ms_99_percentile",
- "type": "NUMBER",
- "description": "Origin response, in milliseconds, at the 99th percentile."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "array",
- "required": false,
- "description": "Filters data by a two-letter country code or `-` for when the country of origin is unknown."
}, - {
- "name": "origin_name",
- "type": "array",
- "required": false,
- "description": "Filters data by origin configuration."
}
]
}, - {
- "@id": "/datasets/origin_usage",
- "@type": "MetricsDataset",
- "name": "origin_usage",
- "description": "Environment-specific aggregated origin usage metrics that can be broken down by time, origin, HTTP method, content type, or by any combination of these dimensions.",
- "created_at": "2024-05-02T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "origin_name",
- "type": "STRING",
- "description": "The origin configuration's name."
}, - {
- "name": "http_method",
- "type": "STRING",
- "description": "The request's HTTP method."
}, - {
- "name": "content_type",
- "type": "STRING",
- "description": "The `Content-Type` response header's value."
}
], - "metrics": [
- {
- "name": "requests_origin_total",
- "type": "NUMBER",
- "description": "Total number of requests to an origin."
}, - {
- "name": "bytes_origin_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from an origin."
}, - {
- "name": "ttfb_origin_ms_5_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 5th percentile."
}, - {
- "name": "ttfb_origin_ms_25_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 25th percentile."
}, - {
- "name": "ttfb_origin_ms_50_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 50th percentile."
}, - {
- "name": "ttfb_origin_ms_75_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 75th percentile."
}, - {
- "name": "ttfb_origin_ms_95_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 95th percentile."
}, - {
- "name": "ttfb_origin_ms_99_percentile",
- "type": "NUMBER",
- "description": "Origin TTFB, in milliseconds, at the 99th percentile."
}, - {
- "name": "response_time_origin_ms_5_percentile",
- "type": "NUMBER",
- "description": "Origin response time, in milliseconds, at the 5th percentile."
}, - {
- "name": "response_time_origin_ms_25_percentile",
- "type": "NUMBER",
- "description": "Origin response time, in milliseconds, at the 25th percentile."
}, - {
- "name": "response_time_origin_ms_50_percentile",
- "type": "NUMBER",
- "description": "Origin response time, in milliseconds, at the 50th percentile."
}, - {
- "name": "response_time_origin_ms_75_percentile",
- "type": "NUMBER",
- "description": "Origin response, in milliseconds, at the 75th percentile."
}, - {
- "name": "response_time_origin_ms_95_percentile",
- "type": "NUMBER",
- "description": "Origin response, in milliseconds, at the 95th percentile."
}, - {
- "name": "response_time_origin_ms_99_percentile",
- "type": "NUMBER",
- "description": "Origin response, in milliseconds, at the 99th percentile."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "origin_name",
- "type": "array",
- "required": false,
- "description": "Filters data by origin configuration."
}, - {
- "name": "http_method",
- "type": "array",
- "required": false,
- "description": "Filters data by HTTP method."
}, - {
- "name": "content_type",
- "type": "array",
- "required": false,
- "description": "Filters data by the response's content type (e.g., text/css or text/javascript)."
}
]
}, - {
- "@id": "/datasets/origin_errors",
- "@type": "MetricsDataset",
- "name": "origin_errors",
- "description": "Environment-specific aggregated usage metrics for 4xx responses.",
- "created_at": "2024-05-02T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "origin_name",
- "type": "STRING",
- "description": "The origin configuration's name."
}, - {
- "name": "http_method",
- "type": "STRING",
- "description": "The request's HTTP method."
}, - {
- "name": "content_type",
- "type": "STRING",
- "description": "The `Content-Type` response header's value."
}, - {
- "name": "http_status_code",
- "type": "NUMBER",
- "description": "A 4xx or 5xx status code (400 - 599)."
}
], - "metrics": [
- {
- "name": "requests_origin_total",
- "type": "NUMBER",
- "description": "Total number of requests to an origin."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "origin_name",
- "type": "array",
- "required": false,
- "description": "Filters data by origin configuration."
}, - {
- "name": "http_method",
- "type": "array",
- "required": false,
- "description": "Filters data by HTTP method."
}, - {
- "name": "content_type",
- "type": "array",
- "required": false,
- "description": "Filters data by the response's content type (e.g., text/css or text/javascript)."
}, - {
- "name": "http_status_code",
- "type": "array",
- "required": false,
- "description": "Filters data by HTTP status code."
}
]
}, - {
- "@id": "/datasets/origin_offload",
- "@type": "MetricsDataset",
- "name": "origin_offload",
- "description": "Environment-specific aggregated usage metrics that can be broken down by time, HTTP method, content type, or any combination of these dimensions.",
- "created_at": "2024-05-02T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "http_method",
- "type": "STRING",
- "description": "The request's HTTP method."
}, - {
- "name": "content_type",
- "type": "STRING",
- "description": "The `Content-Type` response header's value."
}
], - "metrics": [
- {
- "name": "requests_edge_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge."
}, - {
- "name": "requests_origin_total",
- "type": "NUMBER",
- "description": "Total number of requests to an origin."
}, - {
- "name": "bytes_edge_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from the edge."
}, - {
- "name": "bytes_origin_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from an origin."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "http_method",
- "type": "array",
- "required": false,
- "description": "Filters data by HTTP method."
}, - {
- "name": "content_type",
- "type": "array",
- "required": false,
- "description": "Filters data by the response's content type (e.g., text/css or text/javascript)."
}
]
}
]
}
Returns a dataset. Specify the desired dataset by its name.
name required | string The dataset's name. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/metrics/v1/datasets/{name}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/datasets/edge_usage_by_country",
- "@type": "MetricsDataset",
- "name": "edge_usage_by_country",
- "description": "Environment-specific aggregated edge usage metrics that can be broken down by time, country, or both.",
- "created_at": "2024-04-15T00:00:00Z",
- "time_granularities": [
- "FIVE_MINUTES",
- "HOUR",
- "DAY"
], - "data_retention_policy": {
- "five_minutes": 2764800,
- "hour": 8208000,
- "day": 69120000
}, - "dimensions": [
- {
- "name": "time",
- "type": "DATE",
- "description": "The date and time (UTC) at which the request was received."
}, - {
- "name": "environment_id",
- "type": "STRING",
- "description": "An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "STRING",
- "description": "The request's country code which consists of two lowercase letters. Returns `-` when the country cannot be identified."
}
], - "metrics": [
- {
- "name": "requests_edge_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge of our network."
}, - {
- "name": "requests_per_second_edge",
- "type": "NUMBER",
- "description": "Number of requests per second to the edge of our network."
}, - {
- "name": "requests_hit_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge that were served from the cache."
}, - {
- "name": "requests_cache_hit_ratio",
- "type": "NUMBER",
- "description": "Ratio of requests served from the cache, including both hits and stale responses, to total number of requests made to the edge."
}, - {
- "name": "requests_miss_total",
- "type": "NUMBER",
- "description": "Total number of requests to the edge that resulted in cache misses."
}, - {
- "name": "requests_stale_total",
- "type": "NUMBER",
- "description": "Total number of requests that resulted in stale content being served to the client. "
}, - {
- "name": "requests_prefetch_total",
- "type": "NUMBER",
- "description": "Total number of requests initiated by prefetch functionality."
}, - {
- "name": "requests_prefetch_cache_hit_ratio",
- "type": "NUMBER",
- "description": "Ratio of requests served from the cache as a result of prefetching, including both hits and stale responses, to the total number of prefetch requests."
}, - {
- "name": "requests_cachable_total",
- "type": "NUMBER",
- "description": "Total number of cacheble requests."
}, - {
- "name": "requests_2xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 2xx status code (200 - 299)."
}, - {
- "name": "requests_3xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 3xx status code (300 - 399)."
}, - {
- "name": "requests_4xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 4xx status code (400 - 499)."
}, - {
- "name": "requests_5xx_total",
- "type": "NUMBER",
- "description": "Total number of edge requests with a 5xx status code (500 - 599)."
}, - {
- "name": "requests_error_ratio",
- "type": "NUMBER",
- "description": "Ratio of requests resulting in server errors (5xx status codes) to the total number of requests made to the edge."
}, - {
- "name": "bytes_edge_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from the edge."
}, - {
- "name": "bytes_hit_total",
- "type": "NUMBER",
- "description": "Total number of bytes sent from egde cache.",
- "created_at": "2024-05-14T00:00:00Z"
}, - {
- "name": "bytes_miss_total",
- "type": "NUMBER",
- "description": "Total number of bytes that were not found in edge cache.",
- "created_at": "2024-05-14T00:00:00Z"
}, - {
- "name": "bytes_stale_total",
- "type": "NUMBER",
- "description": "Total number of bytes served by edge as stale content.",
- "created_at": "2024-05-14T00:00:00Z"
}, - {
- "name": "bits_per_second_edge",
- "type": "NUMBER",
- "description": "Edge bandwith usage measured in bits per second (bps)."
}, - {
- "name": "ttfb_edge_ms_5_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 5th percentile."
}, - {
- "name": "ttfb_edge_ms_25_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 25th percentile."
}, - {
- "name": "ttfb_edge_ms_50_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 50th percentile."
}, - {
- "name": "ttfb_edge_ms_75_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 75th percentile."
}, - {
- "name": "ttfb_edge_ms_95_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 95th percentile."
}, - {
- "name": "ttfb_edge_ms_99_percentile",
- "type": "NUMBER",
- "description": "Edge TTFB, in milliseconds, at the 99th percentile."
}, - {
- "name": "response_time_edge_ms_5_percentile",
- "type": "NUMBER",
- "description": "Edge response time, in milliseconds, at the 5th percentile."
}, - {
- "name": "response_time_edge_ms_25_percentile",
- "type": "NUMBER",
- "description": "Edge response time, in milliseconds, at the 25th percentile."
}, - {
- "name": "response_time_edge_ms_50_percentile",
- "type": "NUMBER",
- "description": "Edge response time, in milliseconds, at the 50th percentile."
}, - {
- "name": "response_time_edge_ms_75_percentile",
- "type": "NUMBER",
- "description": "Edge response, in milliseconds, at the 75th percentile."
}, - {
- "name": "response_time_edge_ms_95_percentile",
- "type": "NUMBER",
- "description": "Edge response, in milliseconds, at the 95th percentile."
}, - {
- "name": "response_time_edge_ms_99_percentile",
- "type": "NUMBER",
- "description": "Edge response, in milliseconds, at the 99th percentile."
}
], - "filters": [
- {
- "name": "environment_id",
- "type": "array",
- "required": true,
- "description": "Filters data by an environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab)."
}, - {
- "name": "country_code",
- "type": "array",
- "required": false,
- "description": "Sets the filtering by user's country code. Supported values: two lowercase letters or '-'."
}
]
}
Generates report data for a specific dataset.
Specify the desired dataset by its name.
Retrieve a list of datasets through the Get Available Datasets endpoint or view a static list.
name required | string The dataset's name. |
required | object The query's time period. |
dimensions | Array of strings The dimensions that will be returned. |
metrics required | Array of strings non-empty The metrics that will be returned. You must specify at least one metric. |
required | object Contains the query's filters. Each filter is a key-value pair where the key is the type of filter. |
time_granularity | string Enum: "FIVE_MINUTES" "HOUR" "DAY" The behavior of this property varies according to whether the response includes the
The query's time period determines the set of supported granularities.
By default, the response uses the broadest available time granularity. |
{- "dimensions": [
- "time"
], - "metrics": [
- "requests_cache_hit_ratio"
], - "filters": {
- "environment_id": [
- "777af1f3-aa60-1234-b777-56772909e833"
]
}, - "date_range": {
- "start": "2024-04-10T00:00:00Z",
- "end": "2024-04-15T00:00:00Z"
}, - "time_granularity": "DAY"
}
{- "@id": "/datasets/edge_usage_by_country/data",
- "@type": "MetricsDataResponse",
- "data_fields": [
- {
- "name": "time",
- "description": "The date and time (UTC) at which the request was received.",
- "data_type": "DATE"
}, - {
- "name": "requests_cache_hit_ratio",
- "description": "Ratio of cache hit requests to total edge requests.",
- "data_type": "NUMBER"
}
], - "data_rows": [
- [
- "2024-04-14T00:00:00Z",
- 0.95
], - [
- "2024-04-12T00:00:00Z",
- 0.98
]
], - "request": {
- "dimensions": [
- "time"
], - "metrics": [
- "requests_cache_hit_ratio"
], - "filters": {
- "environment_id": [
- "777af1f3-aa60-1234-b777-56772909e833"
]
}, - "time_granularity": "DAY",
- "date_range": {
- "start": "2024-04-10T00:00:00Z",
- "end": "2024-04-15T00:00:00Z"
}
}
}
Receive email notifications when the condition(s) defined for a specific environment are met.
Creates a real-time alert.
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
name required | string The real-time alert's name. The subject line for each email notification identifies the real-time alert that was triggered or resolved by name. |
condition_duration | string (Condition Duration) Enum: "1m" "5m" "15m" "30m" "1h" The length of time that one or more condition(s) associated with this real-time alert must be satisfied before a notification may be sent. |
required | Array of objects (Alert Condition) non-empty Criteria that defines when an alert should be triggered. |
required | object (Alert Notification) Defines how a notification for a real-time alert is delivered. |
{- "name": "request body for Alert",
- "environment_id": "25e98143-1fb8-4852-a957-99ea929984cb",
- "condition_duration": "1m",
- "conditions": [
- {
- "metric": {
- "type": "status_code_per_sec",
- "status_code": "5xx"
}, - "operator": ">",
- "threshold": 10
}
], - "notification": {
- "email": {
- "to": [
- "info@example.com",
- "address2@example.com"
]
}
}
}
{- "@type": "Alert",
- "@id": "/rts/v1/alerts/ba7d2900-809f-453d-bdfd-c720fa370456",
- "id": "ba7d2900-809f-453d-bdfd-c720fa370123",
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "name": "Account has more than 100 5xx events for last 5m",
- "condition_duration": "5m",
- "conditions": [
- {
- "metric": {
- "status_code": "5xx",
- "type": "status_code_per_sec"
}, - "operator": ">",
- "threshold": 100
}
], - "notification": {
- "email": {
- "to": [
- "info@example.com",
- "address2@example.com"
]
}
}
}
Returns all real-time alerts associated with an environment.
limit | integer <int32> >= 1 Default: 10 Example: limit=20 Specifies the maximum number of items to retrieve. Useful for pagination. |
offset | integer <int32> >= 0 Default: 0 Example: offset=10 Indicates the starting position from where items should be retrieved. Useful in combination with 'limit' for pagination. |
environment_id | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/real-time-stats/v1/alerts', qs: {limit: '20', offset: '10', environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "../dictionary",
- "@type": "Collection",
- "@links": {
}, - "total_items": 0,
- "items": [
- {
- "@id": "../dictionary",
- "@type": "string",
- "@links": {
}, - "environment_id": "40ef0e48-a11f-4963-a229-e396c9f7e7c4",
- "name": "string",
- "condition_duration": "1m",
- "conditions": [
- {
- "metric": {
- "type": "string",
- "status_code": "string"
}, - "operator": ">",
- "threshold": 0
}
], - "notification": {
- "email": {
- "to": [
- "user@example.com"
]
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
Retrieves a real-time alert by its system-defined ID.
id required | string <uuid> The real-time alert's unique identifier (UUID). Use the Get All Real-Time Alerts operation to retrieve a list of real-time alerts and their system-defined IDs. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/real-time-stats/v1/alerts/{id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Alert",
- "@id": "/rts/v1/alerts/ba7d2900-809f-453d-bdfd-c720fa370456",
- "id": "ba7d2900-809f-453d-bdfd-c720fa370123",
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "name": "Account has more than 100 5xx events for last 5m",
- "condition_duration": "5m",
- "conditions": [
- {
- "metric": {
- "status_code": "5xx",
- "type": "status_code_per_sec"
}, - "operator": ">",
- "threshold": 100
}
], - "notification": {
- "email": {
- "to": [
- "info@example.com",
- "address2@example.com"
]
}
}
}
Updates a real-time alert. Identify the desired alert by its system-defined ID.
id required | string <uuid> The real-time alert's unique identifier (UUID). Use the Get All Real-Time Alerts operation to retrieve a list of real-time alerts and their system-defined IDs. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
name required | string The real-time alert's name. The subject line for each email notification identifies the real-time alert that was triggered or resolved by name. |
condition_duration | string (Condition Duration) Enum: "1m" "5m" "15m" "30m" "1h" The length of time that one or more condition(s) associated with this real-time alert must be satisfied before a notification may be sent. |
required | Array of objects (Alert Condition) non-empty Criteria that defines when an alert should be triggered. |
required | object (Alert Notification) Defines how a notification for a real-time alert is delivered. |
{- "name": "request body for Alert",
- "environment_id": "25e98143-1fb8-4852-a957-99ea929984cb",
- "condition_duration": "1m",
- "conditions": [
- {
- "metric": {
- "type": "status_code_per_sec",
- "status_code": "5xx"
}, - "operator": ">",
- "threshold": 10
}
], - "notification": {
- "email": {
- "to": [
- "info@example.com",
- "address2@example.com"
]
}
}
}
{- "@type": "Alert",
- "@id": "/rts/v1/alerts/ba7d2900-809f-453d-bdfd-c720fa370456",
- "id": "ba7d2900-809f-453d-bdfd-c720fa370123",
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "name": "Account has more than 100 5xx events for last 5m",
- "condition_duration": "5m",
- "conditions": [
- {
- "metric": {
- "status_code": "5xx",
- "type": "status_code_per_sec"
}, - "operator": ">",
- "threshold": 100
}
], - "notification": {
- "email": {
- "to": [
- "info@example.com",
- "address2@example.com"
]
}
}
}
Permanently deletes a real-time alert. Identify the desired alert by its system-defined ID.
id required | string <uuid> The real-time alert's unique identifier (UUID). Use the Get All Real-Time Alerts operation to retrieve a list of real-time alerts and their system-defined IDs. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/real-time-stats/v1/alerts/{id}', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "unauthorized",
- "status_code": 401,
- "title": "Auth not valid",
- "description": "Could not validate access",
- "details": [
- {
- "@type": "ErrorDetail",
- "source": "/name",
- "description": "Error in Auth"
}
]
}
Automate Real-Time Log Delivery (RTLD) Access Logs profile management. A RTLD Access Logs profile defines the condition(s) under which log data for requests submitted to our network will be delivered to the desired destination (e.g., your web server or AWS S3).
Creates a RTLD Access Logs profile.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
custom_cookies | Array of strings [ 1 .. 250 ] items unique ^((?=.*[^\u0021-\u007E])|(?=.*[\(\)\[\]\{\}\?... Defines each cookie that will be logged for each request. Each cookie defined within this property must also be defined within the Realtime Log Delivery page for the environment corresponding to this profile. Learn more. |
custom_request_headers | Array of strings [ 1 .. 250 ] items unique ^[a-zA-Z0-9-]+$ Defines each request header that will be logged for each request. Each request header defined within this property must also be defined within the Realtime Log Delivery page for the environment corresponding to this profile. Learn more. |
custom_response_headers | Array of strings [ 1 .. 250 ] items unique ^[a-zA-Z0-9-]+$ Defines each response header that will be logged for each request. Each response header defined within this property must also be defined within the Realtime Log Delivery page for the environment corresponding to this profile. Learn more. |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD Access Logs) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "user_agent",
- "rewritten_path",
- "path",
- "timestamp",
- "client_ip",
- "client_ip_version",
- "status_code",
- "status",
- "cache_status",
- "bytes_out",
- "write_time",
- "file_size",
- "server_ip",
- "server_port",
- "method",
- "host",
- "query",
- "auth_user",
- "read_time"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/accesslogs/profiles/10027",
- "@type": "AccessLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "user_agent",
- "rewritten_path",
- "path",
- "timestamp",
- "client_ip",
- "client_ip_version",
- "status_code",
- "status",
- "cache_status",
- "bytes_out",
- "write_time",
- "file_size",
- "server_ip",
- "server_port",
- "method",
- "host",
- "query",
- "auth_user",
- "read_time"
], - "filters": {
- "status_codes": [
- "2xx"
], - "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Returns all RTLD Access Logs profiles associated with an environment.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/accesslogs/profiles', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/accesslogs/profiles",
- "@type": "Collection",
- "items": [
- {
- "@id": "/rtld/v1/accesslogs/profiles/10027",
- "@type": "AccessLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "user_agent",
- "rewritten_path",
- "path",
- "timestamp",
- "client_ip",
- "client_ip_version",
- "status_code",
- "status",
- "cache_status",
- "bytes_out",
- "write_time",
- "file_size",
- "server_ip",
- "server_port",
- "method",
- "host",
- "query",
- "auth_user",
- "read_time"
], - "filters": {
- "status_codes": [
- "2xx"
], - "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
]
}
Retrieves a RTLD Access Logs profile by its system-defined ID.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/accesslogs/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/accesslogs/profiles/10027",
- "@type": "AccessLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "user_agent",
- "rewritten_path",
- "path",
- "timestamp",
- "client_ip",
- "client_ip_version",
- "status_code",
- "status",
- "cache_status",
- "bytes_out",
- "write_time",
- "file_size",
- "server_ip",
- "server_port",
- "method",
- "host",
- "query",
- "auth_user",
- "read_time"
], - "filters": {
- "status_codes": [
- "2xx"
], - "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Updates a RTLD Access Logs profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
custom_cookies | Array of strings [ 1 .. 250 ] items unique ^((?=.*[^\u0021-\u007E])|(?=.*[\(\)\[\]\{\}\?... Defines each cookie that will be logged for each request. Each cookie defined within this property must also be defined within the Realtime Log Delivery page for the environment corresponding to this profile. Learn more. |
custom_request_headers | Array of strings [ 1 .. 250 ] items unique ^[a-zA-Z0-9-]+$ Defines each request header that will be logged for each request. Each request header defined within this property must also be defined within the Realtime Log Delivery page for the environment corresponding to this profile. Learn more. |
custom_response_headers | Array of strings [ 1 .. 250 ] items unique ^[a-zA-Z0-9-]+$ Defines each response header that will be logged for each request. Each response header defined within this property must also be defined within the Realtime Log Delivery page for the environment corresponding to this profile. Learn more. |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD Access Logs) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "user_agent",
- "rewritten_path",
- "path",
- "timestamp",
- "client_ip",
- "client_ip_version",
- "status_code",
- "status",
- "cache_status",
- "bytes_out",
- "write_time",
- "file_size",
- "server_ip",
- "server_port",
- "method",
- "host",
- "query",
- "auth_user",
- "read_time"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/accesslogs/profiles/10027",
- "@type": "AccessLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "user_agent",
- "rewritten_path",
- "path",
- "timestamp",
- "client_ip",
- "client_ip_version",
- "status_code",
- "status",
- "cache_status",
- "bytes_out",
- "write_time",
- "file_size",
- "server_ip",
- "server_port",
- "method",
- "host",
- "query",
- "auth_user",
- "read_time"
], - "filters": {
- "status_codes": [
- "2xx"
], - "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Permanently deletes a RTLD Access Logs profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/rtld/v1/accesslogs/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "unauthorized",
- "status_code": 401,
- "title": "Auth not valid",
- "description": "Could not validate access",
- "details": [
- {
- "@type": "ErrorDetail",
- "source": "/name",
- "description": "Error in Auth"
}
]
}
Automate Real-Time Log Delivery (RTLD) Bot profile management. A RTLD Bot profile defines the condition(s) under which Bot Manager log data will be delivered to the desired destination (e.g., your web server or AWS S3).
Creates a RTLD Bot profile.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD Bot) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "account_number",
- "action_type",
- "bot_manager_id",
- "bot_manager_name",
- "bot_rule_config_id",
- "bot_rule_config_name",
- "bot_score",
- "captcha_error_msg",
- "captcha_score",
- "captcha_status",
- "challenge_status",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "matched_on",
- "matched_value",
- "method",
- "referer",
- "rtld_profile_name",
- "rule_id",
- "rule_msg",
- "sam_id",
- "sam_name",
- "timestamp",
- "token_validity",
- "url",
- "user_agent",
- "uuid"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/bot/profiles/10027",
- "@type": "BotLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "action_type",
- "bot_manager_id",
- "bot_manager_name",
- "bot_rule_config_id",
- "bot_rule_config_name",
- "bot_score",
- "captcha_error_msg",
- "captcha_score",
- "captcha_status",
- "challenge_status",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "matched_on",
- "matched_value",
- "method",
- "referer",
- "rtld_profile_name",
- "rule_id",
- "rule_msg",
- "sam_id",
- "sam_name",
- "timestamp",
- "token_validity",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Returns all RTLD Bot profiles associated with an environment.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/bot/profiles', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/bot/profiles",
- "@type": "Collection",
- "items": [
- {
- "@id": "/rtld/v1/bot/profiles/10027",
- "@type": "BotLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "action_type",
- "bot_manager_id",
- "bot_manager_name",
- "bot_rule_config_id",
- "bot_rule_config_name",
- "bot_score",
- "captcha_error_msg",
- "captcha_score",
- "captcha_status",
- "challenge_status",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "matched_on",
- "matched_value",
- "method",
- "referer",
- "rtld_profile_name",
- "rule_id",
- "rule_msg",
- "sam_id",
- "sam_name",
- "timestamp",
- "token_validity",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
]
}
Retrieves a RTLD Bot profile by its system-defined ID.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/bot/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/bot/profiles/10027",
- "@type": "BotLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "action_type",
- "bot_manager_id",
- "bot_manager_name",
- "bot_rule_config_id",
- "bot_rule_config_name",
- "bot_score",
- "captcha_error_msg",
- "captcha_score",
- "captcha_status",
- "challenge_status",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "matched_on",
- "matched_value",
- "method",
- "referer",
- "rtld_profile_name",
- "rule_id",
- "rule_msg",
- "sam_id",
- "sam_name",
- "timestamp",
- "token_validity",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Updates a RTLD Bot profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD Bot) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "account_number",
- "action_type",
- "bot_manager_id",
- "bot_manager_name",
- "bot_rule_config_id",
- "bot_rule_config_name",
- "bot_score",
- "captcha_error_msg",
- "captcha_score",
- "captcha_status",
- "challenge_status",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "matched_on",
- "matched_value",
- "method",
- "referer",
- "rtld_profile_name",
- "rule_id",
- "rule_msg",
- "sam_id",
- "sam_name",
- "timestamp",
- "token_validity",
- "url",
- "user_agent",
- "uuid"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/bot/profiles/10027",
- "@type": "BotLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "action_type",
- "bot_manager_id",
- "bot_manager_name",
- "bot_rule_config_id",
- "bot_rule_config_name",
- "bot_score",
- "captcha_error_msg",
- "captcha_score",
- "captcha_status",
- "challenge_status",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "matched_on",
- "matched_value",
- "method",
- "referer",
- "rtld_profile_name",
- "rule_id",
- "rule_msg",
- "sam_id",
- "sam_name",
- "timestamp",
- "token_validity",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Permanently deletes a RTLD Bot profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/rtld/v1/bot/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "unauthorized",
- "status_code": 401,
- "title": "Auth not valid",
- "description": "Could not validate access",
- "details": [
- {
- "@type": "ErrorDetail",
- "source": "/name",
- "description": "Error in Auth"
}
]
}
Automate Real-Time Log Delivery (RTLD) Rate Limiting profile management. A RTLD Rate Limiting profile defines the condition(s) under which log data for requests that exceed your rate limits will be delivered to the desired destination (e.g., your web server or AWS S3).
Creates a RTLD Rate Limiting (RL) profile.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD RL) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "account_number",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "limit_action_duration",
- "limit_action_percentage",
- "limit_action_type",
- "limit_id",
- "limit_name",
- "limit_start_timestamp",
- "method",
- "referer",
- "scope_id",
- "scope_name",
- "timestamp",
- "url",
- "user_agent",
- "uuid"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/rl/profiles/10027",
- "@type": "RateLimitingLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "limit_action_duration",
- "limit_action_percentage",
- "limit_action_type",
- "limit_id",
- "limit_name",
- "limit_start_timestamp",
- "method",
- "referer",
- "scope_id",
- "scope_name",
- "timestamp",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Returns all RTLD Rate Limiting (RL) profiles associated with an environment.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/rl/profiles', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/rl/profiles",
- "@type": "Collection",
- "items": [
- {
- "@id": "/rtld/v1/rl/profiles/10027",
- "@type": "RateLimitingLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "limit_action_duration",
- "limit_action_percentage",
- "limit_action_type",
- "limit_id",
- "limit_name",
- "limit_start_timestamp",
- "method",
- "referer",
- "scope_id",
- "scope_name",
- "timestamp",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
]
}
Retrieves a RTLD Rate Limiting (RL) profile by its system-defined ID.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/rl/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/rl/profiles/10027",
- "@type": "RateLimitingLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "limit_action_duration",
- "limit_action_percentage",
- "limit_action_type",
- "limit_id",
- "limit_name",
- "limit_start_timestamp",
- "method",
- "referer",
- "scope_id",
- "scope_name",
- "timestamp",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Updates a RTLD Rate Limiting (RL) profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD RL) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "account_number",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "limit_action_duration",
- "limit_action_percentage",
- "limit_action_type",
- "limit_id",
- "limit_name",
- "limit_start_timestamp",
- "method",
- "referer",
- "scope_id",
- "scope_name",
- "timestamp",
- "url",
- "user_agent",
- "uuid"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/rl/profiles/10027",
- "@type": "RateLimitingLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "account_number",
- "client_city",
- "client_country",
- "client_country_code",
- "client_ip",
- "client_tls_ja3_md5",
- "host",
- "limit_action_duration",
- "limit_action_percentage",
- "limit_action_type",
- "limit_id",
- "limit_name",
- "limit_start_timestamp",
- "method",
- "referer",
- "scope_id",
- "scope_name",
- "timestamp",
- "url",
- "user_agent",
- "uuid"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Permanently deletes a RTLD Rate Limiting (RL) profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/rtld/v1/rl/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "unauthorized",
- "status_code": 401,
- "title": "Auth not valid",
- "description": "Could not validate access",
- "details": [
- {
- "@type": "ErrorDetail",
- "source": "/name",
- "description": "Error in Auth"
}
]
}
Automate Real-Time Log Delivery (RTLD) Web Application Firewall (WAF) profile management. A RTLD WAF profile defines the condition(s) under which WAF log data will be delivered to the desired destination (e.g., your web server or AWS S3).
Creates a RTLD Web Application Firewall (WAF) profile.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD WAF) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "client_country_code",
- "client_city",
- "timestamp",
- "client_ip",
- "server_port",
- "url",
- "host",
- "user_agent",
- "referer",
- "account_number",
- "uuid",
- "rule_message",
- "rule_tags",
- "sub_events_count",
- "sub_events",
- "waf_instance_name",
- "waf_profile_name",
- "action_type",
- "waf_profile_type",
- "client_country"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/waf/profiles/10027",
- "@type": "WebApplicationFirewallLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "client_country_code",
- "client_city",
- "timestamp",
- "client_ip",
- "server_port",
- "url",
- "host",
- "user_agent",
- "referer",
- "account_number",
- "uuid",
- "rule_message",
- "rule_tags",
- "sub_events_count",
- "sub_events",
- "waf_instance_name",
- "waf_profile_name",
- "action_type",
- "waf_profile_type",
- "client_country"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Returns all RTLD Web Application Firewall (WAF) profiles associated with an environment.
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/waf/profiles', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/waf/profiles",
- "@type": "Collection",
- "items": [
- {
- "@id": "/rtld/v1/waf/profiles/10027",
- "@type": "WebApplicationFirewallLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "client_country_code",
- "client_city",
- "timestamp",
- "client_ip",
- "server_port",
- "url",
- "host",
- "user_agent",
- "referer",
- "account_number",
- "uuid",
- "rule_message",
- "rule_tags",
- "sub_events_count",
- "sub_events",
- "waf_instance_name",
- "waf_profile_name",
- "action_type",
- "waf_profile_type",
- "client_country"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
]
}
Retrieves a RTLD Web Application Firewall (WAF) profile by its system-defined ID.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/waf/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/waf/profiles/10027",
- "@type": "WebApplicationFirewallLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "client_country_code",
- "client_city",
- "timestamp",
- "client_ip",
- "server_port",
- "url",
- "host",
- "user_agent",
- "referer",
- "account_number",
- "uuid",
- "rule_message",
- "rule_tags",
- "sub_events_count",
- "sub_events",
- "waf_instance_name",
- "waf_profile_name",
- "action_type",
- "waf_profile_type",
- "client_country"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Updates a RTLD Web Application Firewall (WAF) profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
environment_id required | string <uuid> (Environment ID) An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
required | any |
description | string [ 1 .. 1024 ] characters Defines the log delivery profile's description. Limit this description to 100 characters. |
downsampling_percent | number Enum: 0.1 1 25 50 75 Determines the percentage to which log data will be downsampled. Omit or set this parameter to null to disable log data downsampling. |
enabled | boolean Default: true Determines whether RTLD will use this profile to deliver log data. |
fields required | Array of strings non-empty unique Defines the set of log fields that will be delivered. Use the Get Log Fields (RTLD WAF) endpoint to retrieve the set of valid values for this property. |
profile_name required | string <= 36 characters Determines the log delivery profile's name. Limit this unique name to 36 characters. |
object (Log Filtering Object) Contains your log filtering configuration. |
{- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "fields": [
- "client_country_code",
- "client_city",
- "timestamp",
- "client_ip",
- "server_port",
- "url",
- "host",
- "user_agent",
- "referer",
- "account_number",
- "uuid",
- "rule_message",
- "rule_tags",
- "sub_events_count",
- "sub_events",
- "waf_instance_name",
- "waf_profile_name",
- "action_type",
- "waf_profile_type",
- "client_country"
], - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser",
- "password": "mypassword"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
{- "@id": "/rtld/v1/waf/profiles/10027",
- "@type": "WebApplicationFirewallLogsProfile",
- "id": 10027,
- "environment_id": "c9980249-2fb6-4699-a68e-271383815700",
- "enabled": false,
- "downsampling_percent": 25,
- "fields": [
- "client_country_code",
- "client_city",
- "timestamp",
- "client_ip",
- "server_port",
- "url",
- "host",
- "user_agent",
- "referer",
- "account_number",
- "uuid",
- "rule_message",
- "rule_tags",
- "sub_events_count",
- "sub_events",
- "waf_instance_name",
- "waf_profile_name",
- "action_type",
- "waf_profile_type",
- "client_country"
], - "filters": {
- "host_names": {
- "names": [
- "host.example.com"
], - "condition": "in"
}
}, - "delivery_method": {
- "type": "http_post",
- "authentication": {
- "type": "http_basic",
- "username": "myuser"
}, - "log_format": "json"
}, - "profile_name": "myprofile"
}
Permanently deletes a RTLD Web Application Firewall (WAF) profile.
id required | integer The RTLD profile's system-defined ID. |
environment_id required | string <uuid> An environment's system-defined ID (e.g., 12345678-1234-1234-1234-1234567890ab). From the Edgio Console, navigate to the desired environment and then click Settings. It is listed under Environment ID. |
const request = require('request'); const options = { method: 'DELETE', url: 'https://edgioapis.com/rtld/v1/waf/profiles/{id}', qs: {environment_id: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@type": "Error",
- "code": "unauthorized",
- "status_code": 401,
- "title": "Auth not valid",
- "description": "Could not validate access",
- "details": [
- {
- "@type": "ErrorDetail",
- "source": "/name",
- "description": "Error in Auth"
}
]
}
Retrieves the available set of log fields for RTLD Access Logs.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/accesslogs/fields', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/accesslogs/fields",
- "@type": "Collection",
- "items": [
- {
- "code": "user_agent",
- "name": "User Agent"
}, - {
- "code": "rewritten_path",
- "name": "Rewritten URL Path"
}, - {
- "code": "path",
- "name": "URL Path"
}, - {
- "code": "timestamp",
- "name": "Timestamp"
}, - {
- "code": "client_ip",
- "name": "IP Address"
}, - {
- "code": "client_port",
- "name": "Port"
}
]
}
Retrieves the available set of log fields for RTLD Bot.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/bot/fields', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/bot/fields",
- "@type": "Collection",
- "items": [
- {
- "code": "timestamp",
- "name": "Timestamp"
}, - {
- "code": "user_agent",
- "name": "User Agent"
}, - {
- "code": "url",
- "name": "URL"
}, - {
- "code": "sam_name",
- "name": "SAM Name"
}, - {
- "code": "sam_id",
- "name": "SAM ID"
}, - {
- "code": "method",
- "name": "Request Method"
}
]
}
Retrieves the available set of log fields for RTLD RL.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/rl/fields', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/rl/fields",
- "@type": "Collection",
- "items": [
- {
- "code": "timestamp",
- "name": "Timestamp"
}, - {
- "code": "user_agent",
- "name": "User Agent"
}, - {
- "code": "url",
- "name": "URL"
}, - {
- "code": "scope_name",
- "name": "Scope Name"
}, - {
- "code": "scope_id",
- "name": "Scope ID"
}, - {
- "code": "method",
- "name": "Request Method"
}
]
}
Retrieves the available set of log fields for RTLD WAF.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/waf/fields', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/waf/fields",
- "@type": "Collection",
- "items": [
- {
- "code": "client_country_code",
- "name": "Country Code"
}, - {
- "code": "client_city",
- "name": "City Name"
}, - {
- "code": "timestamp",
- "name": "Epoch Time"
}, - {
- "code": "client_ip",
- "name": "Client IP"
}, - {
- "code": "server_port",
- "name": "Server Port"
}, - {
- "code": "url",
- "name": "URL"
}
]
}
Retrieves a list of AWS regions to which log data may be delivered.
const request = require('request'); const options = { method: 'GET', url: 'https://edgioapis.com/rtld/v1/aws-regions', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "@id": "/rtld/v1/aws-regions",
- "@type": "Collection",
- "items": [
- {
- "code": "af-south-1",
- "name": "Africa (Cape Town)"
}, - {
- "code": "ap-east-1",
- "name": "Asia Pacific (Hong Kong)"
}, - {
- "code": "ap-south-2",
- "name": "Asia Pacific (Hyderabad)"
}, - {
- "code": "ap-southeast-3",
- "name": "Asia Pacific (Jakarta)"
}, - {
- "code": "ap-southeast-4",
- "name": "Asia Pacific (Melbourne)"
}, - {
- "code": "ap-south-1",
- "name": "Asia Pacific (Mumbai)"
}, - {
- "code": "ap-northeast-3",
- "name": "Asia Pacific (Osaka)"
}
]
}