All Products
Search
Document Center

Security Center:DescribeCustomizeRuleCount

Last Updated:Jan 10, 2025

Queries the number of custom rules.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribeCustomizeRuleCountget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RoleTypeintegerNo

The type of the view. Valid values:

  • 0: the current Alibaba Cloud account
  • 1: the global account
1
RoleForlongNo

The ID of the account that you switch from the management account.

113091674488****
RegionIdstringNo

The data management center of the threat analysis feature. Specify this parameter based on the region in which your assets reside. Valid values:

  • cn-hangzhou: Your assets reside in regions inside China.
  • ap-southeast-1: Your assets reside in regions outside China.
cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

PlainResponse

Dataobject

The data returned.

InUseRuleNuminteger

The total number of rules.

20
HighRuleNuminteger

The number of rules that are used to identify high-risk threats.

12
MediumRuleNuminteger

The number of rules that are used to identify medium-risk threats.

5
LowRuleNuminteger

The number of rules that are used to identify low-risk threats.

3
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The returned message.

success
RequestIdstring

The request ID.

9AAA9ED9-78F4-5021-86DC-D51C7511****

Examples

Sample success responses

JSONformat

{
  "Data": {
    "InUseRuleNum": 20,
    "HighRuleNum": 12,
    "MediumRuleNum": 5,
    "LowRuleNum": 3,
    "TotalRuleNum": 10,
    "CustomizeRuleNum": 10,
    "PredefinedRuleNum": 10,
    "UnEventRuleNum": 3,
    "ExpertRuleNum": 7,
    "GraphComputingRuleNum": 2,
    "SingleAlertRuleNum": 3,
    "AggregationRuleNum": 3
  },
  "Success": true,
  "Code": 200,
  "Message": "success",
  "RequestId": "9AAA9ED9-78F4-5021-86DC-D51C7511****"
}

Error codes

HTTP status codeError codeError message
500InternalErrorThe request processing has failed due to some unknown error.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-17The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details