Firewall Bindings

Manage bindings that apply firewalls to enclaves, providers, or networks.

Firewall Bindings object

Attributes

object

String

id

String

target_type

Enum

firewall

Object

target

ObjectNullable

created_at

Date
{
"object": "network.firewall.binding",
"target_type": "enclave",
"firewall": {
"object": "network.firewall#preview"
},
"target": {
"object": "network.firewall.binding.target#preview",
"type": "enclave"
}
}

List firewall bindings

Returns a paginated list of firewall bindings.

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional

id

UnionOptional

firewall_id

UnionOptional

enclave_id

UnionOptional

provider_id

UnionOptional

network_id

UnionOptional

target_type

UnionOptional

created_at

ObjectOptional

Filter firewall binding creation time by date range

GEThttp://api.metorial.com/firewall-bindings
curl -X GET "https://api.metorial.com/firewall-bindings" \
-H "Authorization: Bearer metorial_sk_..."

Get firewall binding

Retrieves a specific firewall binding by ID.

URL Parameters

firewall_binding_id

String

The unique identifier for the firewall_binding

GEThttp://api.metorial.com/firewall-bindings/:firewall_binding_id
curl -X GET "https://api.metorial.com/firewall-bindings/fir_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."

Create firewall binding

Creates a binding that applies a firewall to a target.

Request Body

firewall_id

String

target_type

Enum

enclave_id

StringOptional

provider_id

StringOptional

network_id

StringOptional
POSThttp://api.metorial.com/firewall-bindings
curl -X POST "https://api.metorial.com/firewall-bindings" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"firewall_id": "example_firewall_id",
"target_type": "enclave",
"enclave_id": "example_enclave_id",
"provider_id": "example_provider_id",
"network_id": "example_network_id"
}'

Delete firewall binding

Deletes a firewall binding.

URL Parameters

firewall_binding_id

String

The unique identifier for the firewall_binding

DELETEhttp://api.metorial.com/firewall-bindings/:firewall_binding_id
curl -X DELETE "https://api.metorial.com/firewall-bindings/fir_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."