GetAgent
Updated at:
Copy as MD
Retrieves agent metadata.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:GetAgent |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The agent name. |
my-agent |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Message |
string |
The error message. |
Agent with name 'xxx' not found for account 1186xxx |
| RequestId |
string |
The request ID. |
E0FFAB67-XXXXXX-CAD4D37448C4 |
| Data | Agent |
The returned result. |
true |
| Code |
string |
The API status or POP error code. Valid values: Success: succeeded. |
Success |
| Success |
boolean |
Returns true if the operation is successful. |
true |
Examples
Success response
JSON format
{
"Message": "Agent with name 'xxx' not found for account 1186xxx",
"RequestId": "E0FFAB67-XXXXXX-CAD4D37448C4",
"Data": {
"Name": "",
"Description": "",
"Prompt": "",
"Metadata": {
"Attachments": [
{
"MimeType": "inner-resource/event-table",
"Arn": "acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-xxx/table/order"
}
]
},
"CreatedAt": 0,
"UpdatedAt": 0
},
"Code": "Success",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
Is this page helpful?