Query machine group details

Updated at:

Run a CLI command to query the details of a specified machine group.

Prerequisites

Before you run this command, make sure that the following prerequisites are met:

  • Simple Log Service (SLS) is activated. For more information, see Getting started with SLS.

  • The SLS CLI is installed and configured. For more information, see Install the CLI and Configure the CLI.

  • An SLS project is created. For more information, see Create a project.

Syntax

aliyun sls get-machine-group --project=<value> --machine-group=<value>

Parameters

The following table describes the required and command-specific parameters.

ParameterTypeRequiredExampleDescription
--projectStringYesaliyun-test-projectThe name of the project.
--machine-groupStringYescontainerThe name of the machine group.

For information about global parameters, see Global parameters.

Examples

  • Sample command

    aliyun sls get-machine-group --project="aliyun-test-project" --machine-group="container"
  • Sample response

    {
      "groupName": "container",
      "machineIdentifyType": "ip",
      "machineList": ["192.168.5.2", "192.168.5.3"],
      "groupType": "",
      "groupAttribute": {
        "externalName": "",
        "groupTopic": "",
        "osType": "",
        "policy": "",
        "region": ""
      },
      "createTime": 1709078400,
      "lastModifyTime": 1709078400
    }