Queries the details of a gateway instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeGatewayAttribute |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
The ID of the gateway instance. Example: pg-xxxxxxx. |
pg-xxxxxxx |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ClassCode |
string |
The specification code. |
polar.app.g2.medium |
| CreateTime |
string |
The creation time. The time is in ISO 8601 format and the UTC time zone (YYYY-MM-DDTHH:mm:ssZ). |
2020-02-24T11:57:54Z |
| CurrentVersion |
string |
The current version number. |
2.0.0 |
| DbType |
string |
The database type. |
MySQL |
| Endpoints |
array<object> |
The list of endpoints. |
|
|
object |
The endpoint object. |
||
| Address |
string |
The endpoint address. |
pg-xxxxx.polardbaigateway.pre.rds.aliyuncs.com |
| EndpointId |
string |
The endpoint ID. |
xxx |
| GwClusterId |
string |
The gateway instance ID. |
pg-xxxxxxx |
| NetType |
string |
The endpoint type. Valid values:
|
Public |
| Port |
string |
The port. |
8080 |
| TunnelId |
string |
The tunnel ID. |
1874631 |
| VpcId |
string |
The ID of the VPC to which the vSwitch belongs. |
vpc-************* |
| ExpireTime |
string |
The expiration time. This parameter is empty when the billing method is pay-as-you-go. The time is in ISO 8601 format and the UTC time zone (YYYY-MM-DDTHH:mm:ssZ). |
2027-04-22T16:00:00Z |
| Expired |
boolean |
Indicates whether the cluster has expired. Valid values:
|
False |
| GwClusterId |
string |
The gateway instance ID. |
pg-xxxxxxx |
| GwDescription |
string |
The description of the gateway. |
xxx |
| LatestVersion |
string |
The latest version number. |
2.0.1 |
| ModifyTime |
string |
The last modification time. The time is in ISO 8601 format and the UTC time zone (YYYY-MM-DDTHH:mm:ssZ). |
2025-10-07T02:19:55Z |
| PayType |
string |
The billing method. Valid values:
|
Postpaid |
| RegionId |
string |
The region ID. |
cn-beijing |
| RequestId |
string |
Id of the request |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| RunningVersion |
string |
The running version number. |
2.0.0 |
| SecurityIPArrays |
array<object> |
The application-level whitelist. |
|
|
object |
The application-level whitelist. |
||
| SecurityIPArrayName |
string |
The name of the IP address whitelist. Default value: |
default |
| SecurityIPArrayTag |
string |
The tag of the IP address whitelist. |
mytag |
| SecurityIPList |
string |
The IP addresses in the whitelist, separated by commas. |
127.0.0.1 |
| Status |
string |
The application status. Valid values:
|
ACTIVATION |
| VSwitchId |
string |
The vSwitch ID. |
vsw-********************* |
| VpcId |
string |
The ID of the VPC to which the vSwitch belongs. |
vpc-************* |
Examples
Success response
JSON format
{
"ClassCode": "polar.app.g2.medium",
"CreateTime": "2020-02-24T11:57:54Z",
"CurrentVersion": "2.0.0",
"DbType": "MySQL",
"Endpoints": [
{
"Address": "pg-xxxxx.polardbaigateway.pre.rds.aliyuncs.com",
"EndpointId": "xxx",
"GwClusterId": "pg-xxxxxxx",
"NetType": "Public",
"Port": "8080",
"TunnelId": "1874631",
"VpcId": "vpc-*************"
}
],
"ExpireTime": "2027-04-22T16:00:00Z",
"Expired": true,
"GwClusterId": "pg-xxxxxxx",
"GwDescription": "xxx",
"LatestVersion": "2.0.1",
"ModifyTime": "2025-10-07T02:19:55Z",
"PayType": "Postpaid",
"RegionId": "cn-beijing",
"RequestId": "3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF",
"RunningVersion": "2.0.0",
"SecurityIPArrays": [
{
"SecurityIPArrayName": "default",
"SecurityIPArrayTag": "mytag",
"SecurityIPList": "127.0.0.1"
}
],
"Status": "ACTIVATION",
"VSwitchId": "vsw-*********************",
"VpcId": "vpc-*************"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidPolarGatewayInstanceId.NotFound | The gateway instance id provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.