cURL
curl --request POST \ --url https://api.gcore.com/security/iaas/v2/profiles \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "profile_template": 123, "fields": [ { "base_field": 123, "field_value": {} } ], "ip_address": "<string>", "site": "<string>" } '
{ "id": 123, "profile_template": { "id": 123, "name": "<string>", "fields": [ { "id": 123, "name": "<string>", "description": "<string>", "field_type": "int", "required": true, "default": "<string>", "validation_schema": {} } ], "version": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created": "2023-11-07T05:31:56Z", "description": "<string>", "base_template": 123, "template_sifter": "<string>" }, "fields": [ { "id": 123, "name": "<string>", "description": "<string>", "field_type": "<string>", "required": true, "default": "<string>", "base_field": 123, "validation_schema": {}, "field_value": {} } ], "site": "<string>", "options": { "bgp": true, "active": true, "price": "<string>" }, "protocols": [ {} ], "status": {}, "plan": "<string>", "ip_address": "<string>" }
Create protection profile. Protection is enabled at the same time as profile is created
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
1
2
Show child attributes
50
"123.43.2.10"
"123.65.9.5"
"ED"
"DC3"
"10.32.5.12"
"195.23.43.64"
Was this page helpful?