API Name
QueryBillToOSSSubscription
Overview
You can call this API to query the information for billing subscription to OSS bucket .
Response parameters
| Name |
Type |
Description |
| AccountID |
String |
Current account ID. |
| AccountName |
String |
Current account name. |
| Items |
Item |
Subscription items |
Item
| Name |
Type |
Description |
| SubscribeBucket |
String |
OSS bucket name. |
| BucketOwnerId |
String |
OSS bucket owner Id. |
| SubscribeTime |
DateTime |
Subscription time,formate: ‘YYYY-MM-DD hh:mm:ss’. |
| SubscribeLanguage |
String |
Subscription language。 |
| SubscribeType |
String |
Bill file type,BillingItemDetailForBillingPeriod:Bill in Bill item dimension;InstanceDetailForBillingPeriod:Bill in instance dimension. |
Error codes
| Error code |
Description |
HTTP status code |
Description |
| NotApplicable |
This API is not applicable for caller. |
400 |
The error message returned when you are not authorized to use the API. |
| MissingParameter |
The specified parameter xx is mandatory for this request. |
400 |
The error message returned when the xx parameter is not specified. |
| InvalidParameter |
The specified parameter xx is not valid. |
400 |
The error message returned when the xx parameter is invalid. |
Request sample
https://business.aliyuncs.com/?Action=QueryBillToOSSSubscription
Response sample
"Data": { "Items": { "Item": [ { "SubscribeBucket": "billingtestbucket", "BucketOwnerId": "1369168081849304", "SubscribeTime": "2019-10-30 15:40:11", "SubscribeLanguage": "zh", "SubscribeType": "BillingItemDetailForBillingPeriod" } ] }, "AccountID": "1369168081849304", "AccountName": "alixxxcloudtest2"},