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

Access Review Default Settings - Put

获取订阅的访问评审默认设置

PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default?api-version=2021-12-01-preview

URI 参数

名称 必需 类型 说明
subscriptionId
path True

string

目标订阅的 ID。

api-version
query True

string

要与 HTTP 请求一起使用的 API 版本。

请求正文

名称 类型 说明
autoApplyDecisionsEnabled

boolean

指示是否启用自动应用功能以自动更改目标对象访问资源的标志。 如果未启用,则用户必须在评审完成后应用访问评审。

defaultDecision

DefaultDecisionType

这指定访问评审完成时 autoReview 功能的行为。

defaultDecisionEnabled

boolean

指示审阅者在评审访问权限时是否需要提供理由的标志。

instanceDurationInDays

integer

实例的持续时间(以天为单位)。

justificationRequiredOnApproval

boolean

用于指示在记录决策时是否要求审阅者传递理由的标志。

mailNotificationsEnabled

boolean

指示是否启用向审阅者和审阅创建者发送邮件的标志。

recommendationLookBackDuration

string

访问评审的建议是通过查看 30 天的数据 (w.r.t 默认) 开始计算的。 但是,在某些情况下,客户希望更改回溯时间,并改为配置 60 天、90 天等。 此设置允许客户配置此持续时间。 该值应采用 ISO 8601 格式 (http://en.wikipedia.org/wiki/ISO_8601#Durations) 。此代码可用于将 TimeSpan 转换为有效的间隔字符串:XmlConvert.ToString (新的 TimeSpan (小时、分钟、秒) )

recommendationsEnabled

boolean

指示是否启用向审阅者显示建议的标志。

recurrence.pattern.interval

integer

重复周期的间隔。 对于季度评审,对于类型:absoluteMonthly,间隔为 3。

recurrence.pattern.type

AccessReviewRecurrencePatternType

定期类型:每周、每月等。

recurrence.range.endDate

string

计划评审结束时的 DateTime。 如果类型为 endDate,则为必需项

recurrence.range.numberOfOccurrences

integer

重复访问评审的次数。 必需,如果类型已编号,则必须为正数。

recurrence.range.startDate

string

计划开始评审时的 DateTime。 这可能是将来的日期。 创建时必需。

recurrence.range.type

AccessReviewRecurrenceRangeType

定期范围类型。 可能的值为:endDate、noEnd、numbered。

reminderNotificationsEnabled

boolean

指示是否启用向审阅者发送提醒电子邮件的标志。

响应

名称 类型 说明
200 OK

AccessReviewDefaultSettings

描述成功操作的结果。

Other Status Codes

ErrorDefinition

错误

安全性

azure_auth

Azure Active Directory OAuth2 流

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

定义

名称 说明
AccessReviewDefaultSettings

访问评审默认设置。

AccessReviewRecurrencePatternType

定期类型:每周、每月等。

AccessReviewRecurrenceRangeType

定期范围类型。 可能的值为:endDate、noEnd、numbered。

AccessReviewScheduleSettings

访问评审的设置。

DefaultDecisionType

这指定访问评审完成时 autoReview 功能的行为。

ErrorDefinition

错误

ErrorDefinitionProperties

错误

AccessReviewDefaultSettings

访问评审默认设置。

名称 类型 说明
id

string

访问评审默认设置 ID。这只会是默认的

name

string

访问评审默认设置名称。 这始终是“访问评审默认设置”

properties.autoApplyDecisionsEnabled

boolean

指示是否启用自动应用功能以自动更改目标对象访问资源的标志。 如果未启用,则用户必须在评审完成后应用访问评审。

properties.defaultDecision

DefaultDecisionType

这指定访问评审完成时 autoReview 功能的行为。

properties.defaultDecisionEnabled

boolean

指示审阅者在评审访问权限时是否需要提供理由的标志。

properties.instanceDurationInDays

integer

实例的持续时间(以天为单位)。

properties.justificationRequiredOnApproval

boolean

用于指示在记录决策时是否要求审阅者传递理由的标志。

properties.mailNotificationsEnabled

boolean

指示是否启用向审阅者和审阅创建者发送邮件的标志。

properties.recommendationLookBackDuration

string

访问评审的建议是通过查看 30 天的数据 (w.r.t 默认) 开始计算的。 但是,在某些情况下,客户希望更改回溯时间,并改为配置 60 天、90 天等。 此设置允许客户配置此持续时间。 该值应采用 ISO 8601 格式 (http://en.wikipedia.org/wiki/ISO_8601#Durations) 。此代码可用于将 TimeSpan 转换为有效的间隔字符串:XmlConvert.ToString (新的 TimeSpan (小时、分钟、秒) )

properties.recommendationsEnabled

boolean

指示是否启用向审阅者显示建议的标志。

properties.recurrence.pattern.interval

integer

重复周期的间隔。 对于季度评审,对于类型:absoluteMonthly,间隔为 3。

properties.recurrence.pattern.type

AccessReviewRecurrencePatternType

定期类型:每周、每月等。

properties.recurrence.range.endDate

string

计划评审结束时的 DateTime。 如果类型为 endDate,则为必需项

properties.recurrence.range.numberOfOccurrences

integer

重复访问评审的次数。 必需,如果类型已编号,则必须为正数。

properties.recurrence.range.startDate

string

计划开始评审时的 DateTime。 这可能是将来的日期。 创建时必需。

properties.recurrence.range.type

AccessReviewRecurrenceRangeType

定期范围类型。 可能的值为:endDate、noEnd、numbered。

properties.reminderNotificationsEnabled

boolean

指示是否启用向审阅者发送提醒电子邮件的标志。

type

string

资源类型。

AccessReviewRecurrencePatternType

定期类型:每周、每月等。

名称 类型 说明
absoluteMonthly

string

weekly

string

AccessReviewRecurrenceRangeType

定期范围类型。 可能的值为:endDate、noEnd、numbered。

名称 类型 说明
endDate

string

noEnd

string

numbered

string

AccessReviewScheduleSettings

访问评审的设置。

名称 类型 说明
autoApplyDecisionsEnabled

boolean

指示是否启用自动应用功能以自动更改目标对象访问资源的标志。 如果未启用,则用户必须在评审完成后应用访问评审。

defaultDecision

DefaultDecisionType

这指定访问评审完成时 autoReview 功能的行为。

defaultDecisionEnabled

boolean

指示审阅者在评审访问权限时是否需要提供理由的标志。

instanceDurationInDays

integer

实例的持续时间(以天为单位)。

justificationRequiredOnApproval

boolean

用于指示在记录决策时是否要求审阅者传递理由的标志。

mailNotificationsEnabled

boolean

指示是否启用向审阅者和审阅创建者发送邮件的标志。

recommendationLookBackDuration

string

访问评审的建议是通过查看 30 天的数据 (w.r.t 默认) 开始计算的。 但是,在某些情况下,客户希望更改回溯时间,并改为配置 60 天、90 天等。 此设置允许客户配置此持续时间。 该值应采用 ISO 8601 格式 (http://en.wikipedia.org/wiki/ISO_8601#Durations) 。此代码可用于将 TimeSpan 转换为有效的间隔字符串:XmlConvert.ToString (新的 TimeSpan (小时、分钟、秒) )

recommendationsEnabled

boolean

指示是否启用向审阅者显示建议的标志。

recurrence.pattern.interval

integer

重复周期的间隔。 对于季度评审,对于类型:absoluteMonthly,间隔为 3。

recurrence.pattern.type

AccessReviewRecurrencePatternType

定期类型:每周、每月等。

recurrence.range.endDate

string

计划评审结束时的 DateTime。 如果类型为 endDate,则为必需项

recurrence.range.numberOfOccurrences

integer

重复访问评审的次数。 必需,如果类型已编号,则必须为正数。

recurrence.range.startDate

string

计划开始评审时的 DateTime。 这可能是将来的日期。 创建时必需。

recurrence.range.type

AccessReviewRecurrenceRangeType

定期范围类型。 可能的值为:endDate、noEnd、numbered。

reminderNotificationsEnabled

boolean

指示是否启用向审阅者发送提醒电子邮件的标志。

DefaultDecisionType

这指定访问评审完成时 autoReview 功能的行为。

名称 类型 说明
Approve

string

Deny

string

Recommendation

string

ErrorDefinition

错误

名称 类型 说明
error

ErrorDefinitionProperties

错误
列表网关状态的错误。

ErrorDefinitionProperties

错误

名称 类型 说明
code

string

列表网关的错误代码。

message

string

错误的说明。