{"slug":"tencentcloud-edgeone","title":"tencentcloud-edgeone","summary":"Manage Tencent Cloud EdgeOne (CDN + edge security). Use when the user asks to: list zones, purge CDN cache (URL / prefix / hostname / all), prefetch URLs to warm edges, check purge / prefetch task status, manage acceleration domains, list / create / delete EdgeOne DNS records, in","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-23T17:49:20.440815Z","repo":{"url":"https://github.com/AceDataCloud/Skills","stars":17,"forks":1,"license":null,"updatedAt":"2026-11-12T21:01:19Z"},"bodyHtml":"<hr>\n<h2>name: tencentcloud-edgeone\ndescription: |\nManage Tencent Cloud EdgeOne (CDN + edge security). Use when the user\nasks to: list zones, purge CDN cache (URL / prefix / hostname / all),\nprefetch URLs to warm edges, check purge / prefetch task status,\nmanage acceleration domains, list / create / delete EdgeOne DNS\nrecords, inspect WAF / security configuration. Backed by the official\ntencentcloud-sdk-python TEO client.\nlicense: Apache-2.0\nmetadata:\nauthor: acedatacloud\nversion: \"1.0\"\nconnections: [tencentcloud]</h2>\n<h1>Tencent Cloud EdgeOne (CDN + Security)</h1>\n<p>Manage EdgeOne zones — purge cache, prefetch URLs, manage DNS records on the zone, check WAF settings.</p>\n<blockquote>\n<p><strong>Setup:</strong> See <a href=\"../_shared/tencentcloud.md\">tencentcloud authentication</a>. The SDK reads <code>TENCENTCLOUD_SECRET_ID</code> / <code>TENCENTCLOUD_SECRET_KEY</code> from env. EdgeOne is global — <code>Region=\"\"</code> is fine.</p>\n</blockquote>\n<h2>CLI (preferred)</h2>\n<p>The skill ships <a href=\"scripts/edgeone.py\"><code>scripts/edgeone.py</code></a> — wraps zone discovery, purge / prefetch, task tracking, EdgeOne DNS records, and WAF inspection.</p>\n<pre><code># $SKILL_DIR can point at another skill loaded this turn — anchor on our own\n# script (re-run this at the top of every fresh-shell Bash block).\nEO=\"$SKILL_DIR/scripts/edgeone.py\"; [ -f \"$EO\" ] || EO=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/edgeone.py' 2&gt;/dev/null | head -1)\n[ -f \"$EO\" ] || { echo \"tencentcloud-edgeone script not found (SKILL_DIR=$SKILL_DIR)\" &gt;&amp;2; exit 1; }\n\npython3 $EO zones                                                  # list zones\npython3 $EO zone zone-xxxxxxxx                                     # one zone's details\npython3 $EO domains zone-xxxxxxxx                                  # acceleration domains\npython3 $EO purge zone-xxxxxxxx --urls https://hub.example.com/index.html\npython3 $EO purge zone-xxxxxxxx --prefixes https://hub.example.com/assets/\npython3 $EO purge zone-xxxxxxxx --hosts hub.example.com\npython3 $EO purge zone-xxxxxxxx --all                              # nuclear\npython3 $EO prefetch zone-xxxxxxxx --urls https://hub.example.com/ https://hub.example.com/chat\npython3 $EO purge-tasks zone-xxxxxxxx --status processing\npython3 $EO prefetch-tasks zone-xxxxxxxx\npython3 $EO dns zone-xxxxxxxx                                      # EdgeOne DNS records\npython3 $EO dns-create zone-xxxxxxxx --name sub --type CNAME --content origin.example.com\npython3 $EO dns-delete zone-xxxxxxxx &lt;record-id&gt;\npython3 $EO security zone-xxxxxxxx                                 # WAF / security cfg\npython3 $EO waf zone-xxxxxxxx\n</code></pre>\n<p>Purge / prefetch propagation is global but typically takes 30s–2min. Use <code>purge-tasks --status processing</code> to wait.</p>\n<h2>When to Use</h2>\n<ul>\n<li>List EdgeOne zones / acceleration domains</li>\n<li>Purge cache after a deploy (by URL, prefix, hostname, or whole zone)</li>\n<li>Prefetch URLs to warm edge nodes</li>\n<li>Track purge / prefetch task status</li>\n<li>Manage EdgeOne DNS records (zones managed by EdgeOne use the TEO API, not DNSPod)</li>\n<li>Inspect WAF / security config</li>\n</ul>\n<h2>Dependencies</h2>\n<pre><code>pip install tencentcloud-sdk-python\n</code></pre>\n<h2>Quick start</h2>\n<pre><code>import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.teo.v20220901 import teo_client, models\n\ncred = credential.EnvironmentVariableCredential().get_credential()\nclient = teo_client.TeoClient(cred, \"\")\n</code></pre>\n<h2>Workflows</h2>\n<h3>List zones</h3>\n<pre><code>req = models.DescribeZonesRequest()\nreq.Limit = 100\nresp = client.DescribeZones(req)\nfor z in resp.Zones:\n    print(z.ZoneId, z.ZoneName, z.Status, z.Type)\n</code></pre>\n<blockquote>\n<p>Zone IDs look like <code>zone-xxxxxxxx</code>. The <code>ZoneName</code> is the apex domain (e.g. <code>acedata.cloud</code>).</p>\n</blockquote>\n<h3>List acceleration domains in a zone</h3>\n<pre><code>req = models.DescribeAccelerationDomainsRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Limit = 100\nresp = client.DescribeAccelerationDomains(req)\nfor d in resp.AccelerationDomains:\n    print(d.DomainName, d.DomainStatus, d.OriginDetail.OriginType)\n</code></pre>\n<h3>Purge cache — by URL</h3>\n<pre><code>req = models.CreatePurgeTaskRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Type = \"purge_url\"\nreq.Targets = [\n    \"https://hub.example.com/index.html\",\n    \"https://hub.example.com/assets/main.css\",\n]\nresp = client.CreatePurgeTask(req)\nprint(\"Task:\", resp.JobId)\n</code></pre>\n<h3>Purge by hostname (entire host)</h3>\n<pre><code>req = models.CreatePurgeTaskRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Type = \"purge_host\"\nreq.Targets = [\"hub.example.com\"]\nclient.CreatePurgeTask(req)\n</code></pre>\n<h3>Purge by prefix (all URLs under a path)</h3>\n<pre><code>req = models.CreatePurgeTaskRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Type = \"purge_prefix\"\nreq.Targets = [\"https://hub.example.com/assets/\"]\nclient.CreatePurgeTask(req)\n</code></pre>\n<h3>Purge ALL cache for a zone (nuclear option)</h3>\n<pre><code># Confirm with the user — this re-fetches every cached object on next request,\n# spiking origin load.\nreq = models.CreatePurgeTaskRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Type = \"purge_all\"\nclient.CreatePurgeTask(req)\n</code></pre>\n<h3>Prefetch (pre-warm edges)</h3>\n<pre><code>req = models.CreatePrefetchTaskRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Targets = [\n    \"https://hub.example.com/\",\n    \"https://hub.example.com/chat\",\n]\nresp = client.CreatePrefetchTask(req)\nprint(\"Task:\", resp.JobId)\n</code></pre>\n<h3>Track task status</h3>\n<pre><code>req = models.DescribePurgeTasksRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Limit = 50\n# Optional: req.Filters = [{\"Name\": \"job-id\", \"Values\": [\"&lt;job-id&gt;\"]}]\nresp = client.DescribePurgeTasks(req)\nfor t in resp.Tasks:\n    print(t.JobId, t.Type, t.Status, t.CreateTime)\n\n# Same shape for DescribePrefetchTasks\n</code></pre>\n<h3>List EdgeOne DNS records on a zone</h3>\n<pre><code>req = models.DescribeDnsRecordsRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Limit = 100\nresp = client.DescribeDnsRecords(req)\nfor r in resp.DnsRecords:\n    print(r.RecordId, r.Name, r.Type, r.Content)\n</code></pre>\n<h3>Create an EdgeOne DNS record</h3>\n<pre><code>req = models.CreateDnsRecordRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.Name = \"sub.example.com\"\nreq.Type = \"CNAME\"\nreq.Content = \"origin.example.com\"\nreq.TTL = 600\nclient.CreateDnsRecord(req)\n</code></pre>\n<h3>Delete an EdgeOne DNS record</h3>\n<pre><code>req = models.DeleteDnsRecordsRequest()\nreq.ZoneId = \"zone-xxxxxxxx\"\nreq.RecordIds = [\"&lt;record-id&gt;\"]\nclient.DeleteDnsRecords(req)\n</code></pre>\n<h2>Purge type cheatsheet</h2>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>When to use</th>\n<th>Caveat</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>purge_url</code></td>\n<td>Specific page / asset changed</td>\n<td>Most surgical; up to 1000 URLs per call</td>\n</tr>\n<tr>\n<td><code>purge_prefix</code></td>\n<td>A directory of assets changed (<code>/assets/...</code>)</td>\n<td>Treats target as a prefix match</td>\n</tr>\n<tr>\n<td><code>purge_host</code></td>\n<td>Full site deployment</td>\n<td>Affects everything on the hostname</td>\n</tr>\n<tr>\n<td><code>purge_all</code></td>\n<td>Emergency / major migration</td>\n<td>All cache for the zone — origin spike inevitable</td>\n</tr>\n</tbody>\n</table>\n<h2>Typical post-deploy sequence</h2>\n<pre><code># 1. Purge the hostname so users get the new bundle\nclient.CreatePurgeTask(models.CreatePurgeTaskRequest(\n    ZoneId=\"zone-xxxxxxxx\",\n    Type=\"purge_host\",\n    Targets=[\"hub.example.com\"],\n))\n\n# 2. Prefetch the most-trafficked routes so edge cache is warm\nclient.CreatePrefetchTask(models.CreatePrefetchTaskRequest(\n    ZoneId=\"zone-xxxxxxxx\",\n    Targets=[\n        \"https://hub.example.com/\",\n        \"https://hub.example.com/chat\",\n        \"https://hub.example.com/login\",\n    ],\n))\n\n# 3. Watch for completion (typically 30s – 2min)\nimport time\nwhile True:\n    resp = client.DescribePurgeTasks(models.DescribePurgeTasksRequest(\n        ZoneId=\"zone-xxxxxxxx\",\n        Filters=[{\"Name\": \"status\", \"Values\": [\"processing\"]}],\n    ))\n    if not resp.Tasks:\n        print(\"All purge tasks done.\")\n        break\n    print(f\"{len(resp.Tasks)} tasks still processing...\")\n    time.sleep(15)\n</code></pre>\n<h2>Important reminders</h2>\n<ul>\n<li><strong><code>purge_all</code> causes origin load spike.</strong> Use only when surgical purges aren't enough.</li>\n<li><strong>Prefetch isn't free</strong> — it counts against your CDN traffic quota at edge-warm time. Only prefetch URLs you're confident users will hit.</li>\n<li><strong>Purge / prefetch propagation is global</strong> but takes 30s–2min. Plan deploy windows accordingly.</li>\n<li>EdgeOne DNS and DNSPod DNS are <em>separate</em>. Domains onboarded to EdgeOne with NS-mode resolve through the TEO API; CNAME-mode domains still resolve through whatever DNS you've configured (DNSPod or third-party). Use the right skill for the right zone type.</li>\n</ul>\n<h2>Console links</h2>\n<ul>\n<li>EdgeOne console: <a href=\"https://console.cloud.tencent.com/edgeone\">https://console.cloud.tencent.com/edgeone</a></li>\n<li>API reference: <a href=\"https://www.tencentcloud.com/document/product/1145/53929\">https://www.tencentcloud.com/document/product/1145/53929</a></li>\n</ul>\n","files":[{"path":"scripts/edgeone.py","sizeBytes":13929,"isText":true},{"path":"SKILL.md","sizeBytes":8352,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-10-23T17:51:35.486008Z","sha256":"60F352E4334851C315074E1E82960F45F4875F1D9E1689A0A5083B3707729BD4","sizeBytes":6209},"review":null,"source":{"repositoryUrl":"https://github.com/AceDataCloud/Skills","path":"skills/tencentcloud-edgeone","license":null,"commit":"57df2367d7638ba2c8cfc5d50694b086ed401fd9","subtreeSha":"8AAC87294EFD533E6DD426244F136F9399D50D15A46D5F4723C7332A32548E3F","lastSyncedAt":"2026-11-12T21:45:29.032171Z"},"reviewedAt":"2026-10-23T17:58:22.441336Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/AceDataCloud/Skills/tree/main/skills/tencentcloud-edgeone"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install acedatacloud-skills@llmmart"},{"target":"git","command":"git clone https://github.com/AceDataCloud/Skills.git"}]}