调用ListActions查询可用动作,包括原子动作和云产品动作。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListActions |
系统规定参数。取值:ListActions。 |
RegionId | String | 否 | cn-hangzhou |
地域ID |
OOSActionName | String | 否 | MyTemplate |
动作名称。名称未包含关系,最终列出包含所填动作名称的所有动作。 |
MaxResults | Integer | 否 | 50 |
分页大小。取值范围:20-100。默认为50。 |
NextToken | String | 否 | – |
翻页标记的Token。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Actions | Array |
动作列表 |
|
ActionType | String | ACS::Template |
动作类型。 1. 原子动作
|
CreatedDate | String | 2019-05-16T10:26:14Z |
动作创建时间 |
Description | String | ReplaceSystemDisk |
动作说明 |
OOSActionName | String | ACS::ECS::ReplaceSystemDisk |
动作名称 |
Properties | String | { "ImageId": { "Description": "The mirror ID you will use when resetting the system", "Type": "String" }, "InstanceId": { "Description": "the instance id that you will handle .", "Type": "String" } } |
动作参数 |
TemplateVersion | String | v1 |
动作所对应的模板版本。
说明 对于原子动作,该字段不返回。
|
MaxResults | Integer | 50 |
分页大小 |
NextToken | String | xxx |
翻页标记的Token |
RequestId | String | F9154C02-F847-4563-BB6A-6DD01A4F0 |
请求ID |
示例
请求示例
http(s)://oos.cn-hangzhou.aliyuncs.com/?Action=ListActions
&<公共请求参数>
正常返回示例
XML
格式
<ListActionsResponse>
<MaxResults>50</MaxResults>
<RequestId>F9154C02-F847-4563-BB6A-6DD2F5F0</RequestId>
<Actions>
<OOSActionName>ACS::ECS::ReplaceSystemDisk</OOSActionName>
<ActionType>Product.ECS</ActionType>
<CreatedDate>2019-05-14T07:26:39Z</CreatedDate>
<Description>ReplaceSystemDisk</Description>
<TemplateVersion>v1</TemplateVersion>
<Properties>
<ImageId>
<Description>The mirror ID you will use when resetting the system</Description>
<Type>String</Type>
</ImageId>
<InstanceId>
<Description>the instance id that you will handle .</Description>
<Type>String</Type>
</InstanceId>
</Properties>
</Actions>
<Actions>
<OOSActionName>ACS::Notify</OOSActionName>
<ActionType>Automic.Trigger</ActionType>
<CreatedDate>2019-05-16T09:33:45Z</CreatedDate>
<Description>Send the notification.</Description>
<Properties>
<NotifyType>The type of notification. Support WebHook</NotifyType>
<WebHook>
<Content>The body for requesting web hook. Type: Mapping.</Content>
<Headers>The headers for requesting web hook. Type: Mapping.</Headers>
<URI>The web hook URI.</URI>
</WebHook>
</Properties>
</Actions>
</ListActionsResponse>
JSON
格式
{
"MaxResults": 50,
"RequestId": "F9154C02-F847-4563-BB6A-6DD2F5F0",
"Actions": [
{
"OOSActionName": "ACS::ECS::ReplaceSystemDisk",
"ActionType": "Product.ECS",
"CreatedDate": "2019-05-14T07:26:39Z",
"Description": "ReplaceSystemDisk",
"TemplateVersion": "v1",
"Properties": {
"ImageId": {
"Description": "The mirror ID you will use when resetting the system",
"Type": "String"
},
"InstanceId": {
"Description": "the instance id that you will handle .",
"Type": "String"
}
}
},
{
"OOSActionName": "ACS::Notify",
"ActionType": "Automic.Trigger",
"CreatedDate": "2019-05-16T09:33:45Z",
"Description": "Send the notification.",
"Properties": {
"NotifyType": "The type of notification. Support WebHook",
"WebHook": {
"Content": "The body for requesting web hook. Type: Mapping.",
"Headers": "The headers for requesting web hook. Type: Mapping.",
"URI": "The web hook URI."
}
}
}
]
}
错误码
访问错误中心查看更多错误码。