https://api.gcore.com. Profiles and templates use /security/edgeproxy/v3.
The template list returns one shared default template, marked with is_default set to true, and any template already visible on the account. A rule stores a policy id from that template. Generic TCP Server uses the id tcp-server. A profile holds one origin and one protected address, and further ports stay on that same profile. An origin already used by an active profile cannot be assigned to another profile.
Creating a profile returns its protected address with status of INACTIVE and is_processing true. Clients can connect after a later read shows status of ACTIVE and is_processing false.
Quick start
An API token authorizes the calls. Use Postman stores that token on the Edge Proxy collection. Run the steps in one shell, because later commands read variables set by earlier ones. Edge Proxy must be active on the account, and the origin must be a public IPv4 address or a domain name. The application must accept TCP connections on port 80. When a firewall restricts access, allow the Gcore edge IP addresses to reach that port.1
Find the default template
The proxy template list returns A default template in
results. Copy the id of the template whose is_default is true. Confirm that template includes the policy id tcp-server, and stop when it does not. The template id differs by account.results contributes these fields:2
Create the profile
Create proxy profile sets the name 
A successful request returns HTTP 201. Deployment has started, so An HTTP 400 response can mean that the service is inactive, no protected address is available, the origin is already used by an active profile, or the profile limit has been reached.
edge-proxy-profile (1 to 60 characters), the origin, the template id, and one rule. The rule applies tcp-server to TCP port 80. The request omits protected_ip_address, so Gcore allocates the address. When the origin listens on another port, set outbound_port on that mapping and allow edge traffic on the origin port.
status is INACTIVE and is_processing is true:3
Read the profile until it is ready
Get proxy profile returns the same profile. Repeat the request while A finished deployment looks like this:
is_processing is true. Save the address only when status is ACTIVE, is_processing is false, and is_error is false. When is_error is true, read error_details before sending client traffic.4
Send clients to the protected address
Clients connect to
PROTECTED_IP on TCP port 80. A domain name uses that address in its DNS A record. Connections sent straight to the origin bypass filtering. Connection failures covers an origin that blocks Gcore edge addresses, a policy that does not match the application, and a Host value the application does not recognize.Existing profiles
An account with an assigned non-common pool can choose the protected address. Available protected addresses returns the addresses in that pool, and the create request then sends one of them asprotected_ip_address.
Replace proxy profile submits the full configuration of an existing profile. Update proxy profile submits only the fields that change, and can move the profile to another free address from that pool.
Deactivate proxy profile stops an existing profile. Activate proxy profile starts that profile again. A profile created in the quick start becomes active without that call. Redeploy proxy profile sends the current configuration again.
Get ACL limit shows how many rules the account can hold and how many it currently uses.