All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

GetBillingMode

Last updated:2021-03-17 10:53:08

GetBillingMode

Description

You can call this operation to query the current billing mode.

  • You can query billing modes by business type.
  • Scenario: You can query the current billing modes for all business types.

Request syntax

The API request contains the specified directory /2016-09-01/service/GetBillingMode, common request headers, and operation-specific request parameters. For more information, see the sample request.

Request parameters

Parameter Required Type Description
CdnType Yes String The business type. You can specify only one type at a time. Valid values: file, video, page, and live.

Response parameters

Parameter Type Description
BillingMode String The billing mode. Valid values: peakbw (Pay-By-Monthly-Peak), peak95bw (Enhanced 95th Percentile), averagebw (Pay-By-Daily-Peak (Monthly)), and monthflow (Pay-By-Traffic (Monthly)).
Describe String The description of the billing mode.

Examples

Sample request

GET method:

GET /2016-09-01/service/GetBillingMode?CdnType=video 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetBillingMode
x-version: 2016-09-01

POST method:

POST /2016-09-01/service/GetBillingMode 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetBillingMode
x-version: 2016-09-01
Content-Type: application/x-www-form-urlencoded

CdnType=video

JSON format:

POST /2016-09-01/service/GetBillingMode 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetBillingMode
x-version: 2016-09-01

{"CdnType":"video"}

Sample response

{
"BillingMode":"peak95bw",
"Describe":"Statistical points from the first day of the month to the last day are sorted in descending order of bandwidth and numbered from 1 to n. The 95th point (floor(n ?0.05) + 1) is taken as the 95th-percentile peak value. If fewer than 20 points are available on the day, that is, floor(n ?0.05) = 0, the first point is taken as the 95th-percentile peak value."
}
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback