ListInterveneRules
Retrieves a list of intervention rules.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information of the API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: refers to the specific permission point.
-
Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: refers to the resource types that support authorization for the operation. Details are as follows:
- For required resource types, an asterisk (*) is added as a prefix.
- For operations that do not support resource-level authorization,
All Resourcesis used.
-
Condition key: refers to the condition keys defined by the cloud service itself.
-
Dependent action: refers to other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:ListInterveneRules | list | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier of the workspace: AgentKey | c160c841c8e54295bf2f441432785944_p_efm |
| PageIndex | integer | No | Page number | 1 |
| PageSize | integer | No | Page size | 10 |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | success |
| Data | object | Business data | |
| Count | long | Number of items | 1 |
| InterveneRuleList | array<object> | List of rules | |
| InterveneRuleList | object | Rule description | |
| AnswerConfig | array<object> | Answer configuration | |
| AnswerConfig | object | Answer configuration item | |
| AnswerType | integer | Answer type Valid values:
| 0 |
| Message | string | Answer content | Sorry, I cannot answer |
| Namespace | string | Namespace | namespace_qa_query |
| CreateTime | string | Creation time | 2023-06-05 15:17:01 |
| EffectTime | string | Effective time | 2023-04-03 02:42:01 |
| InterveneType | integer | Intervention type Valid values:
| 0 |
| NamespaceList | array | List of namespaces | |
| NamespaceList | string | Intervention scope Valid values:
| namespace_qa_query |
| RuleId | long | Rule ID | mr-iuo9pi9w555phfbb |
| RuleName | string | Rule name | ruletest |
| PageIndex | integer | Page number | 1 |
| PageSize | integer | Page size | 10 |
| Code | integer | Status code returned by the intervention service | 200 |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | success |
| RequestId | string | Unique request identifier | DA021073-17CE-5CCF-9FEB-93226C766887 |
| Success | boolean | Indicates whether the operation succeeded: true for success, false for failure | true |
Examples
Success response
JSON format
{
"Code": "success",
"Data": {
"Count": 1,
"InterveneRuleList": [
{
"AnswerConfig": [
{
"AnswerType": 0,
"Message": "Sorry, I cannot answer",
"Namespace": "namespace_qa_query"
}
],
"CreateTime": "2023-06-05 15:17:01",
"EffectTime": "2023-04-03 02:42:01",
"InterveneType": 0,
"NamespaceList": [
"namespace_qa_query"
],
"RuleId": 0,
"RuleName": "ruletest"
}
],
"PageIndex": 1,
"PageSize": 10,
"Code": 200
},
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "DA021073-17CE-5CCF-9FEB-93226C766887",
"Success": true
}
Error codes
Visit the Error Center to view more error codes.