Retrieves agent storage.
Try it now
Test
RAM authorization
Request syntax
GET /v2/openapi/getagentstorage HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AgentStorageName |
string |
Yes |
agent storage name |
agent-test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
3104C83E-6E82-57FB-BB88-8C64CCFDEF89 |
| AgentStorageName |
string |
agent storage name |
agent-test |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxh4em5jncda |
| RegionId |
string |
The region ID of the agent storage. |
cn-chengdu |
| AliasName |
string |
The alias of the agent storage. |
agent-test |
| UserId |
string |
The user ID. |
16542312566 |
| AgentStorageDescription |
string |
agent storage description |
description for agent storage |
| AgentStorageSpecification |
string |
The specification of the agent storage. |
SSD |
| AgentStorageStatus |
string |
The status of the agent storage. Valid values:
|
normal |
| CreateTime |
string |
The time when the agent storage was created. |
2019-12-23T07:24:33Z |
| Tags |
array<object> |
The tags of the agent storage. |
|
|
object |
The tags of the agent storage. |
||
| Key |
string |
The tag key. |
Owner |
| Value |
string |
The tag value. |
Tester |
| TagKey |
string |
(Deprecated) The tag key. |
keyTestA |
| TagValue |
string |
(Deprecated) The tag value. |
00004a20240452b0 |
| NetworkTypeACL |
array |
The list of network types allowed for the agent storage. CLASSIC: classic network. INTERNET: Internet. VPC: VPC network. |
|
|
string |
The network type allowed for the agent storage. |
INTERNET |
|
| NetworkSourceACL |
array |
The list of network sources allowed for the agent storage. TRUST_PROXY: console. |
|
|
string |
The network source allowed for the agent storage. |
TRUST_PROXY |
|
| Policy |
string |
The access control policy of the agent storage. |
drop |
| PolicyVersion |
integer |
The version of the agent storage policy. |
1 |
Examples
Success response
JSON format
{
"RequestId": "3104C83E-6E82-57FB-BB88-8C64CCFDEF89",
"AgentStorageName": "agent-test",
"ResourceGroupId": "rg-acfmxh4em5jncda",
"RegionId": "cn-chengdu",
"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
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.