DescribeGateway
Queries the basic information of a specified gateway, including details such as the gateway status and type.
Operation description
Operation description
Take note of the following items when you call this operation:
-
Make sure that you fully understand the billing methods and pricing of Cloud Storage Gateway before calling this operation.
-
If you need to purchase a gateway, you can use the purchase URL or renewal URL returned by this operation to purchase or renew the gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hcs-sgw:DescribeGateway |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
string |
Yes |
The gateway ID. |
gw-000eg44nmxbsfwbvq*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The query result of the basic gateway information. |
||
| Description |
string |
The description of the gateway. |
For testing |
| CreatedTime |
integer |
The time when the gateway was created. The timestamp is in seconds. |
1532099461 |
| PublicNetworkBandwidth |
integer |
The Internet bandwidth for data, in Mbit/s. This parameter is returned if the gateway is a cloud gateway. |
5 |
| DataLoadType |
string |
[Deprecated] |
Deprecated |
| Category |
string |
The category of the gateway. Default value: |
Aliyun |
| TaskId |
string |
The task ID. |
t-0000iwdggbharrw6r*** |
| Message |
string |
The description of the request result. |
successful |
| ExpireStatus |
integer |
The expiration status of the subscription gateway. Valid values:
|
0 |
| Ip |
string |
The public IP address. |
47.101.**.** |
| GatewayType |
string |
The type of the gateway. Valid values:
|
File |
| StorageBundleId |
string |
The ID of the gateway cluster. |
sb-000dt67z4ijqfocpy*** |
| GatewayClass |
string |
The specifications of the gateway. This parameter is returned only if the gateway is a cloud gateway. Valid values:
|
Basic |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Name |
string |
The name of the gateway. |
alex*** |
| IsPostPaid |
boolean |
Indicates whether the gateway is a pay-as-you-go gateway. Valid values:
|
true |
| Capacity |
integer |
[Deprecated] |
500 |
| ExpiredTime |
integer |
The expiration time of the subscription gateway. The timestamp is in milliseconds. |
1532530021 |
| GatewayVersion |
string |
The version of the gateway. |
1.0.39 |
| IsReleaseAfterExpiration |
boolean |
Indicates whether an upfront gateway is released upon expiration. Valid values:
|
false |
| Status |
string |
The status of the gateway. Valid values:
|
Initialized |
| BuyURL |
string |
The purchase and payment URL for the subscription gateway when the payment is incomplete. |
https://expense.console.aliyun.com/?returnExpense=true#/order/list/ |
| MaxThroughput |
integer |
[Deprecated] |
30 |
| DataLoadInterval |
integer |
[Deprecated] |
120 |
| InnerIp |
string |
The mount IP address. |
172.19.55.65 |
| RequestId |
string |
The request ID. |
736C7733-FCED-4AFB-8407-C325F210CE03 |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1b3mvml55ziekq7e*** |
| ElasticNodes |
object |
||
| ElasticNode |
array |
The IP address information of the elastic gateway node. |
|
|
string |
[Deprecated] |
172.16.0.23 |
|
| GatewayId |
string |
The gateway ID. |
gw-0000ewknguw5o96vn*** |
| Code |
string |
The status code. A status code of 200 indicates that the request is successful. |
200 |
| EcsInstanceId |
string |
The ECS instance ID. |
i-uf62406gy5vyao4y8*** |
| Type |
string |
See the GatewayType parameter. |
File |
| RenewURL |
string |
The renewal URL for the subscription gateway. |
https://common-buy.aliyun.com/?commodityCode=hcs_sgw_csg_pre&orderType=RENEW&instanceId=ca-0007va9bnideidndn***#/renew |
| VpcId |
string |
The VPC ID. |
vpc-uf6j237kxmsw08auey*** |
| ActivatedTime |
integer |
The time when the gateway was activated. The timestamp is in seconds. |
1578986214 |
| ElasticGateway |
boolean |
[Deprecated] |
false |
| CommonBuyInstanceId |
string |
The instance ID of the subscription gateway in the sales system. |
gw-000fhosecoziy6ri**** |
| InnerIpv6Ip |
string |
The IPv6 address. |
2408:4004::ffff:ffff:ffff:ffff:ffff:ffff |
| LastErrorKey |
string |
The error keyword. |
InternalError |
| Location |
string |
The location of the gateway. Valid values:
|
Cloud |
| GatewayRegionId |
string |
The region of the gateway. |
cn-hangzhou |
| UntrustedEnvInstanceType |
string |
The actual specifications of the gateway in untrusted (Cloud Box) scenarios. |
ecs.g6.large |
| UntrustedEnvOssEndpoint |
string |
The OSS endpoint of the gateway in untrusted (Cloud Box) scenarios. |
oss-cn-hangzhou.aliyuncs.com |
| HighAvailability |
boolean |
Indicates whether the gateway is a high-availability gateway. |
false |
| SecondaryVSwitchId |
string |
The vSwitch ID of the secondary node for the high-availability gateway. |
vsw-bp1xw499jo5**** |
Examples
Success response
JSON format
{
"Description": "For testing",
"CreatedTime": 1532099461,
"PublicNetworkBandwidth": 5,
"DataLoadType": "Deprecated.",
"Category": "Aliyun",
"TaskId": "t-0000iwdggbharrw6r***",
"Message": "successful",
"ExpireStatus": 0,
"Ip": "47.101.**.**",
"GatewayType": "File",
"StorageBundleId": "sb-000dt67z4ijqfocpy***",
"GatewayClass": "Basic",
"Success": true,
"Name": "alex***",
"IsPostPaid": true,
"Capacity": 500,
"ExpiredTime": 1532530021,
"GatewayVersion": "1.0.39",
"IsReleaseAfterExpiration": false,
"Status": "Initialized",
"BuyURL": "https://expense.console.aliyun.com/?returnExpense=true#/order/list/",
"MaxThroughput": 30,
"DataLoadInterval": 120,
"InnerIp": "172.19.55.65",
"RequestId": "736C7733-FCED-4AFB-8407-C325F210CE03",
"VSwitchId": "vsw-bp1b3mvml55ziekq7e***",
"ElasticNodes": {
"ElasticNode": [
"172.16.0.23"
]
},
"GatewayId": "gw-0000ewknguw5o96vn***",
"Code": "200",
"EcsInstanceId": "i-uf62406gy5vyao4y8***",
"Type": "File",
"RenewURL": "https://common-buy.aliyun.com/?commodityCode=hcs_sgw_csg_pre&orderType=RENEW&instanceId=ca-0007va9bnideidndn***#/renew",
"VpcId": "vpc-uf6j237kxmsw08auey***",
"ActivatedTime": 1578986214,
"ElasticGateway": false,
"CommonBuyInstanceId": "gw-000fhosecoziy6ri****",
"InnerIpv6Ip": "2408:4004::ffff:ffff:ffff:ffff:ffff:ffff",
"LastErrorKey": "InternalError",
"Location": "Cloud",
"GatewayRegionId": "cn-hangzhou",
"UntrustedEnvInstanceType": "ecs.g6.large",
"UntrustedEnvOssEndpoint": "oss-cn-hangzhou.aliyuncs.com",
"HighAvailability": false,
"SecondaryVSwitchId": "vsw-bp1xw499jo5****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EmptyGatewayId | You must enter a valid ID for the gateway. | You must enter a valid ID for the gateway. |
| 400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | The specified gateway does not exist. You must specify a valid parameter. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.