你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Profiles - Migrate
将 CDN 配置文件迁移到 Azure Frontdoor (标准/高级) 配置文件。 需要在此之后提交更改。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/migrate?api-version=2024-02-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
Azure 订阅中的资源组的名称。 正则表达式模式: |
subscription
|
path | True |
string |
Azure 订阅 ID。 |
api-version
|
query | True |
string |
要与客户端请求一起使用的 API 的版本。 当前版本为 2024-02-01。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
classicResourceReference | True |
需要迁移的经典 cdn 配置文件或经典前门的资源引用。 |
|
profileName | True |
string |
需要创建的新配置文件的名称。 |
sku | True |
迁移的 SKU |
|
migrationWebApplicationFirewallMappings |
已迁移配置文件的 Waf 映射 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
202 Accepted |
已接受。 已接受请求进行处理,操作将以异步方式完成。 标头 location: string |
|
Other Status Codes |
描述操作失败原因的 CDN 错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Profiles_Migrate
示例请求
POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/migrate?api-version=2024-02-01
{
"sku": {
"name": "Standard_AzureFrontDoor"
},
"classicResourceReference": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"
},
"profileName": "profile1"
}
示例响应
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/operationresults/operationid/profileresults/profile1/migrateresults/profile1",
"type": "Microsoft.Cdn/migrate",
"properties": {
"migratedProfileResourceId": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1"
}
}
}
azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2024-02-01
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/operationresults/operationid/profileresults/profile1/migrateresults/profile1",
"type": "Microsoft.Cdn/migrate",
"properties": {
"migratedProfileResourceId": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1"
}
}
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Migrate |
迁移操作的结果。 |
Migration |
Migrate 操作的请求正文。 |
Migration |
Web 应用程序防火墙映射 |
Resource |
对另一个资源的引用。 |
Sku |
Standard_Verizon = 标准 Verizon CDN 配置文件的 SKU 名称。 Premium_Verizon = Premium Verizon CDN 配置文件的 SKU 名称。 Custom_Verizon = 自定义 Verizon CDN 配置文件的 SKU 名称。 Standard_Akamai = Akamai CDN 配置文件的 SKU 名称。 Standard_ChinaCdn = 使用基于 GB 的计费模型进行 VOD、Web 和下载方案的中国 CDN 配置文件的 SKU 名称。 Standard_Microsoft = 标准 Microsoft CDN 配置文件的 SKU 名称。 Standard_AzureFrontDoor = Azure Front Door 标准配置文件的 SKU 名称。 Premium_AzureFrontDoor = Azure Front Door Premium 配置文件的 SKU 名称。 Standard_955BandWidth_ChinaCdn = 使用 95-5 峰值带宽计费模型的 VOD、Web 和下载方案的中国 CDN 配置文件的 SKU 名称。 Standard_AvgBandWidth_ChinaCdn = 使用每月平均峰值带宽计费模型的 VOD、Web 和下载方案的中国 CDN 配置文件的 SKU 名称。 StandardPlus_ChinaCdn = 使用基于 GB 的计费模型进行实时流式传输的中国 CDN 配置文件的 SKU 名称。 StandardPlus_955BandWidth_ChinaCdn = 使用 95-5 峰值带宽计费模型的中国 CDN 实时流式处理配置文件的 SKU 名称。 StandardPlus_AvgBandWidth_ChinaCdn = 使用每月平均峰值带宽计费模型的中国 CDN 实时流式处理配置文件的 SKU 名称。 |
Sku |
定价层的名称。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
MigrateResult
迁移操作的结果。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
properties.migratedProfileResourceId |
已迁移配置文件的 Arm 资源 ID |
|
type |
string |
资源类型。 |
MigrationParameters
Migrate 操作的请求正文。
名称 | 类型 | 说明 |
---|---|---|
classicResourceReference |
需要迁移的经典 cdn 配置文件或经典前门的资源引用。 |
|
migrationWebApplicationFirewallMappings |
已迁移配置文件的 Waf 映射 |
|
profileName |
string |
需要创建的新配置文件的名称。 |
sku |
迁移的 SKU |
MigrationWebApplicationFirewallMapping
Web 应用程序防火墙映射
名称 | 类型 | 说明 |
---|---|---|
migratedFrom |
从 Waf 策略迁移 |
|
migratedTo |
迁移到 Waf 策略 |
ResourceReference
对另一个资源的引用。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
Sku
Standard_Verizon = 标准 Verizon CDN 配置文件的 SKU 名称。 Premium_Verizon = Premium Verizon CDN 配置文件的 SKU 名称。 Custom_Verizon = 自定义 Verizon CDN 配置文件的 SKU 名称。 Standard_Akamai = Akamai CDN 配置文件的 SKU 名称。 Standard_ChinaCdn = 使用基于 GB 的计费模型进行 VOD、Web 和下载方案的中国 CDN 配置文件的 SKU 名称。 Standard_Microsoft = 标准 Microsoft CDN 配置文件的 SKU 名称。 Standard_AzureFrontDoor = Azure Front Door 标准配置文件的 SKU 名称。 Premium_AzureFrontDoor = Azure Front Door Premium 配置文件的 SKU 名称。 Standard_955BandWidth_ChinaCdn = 使用 95-5 峰值带宽计费模型的 VOD、Web 和下载方案的中国 CDN 配置文件的 SKU 名称。 Standard_AvgBandWidth_ChinaCdn = 使用每月平均峰值带宽计费模型的 VOD、Web 和下载方案的中国 CDN 配置文件的 SKU 名称。 StandardPlus_ChinaCdn = 使用基于 GB 的计费模型进行实时流式传输的中国 CDN 配置文件的 SKU 名称。 StandardPlus_955BandWidth_ChinaCdn = 使用 95-5 峰值带宽计费模型的中国 CDN 实时流式处理配置文件的 SKU 名称。 StandardPlus_AvgBandWidth_ChinaCdn = 使用每月平均峰值带宽计费模型的中国 CDN 实时流式处理配置文件的 SKU 名称。
名称 | 类型 | 说明 |
---|---|---|
name |
定价层的名称。 |
SkuName
定价层的名称。
名称 | 类型 | 说明 |
---|---|---|
Custom_Verizon |
string |
|
Premium_AzureFrontDoor |
string |
|
Premium_Verizon |
string |
|
StandardPlus_955BandWidth_ChinaCdn |
string |
|
StandardPlus_AvgBandWidth_ChinaCdn |
string |
|
StandardPlus_ChinaCdn |
string |
|
Standard_955BandWidth_ChinaCdn |
string |
|
Standard_Akamai |
string |
|
Standard_AvgBandWidth_ChinaCdn |
string |
|
Standard_AzureFrontDoor |
string |
|
Standard_ChinaCdn |
string |
|
Standard_Microsoft |
string |
|
Standard_Verizon |
string |