Queries the commands that you created or the common commands that Alibaba Cloud provides.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
CommandId | string | No | The command ID. | c-sh02yh0932w**** |
Name | string | No | The command name. Fuzzy match is not supported. | testName |
Provider | string | Yes | The provider of the common command. Take note of the following items:
| AlibabaCloud |
Type | string | No | The language type of the command. Valid values:
| RunShellScript |
PageNumber | string | No | The page number. Pages start from 1. Default value: 1. | 1 |
PageSize | string | No | The number of entries per page. Maximum value: 50. Default value: 10. | 10 |
Tag | object [] | No | The tags of the command. | |
Key | string | No | The key of tag N to be added to the command. Valid values of N: 1 to 20. | TestKey |
Value | string | No | The value of tag N to be added to the command. Valid values of N: 1 to 20. | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F****",
"TotalCount": 10,
"PageNumber": 1,
"PageSize": 10,
"Commands": [
{
"CommandId": "c-gov1k1tqwi9****",
"Tags": [
{
"Key": "TestKey",
"Value": "TestValue"
}
],
"CreationTime": "2023-01-05T06:38:53Z",
"Name": "testName",
"Provider": "User",
"Type": "RunShellScript",
"Timeout": 60,
"Description": "testDescription",
"WorkingDir": "/home",
"CommandContent": "cat /etc/ssh/sshd_config",
"EnableParameter": false,
"ParameterNames": [
"parameter1"
],
"ParameterDefinitions": [
{
"Required": false,
"Description": "Command Assistant Agent Installation Package Path",
"DefaultValue": "https://aliyun-client-assist.oss-accelerate.aliyuncs.com/linux/aliyun_assist_latest.rpm",
"ParameterName": "DownloadUrl",
"PossibleValues": [
"Linux"
]
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2024-02-20 | The request parameters of the API has changed. The response structure of the API has changed | see changesets | ||||||
|