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.
Method | Request URI
|
---|---|
GET | https://restapi.cdn.azure.cn/subscriptions/{subscriptionId}/endpoints/{endpointId}/cacherules?apiVersion=1.0 |
Parameter name | Description
|
---|---|
subscriptionId | Subscription unique identifier |
endpointId | Target node unique identifier |
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. |
None
A response comprises a status code, response headers, and a response body.
Status code | Description |
---|---|
200 | Indicates that the server has returned a response successfully. |
Other | General response indicating that an error has occurred. |
Response header | Description |
---|---|
X-Correlation-Id | The request's unique identifier, which is used to track request information. |
JSON example for request succeeded:
{
"Rules": [
{
"Type": "Dir",
"Items": [
"/test1/",
"/test2/"
],
"TTL": 86400
},
{
"Type": "Suffix",
"Items": [
"7z",
"apk",
"wdf",
"cab"
],
"TTL": 2592000
},
{
"Type": "FullUri",
"Items": [
"/test1/test.xml",
"/test2/test.txt"
],
"TTL": 86400
},
],
"IgnoreCacheControl": false,
"IgnoreCookie": false,
"IgnoreQueryString": false
}
Parameter name | Description |
---|---|
TTL | The cache time, in seconds. |
IgnoreCacheControl | Indicates whether to ignore the cache-control header in the returned header and cache the request content. |
IgnoreCookie | Indicates whether to ignore the set-cookie header in the returned header and cache the request content. |
IgnoreQueryString | Indicates whether to ignore the query parameter and cache the request content. |
Type | Cache rule type
|
JSON example for request failed:
{
"Succeeded": false,
"ErrorInfo": {
"Type": "MissingAuthorizationHeader",
"Message": "Missing authorization header."
}
}
Parameter name | Description |
---|---|
Type | Error type
|
Message | Error information |