Tencent Cloud Common Actions
Actions
mark-for-op
Tag resources for future action.
properties:
days:
minimum: 0
type: number
hours:
minimum: 0
type: number
msg:
type: string
op:
type: string
tag:
type: string
type:
enum:
- mark-for-op
tz:
type: string
required:
- type
remove-tag
Delete Tag
properties:
msg:
type: string
tag:
type: string
tags:
type: array
type:
enum:
- remove-tag
required:
- type
rename-tag
Rename the tag information, because Tencent Cloud API does not support direct modification, you need to delete it first and then add it
properties:
new_key:
type: string
old_key:
type: string
type:
enum:
- rename-tag
required:
- type
start
Action to stop a running cvm instance
- example:
policies:
- name: cvm-start
resource: tencentcloud.cvm
actions:
- type: start
properties:
type:
enum:
- start
required:
- type
stop
Action to stop a running cvm instance
- example:
policies:
- name: cvm-marked-for-op-stop
resource: tencentcloud.cvm
filters:
- type: marked-for-op
op: stop
skew: 14
actions:
- type: stop
properties:
type:
enum:
- stop
required:
- type
tag
Add tag information
properties:
key:
type: string
type:
enum:
- tag
value:
type: string
required:
- type
terminate
Action to stop a running cvm instance
- example:
policies:
- name: cvm-marked-for-op-terminate
resource: tencentcloud.cvm
filters:
- type: marked-for-op
op: terminate
skew: 14
actions:
- type: terminate
properties:
type:
enum:
- terminate
required:
- type
webhook
Calls a webhook with optional parameters and body populated from JMESPath queries.
policies: - name: call-webhook resource: ec2 description: | Call webhook with list of resource groups actions: - type: webhook url: http://foo.com query-params: resource_name: resource.name policy_name: policy.name
properties:
batch:
type: boolean
batch-size:
type: number
body:
type: string
headers:
additionalProperties:
description: header values
type: string
type: object
method:
enum:
- PUT
- POST
- GET
- PATCH
- DELETE
type: string
query-params:
additionalProperties:
description: query string values
type: string
type: object
type:
enum:
- webhook
url:
type: string
required:
- url
- type