Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Request
Method | Request URI
|
---|---|
GET | https://restapi.cdn.azure.cn/subscriptions/{subscriptionId}/endpoints/{endpointId}/volume?apiVersion=1.0 |
URI parameter
Parameter name | Description
|
---|---|
subscriptionId | Subscription unique identifier |
endpointId | Target node unique identifier |
granularity | Traffic statistic granularity
|
startTime | The traffic query start time must be a UTC time in the 'yyyy-MM-ddThh:mm:ssZ' format. |
endTime | The traffic query end time must be a UTC time in the 'yyyy-MM-ddThh:mm:ssZ' format. |
endpointId | Target node unique identifier |
Request header
Request header | Description |
---|---|
x-azurecdn-request-date | Required. Enter the current UTC request time in yyyy-MM-dd hh:mm:ss format. |
Authorization | Required. Refer to CDN API signing mechanism for authorization headers. |
Request body
None
Response
A response comprises a status code, response headers, and a response body.
Status code
Status code | Description |
---|---|
200 | Indicates that the server has returned a response successfully. |
Other | General response indicating that an error has occurred. |
Response header
Response header | Description |
---|---|
X-Correlation-Id | The request's unique identifier, which is used to track request information. |
Response body
JSON example for request succeeded:
{
"DomainName": "www.example.com",
"Items": [
{
"Timestamp": "2017-05-01T16:00:00Z",
"VolumeInMB": 100,
"OriginVolumeInMB": 20
},
{
"Timestamp": "2017-05-02T16:00:00Z",
"VolumeInMB": 200,
"OriginVolumeInMB": 40
}
],
"TotalCdnVolumeInMB": 300,
"TotalOriginVolumeInMB": 60
}
Parameter name | Description |
---|---|
DomainName | Accelerated domain names |
VolumeInMB | CDN traffic |
OriginVolumeInMB | Back to source traffic |
TotalCdnVolumeInMB | CDN total traffic |
TotalOriginVolumeInMB | Back to source total traffic |
JSON example for request failed:
{
"Succeeded": false,
"ErrorInfo": {
"Type": "MissingAuthorizationHeader",
"Message": "Missing authorization header."
}
}
Parameter name | Description |
---|---|
Type | Error type
|
Message | Error information |