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."
}

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈