Method: firewallPolicies.getRule

Gets a rule of the specified priority.

HTTP request

GET https://compute.googleapis.com/compute/v1/locations/global/{resourceId=firewallPolicies/*}/getRule

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
resourceId

string

Name of the firewall policy to which the queried rule belongs.

Query parameters

Parameters
priority

integer

The priority of the rule to get from the firewall policy.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).

JSON representation
{
  "description": string,
  "priority": int