tencent cloud

Feedback

DescribeBaselineHostDetectList

Last updated: 2024-08-27 11:41:43

1. API Description

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

This API is used to obtain the list of hosts for baseline detection.

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 Params. The value used for this API: DescribeBaselineHostDetectList.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.
Filters.N No Array of Filter
  • PolicyId - int64 - required: no - policy ID

  • HostName - string - required: no - host name
  • HostIp - string - required: no - host IP
  • ItemId - int64 - required: no - item ID
  • RuleId - int64 - required: no - rule ID
  • DetectStatus - int - required: no - detection status
  • Level - int - required: no - risk level

  • StartTime - string - required: no - start time
  • EndTime - string - required: no - end time
  • Limit No Integer Limit Entries, 10 by default, up to 100
    Offset No Integer Offset, which is 0 by default.
    Order No String Sorting Method: [ASC: Ascending Order, DESC: Descending Order]
    By No String Optional Order Column: [LastTime|ItemCount|PassedItemCount|NotPassedItemCount|FirstTime]

    3. Output Parameters

    Parameter Name Type Description
    List Array of BaselineHostDetect None
    Total Integer Total number
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Obtaining Result List of Detection on Hosts

    Input Example

    POST / HTTP/1.1
    Host: cwp.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeBaselineHostDetectList
    <Common request parameters>
    
    {}
    

    Output Example

    {
        "Response": {
            "List": [
                {
                    "HostId": "a0770b41-9697-4a1d-8150-b8fa247b6189",
                    "HostIp": "172.23.16.10",
                    "HostName": "Feature test Ubuntu 20 vulnerability fixing v_txmitan",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 188,
                    "NotPassedItemCount": 202,
                    "ItemCount": 390,
                    "FirstTime": "2022-05-11 17:11:32",
                    "LastTime": "2022-08-23 14:28:51",
                    "Uuid": "a0770b41-9697-4a1d-8150-b8fa247b6189"
                },
                {
                    "HostId": "36a78a1e-7711-4e7f-9fbe-c7afab78cd78",
                    "HostIp": "10.255.0.36",
                    "HostName": "jaryzhou - coding test",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 183,
                    "NotPassedItemCount": 203,
                    "ItemCount": 386,
                    "FirstTime": "2022-08-17 12:53:15",
                    "LastTime": "2022-08-17 12:53:15",
                    "Uuid": "36a78a1e-7711-4e7f-9fbe-c7afab78cd78"
                },
                {
                    "HostId": "cc0e8a25-7169-4b5c-a929-2b4cccbfce10",
                    "HostIp": "172.23.16.4",
                    "HostName": "Feature test Ubuntu 18 vulnerability fixing v_txmitan",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 186,
                    "NotPassedItemCount": 183,
                    "ItemCount": 369,
                    "FirstTime": "2022-05-11 17:11:16",
                    "LastTime": "2022-08-23 10:48:21",
                    "Uuid": "cc0e8a25-7169-4b5c-a929-2b4cccbfce10"
                },
                {
                    "HostId": "59b8dd86-333a-4b4a-872f-2162614e5e97",
                    "HostIp": "172.23.16.7",
                    "HostName": "Feature test Ubuntu 14 vulnerability fixing v_txmitan",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 225,
                    "NotPassedItemCount": 132,
                    "ItemCount": 357,
                    "FirstTime": "2022-05-11 17:08:46",
                    "LastTime": "2022-08-22 17:01:23",
                    "Uuid": "59b8dd86-333a-4b4a-872f-2162614e5e97"
                },
                {
                    "HostId": "044889f8-d6a2-4fc3-a8a8-c114b6f5266b",
                    "HostIp": "172.23.16.14",
                    "HostName": "Feature test Ubuntu 16 vulnerability fixing v_txmitan",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 226,
                    "NotPassedItemCount": 131,
                    "ItemCount": 357,
                    "FirstTime": "2022-08-03 14:10:06",
                    "LastTime": "2022-08-22 21:37:14",
                    "Uuid": "044889f8-d6a2-4fc3-a8a8-c114b6f5266b"
                },
                {
                    "HostId": "d8feb20e-dcdd-461b-9b37-336c42d48657",
                    "HostIp": "172.16.0.49",
                    "HostName": "Many feature test software_ivon",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 176,
                    "NotPassedItemCount": 160,
                    "ItemCount": 336,
                    "FirstTime": "2022-08-03 14:09:26",
                    "LastTime": "2022-08-23 10:48:32",
                    "Uuid": "7168bc08-c1b8-11ea-9053-48fd8e5f474c"
                },
                {
                    "HostId": "346f0497-894c-492f-9afb-ccef1fdb3adc",
                    "HostIp": "172.16.0.40",
                    "HostName": "CWP performance test_ivon",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 178,
                    "NotPassedItemCount": 157,
                    "ItemCount": 335,
                    "FirstTime": "2022-08-17 12:52:39",
                    "LastTime": "2022-08-17 17:24:13",
                    "Uuid": "346f0497-894c-492f-9afb-ccef1fdb3adc"
                },
                {
                    "HostId": "8c09e1b1-5611-45b3-9c02-737996011b81",
                    "HostIp": "172.27.16.8",
                    "HostName": "COS mounting verification_ivon",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 177,
                    "NotPassedItemCount": 158,
                    "ItemCount": 335,
                    "FirstTime": "2022-08-03 14:11:35",
                    "LastTime": "2022-08-23 10:48:21",
                    "Uuid": "8c09e1b1-5611-45b3-9c02-737996011b81"
                },
                {
                    "HostId": "bce5ff2e-8c8d-4077-9acc-80ce542a6937",
                    "HostIp": "172.16.16.10",
                    "HostName": "v_vxuebai",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 178,
                    "NotPassedItemCount": 157,
                    "ItemCount": 335,
                    "FirstTime": "2022-05-10 20:14:37",
                    "LastTime": "2022-08-17 12:52:37",
                    "Uuid": "bce5ff2e-8c8d-4077-9acc-80ce542a6937"
                },
                {
                    "HostId": "ea6ce403-d165-4ed4-8362-958667c9ae37",
                    "HostIp": "172.16.16.33",
                    "HostName": "v_vxuebai-1",
                    "WanIp": "10.104.9.1",
                    "DetectStatus": 0,
                    "PassedItemCount": 178,
                    "NotPassedItemCount": 156,
                    "ItemCount": 334,
                    "FirstTime": "2022-06-21 15:36:02",
                    "LastTime": "2022-08-17 12:51:20",
                    "Uuid": "ea6ce403-d165-4ed4-8362-958667c9ae37"
                }
            ],
            "RequestId": "fca17381-b0fa-45c4-8568-82c186be9dc0",
            "Total": 36
        }
    }
    

    5. Developer Resources

    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
    FailedOperation Operation failed.
    InternalError Internal error
    InvalidParameter Incorrect parameter.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support