edgeport
v0.1.0Zones, DNS, cache purge, Workers, KV, and R2 through the Cloudflare API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_accounts
List Cloudflare accounts accessible with the API token.
| Parameter | Type | Description |
|---|---|---|
per_page | integer | Maximum number of accounts to return per page of results. |
list_zones
List zones, optionally filtered by account or name.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account identifier to restrict the zone list to zones in that account. |
name | string | Zone (domain) name to filter the zone list by exact name match. |
per_page | integer | Maximum number of zones to return per page of results. |
get_zone
Get one zone by its id.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Identifier of the Cloudflare zone to retrieve. |
list_dns_records
List DNS records in a zone, optionally filtered by type or name.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Identifier of the zone whose DNS records should be listed. |
name | string | DNS record name to filter records by. |
per_page | integer | Maximum number of DNS records to return per page of results. |
type | string | DNS record type (such as A, AAAA, CNAME, or MX) to filter records by. |
create_dns_record
Create a DNS record in a zone.
| Parameter | Type | Description |
|---|---|---|
content * | string | Content of the DNS record, such as an IP address or target hostname. |
name * | string | Name of the DNS record, such as a hostname within the zone. |
type * | string | DNS record type to create, such as A, AAAA, CNAME, or MX. |
zone_id * | string | Identifier of the zone in which to create the DNS record. |
comment | string | Optional comment describing the DNS record. |
proxied | boolean | Whether Cloudflare should proxy traffic through its network for this record. |
ttl | integer | Time to live in seconds for the DNS record, where 1 means automatic. |
update_dns_record
Update a DNS record in a zone.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | Identifier of the DNS record to update. |
zone_id * | string | Identifier of the zone containing the DNS record to update. |
comment | string | New comment describing the DNS record. |
content | string | New content for the DNS record, such as an IP address or target hostname. |
name | string | New name for the DNS record, such as a hostname within the zone. |
proxied | boolean | Whether Cloudflare should proxy traffic through its network for this record. |
ttl | integer | New time to live in seconds for the DNS record, where 1 means automatic. |
type | string | New DNS record type, such as A, AAAA, CNAME, or MX. |
delete_dns_record
Delete a DNS record from a zone.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | Identifier of the DNS record to delete. |
zone_id * | string | Identifier of the zone containing the DNS record to delete. |
purge_cache
Purge cached content for a zone, by file, tag, host, or everything.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Identifier of the zone whose cache should be purged. |
files | array | List of URLs whose cached content should be purged. |
hosts | array | List of hostnames whose cached content should be purged. |
purge_everything | boolean | Whether to purge all cached content for the zone. |
tags | array | List of cache tags whose associated cached content should be purged. |
list_workers_scripts
List Worker scripts in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Identifier of the account whose Worker scripts should be listed, falling back to CLOUDFLARE_ACCOUNT_ID when omitted. |
get_worker_script
Get a Worker script's metadata and shape only, without its body.
| Parameter | Type | Description |
|---|---|---|
script_name * | string | Name of the Worker script to inspect. |
account_id | string | Identifier of the account containing the Worker script, falling back to CLOUDFLARE_ACCOUNT_ID when omitted. |
list_kv_namespaces
List Workers KV namespaces in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Identifier of the account whose KV namespaces should be listed, falling back to CLOUDFLARE_ACCOUNT_ID when omitted. |
list_r2_buckets
List R2 buckets in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Identifier of the account whose R2 buckets should be listed, falling back to CLOUDFLARE_ACCOUNT_ID when omitted. |