Skip to content
DocsOpenAPI spec

    Firewall Rules

    Create Firewall Rule
    $ nirvana networking:firewall-rules create
    POST/v1/networking/vpcs/{vpc_id}/firewall_rules
    Firewall Rule Details
    $ nirvana networking:firewall-rules get
    GET/v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}
    Update Firewall Rule
    $ nirvana networking:firewall-rules update
    PATCH/v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}
    Delete Firewall Rule
    $ nirvana networking:firewall-rules delete
    DELETE/v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}
    List Firewall Rules
    $ nirvana networking:firewall-rules list
    GET/v1/networking/vpcs/{vpc_id}/firewall_rules
    ModelsExpand Collapse
    firewall_rule: object { id, action, created_at, 11 more }

    Firewall rule details.

    id: string

    Unique identifier for the Firewall Rule.

    action: "allow" or "deny"

    What the Firewall Rule does with the traffic it matches. Rules you create allow traffic.

    "allow"
    "deny"
    created_at: string

    When the Firewall Rule was created.

    destination_address: string

    Destination address of the Firewall Rule. For an ingress rule, either VPC CIDR or VM in VPC.

    destination_ports: array of string

    Destination ports of the Firewall Rule.

    direction: "ingress" or "egress"

    Direction of the traffic the Firewall Rule matches. Rules you create are ingress rules.

    "ingress"
    "egress"
    managed_by: object { id, type }

    What manages the resource, or null when nothing does. A managed resource can be read but not changed.

    id: string

    ID of the thing managing the resource. For a vpc_egress_policy, the ID of the VPC.

    type: "sandbox_cluster" or "vpc_egress_policy"

    Kind of thing managing the resource. A vpc_egress_policy manages the Firewall Rules that block outbound traffic to ports commonly used for abuse.

    "sandbox_cluster"
    "vpc_egress_policy"
    name: string

    Name of the Firewall Rule.

    protocol: "tcp" or "udp"

    Protocol of the Firewall Rule.

    "tcp"
    "udp"
    source_address: string

    Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask of 0. For an egress rule, the VPC CIDR.

    status: "pending" or "creating" or "updating" or 5 more

    Status of the resource.

    "pending"
    "creating"
    "updating"
    "ready"
    "deleting"
    "deleted"
    "error"
    "suspended"
    tags: array of string

    Tags to attach to the Firewall Rule.

    updated_at: string

    When the Firewall Rule was updated.

    vpc_id: string

    ID of the VPC the Firewall Rule belongs to.

    firewall_rule_list: object { items, pagination }
    items: array of FirewallRule { id, action, created_at, 11 more }
    id: string

    Unique identifier for the Firewall Rule.

    action: "allow" or "deny"

    What the Firewall Rule does with the traffic it matches. Rules you create allow traffic.

    "allow"
    "deny"
    created_at: string

    When the Firewall Rule was created.

    destination_address: string

    Destination address of the Firewall Rule. For an ingress rule, either VPC CIDR or VM in VPC.

    destination_ports: array of string

    Destination ports of the Firewall Rule.

    direction: "ingress" or "egress"

    Direction of the traffic the Firewall Rule matches. Rules you create are ingress rules.

    "ingress"
    "egress"
    managed_by: object { id, type }

    What manages the resource, or null when nothing does. A managed resource can be read but not changed.

    id: string

    ID of the thing managing the resource. For a vpc_egress_policy, the ID of the VPC.

    type: "sandbox_cluster" or "vpc_egress_policy"

    Kind of thing managing the resource. A vpc_egress_policy manages the Firewall Rules that block outbound traffic to ports commonly used for abuse.

    "sandbox_cluster"
    "vpc_egress_policy"
    name: string

    Name of the Firewall Rule.

    protocol: "tcp" or "udp"

    Protocol of the Firewall Rule.

    "tcp"
    "udp"
    source_address: string

    Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask of 0. For an egress rule, the VPC CIDR.

    status: "pending" or "creating" or "updating" or 5 more

    Status of the resource.

    "pending"
    "creating"
    "updating"
    "ready"
    "deleting"
    "deleted"
    "error"
    "suspended"
    tags: array of string

    Tags to attach to the Firewall Rule.

    updated_at: string

    When the Firewall Rule was updated.

    vpc_id: string

    ID of the VPC the Firewall Rule belongs to.