今すぐ始める
BunnyCDN Tools

Bunnycdn Add Update Edge Rule

Aident Loadout を通じて BunnyCDN Tools の Bunnycdn Add Update Edge Rule を使用します。実行前に入力、出力、設定、料金、リスクを確認できます。

書き込み Actionリスクレベル 2/5API キー接続

プロバイダーの説明

Tool to add or update edge rules in a BunnyCDN pull zone for advanced traffic control. Edge rules allow conditional request processing based on triggers like URL patterns, headers, country codes, or IP addresses. Each rule can perform actions like forcing SSL, redirecting, setti…

料金と制限

料金
無料 Action
統合支払い
現在未対応

入力

  • Guidstring
    The unique GUID of the edge rule. Provide this to update an existing rule. Leave empty to create a new rule. The API returns this GUID when creating a rule.
  • Enabledboolean
    必須
    Whether the edge rule is currently active. Set to true to enable the rule immediately, false to create it in disabled state.
  • ReadOnlyboolean
    Whether the edge rule is read-only and cannot be modified or deleted. Typically used for system-generated rules.
  • Triggersarray
    必須
    List of trigger conditions that determine when this edge rule executes. At least one trigger is required. Common use: URL trigger with pattern '/*' matches all requests.
  • ActionTypestring
    必須
    The main action type of the edge rule. Common values: force_ssl (redirect HTTP to HTTPS), redirect (URL redirects), block_request (block access), set_response_header (add/modify response headers), override_cache_time (set cache TTL). See the ActionType enum for all 17 supported…
  • OrderIndexinteger
    Execution priority order. Lower numbers execute first. Use this to control the sequence of multiple edge rules. If not specified, the rule is added at the end.
  • Descriptionstring
    Human-readable description of what this edge rule does. Helps identify the rule's purpose when managing multiple rules.
  • ExtraActionsarray
    Additional actions to execute when the edge rule triggers. Allows combining multiple actions (e.g., set header AND override cache time) in one rule.
  • pull_zone_idinteger
    必須
    The ID of the Pull Zone where the Edge Rule will be created or updated. Use BUNNYCDN_GET_PULL_ZONE_LIST to get valid IDs.
  • ActionParameter1string
    First action parameter. Meaning depends on ActionType: for redirect = destination URL, for set_response_header = header name, for override_cache_time = TTL in seconds, for set_status_code = status code (e.g., '404').
  • ActionParameter2string
    Second action parameter. Meaning depends on ActionType: for redirect = redirect type ('301' or '302'), for set_response_header = header value.
  • ActionParameter3string
    Third action parameter. Meaning depends on ActionType. Rarely used, reserved for future action types.

確認できる出力

  • data
    必須
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必須
    Whether or not the action execution was successful or not

この Action を使用する Skills

関連ユースケース

検証済みの関連ユースケースはまだリンクされていません。

公式ソース

プロバイダーのソース