You need to enable JavaScript to run this app.
文档中心
ArkClaw 企业版

ArkClaw 企业版

复制全文
下载 pdf
Image
CreateClawImageFromYaml - 基于YAML创建ArkClaw自定义镜像
复制全文
下载 pdf
CreateClawImageFromYaml - 基于YAML创建ArkClaw自定义镜像
基于YAML创建ArkClaw自定义镜像。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:CreateClawImageFromYaml​
要执行的操作,取值:CreateClawImageFromYaml。​
​
Version string 必选 示例值:2026-05-01​
API的版本,取值:2026-05-01。​
​
ClientToken string 可选 示例值:23fa21A8823nfasd7f****​
保证请求幂等性。由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。​
取值:仅支持ASCII字符,且不能超过64个字符。​
​
DryRun boolean 可选 示例值:false​
是否仅做参数和权限检查而不实际执行操作。取值:​
  • true:仅做检查,校验通过返回DryRunOperation错误码。​
  • false(默认):实际执行操作。​
​
SpaceId string 必选 示例值:csi-yei8347ta8xmf5qd****​
ArkClaw空间ID,可以在ArkClaw控制台“空间概览”页面的“基本信息”获取。​
​
YamlContent string 必选 示例值:bmFtZTogZGVtby1pbWFnZQ==​
镜像YAML配置文件内容。​
  • base64编码,解码后为UTF-8格式的YAML文本。​
  • 支持字段:name、description、plugins、skills、soul、agents、build_script。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
ImageId string 示例值:cimg-yeqssiu****​
镜像ID。​
​
​
​
请求示例​
​
POST /?Action=CreateClawImageFromYaml&Version=2026-05-01​
{​
"SpaceId": "csi-yei8347ta8xmf5qd****",​
"YamlContent": "bmFtZTogZGVtby1pbWFnZQ=="​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2026070220145105****",​
"Action": "CreateClawImageFromYaml",​
"Version": "2026-05-01",​
"Service": "arkclaw",​
"Region": "cn-beijing"​
},​
"Result": {​
"ImageId": "cimg-yeqssiu****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
IdempotentParameterMismatch​
The request uses the same client token as a previous, but non-identical request.Do not reuse a client token with different requests, unless the requests are identical​
同一 Token 但请求参数与首次调用不一致,需更换 Token​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
Token 格式非法(非 ASCII 或超过 64 字节)​
400​
MissingParameter.SpaceId​
The required parameter SpaceId is not supplied.​
参数SpaceId不能为空。​
400​
MissingParameter.YamlContent​
The required parameter YamlContent is not supplied.​
参数YamlContent不能为空。​
400​
InvalidYamlContent.Malformed​
The specified YamlContent is malformed.​
YamlContent 不是合法 base64 YAML,或包含未知字段。​
400​
InvalidPluginInfos.Malformed​
The specified PluginInfos are malformed.​
YAML 中插件配置不合法。​
400​
InvalidSkillInfos.Malformed​
The specified SkillInfos are malformed.​
YAML 中技能配置不合法。​
404​
InvalidSpace.NotFound​
The specified Space does not exist.​
指定ArkClaw空间不存在。​
412​
DryRunOperation​
The user has the required permissions, so the request would have succeeded, but the DryRun parameter was used.​
DryRun检查通过;由于设置了DryRun参数,请求未真正执行。​
412​
IdempotentProcessing​
The previous request with the same ClientToken is still processing.​
同一 Token 的首次请求仍在处理中,请稍后重试​
429​
FlowLimitExceeded​
The request was rejected due to flow control.​
请求触发限流。​
429​
QuotaExceeded.Images​
The image quota has been exceeded.​
镜像数量达到配额上限。​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2026.07.21 14:22:37
这个页面对您有帮助吗?
有用
有用
无用
无用