Zones
A zone is one origin with its hostnames and its settings. Five calls create, read, update and delete zones, and every setting a zone has is a field on the same object.
On this page
A zone is one origin with its hostnames and its settings. Five calls create, read, update and delete zones, and every setting a zone has is a field on the same object; a sixth signs everyone out of CacheGenie Sentinel.
The zone object#
| Field | Type | Meaning |
|---|---|---|
ID | String | The zone id: nine upper-case letters and digits. Never changes |
ZONE_NAME | String | The name you know the zone by, as you typed it, unique among your zones; never part of an address. Can be changed |
CNAME_TARGET | String | cdn.cachegenie.com, where every hostname of the zone points with a CNAME record (the same for every zone). Read only |
ORIGIN_URL | String | Scheme, hostname or IP address, optional port, optional path; no query string and no credentials. The bucket endpoint on an S3 zone, the web server on a full site; empty on a tunnel zone, whose origin is TUNNEL_ENDPOINT |
HOST_HEADER | String | The Host header sent to the origin; empty means the hostname from ORIGIN_URL. Not used while ADD_HOST_HEADER is 1, nor on S3. On a tunnel zone, empty means the endpoint's host |
ORIGIN_CERTIFICATE | Integer | 1 when the zone has an origin certificate, 0 when not. Read only: the certificate has its own endpoint, Origin certificates |
VERIFY_ORIGIN_SSL | Integer | 1 to check the origin's certificate. Starts 0 |
ADD_HOST_HEADER | Integer | 1 to send each viewer's hostname as Host and cache each hostname separately. Starts 0. Not used on S3 |
FOLLOW_REDIRECTS | Integer | 1 to follow the origin's redirects at the edge. Starts 0. Not used on S3, SITE or TUNNEL |
STRIP_COOKIES | Integer | 1 to remove Set-Cookie from responses and drop viewers' cookies before the origin. Starts 1 |
BLOCK_ROOT | Integer | 1 to answer directory paths with 403. Starts 0 |
BLOCK_POST | Integer | 1 to answer POST with 403. Starts 0 |
ADD_CANONICAL_HEADER | Integer | 1 to add a canonical Link header naming the file at the origin. Starts 1. Not used on S3, SITE or TUNNEL |
ADD_CORS_HEADER | Integer | 1 to add CORS headers on stylesheets and fonts. Starts 1 |
CACHE_EXP | String | Cache expiration time in seconds, returned as a string: "-1" respects the origin, "0" caches nothing, or one of the fixed values below. Starts "-1" |
CACHE_QUERY | String | How much of the query string makes a different cached copy: ALL (each query string its own copy), NONE (ignored) or ONLY (only the names in CACHE_QUERY_PARAMS), in capitals. Starts ALL. See Query strings |
CACHE_QUERY_PARAMS | String | The parameter names ONLY keeps, comma separated and sorted, case-sensitive (h,quality,w); kept while CACHE_QUERY is another value. Up to 20 names of up to 64 letters, digits and . _ - ~ [ ] |
CACHE_STRATEGY | String | The Caching strategy, how readily a location that does not hold a file fetches it from another of our locations that does: SPEED, BALANCED or ORIGIN_SAVINGS, in capitals. Starts BALANCED. See Caching strategy |
HOME_POP | String | The origin shield setting: auto to have the location nearest your origin measured and chosen for you (Auto Detect), or empty for off. Specific locations can no longer be chosen. Always empty on a tunnel zone, whose Home PoP is the tunnel's entry location. See Origin shield |
HOME_POP_LOCATION | String | The location the shield uses now: the one Auto Detect has chosen so far (empty until its first choice, within about ten minutes of switching it on, or empty when off). Read only |
HOME_POP_DYNAMIC | Integer | 1 to send the requests that are never cached, a POST, PUT, PATCH, DELETE or OPTIONS with its body and every WebSocket, through the Home PoP as well. Needs HOME_POP auto, and reads 0 whenever it is off; not on S3 or TUNNEL. Starts 0. See Home PoP for dynamic requests |
EARLY_HINTS | Integer | 1 to send 103 Early Hints from the preload and preconnect Link headers your pages send. Only on a full site: SITE, or TUNNEL with TUNNEL_MODE SITE; reads 0 on any other zone. Starts 0. See Early Hints |
STATUS | String | ACTIVE, or PAUSED while CacheGenie has paused the zone under the Acceptable Use Policy: it stays listed and readable here, and every request to it is refused until it is resumed |
ORIGIN_TYPE | String | STANDARD (a standard origin), S3 (a bucket), SITE (a full site) or TUNNEL (a CacheGenie Tunnel). See Origin types below |
S3_ACCESS | String | PUBLIC or PRIVATE on an S3 zone: a public bucket is read unsigned and keeps no region or keys, a private one is read with its keys. Empty otherwise |
S3_BUCKET, S3_REGION, S3_ACCESS_KEY | String | The bucket details on an S3 zone (S3_REGION and S3_ACCESS_KEY empty on a public bucket); empty otherwise |
S3_ADDRESSING | String | PATH or VHOST |
S3_SECRET_KEY_SET | Integer | 1 when a secret key is stored. The secret itself is never returned |
TUNNEL_ENDPOINT | Integer | On a tunnel zone, the ENDPOINT_ID of the endpoint it fetches from (see Tunnels); 0 on any other zone |
TUNNEL_MODE | String | How a tunnel zone delivers: SITE (Full website, as a full site) or STANDARD (Static files, as a standard origin). Kept while the zone is another type, so it comes back if the zone becomes a tunnel zone again; SITE on a zone that has never been one |
TOKEN_AUTH | Integer | 1 to serve only signed links. The key is on its own endpoint: see Signing keys |
MAINTENANCE | Integer | 1 to answer the zone's requests with the maintenance page. See Maintenance mode |
SENTINEL | String | PASSWORD, EMAIL or NOC: how visitors sign in to the zone with CacheGenie Sentinel, or empty while it is off. Starts empty. See CacheGenie Sentinel |
SENTINEL_HOURS | Integer | How long a Sentinel sign-in lasts, in hours: 1, 8, 24, 168 or 720. Starts 24 |
SENTINEL_EMAILS | String | Who may sign in by email code: addresses and @domains, one per line, lower case. Starts empty |
SENTINEL_PASSWORD_SET | Integer | 1 when the zone has a Sentinel password. Read only: send SENTINEL_PASSWORD to set it, and it is never shown |
USAGE_PAUSED | Integer | 1 while every zone on the account is paused because its free usage is used and it has no card (see Free usage and pausing). Read only |
BLOCK_IPS, ALLOW_IPS | String | Addresses and CIDR ranges, one per line |
COUNTRIES | String | Two-letter country codes, comma separated, upper case |
COUNTRY_MODE | String | BLOCK to refuse the countries listed, ALLOW to serve only them |
BLOCK_ASNS | String | AS numbers, comma separated, without the AS |
BLOCK_TOR, BLOCK_VPN, BLOCK_HOSTING | Integer | 1 to refuse that kind of network |
TIMESTAMP | Integer | When the zone was created, Unix seconds |
What each setting does at the edge is in Zone settings; the blocking fields are explained in Blocking visitors, full sites in Full site origins and tunnel zones in CacheGenie Tunnels. A full site starts with ADD_HOST_HEADER 1 and STRIP_COOKIES and ADD_CANONICAL_HEADER 0; a tunnel zone starts with VERIFY_ORIGIN_SSL, FOLLOW_REDIRECTS and ADD_CANONICAL_HEADER 0.
List zones#
GET https://api.cachegenie.com/v1/cdnEvery zone on the account, newest first, as DATA.CDN_ZONES: a paused zone is listed with the rest, and a deleted one is not.
curl https://api.cachegenie.com/v1/cdn \
-H "Authorization: Bearer YOUR_API_KEY"{
"CODE": 200,
"MESSAGE": "Data returned for all CDN Zones for this account.",
"DATA": {
"CDN_ZONES": [
{
"ID": "AB12CD34E",
"ZONE_NAME": "video",
"CNAME_TARGET": "cdn.cachegenie.com",
"ORIGIN_URL": "https://origin.example.com",
"HOST_HEADER": "",
"ORIGIN_CERTIFICATE": 0,
"VERIFY_ORIGIN_SSL": 1,
"ADD_HOST_HEADER": 0,
"FOLLOW_REDIRECTS": 0,
"STRIP_COOKIES": 1,
"BLOCK_ROOT": 0,
"BLOCK_POST": 0,
"ADD_CANONICAL_HEADER": 1,
"ADD_CORS_HEADER": 1,
"CACHE_EXP": "-1",
"CACHE_STRATEGY": "BALANCED",
"CACHE_QUERY": "ALL",
"CACHE_QUERY_PARAMS": "",
"HOME_POP": "auto",
"HOME_POP_LOCATION": "alpha1",
"HOME_POP_DYNAMIC": 0,
"EARLY_HINTS": 0,
"STATUS": "ACTIVE",
"ORIGIN_TYPE": "STANDARD",
"S3_ACCESS": "",
"S3_BUCKET": "",
"S3_REGION": "",
"S3_ADDRESSING": "PATH",
"S3_ACCESS_KEY": "",
"S3_SECRET_KEY_SET": 0,
"TUNNEL_ENDPOINT": 0,
"TUNNEL_MODE": "SITE",
"TOKEN_AUTH": 0,
"MAINTENANCE": 0,
"USAGE_PAUSED": 0,
"BLOCK_IPS": "",
"ALLOW_IPS": "",
"COUNTRIES": "",
"COUNTRY_MODE": "BLOCK",
"BLOCK_ASNS": "",
"BLOCK_TOR": 0,
"BLOCK_VPN": 0,
"BLOCK_HOSTING": 0,
"TIMESTAMP": 1789200000
}
]
}
}View a zone#
GET https://api.cachegenie.com/v1/cdn/{ZONE_ID}One zone object, with MESSAGE CDN Zone Data Returned.. A zone that does not exist, is deleted, or belongs to another account answers 404 CDN Zone not found.; a lower-case or malformed id is a 404 too.
Create a zone#
POST https://api.cachegenie.com/v1/cdn- ZONE_NAME (String, required): 1 to 64 characters, without
< > " `or\, kept as sent. Refused if another of your zones that is not deleted already has it, whatever the case and surrounding spaces. - ORIGIN_URL (String, required except on a tunnel zone):
http://orhttps://, a hostname or IP address, an optional port and an optional path, which is put in front of the path a viewer asks for. No query string, no credentials, and no hostname that is cachegenie.com or under it. - ORIGIN_TYPE (String, optional):
STANDARD(the default),S3,SITEorTUNNEL. See Origin types below for what each needs. - HOST_HEADER (String, optional): a hostname, or empty for none.
- CACHE_EXP (String, optional): one of the values below, sent as a string or as a number. Anything else is refused.
- CACHE_STRATEGY (String, optional):
SPEED,BALANCEDorORIGIN_SAVINGS, case-sensitive. Left out, the zone startsBALANCED. Anything else is refused. - CACHE_QUERY (String, optional):
ALL,NONEorONLY, case-sensitive. Left out, the zone startsALL.ONLYneedsCACHE_QUERY_PARAMS. - CACHE_QUERY_PARAMS (String, optional): parameter names separated by commas or spaces, kept once each and sorted.
- HOME_POP (String, optional):
auto(Auto Detect), or empty (Off). Specific locations can no longer be chosen. - HOME_POP_DYNAMIC (Integer, optional): 1 to send the requests that are never cached through the Home PoP too; needs
HOME_POPauto. Starts 0. - EARLY_HINTS (Integer, optional): 1 to send Early Hints; needs a full site. Starts 0.
- The eight switches,
VERIFY_ORIGIN_SSL,ADD_HOST_HEADER,FOLLOW_REDIRECTS,STRIP_COOKIES,BLOCK_ROOT,BLOCK_POST,ADD_CANONICAL_HEADERandADD_CORS_HEADER: integers, 1 or 0, each optional. A switch left out takes the default in the table above. TOKEN_AUTHandMAINTENANCE: integers, optional, 1 to switch on. Both start 0.- The bucket fields when
ORIGIN_TYPEisS3:S3_ACCESS,PUBLICorPRIVATE, optional andPRIVATEwhen left out;S3_BUCKET, required;S3_REGION,S3_ACCESS_KEYandS3_SECRET_KEY, required together for a private bucket and refused besidePUBLIC;S3_ADDRESSING,PATHorVHOST, optional and starting asPATH. - The tunnel fields when
ORIGIN_TYPEisTUNNEL:TUNNEL_ENDPOINT, required, an endpoint of one of your tunnels;TUNNEL_MODE,SITEorSTANDARD, optional andSITEwhen left out.ORIGIN_URLis left out. - The blocking rules,
BLOCK_IPS,ALLOW_IPS,COUNTRIES,COUNTRY_MODEandBLOCK_ASNSas strings andBLOCK_TOR,BLOCK_VPNandBLOCK_HOSTINGas integers, each optional. See Blocking fields below.
curl -X POST https://api.cachegenie.com/v1/cdn \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ZONE_NAME": "video",
"ORIGIN_URL": "https://origin.example.com",
"VERIFY_ORIGIN_SSL": 1,
"HOME_POP": "auto"
}'The answer is the new zone object with MESSAGE CDN Zone Created.. Creating a zone mints a signing key and no hostname: the zone serves nothing until you add one with Hostnames and certificates and point it at CNAME_TARGET. What can go wrong:
- 400
Missing required request parameters in JSON Body.:ZONE_NAMEis absent, orORIGIN_URLon a zone that is not a tunnel zone. - 400
Unable to decode JSON Body.: the body is not JSON. - 400
ZONE_NAME must be 1 to 64 characters, without < > " ` or \.: the name is empty, longer, or holds one of those characters. - 400
You already have a CDN Zone of that name.: another of your zones has it, whatever the case. - 400
Invalid Origin URL.:ORIGIN_URLbreaks one of the rules above. - 400
Invalid Host Header.:HOST_HEADERis not a hostname. - 400
ORIGIN_URL names a private, loopback or link-local address, which the CDN cannot reach. Use the public hostname or address of your origin.: the origin is such an address. - 400
CACHE_EXP is not one of the Cache Expiration Time values offered for a CDN Zone.: any value not in the table below. - 400
CACHE_STRATEGY must be SPEED, BALANCED or ORIGIN_SAVINGS.: any other value, lower case included. - 400
CACHE_QUERY must be ALL, NONE or ONLY.: any other value. - 400
CACHE_QUERY ONLY needs CACHE_QUERY_PARAMS to name at least one parameter.:ONLYwith no names. - 400
CACHE_QUERY_PARAMS: {reason}: a name that is not one, or more names than the limit. - 400
{FIELD} must be 1 or 0.: a switch sent as anything else,"yes"or2included (trueandfalseread as 1 and 0). - 400
HOME_POP must be "auto" to let CacheGenie choose the location nearest your origin, or empty to turn the origin shield off.: any other value. - 400
HOME_POP_DYNAMIC needs the Home PoP: set HOME_POP to "auto" as well.:HOME_POP_DYNAMIC1 whileHOME_POPis notauto. - 500
Unable to create CDN Zone - Internal Server Error, please try again.: a write that did not go through.
The refusals for the origin types, Early Hints and blocking are listed below.
Update a zone#
POST https://api.cachegenie.com/v1/cdn/{ZONE_ID}Every field of the object except ID, CNAME_TARGET, STATUS, USAGE_PAUSED, TIMESTAMP, S3_SECRET_KEY_SET, SENTINEL_PASSWORD_SET, ORIGIN_CERTIFICATE and HOME_POP_LOCATION (send S3_SECRET_KEY to change the secret, and SENTINEL_PASSWORD the Sentinel password; see Sentinel fields), each optional. A field left out (or sent as null) keeps its value; an empty string clears HOST_HEADER, HOME_POP and each blocking list. CACHE_STRATEGY left out keeps the zone's strategy, and a value other than SPEED, BALANCED or ORIGIN_SAVINGS is a 400 CACHE_STRATEGY must be SPEED, BALANCED or ORIGIN_SAVINGS. CACHE_QUERY and CACHE_QUERY_PARAMS are each kept when left out; an empty CACHE_QUERY_PARAMS clears the names, and is refused while the zone stays ONLY. A body of {} is accepted and changes nothing; a body that is not JSON is refused. The answer is the updated object with MESSAGE CDN Zone Updated.; every change reaches every location within about fifteen seconds.
curl -X POST https://api.cachegenie.com/v1/cdn/AB12CD34E \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"CACHE_EXP": "86400", "STRIP_COOKIES": 1, "CACHE_STRATEGY": "ORIGIN_SAVINGS"}'The refusals are the create's, with one wording of its own: ORIGIN_URL must start with http:// or https:// and name a hostname or IP address. A zone with an origin certificate keeps an https:// ORIGIN_URL, a tunnel zone excepted: an http:// one is 400 ORIGIN_URL has to be https:// while the zone has an origin certificate. Revoke it first with DELETE /v1/cdn/{ZONE_ID}/origin-certificate., and 409 when a certificate was created while the call was made. Switching TOKEN_AUTH on when the zone somehow has no key mints one. A change of ORIGIN_TYPE brings the new type's starting settings, except the fields sent in the same call: a zone becoming a full site, a tunnel zone switched to TUNNEL_MODE SITE included, takes ADD_HOST_HEADER 1, FOLLOW_REDIRECTS, STRIP_COOKIES, BLOCK_ROOT, BLOCK_POST and ADD_CANONICAL_HEADER 0 and CACHE_EXP "-1"; a zone becoming a tunnel zone has VERIFY_ORIGIN_SSL, FOLLOW_REDIRECTS, ADD_CANONICAL_HEADER, HOME_POP and HOME_POP_DYNAMIC switched off and its ORIGIN_URL cleared. A tunnel zone becoming another type needs an ORIGIN_URL in the same call. A write that did not go through is 500 Unable to update CDN Zone - Internal Server Error, please try again.
Delete a zone#
DELETE https://api.cachegenie.com/v1/cdn/{ZONE_ID}Removes the zone's hostnames and their certificates, marks the zone deleted and clears its cached files from every location within a minute; its statistics and the month's usage stay, because they are what the month is invoiced on. The answer is CDN Zone Deleted. with an empty DATA. A write that did not go through is 500.
Sentinel fields#
A zone is created with CacheGenie Sentinel off; an update sets it, and Sentinel has every field with examples. SENTINEL is PASSWORD, EMAIL or NOC, any case, or an empty string to switch it off, which keeps the password and the list for later. SENTINEL_PASSWORD (String, write only) is 8 to 128 characters, kept only as a hash; an empty string keeps the one set. SENTINEL_EMAILS (String) is the whole list, replacing the one before: addresses and @domains, separated by new lines, commas or spaces, at most 200; an @domain is that domain alone, never its subdomains. Each is optional, and one left out keeps its value. Any change to SENTINEL, SENTINEL_HOURS, SENTINEL_EMAILS or SENTINEL_PASSWORD signs everyone out of the zone, as does this call:
POST https://api.cachegenie.com/v1/cdn/{ZONE_ID}/sentinel/sign-outIt answers Everyone was signed out. with an empty DATA, and every location refuses the old sign-ins within about fifteen seconds. Any other method or path under /sentinel is 404. What can go wrong in an update:
- 400
SENTINEL must be PASSWORD, EMAIL, NOC, or empty to switch it off. - 400
SENTINEL_HOURS must be 1, 8, 24, 168 or 720. - 400
SENTINEL_PASSWORD: Use a password of 8 to 128 characters. - 400
SENTINEL_EMAILS: X is not an email address or an @domain.: an entry, named in place of X, is neither. - 400
SENTINEL_EMAILS: List at most 200 addresses and domains. - 400
Set SENTINEL_PASSWORD to turn on the Password method.:PASSWORDon a zone with no password, and none sent. - 400
List at least one address or @domain in SENTINEL_EMAILS to turn on the Email code method.:EMAILwith an empty list.
Origin types#
STANDARD needs nothing beyond ORIGIN_URL.
S3 takes the bucket endpoint as ORIGIN_URL and S3_BUCKET (3 to 63 lower-case letters, digits, dots and hyphens); S3_ADDRESSING is PATH unless you send VHOST. S3_ACCESS says whether the bucket is PUBLIC or PRIVATE. A public bucket is read unsigned and takes nothing more: S3_REGION, S3_ACCESS_KEY and S3_SECRET_KEY are refused beside S3_ACCESS PUBLIC, and making a private bucket public clears all three. A private bucket also needs S3_REGION (such as eu-west-1, or auto), S3_ACCESS_KEY (8 to 128 characters) and S3_SECRET_KEY (8 to 256). S3_ACCESS left out keeps the bucket's access; on a zone becoming S3 it is PRIVATE, and a request that sends a key without it is read as PRIVATE. On an update an empty S3_SECRET_KEY keeps the stored one, so making a public bucket private needs both keys; switching to another type clears the bucket, region and keys and puts the addressing back to PATH, and bucket fields sent to a zone that is not S3, with no ORIGIN_TYPE beside them, are ignored. The secret is never returned. See Bucket origins. A public bucket from one call:
curl -X POST https://api.cachegenie.com/v1/cdn \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ZONE_NAME": "library",
"ORIGIN_TYPE": "S3",
"S3_ACCESS": "PUBLIC",
"ORIGIN_URL": "https://s3.eu-west-1.amazonaws.com",
"S3_BUCKET": "my-video-bucket",
"S3_ADDRESSING": "PATH"
}'A private one:
curl -X POST https://api.cachegenie.com/v1/cdn \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ZONE_NAME": "library",
"ORIGIN_TYPE": "S3",
"S3_ACCESS": "PRIVATE",
"ORIGIN_URL": "https://s3.eu-west-1.amazonaws.com",
"S3_BUCKET": "my-video-bucket",
"S3_REGION": "eu-west-1",
"S3_ADDRESSING": "PATH",
"S3_ACCESS_KEY": "AKIAIOSFODNN7EXAMPLE",
"S3_SECRET_KEY": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}'SITE, a full site, takes the web server's address as ORIGIN_URL, with the rules of a standard origin, and starts with the full site's settings; EARLY_HINTS is offered on it alone. See Full site origins.
TUNNEL takes no ORIGIN_URL: its origin is TUNNEL_ENDPOINT, the ENDPOINT_ID of an endpoint of one of your tunnels, and TUNNEL_MODE says how it is delivered, SITE as a full site (the default) or STANDARD as a standard origin. On an update both are kept when left out. It is offered once CacheGenie Tunnels is switched on for your account. HOME_POP and HOME_POP_DYNAMIC do not apply: the tunnel's entry location is the zone's Home PoP. An origin certificate works on a tunnel zone and is checked on an https endpoint. See CacheGenie Tunnels and Tunnels. A tunnel zone from one call:
curl -X POST https://api.cachegenie.com/v1/cdn \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ZONE_NAME": "office-app",
"ORIGIN_TYPE": "TUNNEL",
"TUNNEL_ENDPOINT": 7,
"TUNNEL_MODE": "SITE"
}'What can go wrong:
- 400
Choose an origin type: a standard origin, an S3 bucket, a full site, or a CacheGenie Tunnel.:ORIGIN_TYPEis notSTANDARD,S3,SITEorTUNNEL. - 400
Choose the bucket's access: Public, when anyone can read its files, or Private, when only your keys can.:S3_ACCESSis neitherPUBLICnorPRIVATE. - 400
A public bucket is fetched unsigned: leave S3_ACCESS_KEY, S3_SECRET_KEY and S3_REGION out, or send S3_ACCESS PRIVATE.: a key or a region sent besidePUBLIC. - 400
The bucket name must be 3 to 63 characters using lower case letters, numbers, dots and hyphens, starting and ending with a letter or a number.:S3_BUCKETis absent or breaks that rule. - 400
The region must be the one your bucket lives in, such as eu-west-1 or de. Use auto if your provider does not use regions.: a private bucket'sS3_REGIONis absent or malformed. - 400
Choose how the bucket is addressed: in the path, or as part of the endpoint host.:S3_ADDRESSINGis neitherPATHnorVHOST. - 400
The access key looks wrong. It is 8 to 128 characters and holds no spaces or quotes.: a private bucket'sS3_ACCESS_KEYis absent or breaks that rule. - 400
Enter the secret key for this bucket. It is stored once and never shown again.: a private bucket with noS3_SECRET_KEYsent or stored. - 400
The secret key looks wrong. It is 8 to 256 characters and holds no spaces or quotes.:S3_SECRET_KEYbreaks that rule. - 400
With virtual hosted addressing the endpoint must start with the bucket name, for example https://{bucket}.s3.eu-west-1.amazonaws.com. Choose path style instead if your endpoint is the plain one.:VHOSTwith an endpoint that does not start with the bucket. - 400
The endpoint already starts with the bucket name, so choose virtual hosted addressing (otherwise the bucket would be asked for twice).:PATHwith an endpoint that does. - 403
CacheGenie Tunnels is not enabled for this account.:TUNNELon an account without Tunnels. - 400
Choose the tunnel endpoint this zone fetches from.:TUNNEL_ENDPOINTis absent or not an id. - 400
TUNNEL_ENDPOINT is not an endpoint of this account.: an id that is not one of your endpoints. - 400
Choose how the tunnel's service is delivered: static files, or a full website.:TUNNEL_MODEis neitherSITEnorSTANDARD. - 400
ORIGIN_URL does not apply to a tunnel zone: its origin is TUNNEL_ENDPOINT.: anORIGIN_URLsent to create a tunnel zone. On an update it is cleared instead. - 400
ORIGIN_URL is required for this origin type.: a tunnel zone becoming another type without anORIGIN_URL. - 400
HOME_POP is not applicable to a tunnel zone: the tunnel's entry node is its Home PoP.: aHOME_POPother than empty on a tunnel zone. - 400
HOME_POP_DYNAMIC is not applicable to a tunnel zone: every request already goes through the tunnel's entry node., orHOME_POP_DYNAMIC is not applicable to an S3 bucket origin: it takes reads only, which already go through the Home PoP.:HOME_POP_DYNAMIC1 on those types. - 400
EARLY_HINTS needs a full site: ORIGIN_TYPE SITE.:EARLY_HINTS1 on a zone that is not a full site, a tunnel zone inTUNNEL_MODESTANDARDincluded. - 400
{FIELD}: {reason}:FOLLOW_REDIRECTSorADD_CANONICAL_HEADERsent as 1 onS3,SITEorTUNNEL, orADD_HOST_HEADERas 1 onS3, with the reason the zone page gives. Sending 0 is always accepted.
Blocking fields#
The four lists are strings: addresses one per line (a newline in JSON is \n), country codes and AS numbers comma separated. Addresses are normalised on save (host bits cleared, /32 and /128 dropped), AS numbers may be written with or without the AS, and each list is de-duplicated. At most 1,000 entries in each address list and 200 AS numbers. A list left out keeps its value and an empty string clears it; COUNTRY_MODE is BLOCK or ALLOW, and an empty value leaves it as it was. What can go wrong:
- 400
The blocked addresses list is too long: keep it to 1000 entries or fewer.:BLOCK_IPSholds more than 1,000 entries. - 400
The always allow list is too long: keep it to 1000 entries or fewer.:ALLOW_IPSholds more than 1,000 entries. - 400
"X" is not an address or a range. Write one per line, either a single address (203.0.113.9 or 2001:db8::1) or a block in CIDR form (203.0.113.0/24 or 2001:db8::/32).: an entry of either list, named in place of X, is neither. - 400
The AS number list is too long: keep it to 200 entries or fewer.:BLOCK_ASNSholds more than 200 entries. - 400
"X" is not an AS number. Write them as numbers separated by commas, with or without the AS (16509 or AS16509).: an entry ofBLOCK_ASNSis not one. - 400
Choose whether the countries listed are the ones to block or the only ones to serve.:COUNTRY_MODEis neitherBLOCKnorALLOW. - 400
"X" is not a country code. Use the two letter ISO codes, separated by commas (GB, IE, FR).: an entry ofCOUNTRIESis not one. - 400
Choose at least one country to serve, or switch back to blocking: serving only the countries on an empty list would refuse everyone.:ALLOWwith an emptyCOUNTRIES.
Cache Expiration values#
CACHE_EXP has to be one of these values, sent as a string or as a number; it is always returned as a string. The label is what the NOC shows.
| Value | Label |
|---|---|
| "-1" | Respect Origin Cache-Control |
| "0" | Do Not Cache |
| "180" | 3 Minutes |
| "1200" | 20 Minutes |
| "3600" | 1 Hour |
| "10800" | 3 Hours |
| "43200" | 12 Hours |
| "86400" | 1 Day |
| "259200" | 3 Days |
| "604800" | 1 Week |
| "2592000" | 1 Month |
| "7776000" | 3 Months |
| "31919000" | 1 Year |