你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Rule Sets - Get

获取现有的 AzureFrontDoor 规则集,该规则集名称位于指定的订阅、资源组和配置文件下。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}?api-version=2023-05-01

URI 参数

名称 必需 类型 说明
profileName
path True

string

资源组中唯一的 Azure Front Door Standard 或 Azure Front Door Premium 配置文件的名称。

resourceGroupName
path True

string

Azure 订阅中的资源组的名称。

Regex pattern: ^[-\w\._\(\)]+$

ruleSetName
path True

string

全局唯一的配置文件下的规则集的名称。

subscriptionId
path True

string

Azure 订阅 ID。

api-version
query True

string

要与客户端请求一起使用的 API 的版本。 当前版本为 2023-05-01。

响应

名称 类型 说明
200 OK

RuleSet

确定

Other Status Codes

AfdErrorResponse

描述操作失败原因的 Azure Front Door 错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

RuleSets_Get

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1?api-version=2023-05-01

Sample Response

{
  "name": "ruleSet1",
  "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/rulesets/ruleSet1",
  "type": "Microsoft.Cdn/profiles/rulesets",
  "properties": {
    "provisioningState": "Succeeded",
    "deploymentStatus": "NotStarted"
  }
}

定义

名称 说明
AfdErrorResponse

错误响应

AfdProvisioningState

预配状态

DeploymentStatus
ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

IdentityType

创建/修改资源的标识类型

RuleSet

友好 RuleSet 名称映射到任何 RuleSet 或机密相关信息。

SystemData

只读系统数据

AfdErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

AfdProvisioningState

预配状态

名称 类型 说明
Creating

string

Deleting

string

Failed

string

Succeeded

string

Updating

string

DeploymentStatus

名称 类型 说明
Failed

string

InProgress

string

NotStarted

string

Succeeded

string

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

IdentityType

创建/修改资源的标识类型

名称 类型 说明
application

string

key

string

managedIdentity

string

user

string

RuleSet

友好 RuleSet 名称映射到任何 RuleSet 或机密相关信息。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.deploymentStatus

DeploymentStatus

properties.profileName

string

保存规则集的配置文件的名称。

properties.provisioningState

AfdProvisioningState

预配状态

systemData

SystemData

只读系统数据

type

string

资源类型。

SystemData

只读系统数据

名称 类型 说明
createdAt

string

资源的创建时间戳 (UTC)

createdBy

string

创建资源的标识的标识符

createdByType

IdentityType

创建资源的标识类型

lastModifiedAt

string

资源上次修改的时间戳 (UTC)

lastModifiedBy

string

上次修改资源的标识的标识符

lastModifiedByType

IdentityType

上次修改资源的标识类型