ListInterveneRules

Updated at:

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.

Debug

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 Resources is 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.

ActionAccess levelResource typeCondition keyDependent action
aimiaobi:ListInterveneRuleslist
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

Unique identifier of the workspace: AgentKey

c160c841c8e54295bf2f441432785944_p_efm
PageIndexintegerNo

Page number

1
PageSizeintegerNo

Page size

10

Response parameters

NameTypeDescriptionExample value
object

PlainResult

Codestring

Status code

success
Dataobject

Business data

Countlong

Number of items

1
InterveneRuleListarray<object>

List of rules

InterveneRuleListobject

Rule description

AnswerConfigarray<object>

Answer configuration

AnswerConfigobject

Answer configuration item

AnswerTypeinteger

Answer type

Valid values:
  • 0 - Unified response: 0 - Unified response.
  • 1 - Targeted response: 1 - Targeted response.
0
Messagestring

Answer content

Sorry, I cannot answer
Namespacestring

Namespace

namespace_qa_query
CreateTimestring

Creation time

2023-06-05 15:17:01
EffectTimestring

Effective time

2023-04-03 02:42:01
InterveneTypeinteger

Intervention type

Valid values:
  • 0 - Permanent: 0 - Permanent.
  • 1 - Time-based: 1 - Time-based.
0
NamespaceListarray

List of namespaces

NamespaceListstring

Intervention scope

Valid values:
  • namespace_qa_query (Q&A input intervention): namespace_qa_query (Q&A input intervention).
  • namespace_qa_result (Q&A result intervention): namespace_qa_result (Q&A result intervention).
  • namespace_writing_result (Writing result intervention): namespace_writing_result (Writing result intervention).
  • namespace_writing_query (Writing input intervention): namespace_writing_query (Writing input intervention).
namespace_qa_query
RuleIdlong

Rule ID

mr-iuo9pi9w555phfbb
RuleNamestring

Rule name

ruletest
PageIndexinteger

Page number

1
PageSizeinteger

Page size

10
Codeinteger

Status code returned by the intervention service

200
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

success
RequestIdstring

Unique request identifier

DA021073-17CE-5CCF-9FEB-93226C766887
Successboolean

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.