tencent cloud

フィードバック

DescribeBaselineItemList

最終更新日:2024-08-27 11:41:40

1. API Description

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

This API is used to obtain the list of check results on baseline check items.

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: DescribeBaselineItemList.
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
  • RuleId - int64 - required: no - rule ID
  • HostId - string - required: no - host ID
  • HostName - string - required: no - host name
  • HostIp - string - required: no - host IP
  • ItemId - String - required: no - detection item ID
  • ItemName - String - required: no - item name
  • DetectStatus - int - required: no - detection status [0: not passed|3: passed|5: detecting]
  • 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 sorting columns

    3. Output Parameters

    Parameter Name Type Description
    List Array of BaselineItem 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 Detection Item Results

    Input Example

    POST / HTTP/1.1
    Host: cwp.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeBaselineItemList
    <Common request parameters>
    
    {
        "Limit": "1",
        "Offset": "1"
    }
    

    Output Example

    {
        "Response": {
            "List": [
                {
                    "ItemId": 3077,
                    "ItemName": "Ensure that DNS service is not enabled.",
                    "CategoryId": 19,
                    "ItemDesc": "The Domain Name System (DNS) is a hierarchical naming system that maps names to IP addresses to connect computers on the network, services, and other resources.\n",
                    "FixMethod": "Run the following command to disable named:\n# systemctl disable bind9.",
                    "RuleName": "International standard-Ubuntu 16 security baseline check level 1",
                    "DetectResultDesc": "",
                    "Level": 2,
                    "CanBeFixed": 0,
                    "DetectStatus": 3,
                    "HostName": "Functional test ubuntu16 vulnerability fix v_txmitan",
                    "HostIp": "172.23.16.14",
                    "HostId": "044889f8-d6a2-4fc3-a8a8-c114b6f5266b",
                    "WanIp": "10.104.9.1",
                    "LastTime": "2022-08-22 09:48:42",
                    "FirstTime": "2022-08-06 09:43:07",
                    "Uuid": "044889f8-d6a2-4fc3-a8a8-c114b6f5266b"
                }
            ],
            "RequestId": "3a2b20bc-2e93-46b3-8bb7-b655aa249c00",
            "Total": 8412
        }
    }
    

    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.