Mengambil informasi aturan biaya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeCostRules |
get |
*Semua sumber daya.
|
None | None |
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 yang valid:
Nilai default: 30. |
30 |
| GwClusterId |
string |
Yes |
ID instans gateway. |
pg-xxxxxxxx |
| ModelName |
string |
No |
Nama model, seperti gpt-4 atau qwen-turbo. |
qwen3-max |
| ModelServiceId |
string |
No |
ID layanan model. |
ms-xxxxxx |
| EffectiveTargetType |
string |
No |
Memfilter berdasarkan tipe target efektif. Nilai yang valid: global, consumerGroup, dan consumer. |
global |
| EffectiveTargetValue |
string |
No |
Memfilter berdasarkan nilai target efektif. |
user |
| RegionId |
string |
No |
ID wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan |
24A1990B-4F6E-482B-B8CB-75C612****** |
| TotalRecordCount |
integer |
Total jumlah catatan. |
1 |
| PageRecordCount |
integer |
Jumlah catatan pada halaman saat ini. |
30 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. Nilai yang valid: 30, 50, dan 100. Nilai default: 30. |
30 |
| Items |
array<object> |
Daftar aturan biaya. |
|
|
object |
Objek aturan biaya. |
||
| InputCostPointsPerMillion |
string |
Poin biaya per juta token input. Nilai default: 0. |
0 |
| OutputCostPointsPerMillion |
string |
Poin biaya per juta token output. Nilai default: 0. |
0 |
| CacheCostPointsPerMillion |
string |
Poin biaya per juta token cache. Nilai default: 0. |
0 |
| EffectiveTargetType |
string |
Tipe target efektif. |
global |
| EffectiveTargetValue |
string |
Nilai target efektif. |
user |
| Model |
string |
Nama model. |
gpt-4 |
| ModelServiceId |
string |
ID layanan model. |
ms-xxxxxxxxx |
| CostRuleId |
string |
ID aturan biaya. |
924d450014e64e88ac6e8486f8e990** |
| GwClusterId |
string |
ID instans gateway. |
pg-xxxxxxxxxx |
| GmtCreated |
string |
Waktu pembuatan. |
2026-01-04T16:09:29+08:00 |
| GmtModified |
string |
Waktu modifikasi terakhir. |
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",
"EffectiveTargetType": "global",
"EffectiveTargetValue": "user",
"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.