Cloudflare 中文文档
Rules
Rules
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Bulk Redirects API JSON objects

​​ Bulk Redirect Rule

A fully populated Bulk Redirect Rule object has the following JSON structure:

The JSON object properties must comply with the following:

  • action must be redirect

  • action_parameters must contain a from_list object with additional settings.

  • from_list must contain the following properties:

    • name: The name of an existing Bulk Redirect List to associate with the current Bulk Redirect Rule.
    • key: An expression that defines the value that will be matched against the configured URL redirect’s source URL values, following the rules of the URL matching algorithm. Refer to Concepts for more information.
  • expression must reference the request field used in the key property. Refer to Concepts for more information.

​​ URL redirect list item

A fully populated URL redirect list item object has the following JSON structure:

For details on the redirect object properties, refer to URL redirect parameters.