All Products
Search
Document Center

PolarDB:DescribeModelServices

Last Updated:Oct 29, 2026

Queries the model service list.

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:DescribeModelServices

get

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

GwClusterId

string

Yes

The gateway instance ID.

pg-xxxxxxxxxx

Name

string

No

The model service name.

testName

ModelServiceIds

string

No

The model service IDs.

ms-xxx,ms-xxxx

ModelCategory

string

No

The model category.

text

Protocol

string

No

The protocol type. Valid values:

  • openai

  • anthropic

  • bailian

  • vllm

openai

Status

string

No

The status.

Enable

PageSize

integer

No

The number of entries per page.

30

PageNumber

integer

No

The page number.

1

RegionId

string

No

The region ID.

cn-beijing

Response elements

Element

Type

Description

Example

object

Schema of Response

Items

array<object>

The list of model services.

object

The model service object.

ApiKey

string

The API key of the model service.

xxxx

BaseUrl

string

The upstream service endpoint.

https://xxxxxx

GmtCreated

string

The creation date of the model.

2026-03-31T14:40:48Z

InputCostPointsPerMillion

string

The input points.

10

ModelCategory

string

The category.

text

ModelServiceId

string

The model service IDs.

ms-xxxxxx

Name

string

The model service name.

test

OutputCostPointsPerMillion

string

The output points.

10

Protocol

string

The protocol type. Valid values:

  • openai

  • anthropic

  • bailian

  • vllm

openai

RequestCostPoints

string

The number of requests.

10

Status

string

The status.

Enable

Vendor

string

The model service provider.

bailian

PageNumber

integer

The current page number.

1

PageRecordCount

integer

The number of entries on the current page.

30

PageSize

integer

The number of entries per page. Valid values:

  • 30

  • 50

  • 100

Default value: 30.

30

RequestId

string

Id of the request

24A1990B-4F6E-482B-B8CB-75C612******

TotalRecordCount

integer

The total number of entries.

2

Examples

Success response

JSON format

{
  "Items": [
    {
      "ApiKey": "xxxx",
      "BaseUrl": "https://xxxxxx",
      "GmtCreated": "2026-03-31T14:40:48Z",
      "InputCostPointsPerMillion": "10",
      "ModelCategory": "text",
      "ModelServiceId": "ms-xxxxxx",
      "Name": "test",
      "OutputCostPointsPerMillion": "10",
      "Protocol": "openai",
      "RequestCostPoints": "10",
      "Status": "Enable",
      "Vendor": "bailian"
    }
  ],
  "PageNumber": 1,
  "PageRecordCount": 30,
  "PageSize": 30,
  "RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
  "TotalRecordCount": 2
}

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.