tencent cloud

APIs

DescribeEdrAlertCountForContainer

Download
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-09-01 10:35:53

1. API Description

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

Alarm quantity statistics in the container scenario.

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: DescribeEdrAlertCountForContainer.
Version Yes String Common Params. The value used for this API: 2022-11-21.
Region No String Common Params. This parameter is not required.
MemberId.N No Array of String

Group account member id

ClusterIds.N No Array of String

Cluster ID list (≤500); group statistics by cluster when non-empty and ContainerIds is empty

ContainerIds.N No Array of String

Container ID list (≤500); if not empty, group statistics by container (higher priority than ClusterIds)

Filters.N No Array of EDRFilter
  • PolicyType - int - Required: No - policy type
  • PolicyName - string - Required: No - Policy Name
  • Domain - string - Required: No - domain name (urlencode the domain name first, then base64)
  • PolicyAction- int - Required: No - policy action
  • IsEnabled - int - Required: No - whether it takes effect
  • ContainerId - string - Required: No - container ID (exact/IN, dimension filtering)
  • ClusterId - string - Required: No - Cluster ID (exact/IN, dimension filtering)
  • ClusterName - string - Required: No - cluster name (prefix blurry)
  • ContainerName - string - Required: No - Container name (prefix blurry)
  • AlertSource - string - Required: No - alarm source: HOST-host alarm / CONTAINER-container alarm. If not specified, return all
  • 3. Output Parameters

    Parameter Name Type Description
    GlobalCount EdrContainerGlobalCount

    Global mode returns (when both ID arrays are empty); null in grouping mode

    Items Array of EdrContainerAlertCountItem

    Grouping mode return (when ContainerIds or ClusterIds is not empty); return [] if empty

    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 Querying EDR alerts of container assets

    Input Example

    POST / HTTP/1.1
    Host: csip.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeEdrAlertCountForContainer
    <Common request parameters>
    
    {
        "ContainerIds": [
            "058282413b99b87b10b4c24ab353db46d72b72deba2490969758296b54743676"
        ]
    }

    Output Example

    {
        "Response": {
            "Items": [
                {
                    "ClusterId": "",
                    "ContainerId": "058282413b99b87b10b4c24ab353db46d72b72deba2490969758296b54743676",
                    "TotalCount": 27
                }
            ],
            "RequestId": "2d310e41-4d29-46dc-92da-80e91b96f242"
        }
    }

    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 Parameter error.

    Bantuan dan Dukungan

    Apakah halaman ini membantu?

    masukan