CubePathDOCS
Firewall

Get Server Firewall Groups

get/firewall/{server_type}/{server_id}/groups

Firewall groups assigned to a VPS or baremetal server and the state of the last sync.

Groups are listed in priority order. For a baremetal server server_id is its uuid, and the answer carries the uuid in server_id, baremetal_id and uuid.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

server_type*FirewallServerType
Valores"vps""baremetal"
server_id*string

VPS number, or baremetal uuid, according to server_type

Rangolength ≤ 36

Respuestas

Successful Response

application/json

server_type*string
server_id*integer | string
Uno de
integer
string
vps_id?integer | null
baremetal_id?string | null
uuid?string | null
firewall_groups*array<FirewallGroupRef>
Propiedades (3)
id*integer
name*string
enabled*boolean
last_sync?FirewallSyncOut | null

Last firewall sync of the server, without host or switch details.

Propiedades (3)
status*string
updated_at?string | null
Formatodate-time
detail?string | null