列举智能体存储。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ots:ListAgentStorages |
list |
*全部资源
|
无 | 无 |
请求语法
GET /v2/openapi/listagentstorages HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Status |
string |
否 |
智能体存储状态。 |
normal |
| MaxResults |
integer |
否 |
本次请求返回标签资源的最大个数。 |
20 |
| NextToken |
string |
否 |
当预期返回的标签资源总数大于设置的 MaxResults 时,将作为查询后续页的凭证。只有当资源标签未全部返回时,此参数才有值。 |
CAESCG15aC1xxxxx |
| AgentStorageName |
string |
否 |
智能体存储名称 |
agent-test |
| ResourceGroupId |
string |
否 |
资源组 ID,可通过资源组控制台查询。 |
rg-acfmxh4em5jncda |
| AgentStorageNameList |
array |
否 |
智能体存储名称列表,用于批量查询多个指定智能体存储。 |
|
|
string |
否 |
智能体存储名称,精准匹配查询。 |
agent-test |
|
| Tag |
array<object> |
否 |
标签列表。 |
|
|
object |
否 |
标签列表。 |
||
| Key |
string |
否 |
标签键。 |
Owner |
| Value |
string |
否 |
标签值。 |
Tester |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结构体 |
||
| RequestId |
string |
请求 ID,可用于排查和定位问题 |
39871ED2-62C0-578F-A32E-B88072D5582F |
| TotalCount |
integer |
返回智能体存储的总条数。 |
1 |
| NextToken |
string |
当预期返回的标签资源总数大于设置的 MaxResults 时,将作为查询后续页的凭证。只有当资源标签未全部返回时,此参数才有值。 |
CAESCG15aC1xxxxx |
| AgentStorages |
array<object> |
智能体存储信息列表。 |
|
|
object |
|||
| AgentStorageName |
string |
智能体存储名称,唯一键 |
agent-test |
| ResourceGroupId |
string |
资源组 ID |
rg-acfmxh4em5jnbcd |
| RegionId |
string |
智能体存储的地域 ID。 |
cn-shanghai-cloudspe |
| AliasName |
string |
智能体存储别名。 |
btnots |
| UserId |
string |
用户 ID |
13542356466 |
| AgentStorageDescription |
string |
智能体存储描述 |
description for agent storage |
| AgentStorageSpecification |
string |
智能体存储规格。 |
SSD |
| AgentStorageStatus |
string |
智能体存储状态。
|
normal |
| CreateTime |
string |
智能体存储的创建时间。 |
2025-04-16T06:02:59Z |
示例
正常返回示例
JSON格式
{
"RequestId": "39871ED2-62C0-578F-A32E-B88072D5582F",
"TotalCount": 1,
"NextToken": "CAESCG15aC1xxxxx",
"AgentStorages": [
{
"AgentStorageName": "agent-test",
"ResourceGroupId": "rg-acfmxh4em5jnbcd",
"RegionId": "cn-shanghai-cloudspe",
"AliasName": "btnots",
"UserId": "13542356466",
"AgentStorageDescription": "description for agent storage",
"AgentStorageSpecification": "SSD",
"AgentStorageStatus": "normal",
"CreateTime": "2025-04-16T06:02:59Z"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。