Queries a list of gateways and returns their IDs and names.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hcs-sgw:DescribeGateways |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StorageBundleId |
string |
No |
The ID of the gateway cluster. Note
|
sb-0001b2otnkdxrigeq*** |
| PageNumber |
integer |
No |
The page number of the gateway list.
|
1 |
| PageSize |
integer |
No |
The number of entries to return on each page for a paged query.
|
10 |
| ResourceRegionId |
string |
No |
The ID of the region where the resource resides. |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of gateways in the specified gateway cluster. |
2 |
| RequestId |
string |
The request ID. |
2C4A8287-66F4-45F9-84E3-866E4232C763 |
| Message |
string |
The description of the request result. |
successful |
| PageSize |
integer |
The number of entries returned per page in the gateway list. |
10 |
| PageNumber |
integer |
The page number of the gateway list. |
1 |
| Gateways |
object |
||
| Gateway |
array<object> |
The information about the gateways. |
|
|
object |
The information about the gateway. |
||
| VpcId |
string |
The ID of the virtual private cloud (VPC). |
vpc-bp1p0usrgr5z9e7lwr*** |
| Status |
string |
The status of the gateway. Valid values:
|
Running |
| Type |
string |
See the GatewayType parameter |
File |
| Capacity |
integer |
This parameter is deprecated. |
|
| GatewayId |
string |
The gateway ID. |
gw-0001b2odzvl3b1mhi*** |
| IsReleaseAfterExpiration |
boolean |
Indicates whether the subscription gateway is released after it expires. Valid values:
|
false |
| GatewayType |
string |
The type of the gateway
|
File |
| BuyURL |
string |
The purchase URL. This parameter is returned only for subscription gateways. |
https://common-buy-intl.alibabacloud.com/?commodityCode=hcs_sgw_csg_pre&request={"gateway_id":"gw-0007va9bnidei3s8a***”,”directBuy":"false","gateway_class":"standard","cache_cloud_efficiency_size":0}®ionId=cn-hangzhou#/buy |
| EcsInstanceId |
string |
The ID of the ECS instance. |
gw-0001b2onkdzvl3b*** |
| MaxThroughput |
integer |
This parameter is deprecated. |
|
| GatewayClass |
string |
The gateway class. Valid values:
|
Advanced |
| InnerIp |
string |
The mount IP address. |
172.16.0.21 |
| Description |
string |
The description of the gateway. |
|
| Name |
string |
The name of the gateway. |
fio-weekly*** |
| InnerIpv6Ip |
string |
The IPv6 address. |
|
| CreatedTime |
integer |
The time when the gateway was created. This value is a UNIX timestamp. Unit: seconds. |
1577179604 |
| ExpireStatus |
integer |
The expiration status of the gateway. Valid values:
|
0 |
| DataLoadInterval |
integer |
This parameter is deprecated. |
|
| RenewURL |
string |
The renewal URL. |
https://common-buy-intl.alibabacloud.com/?commodityCode=hcs_sgw_csg_pre&orderType=RENEW&instanceId=ca-0007va9bnideidndnu72#/renew |
| IsPostPaid |
boolean |
The billing method. Valid values:
|
true |
| PublicNetworkBandwidth |
integer |
The public bandwidth for data transmission. Unit: Mbit/s. This parameter is supported only by gateways deployed on Alibaba Cloud. |
55 |
| StorageBundleId |
string |
The ID of the gateway cluster. |
sb-0001b2otrigeqkso*** |
| Ip |
string |
The public IP address. |
47.111.145.66 |
| LastErrorKey |
string |
The error keyword. |
|
| ElasticNodes |
object |
||
| ElasticNode |
array |
This parameter is deprecated. |
|
|
string |
This parameter is deprecated. |
||
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-bp1krhkgnahkb9stp0*** |
| CommonBuyInstanceId |
string |
The ID of the instance in the sales system. This parameter is returned only for subscription gateways. |
gw-0001b2onkdzvl3b*** |
| ExpiredTime |
integer |
The expiration time. This value is a UNIX timestamp. Unit: seconds. |
1532426471 |
| GatewayVersion |
string |
The gateway version. |
1.2.6 |
| DataLoadType |
string |
This parameter is deprecated. |
|
| ElasticGateway |
boolean |
This parameter is deprecated. |
|
| Category |
string |
The gateway category.
|
Aliyun |
| ActivatedTime |
integer |
The activation time. This value is a UNIX timestamp. Unit: seconds. |
1577179769 |
| TaskId |
string |
The task ID. |
t-000978oflgrd8ah6p*** |
| Location |
string |
The location of the gateway. Valid values:
|
Cloud |
| GatewayRegionId |
string |
The region of the gateway. |
|
| UntrustedEnvInstanceType |
string |
The actual gateway class in an untrusted environment (CloudBox). |
|
| HighAvailability |
boolean |
Indicates whether the gateway is a cross-zone high availability (HA) gateway. The return values are as follows:
|
|
| SecondaryVSwitchId |
string |
The ID of the vSwitch. This parameter is supported only by HA gateways. |
|
| Code |
string |
The status code. A status code of 200 indicates that the request was successful. |
200 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"TotalCount": 2,
"RequestId": "2C4A8287-66F4-45F9-84E3-866E4232C763",
"Message": "successful",
"PageSize": 10,
"PageNumber": 1,
"Gateways": {
"Gateway": [
{
"VpcId": "vpc-bp1p0usrgr5z9e7lwr***",
"Status": "Running",
"Type": "File",
"Capacity": 0,
"GatewayId": "gw-0001b2odzvl3b1mhi***",
"IsReleaseAfterExpiration": false,
"GatewayType": "File",
"BuyURL": "https://common-buy-intl.alibabacloud.com/?commodityCode=hcs_sgw_csg_pre&request={\"gateway_id\":\"gw-0007va9bnidei3s8a***”,”directBuy\":\"false\",\"gateway_class\":\"standard\",\"cache_cloud_efficiency_size\":0}®ionId=cn-hangzhou#/buy",
"EcsInstanceId": "gw-0001b2onkdzvl3b***",
"MaxThroughput": 0,
"GatewayClass": "Advanced",
"InnerIp": "172.16.0.21",
"Description": "",
"Name": "fio-weekly***",
"InnerIpv6Ip": "",
"CreatedTime": 1577179604,
"ExpireStatus": 0,
"DataLoadInterval": 0,
"RenewURL": "https://common-buy-intl.alibabacloud.com/?commodityCode=hcs_sgw_csg_pre&orderType=RENEW&instanceId=ca-0007va9bnideidndnu72#/renew",
"IsPostPaid": true,
"PublicNetworkBandwidth": 55,
"StorageBundleId": "sb-0001b2otrigeqkso***",
"Ip": "47.111.145.66",
"LastErrorKey": "",
"ElasticNodes": {
"ElasticNode": [
""
]
},
"VSwitchId": "vsw-bp1krhkgnahkb9stp0***",
"CommonBuyInstanceId": "gw-0001b2onkdzvl3b***",
"ExpiredTime": 1532426471,
"GatewayVersion": "1.2.6",
"DataLoadType": "",
"ElasticGateway": true,
"Category": "Aliyun",
"ActivatedTime": 1577179769,
"TaskId": "t-000978oflgrd8ah6p***",
"Location": "Cloud",
"GatewayRegionId": "",
"UntrustedEnvInstanceType": "",
"HighAvailability": true,
"SecondaryVSwitchId": ""
}
]
},
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EmptyStorageBundleId | You must enter a valid ID for the gateway cluster. | You must enter a valid ID for the gateway cluster. |
| 400 | BadPageSize | The specified number of pages is invalid. The number ranges from 1 to 50. | The specified number of pages is invalid. The number ranges from 1 to 50. |
| 400 | BadPageNumber | The specified page number is invalid. The page number must be greater than 0. | The specified page number is invalid. The page number must be greater than 0. |
| 404 | StorageBundleNotExist | The name you specified for the gateway cluster does not exist. You must specify a valid parameter. | The name you specified for the gateway cluster 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.