动态生成Aliyun CLI命令。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /api/cli/makeCode HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| product |
string |
是 |
产品 CODE。
|
Ecs |
| apiVersion |
string |
是 |
API 的版本。 |
2014-05-26 |
| api |
string |
是 |
API 的名称。 |
DescribeRegions |
| regionId |
string |
否 |
服务区域 ID。 |
cn-hangzhou |
| apiParams |
object |
否 |
请求参数。 |
|
|
any |
否 |
请求参数。 |
{ "InstanceChargeType": "PostPaid", "ResourceType": "instance", "AcceptLanguage": "en-US" } |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求结果。 |
||
| cli |
string |
CLI 指令。 |
aliyun ecs DescribeRegions --ResourceType instance |
示例
正常返回示例
JSON格式
{
"cli": "aliyun ecs DescribeRegions --ResourceType instance"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParam.Product | Product name is required and cannot be null or empty. | |
| 400 | InvalidParam.ApiVersion | API version is required and cannot be null or empty. | |
| 400 | InvalidParam.ApiName | API name is required and cannot be null or empty. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。