Installing TCCLI
Configuring TCCLI
Using TCCLI
RUNNING state. In this case, you can use polling to check its status until it enters the RUNNING state.RUNNING state or until the polling times out.tccli cvm DescribeInstancesStatus --region ap-hongkong --waiter "{'expr':'InstanceStatusSet[0].InstanceState','to':'RUNNING'}"
tccli cvm DescribeInstancesStatus --region ap-hongkong --waiter "{'expr':'InstanceStatusSet[0].InstanceState','to':'RUNNING','timeout':180,'interval':5}"
default.configure file to specify a timeout period of 180s and an interval of 5s."waiter": {"interval": 5,"timeout": 180},
waiter must be in JSON format and enclosed in double quotation marks. The table below lists the required and optional parameters:Parameter | Required | Description |
expr | Yes | |
to | Yes | The target value of the field that you want to query. |
timeout | No | The timeout period for polling in seconds. |
interval | No | The polling interval in seconds. |
フィードバック