All Products
Search
Document Center

QueryBillToOSSSubscription

Last Updated: Nov 14, 2019

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

  1. https://business.aliyuncs.com/?Action=QueryBillToOSSSubscription

Response sample

  1. "Data": {
  2. "Items": {
  3. "Item": [
  4. {
  5. "SubscribeBucket": "billingtestbucket",
  6. "BucketOwnerId": "1369168081849304",
  7. "SubscribeTime": "2019-10-30 15:40:11",
  8. "SubscribeLanguage": "zh",
  9. "SubscribeType": "BillingItemDetailForBillingPeriod"
  10. }
  11. ]
  12. },
  13. "AccountID": "1369168081849304",
  14. "AccountName": "alixxxcloudtest2"
  15. },