---
updatedAt: 2025-09-16T00:27:17.000Z
agentTools:
  projectIndex: https://docs.cgn.portal.checkpoint.com/llms.txt
---

# Get Function Rules

# OpenAPI definition

```json
{
  "info": {
    "title": "Workload Protection",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.dome9.com/",
      "description": "US region"
    },
    {
      "url": "https://api.{region}.dome9.com/",
      "description": "Other regions",
      "variables": {
        "region": {
          "enum": [
            "eu1",
            "ap1",
            "ap2",
            "ap3",
            "cace1"
          ],
          "default": "eu1"
        }
      }
    }
  ],
  "paths": {
    "/v2/serverless/functions/{id}/rules": {
      "get": {
        "tags": [
          "Serverless"
        ],
        "operationId": "Serverless_GetFunctionRules_get_/v2/serverless/functions/{id}/rules",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cloudProvider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "aws",
                "azure",
                "kubernetes"
              ]
            }
          },
          {
            "name": "withPayloadObject",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Dome9.Web.Api.Serverless.ServerlessRuleViewModel"
                  }
                }
              }
            }
          }
        },
        "description": "",
        "summary": "Get Function Rules"
      }
    }
  },
  "tags": [
    {
      "name": "Serverless"
    }
  ],
  "components": {
    "schemas": {
      "Dome9.Web.Api.Serverless.ServerlessRuleViewModel": {
        "type": "object",
        "properties": {
          "scope": {
            "enum": [
              "Account",
              "Function",
              "FunctionGroup",
              "FunctionVersion",
              "FunctionApp"
            ],
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "payloadsType": {
            "enum": [
              "String",
              "SignatureName"
            ],
            "type": "string"
          },
          "target": {
            "enum": [
              "Host",
              "Ip",
              "File",
              "Process",
              "Api",
              "Http",
              "Io",
              "Signature"
            ],
            "type": "string"
          },
          "payloads": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "functions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```