Query Plug-in Input Configuration
Function
Query Plug-in Input Configuration
URI
POST /v1/{domain_id}/agent-plugin/plugin-input
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Tenant ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. Can be obtained by calling the IAM API for obtaining the user token (the value of X-Subject-Token in the response header). |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| [items] | No | Array of PluginPartQueryDTO objects | Query Request Body |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| [items] | Array of PluginPartQueryVOListAgentPluginInputVO objects | OK |
| Parameter | Type | Description |
|---|---|---|
| plugin_name | String | Plug-in |
| display_name | String | Display Name |
| data | Array of data objects | Viewing execution results |
| Parameter | Type | Description |
|---|---|---|
| unique_id | String | Unique ID |
| name | String | Name |
| default_value | String | Default Value |
| plugin_name | String | Plug-in |
| version | String | Version |
| type | String | Type |
| workspace_id | String | Indicates the tenant ID. |
| validation | ExtensionValidation object | Verification |
| layout_content | String | Style Information |
| Parameter | Type | Description |
|---|---|---|
| required_message | String | Message |
| regex | String | Regex |
| regex_message | String | Regular Message |
| max_length | Integer | Maximum length |
| min_length | Integer | Minimum Length |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error Message |
| error_code | String | Error code. |
Example Requests
POST https://{endpoint}/v1/ce8df55870164338a72d7e828a966a2a/agent-plugin/plugin-input
[ {
"plugin_name" : "official_shell_plugin",
"display_name" : "Executing the Shell",
"version" : "0.0.2",
"plugin_attribution" : "official",
"version_attribution" : "formal"
} ] Example Responses
Status code: 200
OK
[ {
"plugin_name" : "official_shell_plugin",
"display_name" : "Executing the Shell",
"data" : [ {
"unique_id" : "aac7e571b0d4462ba7962ce1735c4ec3",
"name" : "OFFICIAL_SHELL_SCRIPT_INPUT",
"default_value" : "",
"plugin_name" : "official_shell_plugin",
"version" : "0.0.2",
"type" : "shell",
"workspace_id" : "*",
"layout_content" : null,
"front_data_prop" : null,
"label" : "Shell Commands",
"description" : "The user enters the shell command here.",
"required" : "true",
"extend_prop" : {
"api_options" : null,
"api_type" : null,
"options" : null,
"disabled_conditions" : null,
"visible_conditions" : null
},
"validation" : {
"required_message" : null,
"regex" : null,
"regex_message" : null,
"max_length" : null,
"min_length" : null
}
} ]
} ] Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.