你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Endpoints - Purge Content
从 Front Door 中删除内容。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge?api-version=2019-05-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
front
|
path | True |
string |
全局唯一的 Front Door 的名称。 Regex pattern: |
resource
|
path | True |
string |
Azure 订阅中资源组的名称。 Regex pattern: |
subscription
|
path | True |
string |
可以唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
contentPaths | True |
string[] |
待清除内容的路径。 可以描述文件路径或野生卡目录。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
202 Accepted |
接受,操作将以异步方式完成。 |
|
Other Status Codes |
描述操作失败原因的 Front Door 错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Purge content from Front Door
Sample Request
POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/purge?api-version=2019-05-01
{
"contentPaths": [
"/pictures.aspx",
"/pictures/*"
]
}
Sample Response
定义
名称 | 说明 |
---|---|
Error |
错误响应指示 Front Door 服务无法处理传入请求。 错误消息中提供了原因。 |
Purge |
内容清除所需的参数。 |
ErrorResponse
错误响应指示 Front Door 服务无法处理传入请求。 错误消息中提供了原因。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示操作失败原因的错误消息。 |
PurgeParameters
内容清除所需的参数。
名称 | 类型 | 说明 |
---|---|---|
contentPaths |
string[] |
待清除内容的路径。 可以描述文件路径或野生卡目录。 |