API's 『firewall-device-create』document can't working.

API Document:

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

Request body
{
"type": "linode",
"id": {instance_id}
}


Response body

{
"errors": [
{
"reason": "Not found"
}
]
}

1 Reply

firewallid should be a number id of a firewall you create in Cloud Firewall, it's not literally "{firewallId}"

So first create a firewall if you have not made one

Then use the API firewall list to find the number id of the firewall you created:

https://www.linode.com/docs/api/networking/#firewalls-list

Finally in your API replace {firewallId} with the id number of the firewall.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct