你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PolicyRestrictions interface
表示 PolicyRestrictions 的接口。
方法
check |
检查 Azure Policy 将对管理组中的资源施加哪些限制。 |
check |
检查 Azure Policy 将对资源组中的资源施加哪些限制。 在资源组中创建资源时,请使用此功能。 |
check |
检查 Azure Policy 将对订阅中的资源施加哪些限制。 |
方法详细信息
checkAtManagementGroupScope(string, CheckManagementGroupRestrictionsRequest, PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams)
检查 Azure Policy 将对管理组中的资源施加哪些限制。
function checkAtManagementGroupScope(managementGroupId: string, parameters: CheckManagementGroupRestrictionsRequest, options?: PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams): Promise<CheckRestrictionsResult>
参数
- managementGroupId
-
string
管理组 ID。
- parameters
- CheckManagementGroupRestrictionsRequest
检查策略限制参数。
返回
Promise<CheckRestrictionsResult>
checkAtResourceGroupScope(string, CheckRestrictionsRequest, PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams)
检查 Azure Policy 将对资源组中的资源施加哪些限制。 在资源组中创建资源时,请使用此功能。
function checkAtResourceGroupScope(resourceGroupName: string, parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams): Promise<CheckRestrictionsResult>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- parameters
- CheckRestrictionsRequest
检查策略限制参数。
返回
Promise<CheckRestrictionsResult>
checkAtSubscriptionScope(CheckRestrictionsRequest, PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams)
检查 Azure Policy 将对订阅中的资源施加哪些限制。
function checkAtSubscriptionScope(parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams): Promise<CheckRestrictionsResult>
参数
- parameters
- CheckRestrictionsRequest
检查策略限制参数。
选项参数。
返回
Promise<CheckRestrictionsResult>