Get a filter

Fetches the details of a filter.

/zones/{zone_identifier}/filters/{id}

get

Filters

filters-get-a-filter

Debug "planAvailability"

{
  "business": true,
  "enterprise": true,
  "free": true,
  "pro": true
}

Debug "tokenPermissions"

null

Debug "parameters"

[
  {
    "in": "path",
    "name": "id",
    "required": true,
    "schema": {
      "description": "The unique identifier of the filter.",
      "example": "372e67954025e0ba6aaa6d586b9e0b61",
      "maxLength": 32,
      "minLength": 32,
      "readOnly": true,
      "type": "string"
    }
  },
  {
    "in": "path",
    "name": "zone_identifier",
    "required": true,
    "schema": {
      "description": "Identifier",
      "example": "023e105f4ecef8ad9ca31a8372d0c353",
      "maxLength": 32,
      "readOnly": true,
      "type": "string"
    }
  }
]

Debug "requestBody"

null

Debug "responses"

{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "allOf": [
            {
              "allOf": [
                {
                  "properties": {
                    "errors": {
                      "example": [],
                      "items": {
                        "properties": {
                          "code": {
                            "minimum": 1000,
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ],
                        "type": "object",
                        "uniqueItems": true
                      },
                      "type": "array"
                    },
                    "messages": {
                      "example": [],
                      "items": {
                        "properties": {
                          "code": {
                            "minimum": 1000,
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ],
                        "type": "object",
                        "uniqueItems": true
                      },
                      "type": "array"
                    },
                    "result": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "items": {},
                          "type": "array"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "success": {
                      "description": "Whether the API call was successful",
                      "enum": [
                        true
                      ],
                      "example": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "errors",
                    "messages",
                    "result"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "result": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "nullable": true
                    }
                  }
                }
              ],
              "type": "object"
            },
            {
              "properties": {
                "result": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "description": {
                              "description": "An informative summary of the filter.",
                              "example": "Restrict access from these browsers on this address range.",
                              "maxLength": 500,
                              "type": "string"
                            },
                            "expression": {
                              "description": "The filter expression. For more information, refer to [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/).",
                              "example": "(http.request.uri.path ~ \".*wp-login.php\" or http.request.uri.path ~ \".*xmlrpc.php\") and ip.addr ne 172.16.22.155",
                              "type": "string"
                            },
                            "id": {
                              "description": "The unique identifier of the filter.",
                              "example": "372e67954025e0ba6aaa6d586b9e0b61",
                              "maxLength": 32,
                              "minLength": 32,
                              "readOnly": true,
                              "type": "string"
                            },
                            "paused": {
                              "description": "When true, indicates that the filter is currently paused.",
                              "example": false,
                              "type": "boolean"
                            },
                            "ref": {
                              "description": "A short reference tag. Allows you to select related filters.",
                              "example": "FIL-100",
                              "maxLength": 50,
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "required": [
                            "id",
                            "expression",
                            "paused"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "nullable": true
                    }
                  ]
                }
              },
              "required": [
                "result"
              ],
              "type": "object"
            }
          ]
        }
      }
    },
    "description": "Get a filter response"
  },
  "4xx": {
    "content": {
      "application/json": {
        "schema": {
          "allOf": [
            {
              "allOf": [
                {
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "example": [],
                          "items": {
                            "properties": {
                              "code": {
                                "minimum": 1000,
                                "type": "integer"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "code",
                              "message"
                            ],
                            "type": "object",
                            "uniqueItems": true
                          },
                          "type": "array"
                        },
                        "messages": {
                          "example": [],
                          "items": {
                            "properties": {
                              "code": {
                                "minimum": 1000,
                                "type": "integer"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "code",
                              "message"
                            ],
                            "type": "object",
                            "uniqueItems": true
                          },
                          "type": "array"
                        },
                        "result": {
                          "anyOf": [
                            {
                              "type": "object"
                            },
                            {
                              "items": {},
                              "type": "array"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "success": {
                          "description": "Whether the API call was successful",
                          "enum": [
                            true
                          ],
                          "example": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "success",
                        "errors",
                        "messages",
                        "result"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "result": {
                          "anyOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "string"
                            }
                          ],
                          "nullable": true
                        }
                      }
                    }
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "result": {
                      "oneOf": [
                        {
                          "allOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "description": {
                                  "description": "An informative summary of the filter.",
                                  "example": "Restrict access from these browsers on this address range.",
                                  "maxLength": 500,
                                  "type": "string"
                                },
                                "expression": {
                                  "description": "The filter expression. For more information, refer to [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/).",
                                  "example": "(http.request.uri.path ~ \".*wp-login.php\" or http.request.uri.path ~ \".*xmlrpc.php\") and ip.addr ne 172.16.22.155",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "The unique identifier of the filter.",
                                  "example": "372e67954025e0ba6aaa6d586b9e0b61",
                                  "maxLength": 32,
                                  "minLength": 32,
                                  "readOnly": true,
                                  "type": "string"
                                },
                                "paused": {
                                  "description": "When true, indicates that the filter is currently paused.",
                                  "example": false,
                                  "type": "boolean"
                                },
                                "ref": {
                                  "description": "A short reference tag. Allows you to select related filters.",
                                  "example": "FIL-100",
                                  "maxLength": 50,
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "required": [
                                "id",
                                "expression",
                                "paused"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "nullable": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "type": "object"
                }
              ]
            },
            {
              "properties": {
                "errors": {
                  "allOf": [
                    {
                      "example": [],
                      "items": {
                        "properties": {
                          "code": {
                            "minimum": 1000,
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ],
                        "type": "object",
                        "uniqueItems": true
                      },
                      "type": "array"
                    }
                  ],
                  "example": [
                    {
                      "code": 7003,
                      "message": "No route for the URI"
                    }
                  ],
                  "minLength": 1
                },
                "messages": {
                  "allOf": [
                    {
                      "example": [],
                      "items": {
                        "properties": {
                          "code": {
                            "minimum": 1000,
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ],
                        "type": "object",
                        "uniqueItems": true
                      },
                      "type": "array"
                    }
                  ],
                  "example": []
                },
                "result": {
                  "enum": [
                    null
                  ],
                  "nullable": true,
                  "type": "object"
                },
                "success": {
                  "description": "Whether the API call was successful",
                  "enum": [
                    false
                  ],
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "errors",
                "messages",
                "result"
              ],
              "type": "object"
            }
          ]
        }
      }
    },
    "description": "Get a filter response failure"
  }
}

Debug "security"

[
  {
    "api_email": [],
    "api_key": []
  },
  {
    "api_token": []
  }
]