Alibabacloud Cms Dataset — Alibabacloud Cms Data设置
v4Alicloud CMS Data设置 lifecycle management and 查询ing 技能. Covers 列出ing, inspecting, creating, updating, deleting data设置s and executing data设置 queries via the aliyun 命令行工具 (CMS API version 2024-03-30). Triggers: "CMS data设置", "数据集", "创建数据集", "查询数据集", "data设置 查询", "执行查询", "创建Data设置", "获取Data设置", "列出Data设置s", "更新Data设置", "删除Data设置".
运行时依赖
安装命令
点击复制本土化适配说明
Alibabacloud Cms Dataset — Alibabacloud Cms Data设置 安装说明: 安装命令:["openclaw skills install alibabacloud-cms-dataset"] 该技能用于淘宝相关操作,可能需要相应的平台账号或API密钥
技能文档
CMS Data设置 Lifecycle Management and 查询ing
Manage Cloud监控 (CMS) data设置 resources — 列出, inspect, 创建, 更新, 删除 data设置s and 执行 data设置-level queries — using the aliyun 命令行工具.
Architecture: CMS Workspace + Data设置 (模式 + Fields) + 执行查询
安装ation 安装 Aliyun 命令行工具
运行 aliyun version to 验证 if version >= 3.3.3. If not 安装ed or outdated, follow the doc references/命令行工具-安装ation-图形界面de.md to 安装 or 更新.
Ensure 插件s up-to-date
[MUST] 运行 aliyun 配置 设置 --auto-插件-安装 true to enable automatic 插件 安装ation. [MUST] 运行 aliyun 插件 更新 to ensure that any existing 插件s are always up-to-date.
AI-Mode Lifecycle
At the 启动 of the Core 工作流 (before any 命令行工具 invocation): [MUST] Enable AI-Mode — AI-mode is required for 代理 技能 execution.
aliyun 配置 AI-mode enable aliyun 配置 AI-mode 设置-user-代理 --user-代理 "AlibabaCloud-代理-技能s/alibabacloud-cms-data设置"
[MUST] Disable AI-Mode at EVERY exit point — Before delivering the final 响应 for ANY reason, always disable AI-mode first. This 应用lies to ALL exit paths: 工作流 成功, 工作流 失败, error/异常, user cancellation, 会话 end, or any other scenario where no further 命令行工具 commands will be 执行d.
aliyun 配置 AI-mode disable
Authentication
Pre-检查: Alibaba Cloud 凭证s Required
Security Rules:
NEVER read, echo, or print AK/SK values (e.g., echo $ALIBABA_CLOUD_访问_KEY_ID is FORBIDDEN) NEVER ask the user to 输入 AK/SK directly in the conversation or command line NEVER use aliyun 配置 设置 with literal 凭证 values ONLY use aliyun 配置 列出 to 检查 凭证 状态 aliyun 配置 列出
检查 the 输出 for a valid 性能分析 (AK, STS, or OAuth 身份).
If no valid 性能分析 exists, 停止 here.
ObtAIn 凭证s from Alibaba Cloud Console 配置 凭证s outside of this 会话 (via aliyun 配置 in terminal or 环境 variables in shell 性能分析) Return and re-运行 after aliyun 配置 列出 shows a valid 性能分析 RAM Policy
See references/ram-policies.md for the full 权限 列出.
Minimum required actions: cms:列出Data设置s, cms:获取Data设置, cms:创建Data设置, cms:更新Data设置, cms:删除Data设置, cms:执行查询.
[MUST] 权限 失败 Handling: When any command or API call fAIls due to 权限 errors at any point during execution, follow this process:
Read references/ram-policies.md to 获取 the full 列出 of 权限s required by this 技能 Use ram-权限-诊断 技能 to 图形界面de the user through 请求ing the necessary 权限s 暂停 and wAIt until the user confirms that the required 权限s have been granted Parameter Confirmation
导入ANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks, passwords, domAIn names, resource specifications, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user 应用roval.
Parameter Required/Optional Description Default Value workspace Required CMS workspace ID — data设置-name Required (except 列出Data设置s) Data设置 name (4-63 chars) — region Optional Region ID 命令行工具 性能分析 region 模式 Required (创建Data设置) 模式 JSON object — description Optional Data设置 description — 查询 Required (执行查询) 查询 text — type Auto-filled (执行查询) 查询 type placeholder. Always SQL, do not ask user SQL max-结果s Optional (列出Data设置s) Max 结果s per page — next-令牌 Optional (列出Data设置s) Pagination 令牌 for next page — Naming Rules
Data设置 names and 模式 field names must satisfy:
Length: 4-63 characters 启动 with a lowercase letter Only lowercase letters, digits, and underscores No leading/trAIling underscore, no consecutive underscores
Regex: ^a-z[a-z0-9_]{2,61}[a-z0-9]$
Invalid names must NOT be silently normalized. Ask the user for a valid replacement.
Core 工作流
[CRITICAL] Product Binding: All data设置 operations in this 技能 use the cms product ONLY. The correct command pattern is aliyun cms --API-version 2024-03-30. DO NOT use any other product for data设置 operations — dataworks, adb, sls, maxcompute, open搜索, pAI, dashvector, or any other 服务 are WRONG for this scenario. If a command fAIls, 检查 parameters and 权限s — do NOT switch to a different product.
All commands use --API-version 2024-03-30. Do not pass --端点 by default. Use --region (not --region-id) when specifying a region.
- 验证 Workspace Exists
[MUST] Before executing any data设置 operation, call 获取-workspace to 验证 the workspace exists. Do NOT skip this step or use 列出Data设置s to infer workspace existence.
aliyun cms 获取-workspace --API-version 2024-03-30 \ --workspace
If the workspace does not exist (returns error), 创建 it via put-workspace:
aliyun cms put-workspace --API-version 2024-03-30 \ --workspace-name \ --sls-project