All Products
Search
Document Center

PolarDB:DescribeGatewayAttribute

Last Updated:Oct 29, 2026

Queries the details of a gateway instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • Private: VPC address.

  • Public: Internet address.

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:

  • true

  • false

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: pay-as-you-go.

  • Prepaid: subscription.

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.

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:

  • CREATE: Creating.

  • ACTIVATION: Running.

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.