Call the ListServiceInstanceBill operation to query bills for service instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:ListServiceInstanceBill |
get |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of entries to return on each page. Maximum value: 100. Default value: 20. |
10 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. |
AAAAAVz7BQqj2xtiNSC3d3RAD38= |
| ServiceInstanceId |
string |
No |
The ID of the service instance. |
si-49793f3bfa034ec6a990 |
| BillingCycle |
string |
Yes |
The billing cycle in YYYY-MM format. Only billing cycles in the last 18 months are supported. |
2024-05 |
| Granularity |
string |
No |
The granularity of the bills to query. Valid values:
If you set this parameter to DAILY, you must also specify BillingDate. |
DAILY |
| BillingDate |
string |
No |
The billing date. This parameter is required only when Granularity is set to DAILY. The format is YYYY-MM-DD. |
2025-04-01 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token that is used to retrieve the next page of results. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc= |
| RequestId |
string |
The request ID. |
2849EE73-AFFA-5AFD-9575-12FA886451DA |
| TotalCount |
integer |
The total number of entries. |
0 |
| MaxResults |
integer |
The number of entries returned per page. Maximum value: 100. Default value: 20. |
10 |
| Item |
array<object> |
A list of billing information for the service instance. |
|
|
object |
The billing information for the service instance. |
||
| SplitBillingCycle |
string |
The month of the split bill. |
2021-07 |
| BillingDate |
string |
The billing date in YYYY-MM-DD format. This parameter is returned only when Granularity is set to DAILY. |
2024-10-23 |
| SubscriptionType |
string |
The billing method. Valid values:
|
Subscription |
| ProductName |
string |
The name of the product to which the resource belongs. |
NLB |
| BillingItemCode |
string |
The code of the billable item. |
disk |
| ProductCode |
string |
The product code. |
sls |
| ProductDetail |
string |
The product details. |
sls |
| InstanceID |
string |
The instance ID. |
rm-bp1z88pb48487907u |
| DeductedByResourcePackage |
string |
The amount deducted by a resource plan. |
0 |
| ListPriceUnit |
string |
The unit of the list price. |
CNY/GB |
| Usage |
string |
The number of input tokens. |
{'EmbeddingTokens': 314} |
| ListPrice |
string |
The list price. |
0.12 |
| UsageUnit |
string |
The unit of the usage. |
GB |
| PretaxGrossAmount |
string |
The pretax gross amount. |
0 |
| InvoiceDiscount |
string |
The discount amount. |
0 |
| PretaxAmount |
string |
The pretax amount. |
0 |
| BillingCycle |
string |
The billing cycle of the computing resources for the instance. This parameter is supported only for pay-as-you-go instances. Valid values:
|
2025-02 |
| BillingItem |
string |
The billable item. |
bandwidth |
| Currency |
string |
The currency. Valid values:
|
RMB |
Examples
Success response
JSON format
{
"NextToken": "AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc=",
"RequestId": "2849EE73-AFFA-5AFD-9575-12FA886451DA",
"TotalCount": 0,
"MaxResults": 10,
"Item": [
{
"SplitBillingCycle": "2021-07",
"BillingDate": "2024-10-23",
"SubscriptionType": "Subscription",
"ProductName": "NLB",
"BillingItemCode": "disk\n",
"ProductCode": "sls",
"ProductDetail": "sls",
"InstanceID": "rm-bp1z88pb48487907u",
"DeductedByResourcePackage": "0",
"ListPriceUnit": "CNY/GB\n",
"Usage": "{'EmbeddingTokens': 314}",
"ListPrice": "0.12",
"UsageUnit": "GB\n",
"PretaxGrossAmount": "0",
"InvoiceDiscount": "0",
"PretaxAmount": "0",
"BillingCycle": "2025-02",
"BillingItem": "bandwidth\n",
"Currency": "RMB"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.