tencent cloud

主机安全

动态与公告
产品动态
产品公告
新手指引
产品简介
产品概述
产品优势
基本概念
应用场景
关联产品
功能介绍与版本比较
购买指南
购买安全防护授权
购买日志分析服务
快速入门
操作指南
安全概览
资产概览
主机列表
资产指纹
漏洞管理
基线管理
文件查杀
异常登录
密码破解
恶意请求
高危命令
本地提权
反弹 Shell
Java 内存马
核心文件监控
网络攻击
勒索防御
日志分析
授权管理
告警设置
访问管理指引
混合云安装指引
新手常见问题
软件相关说明
功能行为描述
客户端进程说明
安全基线检测列表
JSON 格式告警数据解析
日志字段数据解析
客户端安装指引
安全评分说明
实践教程
漏洞自动修复
恶意文件处理
故障处理
Linux 入侵类问题排查思路
Windows 入侵类问题排查思路
Linux 客户端离线排查
Windows 客户端离线排查
异常登录的消息提醒
API 文档
History
Introduction
API Category
Asset Management APIs
Virus Scanning APIs
Abnormal Log-in APIs
Password Cracking APIs
Malicious Request APIs
High-Risk Command APIs
Local Privilege Escalation APIs
Reverse Shell APIs
Vulnerability Management APIs
New Baseline Management APIs
Baseline Management APIs
Advanced Defense APIs
Security Operation APIs
Expert Service APIs
Other APIs
Overview Statistics APIs
Settings Center APIs
Making API Requests
Intrusion Detection APIs
Data Types
Error Codes
常见问题
相关协议
Terms of Service
Service Level Agreement
数据处理和安全协议
联系我们
词汇表

DescribeGeneralStat

PDF
聚焦模式
字号
最后更新时间: 2024-12-06 15:40:38

1. API Description

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

This API is used to obtain the statistics data of hosts.

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: DescribeGeneralStat.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.
MachineType No String CVM type
  • CVM: Indicates Tencent CVM.
  • BM: indicates Blackstone physical machine
  • ECM: indicates edge computing server
  • LH: indicates Tencent Cloud Lighthouse
  • Other: Indicates Hybrid cloud machines.
  • MachineRegion No String Machine region. Example: ap-guangzhou, ap-shanghai

    3. Output Parameters

    Parameter Name Type Description
    MachinesAll Integer Total number of hosts
    MachinesUninstalled Integer Total number of hosts not installed with the CWPP client
    AgentsAll Integer Total number of CWPP clients
    AgentsOnline Integer Total number of online CWPP clients
    AgentsOffline Integer Total number of CWPP clients that are offline and shut down
    AgentsPro Integer Total number of Pro Edition CWPP clients
    AgentsBasic Integer Total number of Basic Edition CWPP clients
    AgentsProExpireWithInSevenDays Integer Total number of prepaid Pro Edition CWPP clients that will expire in 7 days
    RiskMachine Integer Total number of risky hosts
    Shutdown Integer Total number of hosts that are shut down
    Offline Integer Total number of offline hosts
    FlagshipMachineCnt Integer Number of Ultimate Edition hosts
    Note: This field may return null, indicating that no valid values can be obtained.
    ProtectDays Integer Protection duration, in days
    Note: This field may return null, indicating that no valid values can be obtained.
    AddedOnTheFifteen Integer Number of hosts added in the last 15 days
    Note: This field may return null, indicating that no valid values can be obtained.
    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 Example

    This example shows you how to obtain statistics on CWPP.

    Input Example

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

    Output Example

    {
        "Response": {
            "MachinesAll": 87,
            "MachinesUninstalled": 37,
            "AgentsAll": 50,
            "AgentsOnline": 7,
            "AgentsOffline": 43,
            "AgentsPro": 12,
            "AgentsBasic": 38,
            "AgentsProExpireWithInSevenDays": 1,
            "RiskMachine": 0,
            "Shutdown": 0,
            "Offline": 0,
            "ProtectDays": 1,
            "FlagshipMachineCnt": 1,
            "AddedOnTheFifteen": 1,
            "RequestId": "cf25fc07-0e89-b71f-cb9a-c3fc030ccfd4"
        }
    }
    

    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
    InternalError Internal error
    InvalidParameter Incorrect parameter.
    InvalidParameter.InvalidFormat Incorrect parameter format.
    InvalidParameter.ParsingError Incorrect parameter parsing.
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter error.

    帮助和支持

    本页内容是否解决了您的问题?

    填写满意度调查问卷,共创更好文档体验。

    文档反馈