DescribeMachines

Last updated: 2020-09-11 10:41:07

    1. API Description

    Domain name for API request: yunjing.tencentcloudapi.com.

    This API is used to get the list of servers in a specified region.

    A maximum of 20 requests can be initiated per second for this API.

    We recommend you to use API Explorer
    Try it
    API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

    2. Input Parameters

    The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

    Parameter Name Required Type Description
    Action Yes String Common parameter. The value used for this API: DescribeMachines.
    Version Yes String Common parameter. The value used for this API: 2018-02-28.
    Region No String Common parameter. This parameter is not required for this API.
    MachineType Yes String Server type.
  • CVM: CVM
  • BM: BM
  • MachineRegion Yes String Server region, such as ap-guangzhou or ap-shanghai
    Limit No Integer Number of results to be returned. Default value: 10. Maximum value: 100.
    Offset No Integer Offset. Default value: 0.
    Filters.N No Array of Filter Filter.
  • Keywords - String - Required: no - Query keywords
  • Status - String - Required: no - CWP client status (valid values: OFFLINE, ONLINE, UNINSTALLED)
  • Version - String - Required: no - Current CWP version (valid values: PRO_VERSION, BASIC_VERSION)

  • Each filter can have only one value but does not support "OR" queries with multiple values

    3. Output Parameters

    Parameter Name Type Description
    Machines Array of Machine Server list
    TotalCount Integer Number of servers
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Getting the list of servers in region

    This example shows you how to get the list of servers in a region.

    Input Example

    https://yunjing.tencentcloudapi.com/?Action=DescribeMachines
    &MachineType=CVM
    &MachineRegion=ap-shanghai
    &Filters.0.Name=Keywords
    &Filters.0.Values.0=10.0.1.1
    &Limit=10
    &Offset=0
    &<Common request parameters>

    Output Example

    {
      "Response": {
        "Machines": [
          {
            "MachineName": "ccs_cls-i4vyo8qa_node",
            "MachineIp": "172.16.0.4",
            "MachineWanIp": "193.112.57.245",
            "MachineOs": "ubuntu16.04.1 LTSx86_64",
            "MachineStatus": "OFFLINE",
            "Quuid": "fbd6ea2c-1894-47b0-bf3e-095c78138f76",
            "Uuid": "",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": 0,
            "Tag": [],
            "MalwareNum": 0,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "SAFE"
          },
          {
            "MachineName": "piperpeng-mnet",
            "MachineIp": "10.0.0.8",
            "MachineWanIp": "129.204.223.122",
            "MachineOs": "centos7.5x86_64",
            "MachineStatus": "ONLINE",
            "Quuid": "d095145f-d417-49a7-8d83-da19320fd419",
            "Uuid": "ecc9dfd0-674b-11e9-950f-40f2e9f553a2",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": -1,
            "Tag": [
              {
                "Rid": 174,
                "Name": "Forest"
              }
            ],
            "MalwareNum": -1,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "UNKNOWN"
          },
          {
            "MachineName": "jaryzhou-hp",
            "MachineIp": "10.104.18.25",
            "MachineWanIp": "139.199.79.160",
            "MachineOs": "centos7.2x86_64",
            "MachineStatus": "OFFLINE",
            "Quuid": "999108c2-e2a4-4ce7-b3ce-dd9c7af4c7ea",
            "Uuid": "a701fb5c-35ce-11ea-80ce-5cb90191ae78",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": -1,
            "Tag": [],
            "MalwareNum": 2,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "UNKNOWN"
          },
          {
            "MachineName": "SAIC private cloud test",
            "MachineIp": "172.16.16.15",
            "MachineWanIp": "193.112.181.15",
            "MachineOs": "centos6.8x86_64",
            "MachineStatus": "OFFLINE",
            "Quuid": "57375249-a16c-4c9f-b210-e8c1fb4e8806",
            "Uuid": "",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": 0,
            "Tag": [],
            "MalwareNum": 0,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "SAFE"
          },
          {
            "MachineName": "Vulnerability yhvs compiler-Linux",
            "MachineIp": "172.16.16.32",
            "MachineWanIp": "106.52.175.244",
            "MachineOs": "centos7.6.0_x64",
            "MachineStatus": "OFFLINE",
            "Quuid": "dbf3dcd4-179a-4bc6-86e4-15439f4cc898",
            "Uuid": "",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": 0,
            "Tag": [],
            "MalwareNum": 0,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "SAFE"
          },
          {
            "MachineName": "Vulnerability yhvs compiler-win",
            "MachineIp": "172.16.16.48",
            "MachineWanIp": "106.52.166.61",
            "MachineOs": "Xserver V8.1_64",
            "MachineStatus": "OFFLINE",
            "Quuid": "1cbfd259-d992-4e3f-8188-02ad59b862cc",
            "Uuid": "",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": 0,
            "Tag": [],
            "MalwareNum": 0,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "SAFE"
          },
          {
            "MachineName": "POC test (129.204.1.205)",
            "MachineIp": "10.104.162.166",
            "MachineWanIp": "129.204.1.205",
            "MachineOs": "CentOS6.3-64bit",
            "MachineStatus": "ONLINE",
            "Quuid": "2967d5c5-730b-4b76-87a1-95565f218cd0",
            "Uuid": "9e9a4f9e-165e-11ea-8f91-5cb90191ae68",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": -1,
            "Tag": [],
            "MalwareNum": -1,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "UNKNOWN"
          },
          {
            "MachineName": "POC test (203.195.231.172)",
            "MachineIp": "10.104.135.28",
            "MachineWanIp": "203.195.231.172",
            "MachineOs": "debian9.0.0x86_64",
            "MachineStatus": "ONLINE",
            "Quuid": "d42129e4-54d3-41af-944c-ec5cfa0ce942",
            "Uuid": "c2972dd6-165e-11ea-95eb-40f2e9f5667a",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": -1,
            "Tag": [
              {
                "Rid": 285,
                "Name": "&……#¥%@%36"
              },
              {
                "Rid": 286,
                "Name": "123"
              },
              {
                "Rid": 283,
                "Name": "helloworld"
              },
              {
                "Rid": 284,
                "Name": "Forest"
              }
            ],
            "MalwareNum": 1,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "UNKNOWN"
          },
          {
            "MachineName": "POC test (129.204.37.89)",
            "MachineIp": "10.104.35.71",
            "MachineWanIp": "129.204.37.89",
            "MachineOs": "centos7.6.0_x64",
            "MachineStatus": "OFFLINE",
            "Quuid": "d7ab00a7-4318-4e6d-9280-0618c350e5eb",
            "Uuid": "b0ad0c08-1645-11ea-b872-40f2e9f5bb82",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": -1,
            "Tag": [],
            "MalwareNum": -1,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "UNKNOWN"
          },
          {
            "MachineName": "POC test (129.204.36.227)",
            "MachineIp": "10.104.14.165",
            "MachineWanIp": "129.204.36.227",
            "MachineOs": "ubuntu18.04.1x86_64",
            "MachineStatus": "OFFLINE",
            "Quuid": "b86925b4-cc36-420e-80d4-5094cb2f094b",
            "Uuid": "ed629672-165e-11ea-8bcf-40f2e9f3d932",
            "IsProVersion": false,
            "PayMode": "",
            "VulNum": -1,
            "Tag": [],
            "MalwareNum": 0,
            "BaseLineNum": 0,
            "CyberAttackNum": 0,
            "SecurityStatus": "UNKNOWN"
          }
        ],
        "TotalCount": 44,
        "RequestId": "c30f35cb-2f3e-94f5-59ae-316e0f32e660"
      }
    }

    5. Developer Resources

    API Explorer

    This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    InternalError Internal error.
    InvalidParameter.InvalidFormat Incorrect parameter format.
    InvalidParameter.MissingParameter Missing parameter.
    InvalidParameter.ParsingError Parameter parsing error.
    MissingParameter Missing parameter.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help