Skip to main content
PUT
/
security
/
v2
/
profiles
/
{id}
/
recreate
Recreate profile
curl --request PUT \
  --url https://api.gcore.com/security/v2/profiles/{id}/recreate \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "profile_template": 123,
  "ip_address": "<string>",
  "provider": "sifter",
  "fields": [
    {
      "value": "<string>",
      "field_value": "<any>",
      "base_field": 123
    }
  ],
  "site": "<string>",
  "management_type": "static"
}'
{
  "id": 123,
  "profile_template": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "fields": [
      {
        "id": 123,
        "name": "<string>",
        "description": "<string>",
        "field_type": "int",
        "required": true,
        "default": "<string>",
        "validation_schema": "<any>"
      }
    ],
    "base_template": 123,
    "version": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created": "2023-11-07T05:31:56Z",
    "allow_merge": true
  },
  "ip_address": "<string>",
  "fields": [
    {
      "id": 123,
      "name": "<string>",
      "description": "<string>",
      "field_type": "<string>",
      "required": true,
      "default": "<string>",
      "value": "<string>",
      "field_value": "<any>",
      "base_field": 123,
      "validation_schema": "<any>"
    }
  ],
  "site": "<string>",
  "options": {
    "bgp": true,
    "active": true,
    "price": "<string>"
  },
  "protocols": [
    {}
  ],
  "provider": "sifter",
  "status": {},
  "plan": "<string>",
  "management_type": "static"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

Body

fields
object[]
required
profile_template
integer | null
ip_address
string | null

Required for Universal template only. Optional for all others.

provider
enum<string>

* sifter - Sifter

Available options:
sifter
site
string

Region where the protection profiles will be deployed

management_type
enum<string>

* static - static * dynamic - dynamic

Available options:
static,
dynamic

Response

200 - application/json
id
integer
required
profile_template
object
required
ip_address
string
required
fields
object[]
required
site
string
required

Region where the protection profiles will be deployed

options
object
required
protocols
object[]
required
status
object
required
plan
string
required
provider
enum<string>

* sifter - Sifter

Available options:
sifter
management_type
enum<string>

* static - static * dynamic - dynamic

Available options:
static,
dynamic