BillingStatistics

Updated at:

Retrieves billing information.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

gemp:BillingStatistics

none

*All Resource

*

None None

Request syntax

POST /charging/details HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The response structure.

data

object

The returned result.

ruleCount

integer

The total number of routing rules.

0

ruleCountFree

integer

The free quota for routing rules.

0

subscriptionNotifyCount

integer

The number of notification subscriptions.

0

subscriptionNotifyCountFree

integer

The free quota for notification subscriptions.

0

escalationPlanCount

integer

The number of escalation policies.

0

escalationPlanCountFree

integer

The free quota for escalation policies.

0

hasScheduleServiceGroupCount

integer

The number of service group schedules.

0

hasScheduleServiceGroupCountFree

integer

The free quota for service group schedules.

0

appUserCount

integer

The number of Cloud and DingTalk collaboration users.

0

appUserCountFree

integer

The free quota for Cloud and DingTalk collaboration users.

0

eventReportApi

integer

The number of alert reporting API calls.

0

eventReportApiFree

integer

The free quota for alert reporting API calls.

0

smsSend

integer

The number of SMS messages sent.

0

smsSendFree

integer

The free quota for SMS messages.

0

voiceSend

integer

The number of voice calls made.

0

voiceSendFree

integer

The free quota for voice calls.

0

emailSend

integer

The number of emails sent.

0

emailSendFree

integer

The free quota for emails.

0

imMsgSend

integer

The number of instant messages sent.

0

imMsgSendFree

integer

The free quota for instant messages.

0

type

boolean

The query status under system control. Valid values:

  • true: Queries the database.

  • false: Does not query the database.

true

RequestId

string

The request ID.

4A83AF20-B471-5646-A2CA-2DC688A13013

Examples

Success response

JSON format

{
  "data": {
    "ruleCount": 0,
    "ruleCountFree": 0,
    "subscriptionNotifyCount": 0,
    "subscriptionNotifyCountFree": 0,
    "escalationPlanCount": 0,
    "escalationPlanCountFree": 0,
    "hasScheduleServiceGroupCount": 0,
    "hasScheduleServiceGroupCountFree": 0,
    "appUserCount": 0,
    "appUserCountFree": 0,
    "eventReportApi": 0,
    "eventReportApiFree": 0,
    "smsSend": 0,
    "smsSendFree": 0,
    "voiceSend": 0,
    "voiceSendFree": 0,
    "emailSend": 0,
    "emailSendFree": 0,
    "imMsgSend": 0,
    "imMsgSendFree": 0,
    "type": true
  },
  "RequestId": "4A83AF20-B471-5646-A2CA-2DC688A13013"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.