GetInterveneRuleDetail
Retrieves the details of an intervention rule.
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.
RAM authorization
The following table describes the authorization information for this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization, All Resources is used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent operation: other permissions required to successfully perform the operation. The caller must have the permissions of the dependent operations as well for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| aimiaobi:GetInterveneRuleDetail | get | *All resources * |
| None |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier of the workspace: AgentKey | 2daaa2e0c209xb26acb97009ea77bd4b_p_efm |
| RuleId | long | No | Rule ID | 12345 |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | 0 |
| Data | object | Business data | |
| InterveneRuleDetail | object | Rule detail structure | |
| AnswerConfig | array<object> | Answer information configuration | |
| AnswerConfig | object | ||
| AnswerType | integer | Answer type Valid values:
| 0 |
| Message | string | Answer content | Good morning |
| Namespace | string | Namespace Valid values:
| namespace_qa_query |
| EffectConfig | object | Activation configuration | |
| EffectType | integer | Activation type Valid values:
| 0 |
| EndTime | string | End time | 2023-11-25 14:21:15 |
| StartTime | string | Start time | 2023-11-25 14:21:15 |
| InterveneType | integer | Intervention type Valid values:
| 0 |
| NamespaceList | array | Namespace list | |
| NamespaceList | string | Intervention dimension Valid values:
| namespace_qa_query |
| RuleId | long | Rule ID | 100418 |
| RuleName | string | Rule name | Rule001 |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | success |
| RequestId | string | Unique request ID | 428DCC0D-3C63-5306-BD1B-124396AB97BE |
| Success | boolean | Indicates whether the request is successful: true for success, false for failure | true |
Examples
Normal response example
JSON format
{
"Code": 0,
"Data": {
"InterveneRuleDetail": {
"AnswerConfig": [
{
"AnswerType": 0,
"Message": "早上好",
"Namespace": "namespace_qa_query"
}
],
"EffectConfig": {
"EffectType": 0,
"EndTime": "2023-11-25 14:21:15",
"StartTime": "2023-11-25 14:21:15"
},
"InterveneType": 0,
"NamespaceList": [
"namespace_qa_query"
],
"RuleId": 100418,
"RuleName": "规则001"
},
"Code": 0
},
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "428DCC0D-3C63-5306-BD1B-124396AB97BE",
"Success": true
}
Error codes
Visit the Error Center to view more error codes.