Method: securityPolicies.get

globalOperations.list all of the ordered rules present in a single specified policy.

HTTP request

GET https://compute.googleapis.com/compute/v1/projects/{project}/global/securityPolicies/{resourceId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

resourceId

string

Name of the security policy to get.

Request body

The request body must be empty.

Response body

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

Represents a Google Cloud Armor security policy resource.

Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview.

JSON representation
{
  "id": string,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "rules": [
    {
      "description": string,
      "priority": integer,
      "match": {
        "expr": {
          "expression": string,
          "title": string,
          "description": string,
          "location": string
        },
        "versionedExpr": enum,
        "config": {
          "srcIpRanges": [
            string
          ]
        }
      },
      "action": string,