tccli batch help
NAMEbatchDESCRIPTIONbatch-2017-03-12USEAGEtccli batch <action> [--param...]OPTIONShelpshow the tccli batch help info--versionspecify a batch api versionAVAILABLE ACTIONDescribeComputeEnv用于查询计算环境的详细信息CreateTaskTemplate用于创建任务模板
tccli batch CreateComputeEnv --version 2017-03-12 --ComputeEnv '{"EnvName": "batch-env", // 计算环境名称"EnvDescription": "batch env demo", // 计算环境描述"EnvType": "MANAGED", // 计算环境类型,托管型"EnvData": { // 具体配置(可参照 CVM 创建实例说明)"InstanceType": "BS1.LARGE8", // 计算环境内CVM 实例类型"ImageId": "img-m4q71qnf", // 计算环境内CVM 镜像 ID(可替换成自定义镜像)"LoginSettings": {"Password": "B1[habcd" // 计算环境内CVM 登录密码},"InternetAccessible": {"PublicIpAssigned": "TRUE", // 计算环境内CVM 是否需要公网IP"InternetMaxBandwidthOut": 10 // 计算环境内CVM 带宽上限},"SystemDisk": {"DiskType": "CLOUD_BASIC", // 计算环境内CVM 磁盘类型(目前是普通云硬盘)"DiskSize": 50 // 计算环境内CVM 磁盘大小}},"DesiredComputeNodeCount": 10 // 计算节点期望个数}'--Placement'{"Zone": "ap-guangzhou-2" // 可用区(当前广州二区可能需替换)}'
tccli batch CreateComputeEnv --version 2017-03-12 --ComputeEnv '{"EnvName":"batch-env","EnvDescription":"batch env demo","EnvType":"MANAGED","EnvData":{"InstanceType":"BS1.LARGE8","ImageId":"img-m4q71qnf","LoginSettings":{"Password":"B1[habcd"},"InternetAccessible":{"PublicIpAssigned":"TRUE","InternetMaxBandwidthOut":50},"SystemDisk":{"DiskType":"CLOUD_BASIC","DiskSize":50}},"DesiredComputeNodeCount":1}' --Placement '{"Zone": "ap-guangzhou-2"}'
{"EnvId": "env-jlatqfkn","RequestId": "297ed003-7373-4950-9721-242d3d40b3ca"}
tccli batch DescribeComputeEnvs --version 2017-03-12
{"TotalCount": 1,"ComputeEnvSet": [{"EnvId": "env-jlatqfkn","ComputeNodeMetrics": {...},"EnvType": "MANAGED","DesiredComputeNodeCount": 2,"EnvName": "test compute env","Placement": {...},"CreateTime": "2019-10-08T08:55:12Z"}],"RequestId": "7a1f9338-0118-46bf-b59f-60ace9f154f5"}
tccli batch DescribeComputeEnv --version 2017-03-12 --EnvId env-jlatqfkn
{"EnvId": "env-jlatqfkn","ComputeNodeMetrics": {...},"EnvType": "MANAGED","DesiredComputeNodeCount": 2,"ComputeNodeSet": [...],"RequestId": "407de39c-1c3d-489e-9a35-5257ae561e87","Placement": {...},"EnvName": "test compute env","CreateTime": "2019-10-08T08:55:12Z"}
tccli batch DeleteComputeEnv --version 2017-03-12 --EnvId env-jlatqfkn
{"RequestId": "029becda-2a4e-4989-aa77-6fbb5a873555"}
本页内容是否解决了您的问题?