获取智能体存储。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /v2/openapi/getagentstorage HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AgentStorageName |
string |
是 |
智能体存储名称 |
agent-test |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结构体 |
||
| RequestId |
string |
请求 ID,可用于排查和定位问题 |
3104C83E-6E82-57FB-BB88-8C64CCFDEF89 |
| AgentStorageName |
string |
智能体存储名称 |
agent-test |
| ResourceGroupId |
string |
资源组 ID |
rg-acfmxh4em5jncda |
| RegionId |
string |
智能体存储的地域 ID。 |
cn-beijing |
| AliasName |
string |
智能体存储别名。 |
agent-test |
| UserId |
string |
用户 ID |
16542312566 |
| AgentStorageDescription |
string |
智能体存储描述 |
description for agent storage |
| AgentStorageSpecification |
string |
智能体存储规格。 |
SSD |
| AgentStorageStatus |
string |
智能体存储状态。
|
normal |
| CreateTime |
string |
创建时间。 |
2019-12-23T07:24:33Z |
| Tags |
array<object> |
智能体存储的标签。 |
|
|
object |
智能体存储的标签。 |
||
| Key |
string |
标签键。 |
Owner |
| Value |
string |
标签值。 |
Tester |
| TagKey |
string |
(已废弃)标签键。 |
keyTestA |
| TagValue |
string |
(已废弃)标签值。 |
00004a20240452b0 |
| NetworkTypeACL |
array |
智能体存储允许的网络类型列表。CLASSIC: 经典网;INTERNET: 公网;VPC:VPC 网络。 |
|
|
string |
智能体存储允许的网络类型。 |
INTERNET |
|
| NetworkSourceACL |
array |
智能体存储允许的网络来源列表。TRUST_PROXY: 控制台; |
|
|
string |
智能体存储允许的网络来源。 |
TRUST_PROXY |
|
| Policy |
string |
智能体存储访问控制策略 |
drop |
| PolicyVersion |
integer |
智能体存储访问控制策略的版本 |
1 |
示例
正常返回示例
JSON格式
{
"RequestId": "3104C83E-6E82-57FB-BB88-8C64CCFDEF89",
"AgentStorageName": "agent-test",
"ResourceGroupId": "rg-acfmxh4em5jncda",
"RegionId": "cn-beijing",
"AliasName": "agent-test",
"UserId": "16542312566\n",
"AgentStorageDescription": "description for agent storage",
"AgentStorageSpecification": "SSD",
"AgentStorageStatus": "normal",
"CreateTime": "2019-12-23T07:24:33Z",
"Tags": [
{
"Key": "Owner",
"Value": "Tester",
"TagKey": "keyTestA",
"TagValue": "00004a20240452b0"
}
],
"NetworkTypeACL": [
"INTERNET"
],
"NetworkSourceACL": [
"TRUST_PROXY"
],
"Policy": "drop",
"PolicyVersion": 1
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。