All Products
Search
Document Center

PolarDB:DescribeCostRules

Last Updated:Jun 10, 2026

Mengkueri aturan biaya.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST  HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

PageNumber

integer

No

Nomor halaman.

1

PageSize

integer

No

Jumlah entri per halaman. Nilai valid:

  • 30

  • 50

  • 100

Nilai default: 30.

30

GwClusterId

string

Yes

ID Instans gerbang.

pg-xxxxxxxx

ModelName

string

No

Nama model, seperti gpt-4 atau qwen-turbo.

qwen3-max

ModelServiceId

string

No

ID layanan model.

ms-xxxxxx

RegionId

string

No

ID Wilayah.

cn-beijing

Elemen respons

Element

Type

Description

Example

object

The data returned.

RequestId

string

The request ID.

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

TotalRecordCount

integer

The total number of records.

1

PageRecordCount

integer

The number of records on the current page.

30

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries returned per page.

30

Items

array<object>

A list of cost rules.

object

A cost rule.

InputCostPointsPerMillion

string

The cost in points per one million input tokens.

0

OutputCostPointsPerMillion

string

The cost in points per one million output tokens.

0

CacheCostPointsPerMillion

string

The cost in points per one million cached tokens.

0

Model

string

The model name.

gpt-4

ModelServiceId

string

The model service ID.

ms-xxxxxxxxx

CostRuleId

string

The cost rule ID.

924d450014e64e88ac6e8486f8e990**

GwClusterId

string

The gateway instance ID.

pg-xxxxxxxxxx

GmtCreated

string

The time when the cost rule was created.

2026-01-04T16:09:29+08:00

GmtModified

string

The time when the cost rule was last updated.

2024-10-16 16:46:20

Contoh

Respons sukses

JSONformat

{
  "RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
  "TotalRecordCount": 1,
  "PageRecordCount": 30,
  "PageNumber": 1,
  "PageSize": 30,
  "Items": [
    {
      "InputCostPointsPerMillion": "0",
      "OutputCostPointsPerMillion": "0",
      "CacheCostPointsPerMillion": "0",
      "Model": "gpt-4",
      "ModelServiceId": "ms-xxxxxxxxx",
      "CostRuleId": "924d450014e64e88ac6e8486f8e990**",
      "GwClusterId": "pg-xxxxxxxxxx",
      "GmtCreated": "2026-01-04T16:09:29+08:00",
      "GmtModified": "2024-10-16 16:46:20\n"
    }
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.