TC::ExecuteAPI
调用腾讯云 API。
示例
Action: TC::ExecuteAPIProperties:Service: cvmAction: DescribeInstancesVersion: "2017-03-12"Region: ap-guangzhouParameters:InstanceIds:- ins-asd31gfdOutputs:LatestOperationState:ValueSelector: ".InstanceSet[0].LatestOperationState"
属性
属性名 | 类型 | 必填 | 说明 |
Service | String | 是 | 云产品名 |
Action | String | 是 | 云 API |
Version | String | 是 | 云 API 版本 |
Region | String | 是 | 地域 |
Parameters | JSON | 否 | 云 API 参数 |
返回值
TC::WaitFor
调用腾讯云 API 轮询,直到响应结果特定值成功匹配预设值。
示例
Action: TC::WaitForProperties:Service: cvmAction: DescribeInstancesVersion: "2017-03-12"Region: ap-guangzhouParameters:InstanceIds:- ins-asd31gfdValueSelector: ".InstanceSet[0].InstanceState"DesiredValues:- RUNNINGStopRetryValues:- LAUNCH_FAILEDOutputs:InstanceState:ValueSelector: ".InstanceSet[0].InstanceState"LatestOperationState:ValueSelector: ".InstanceSet[0].LatestOperationState"
属性
属性名 | 类型 | 必填 | 说明 |
Service | String | 是 | 云产品名 |
Action | String | 是 | 云 API |
Version | String | 是 | 云 API 版本 |
Region | String | 是 | 地域 |
Parameters | JSON | 否 | 云 API 参数 |
ValueSelector | String | 是 | 用于对比的特定值选择器(使用 jq) |
DesiredValues | Array | 是 | 成功匹配值 |
StopRetryValues | Array | 否 | 停止重试值 |
返回值