Zero TrustZero Trust Gateway Locations

Create a Zero Trust Gateway location

POST
Creates a new Zero Trust Gateway location.

Path parameters

identifierstringRequired

Request

This endpoint expects an object.
name
stringRequired
The name of the location.
client_default
booleanOptional
True if the location is the default location.
ecs_support
booleanOptional
True if the location needs to resolve EDNS queries.
networks
list of stringsOptional
A list of network ranges that requests from this location would originate from.

Response

This endpoint returns an object
result
objectOptional
POST
1curl -X POST https://api.cloudflare.com/client/v4/accounts/699d98642c564d2e855e9661899b7252/gateway/locations \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "Austin Office Location",
6 "client_default": false,
7 "ecs_support": false,
8 "networks": [
9 "192.0.2.1/32"
10 ]
11}'
200Successful
1{
2 "result": {
3 "client_default": false,
4 "created_at": "2014-01-01T05:20:00.12345Z",
5 "doh_subdomain": "oli3n9zkz5",
6 "ecs_support": false,
7 "id": "ed35569b41ce4d1facfe683550f54086",
8 "ip": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
9 "name": "Austin Office Location",
10 "networks": [
11 "192.0.2.1/32"
12 ],
13 "updated_at": "2014-01-01T05:20:00.12345Z"
14 }
15}