v1
latestSwagger 2.02026-08-04232286653.5 KBVPC Firewall Rules
Creates a VPC firewall rule in the project and returns the async operation.
post/projects/{project_id}/networking/vpc-firewall-rules
Path parameters
project_idstring required
Request body
Example request
{
"action": "allow",
"destinations": [
{
"cidr": "10.1.2.3/24",
"resource_id": "306aa10d-5570-4e47-88c9-46bf11bd8737"
}
],
"direction": "ingress",
"name": "my-firewall-rule",
"sources": [
{
"cidr": "10.1.2.3/24",
"resource_id": "306aa10d-5570-4e47-88c9-46bf11bd8737"
}
],
"vpc_network_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1"
}Response
Example response
{
"operation": {
"completed_at": "2021-12-03T19:59:34Z",
"metadata": "{}",
"operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
"result": "{}",
"started_at": "2021-12-03T19:58:34Z",
"state": "IN_PROGRESS"
}
}