Creates a new Zero Trust Gateway location.
/accounts/{identifier}/gateway/locations
post
Zero Trust Gateway locations
zero-trust-gateway-locations-create-zero-trust-gateway-location
null null [
{
"in": "path",
"name": "identifier",
"required": true,
"schema": {
"example": "699d98642c564d2e855e9661899b7252"
}
}
] {
"content": {
"application/json": {
"schema": {
"properties": {
"client_default": {
"description": "True if the location is the default location.",
"example": false,
"type": "boolean"
},
"ecs_support": {
"description": "True if the location needs to resolve EDNS queries.",
"example": false,
"type": "boolean"
},
"name": {
"description": "The name of the location.",
"example": "Austin Office Location",
"type": "string"
},
"networks": {
"description": "A list of network ranges that requests from this location would originate from.",
"items": {
"properties": {
"network": {
"description": "The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.",
"example": "192.0.2.1/32",
"type": "string"
}
},
"required": [
"network"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"name"
]
}
}
},
"required": true
} {
"200": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"allOf": [
{
"properties": {
"errors": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"messages": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"result": {
"anyOf": [
{
"type": "object"
},
{
"items": {},
"type": "array"
},
{
"type": "string"
}
]
},
"success": {
"description": "Whether the API call was successful",
"enum": [
true
],
"example": true,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
},
{
"properties": {
"result": {
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
}
}
}
],
"type": "object"
},
{
"properties": {
"result": {
"properties": {
"client_default": {
"description": "True if the location is the default location.",
"example": false,
"type": "boolean"
},
"created_at": {
"example": "2014-01-01T05:20:00.12345Z",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"doh_subdomain": {
"description": "The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.",
"example": "oli3n9zkz5",
"type": "string"
},
"ecs_support": {
"description": "True if the location needs to resolve EDNS queries.",
"example": false,
"type": "boolean"
},
"id": {
"example": "ed35569b41ce4d1facfe683550f54086"
},
"ip": {
"description": "IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.",
"example": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"type": "string"
},
"name": {
"description": "The name of the location.",
"example": "Austin Office Location",
"type": "string"
},
"networks": {
"description": "A list of network ranges that requests from this location would originate from.",
"items": {
"properties": {
"network": {
"description": "The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.",
"example": "192.0.2.1/32",
"type": "string"
}
},
"required": [
"network"
],
"type": "object"
},
"type": "array"
},
"updated_at": {
"example": "2014-01-01T05:20:00.12345Z",
"format": "date-time",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
}
}
]
}
}
},
"description": "Create a Zero Trust Gateway location response"
},
"4XX": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"allOf": [
{
"allOf": [
{
"properties": {
"errors": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"messages": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"result": {
"anyOf": [
{
"type": "object"
},
{
"items": {},
"type": "array"
},
{
"type": "string"
}
]
},
"success": {
"description": "Whether the API call was successful",
"enum": [
true
],
"example": true,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
},
{
"properties": {
"result": {
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
}
}
}
],
"type": "object"
},
{
"properties": {
"result": {
"properties": {
"client_default": {
"description": "True if the location is the default location.",
"example": false,
"type": "boolean"
},
"created_at": {
"example": "2014-01-01T05:20:00.12345Z",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"doh_subdomain": {
"description": "The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.",
"example": "oli3n9zkz5",
"type": "string"
},
"ecs_support": {
"description": "True if the location needs to resolve EDNS queries.",
"example": false,
"type": "boolean"
},
"id": {
"example": "ed35569b41ce4d1facfe683550f54086"
},
"ip": {
"description": "IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.",
"example": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"type": "string"
},
"name": {
"description": "The name of the location.",
"example": "Austin Office Location",
"type": "string"
},
"networks": {
"description": "A list of network ranges that requests from this location would originate from.",
"items": {
"properties": {
"network": {
"description": "The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.",
"example": "192.0.2.1/32",
"type": "string"
}
},
"required": [
"network"
],
"type": "object"
},
"type": "array"
},
"updated_at": {
"example": "2014-01-01T05:20:00.12345Z",
"format": "date-time",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
}
}
]
},
{
"properties": {
"errors": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": [
{
"code": 7003,
"message": "No route for the URI"
}
],
"minLength": 1
},
"messages": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": []
},
"result": {
"enum": [
null
],
"nullable": true,
"type": "object"
},
"success": {
"description": "Whether the API call was successful",
"enum": [
false
],
"example": false,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
}
]
}
}
},
"description": "Create a Zero Trust Gateway location response failure"
}
} [
{
"api_email": [],
"api_key": []
}
]