cloudflare-dns-mcp_create_redirect
Create and configure a single URL redirect (Page Rule) for a specified zone, including source and target URLs, redirect type, query string preservation, priority, and status.
Instructions
Create a single URL redirect (Page Rule) for the given zone
Input Schema
Name | Required | Description | Default |
---|---|---|---|
preserve_query_string | No | ||
priority | No | ||
redirect_type | No | ||
source_url | Yes | ||
status | No | active | |
target_url | Yes | ||
zone_name | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"preserve_query_string": {
"default": true,
"type": "boolean"
},
"priority": {
"type": "number"
},
"redirect_type": {
"default": 301,
"type": "number"
},
"source_url": {
"minLength": 1,
"type": "string"
},
"status": {
"default": "active",
"enum": [
"active",
"disabled"
],
"type": "string"
},
"target_url": {
"minLength": 1,
"type": "string"
},
"zone_name": {
"type": "string"
}
},
"required": [
"zone_name",
"source_url",
"target_url"
],
"type": "object"
}