Networking

Firewall Device View

get
https://api.linode.com/v4/networking/firewalls/{firewallId}/devices/{deviceId}

Returns information for a Firewall Device, which assigns a Firewall to a Linode service (referred to as the Device's entity). Currently, only Devices with an entity of type linode are accepted.

Path Parameters

firewallId
Required
integer

ID of the Firewall to access.

deviceId
Required
integer

ID of the Firewall Device to access.

Request Samples

curl -H "Authorization: Bearer $TOKEN" \
    https://api.linode.com/v4/networking/firewalls/123/devices/456

Response Samples

{
  "created": "2018-01-01T00:01:01",
  "updated": "2018-01-02T00:01:01",
  "id": 1234,
  "entity": {
    "id": 123,
    "label": "my-linode",
    "type": "linode",
    "url": "/v4/linode/instances/123"
  }
}

Responses

200: The requested Firewall Device.

created
Filterable
string <date-time>

When this Device was created.

updated
Filterable
string <date-time>

When this Device was last updated.

id
Filterable
integer

The Device's unique ID

entity
object

The Linode service that this Firewall has been applied to.

id
integer

The entity's ID

label
string

The entity's label.

type
string
Enum: "linode"

The entity's type.

url
string

The URL you can use to access this entity.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.

Firewall Device Delete

delete
https://api.linode.com/v4/networking/firewalls/{firewallId}/devices/{deviceId}

Removes a Firewall Device, which removes a Firewall from the Linode service it was assigned to by the Device. This will remove all of the Firewall's Rules from the Linode service. If any other Firewalls have been assigned to the Linode service, then those Rules will remain in effect.

A firewall_device_remove Event is generated when the Firewall Device is removed successfully.

Path Parameters

firewallId
Required
integer

ID of the Firewall to access.

deviceId
Required
integer

ID of the Firewall Device to access.

Request Samples

curl -H "Content-Type: application/json" \
     -H "Authorization: Bearer $TOKEN" \
    -X DELETE \
    https://api.linode.com/v4/networking/firewalls/123/devices/456

Response Samples

{}

Responses

200: Delete Successful.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.