GetInterveneRuleDetail

Updated at:

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.

Debug

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.

OperationAccess levelResource typeCondition keyDependent operation
aimiaobi:GetInterveneRuleDetailget
*All resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
AgentKeystringYes

Unique identifier of the workspace: AgentKey

2daaa2e0c209xb26acb97009ea77bd4b_p_efm
RuleIdlongNo

Rule ID

12345

Response elements

ElementTypeDescriptionExample
object

PlainResult

Codestring

Status code

0
Dataobject

Business data

InterveneRuleDetailobject

Rule detail structure

AnswerConfigarray<object>

Answer information configuration

AnswerConfigobject
AnswerTypeinteger

Answer type

Valid values:
  • 0-Uniform response: 0-Uniform response.
  • 1-Directed response: 1-Directed response.
0
Messagestring

Answer content

Good morning
Namespacestring

Namespace

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

Activation configuration

EffectTypeinteger

Activation type

Valid values:
  • 0-Permanent: 0-Permanent.
  • 1-Time-based activation: 1-Time-based activation.
0
EndTimestring

End time

2023-11-25 14:21:15
StartTimestring

Start time

2023-11-25 14:21:15
InterveneTypeinteger

Intervention type

Valid values:
  • 3-Keyword library intervention item: 3-Keyword library intervention item.
  • 0-Similar question intervention item: 0-Similar question intervention item.
  • 2-Regular expression intervention item: 2-Regular expression intervention item.
  • 4-URL intervention: 4-URL intervention.
  • 1-Keyword expression intervention item: 1-Keyword expression intervention item.
0
NamespaceListarray

Namespace list

NamespaceListstring

Intervention dimension

Valid values:
  • namespace_writing_image (intelligent image generation): namespace_writing_image (intelligent image generation).
  • namespace_qa_query (Q&A input intervention): namespace_qa_query (Q&A input intervention).
  • namespace_qa_article (Q&A reference): namespace_qa_article (Q&A reference).
  • namespace_writing_article (writing reference): namespace_writing_article (writing reference).
  • 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

100418
RuleNamestring

Rule name

Rule001
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

success
RequestIdstring

Unique request ID

428DCC0D-3C63-5306-BD1B-124396AB97BE
Successboolean

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.