调用CLI命令获取指定机器组信息。
请求语法
aliyunlog log get_machine_group --project_name= --group_name= [--access-id=] [--access-key=] [--sts-token=] [--region-endpoint=] [--client-name=] [--jmes-filter=] [--format-output=] [--decode-output=]
请求参数
该命令的必选和特有参数描述如下。
参数名称 | 数值类型 | 是否必选 | 示例值 | 描述 |
–project_name | String | 是 | aliyun-test-project | Project名称。 |
–group_name | String | 是 | group_name | 机器组名称。 |
关于该命令的全局参数,请参见全局参数。
示例
- 请求示例使用默认账号获取名称为group_name的机器组信息。
aliyunlog log get_machine_group --project_name="aliyun-test-project" --group_name="group_name"
- 返回示例
{ "createTime": 1622105480, "groupAttribute": { "externalName": "ex name", "groupTopic": "topic x" }, "groupName": "group_name", "groupType": "", "lastModifyTime": 1622105480, "machineIdentifyType": "userdefined", "machineList": [ "machine1", "machine2" ]}
错误码
如果返回报错信息,请参见具体接口的错误码处理。更多信息,请参见GetMachineGroup错误码处理。
API参考
GetMachineGroup
内容没看懂? 不太想学习?想快速解决? 有偿解决: 联系专家
阿里云企业补贴进行中: 马上申请
腾讯云限时活动1折起,即将结束: 马上收藏
同尘科技为腾讯云授权服务中心。
购买腾讯云产品享受折上折,更有现金返利:同意关联,立享优惠
转转请注明出处:https://www.yunxiaoer.com/160462.html