All Products
Search
Document Center

ApsaraVideo VOD:DescribeVodDomainUsageData

最終更新日:Jul 19, 2024

Queries the traffic or bandwidth data of one or more accelerated domain names.

Operation description

  • This operation is available only in the China (Shanghai) region.

  • You can specify up to 100 accelerated domain names in a request. Separate multiple domain names with commas (,). If you do not specify an accelerated domain name, the data of all accelerated domain names within your Alibaba Cloud account is returned.

  • You can query data in the last year. The maximum time range that can be queried is three months. If you specify a time range of one to three days, the system returns data on an hourly basis. If you specify a time range of four days or more, the system returns data on a daily basis.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringNo

The accelerated domain name. If you leave this parameter empty, the merged data of all your accelerated domain names is returned. Separate multiple accelerated domain names with commas (,).

example.com
StartTimestringYes

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2015-12-10T10:20:00Z
EndTimestringYes

The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2015-12-10T12:20:00Z
FieldstringYes

The type of the data to return. Valid values:

  • bps: bandwidth
  • traf: traffic
bps
TypestringNo

The type of content that you want to query. Valid values:

  • static: static content
  • dynamic: dynamic requests
  • all: all content
static
AreastringNo

The region in which you want to query data. Valid values:

  • CN: Chinese mainland
  • OverSeas: outside the Chinese mainland
CN
IntervalstringNo

The time interval between the data entries to return. Unit: seconds. Valid values: 300 (5 minutes), 3600 (1 hour), and 86400 (1 day).

  • If Interval is set to 300, you can query usage data in the last six months. The maximum time range per query that can be specified is three days.
  • If Interval is set to 3600 or 86400, you can query usage data of the previous year.
  • If you do not set the Interval parameter, the maximum time range that you can query is one month. If you specify a time range of 1 to 3 days, the time interval between the entries that are returned is 1 hour. If you specify a time range of at least 4 days, the time interval between the entries that are returned is 1 day.
300

Response parameters

ParameterTypeDescriptionExample
object
EndTimestring

The end of the time range during which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2015-12-10T12:20:00Z
Typestring

The type of the data. Valid values:

  • bps: bandwidth
  • traf: traffic
static
StartTimestring

The start of the time range during which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2015-12-10T10:20:00Z
RequestIdstring

The ID of the request.

B955107D-E658-4E77-****-E0AC3D31693E
Areastring

The billable region where the data was collected.

CN
DomainNamestring

The accelerated domain name.

example.com
DataIntervalstring

The time interval between the entries returned. Unit: seconds.

300
UsageDataPerIntervalarray<object>

The traffic or bandwidth data returned at each interval.

object
Valuestring

The traffic or bandwidth data. Unit: bit/s.

2592.3920000000003
TimeStampstring

The timestamp of the returned data. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2015-12-10T10:00:00Z

Examples

Sample success responses

JSONformat

{
  "EndTime": "2015-12-10T12:20:00Z",
  "Type": "static",
  "StartTime": "2015-12-10T10:20:00Z",
  "RequestId": "B955107D-E658-4E77-****-E0AC3D31693E",
  "Area": "CN",
  "DomainName": "example.com",
  "DataInterval": "300",
  "UsageDataPerInterval": {
    "DataModule": [
      {
        "Value": "2592.3920000000003",
        "TimeStamp": "2015-12-10T10:00:00Z"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-30The Error code has changedView Change Details

Common errors

The following table describes the error codes that this operation can return.

Error codeError messageHTTP status codeDescription
ThrottlingRequest was denied due to request throttling.503The error message returned because the request was denied due to throttling.
IllegalOperationIllegal domain, operation is not permitted.403The error message returned because the domain name is invalid.
OperationDeniedYour account does not open CDN service yet.403The error message returned because Alibaba Cloud CDN is not activated for your Alibaba Cloud account.
OperationDeniedYour CDN service is suspended.403The error message returned because Alibaba Cloud CDN is suspended for your Alibaba Cloud account.
InvalidDomain.NotFoundThe domain provided does not belong to you.404The error message returned because the specified domain name does not exist or does not belong to the current account.
InvalidDomain.OfflineThe domain provided is offline.404The error message returned because the specified domain name is disabled.
ServiceBusyThe specified Domain is configuring, please retry later.403The error message returned because the domain name is being configured. Try again later.
InvalidDomain.Configure_failedFailed to configure the provided domain.500The error message returned because the system failed to configure the domain name.
InvalidParameterInvalid Parameter.400The error message returned because one or more parameters are invalid.
InvalidParameterProductInvalid Parameter Product.400The error message returned because the value of the Product parameter is invalid.
InvalidParameterAreaInvalid Parameter Area.400The error message returned because the value of the Area parameter is invalid.
InvalidParameterFieldInvalid Parameter Field.400The error message returned because the value of the Field parameter is invalid.
InvalidParameterStartTimeInvalid Parameter StartTime.400The error message returned because the value of the StartTime parameter is invalid.
InvalidParameterEndTimeInvalid Parameter EndTime.400The error message returned because the value of the EndTime parameter is invalid.
InvalidTimeRangeStartTime and EndTime range should less than 1 month.400The error message returned because the time range that is specified by the StartTime and EndTime parameters exceeds 31 days.
InvalidParameterIntervalInvalid Parameter Interval.400The error message returned because the value of the Interval parameter is invalid.