CorefinityCorefinityDocs
Open the Control PanelControl Panel
Firewall · 15 of 20

List firewall presets

Answers the presets you can attach: the published address ranges of common services, which Corefinity keeps up to date. A preset opens SSH only.

GET/api/firewall/presets

Returns

200 The presets.

Fields of the 200 answer
presetsarray of objectsRequired
Fields of each item
descriptionstring or nullRequired
idintegerRequired

At least 1.

namestringRequired
ranges_countintegerRequired

How many ranges the preset holds.

slugstringRequired

The preset's short name. Detaching it asks you to send this back.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403scope_requiredUse a token with the scope named in scope.
404feature_offThis feature is not on for your organisation yet.
404not_foundNot found.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/firewall/presets \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "presets": [
    {
      "description": "The addresses Bitbucket Pipelines builds connect from.",
      "id": 12,
      "name": "Bitbucket Pipelines",
      "ranges_count": 2,
      "slug": "bitbucket-pipelines"
    },
    {
      "description": "The addresses GitHub Actions runners connect from.",
      "id": 14,
      "name": "GitHub Actions",
      "ranges_count": 1,
      "slug": "github-actions"
    }
  ]
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT