Firewall Rule

Create a new firewall rule

post/project/{project_id}/location/{location}/firewall/{firewall_reference}/firewall-rule

Request body

cidrstring required

CIDR or private subnet id or name to allow

firewall_idstring
port_rangestring

Port range to allow

protocolstring

Protocol to allow (tcp or udp, default tcp)

descriptionstring

Description to use for the firewall rule

project_idstring

Response

A Firewall Rule or array of them

OR

Example response

{
  "id": "fraz0q3vbrpa7pkg7zbmah9csn"
}

Changes

Changed in 3 of the 59 revisions of this API.56

    • added the new optional request property

      new-optional-request-property

    • added the required property //// to the response with the status

      response-required-property-added

    • added the required property // to the response with the status

      response-required-property-added

    • the response's body type changed from object to no type for status

      response-body-type-changed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • added subschema #2 to the response body anyOf list for the response status

      response-body-any-of-added

    • added the new optional request property

      new-optional-request-property

    • added the required property to the response with the status

      response-required-property-added