Networking
Firewall Device View
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
ID of the Firewall to access.
ID of the Firewall Device to access.
Request Samples
- Shell
- CLI
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/networking/firewalls/123/devices/456
Response Samples
- 200
- default
{
"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.
When this Device was created.
When this Device was last updated.
The Device's unique ID
The Linode service that this Firewall has been applied to.
The entity's ID
The entity's label.
The entity's type.
The URL you can use to access this entity.
default: Error
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.
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
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
ID of the Firewall to access.
ID of the Firewall Device to access.
Request Samples
- Shell
- CLI
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4/networking/firewalls/123/devices/456
Response Samples
- 200
- default
{}
Responses
200: Delete Successful.
default: Error
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.
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.