# Set the default version of the CVM product: 2017-03-12tccli configure set cvm.version 2017-03-12# Specify the version number in real time when usingtccli cvm help --version 2017-03-12tccli cvm DescribeZones help --version 2017-03-12tccli cvm DescribeZones --version 2017-03-12
# Set the default endpoint of the CVM producttccli configure set cvm.endpoint cvm.ap-guangzhou.tencentcloudapi.com# Specify in real time when callingtccli cvm DescribeZones --endpoint cvm.ap-guangzhou.tencentcloudapi.com
[root@VM_180_248_centos ~]# tccli cvm DescribeZones{"TotalCount": 4,"ZoneSet": [{"ZoneState": "AVAILABLE","ZoneId": "100001","Zone": "ap-guangzhou-1","ZoneName": "Guangzhou Zone 1"},{"ZoneState": "AVAILABLE","ZoneId": "100002","Zone": "ap-guangzhou-2","ZoneName": "Guangzhou Zone 2"},{"ZoneState": "AVAILABLE","ZoneId": "100003","Zone": "ap-guangzhou-3","ZoneName": "Guangzhou Zone 3"},{"ZoneState": "AVAILABLE","ZoneId": "100004","Zone": "ap-guangzhou-4","ZoneName": "Guangzhou Zone 4"}],"RequestId": "4fd313a6-155f-4c7a-bf86-898c02fcae02"}
[root@VM_180_248_centos ~]# tccli cvm DescribeZones --filter TotalCount4
[root@VM_180_248_centos ~]# tccli cvm DescribeZones --filter ZoneSet[0]{"ZoneState": "AVAILABLE","ZoneId": "100001","Zone": "ap-guangzhou-1","ZoneName": "Guangzhou Zone 1"}
[root@VM_180_248_centos ~]# tccli cvm DescribeZones --filter ZoneSet[*].ZoneName [ "Guangzhou Zone 1", "Guangzhou Zone 2", "Guangzhou Zone 3", "Guangzhou Zone 4" ]
[root@VM_180_248_centos ~]# tccli cvm DescribeZones --filter 'ZoneSet[*].{name:ZoneName, id:ZoneId}'[{"name": "Guangzhou Zone 1","id": "100001"},{"name": "Guangzhou Zone 2","id": "100002"},{"name": "Guangzhou Zone 3","id": "100003"},{"name": "Guangzhou Zone 4","id": "100004"}]
Was this page helpful?