Skip to main content
A protected network is a customer prefix submitted for filtering. A protection profile holds the rules for that prefix and is created from a protection template. The template named Basic is the starting set. BGP announcements then enable or disable announcement of a prefix that is already on the account. Event logs return the attack events recorded for the account. The host is https://api.gcore.com. Protected networks, protection profiles, and protection templates use /security/sifter/v3. BGP announcements use /security/sifter/v2. Event logs use /security/notifier/v1. Creating a network returns status and lifecycle_status of PENDING. Review of the prefix, the AS number, and the Letter of Authorization continues in network submission. After approval, attach the profile to the network.

Quick start

An API token authorizes the calls. Use Postman stores that token on the DDoS Protection collection. Run one scenario in a single shell, because later commands read variables set by earlier ones.
The calls find the Basic template, create a protection profile from it, and submit the prefix. The network is not filtering traffic at the end of these calls. Its status is PENDING.
1

Find the Basic template

The protection template list includes the template named Basic. Its id is template_id. The ACL list and Rate limiter low fields provide the template field IDs needed to configure the protection profile.
Try it bar for List protection templates with Send
Authorization field on List protection templates
A response that contains Basic looks like this. The ids differ by account:
Copy those three ids into the shell:
2

Create the protection profile

The protection profile request stores the profile name, the Basic template id, one TCP rule, and a rate-limiter cap. The TCP rule uses policy tcp-server on port 80 and sits ahead of the four Basic catch-all rules. The rate-limiter value is an integer from 1 to 50.
Try it bar for Create protection profile with Send
name and template_id on Create protection profile
A successful request returns the new profile id:
3

Submit the network

The protected network request submits an IPv4 prefix, the AS number, and a Letter of Authorization in PDF. Replace the example network and AS number with the prefix you own and its corresponding AS number. Provide a valid Letter of Authorization as loa.pdf.
Try it bar for Create protected network with Send
files, network, and as_number on Create protected network
The response leaves both statuses at PENDING:
PROFILE_ID is not sent here. The profile is attached after the submission is approved.