Skip to documentation
DocumentationAPI referenceRename a firewall
POSTBearer token

Rename a firewall

/api/v1/firewalls/rename

Rename the locally saved name of one editable team firewall. This does not call Contabo.

Request example

cURL
curl "https://tovahub.com/api/v1/firewalls/rename" -X POST \
  -H "Authorization: Bearer $TOVAHUB_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "id": "507f1f77bcf86cd799439012",
  "name": "my-firewall"
}'

Examples only. No requests are sent from this page.

Parameters

idJSON body · Required

string

A 24-character ID for an editable firewall owned by the current team.

nameJSON body · Required

string

Customer-selected local firewall name, 1–80 characters; independent of the generated Contabo name.

Response

HTTP status 200

Return the firewall after saving its local name. No supplier request is made.

_idstring (ObjectId)

Local firewall identifier.

originIdstring (optional)

Supplier firewall identifier.

namestring

Customer-selected name saved locally; independent of the Contabo name.

rulesarray

Saved firewall rules.

serverCountnumber

Number of current-team servers attached to this firewall.