cURL
curl --request PATCH \ --url https://api.gcore.com/security/iaas/v2/profiles/{id}/recreate \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "profile_template": 123, "ip_address": "<string>", "fields": [ { "base_field": 123, "field_value": "<unknown>" } ], "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": "<unknown>" } ], "site": "<string>", "options": { "bgp": true, "active": true, "price": "<string>" }, "protocols": [ {} ], "status": {}, "plan": "<string>", "ip_address": "<string>" }
Recreate profile with another profile template (for other cases use detail API)
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
Required for Universal template only. Optional for all others.
50
Show child attributes
Region where the protection profiles will be deployed
100
30
255
int
bool
str
Was this page helpful?