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

GovernanceRule Class

Definition

Governance rule over a given scope

[Microsoft.Rest.Serialization.JsonTransformation]
public class GovernanceRule : Microsoft.Azure.Management.Security.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type GovernanceRule = class
    inherit Resource
Public Class GovernanceRule
Inherits Resource
Inheritance
GovernanceRule
Attributes

Constructors

GovernanceRule()

Initializes a new instance of the GovernanceRule class.

GovernanceRule(String, String, String, String, String, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, String, String, IList<String>, IList<Object>, Nullable<Boolean>, GovernanceRuleOwnerSource, GovernanceRuleEmailNotification, GovernanceRuleMetadata)

Initializes a new instance of the GovernanceRule class.

Properties

ConditionSets

Gets or sets the governance rule conditionSets - see examples

Description

Gets or sets description of the governance rule

DisplayName

Gets or sets display name of the governance rule

ExcludedScopes

Gets or sets excluded scopes, filter out the descendants of the scope (on management scopes)

GovernanceEmailNotification

Gets or sets the email notifications settings for the governance rule, states whether to disable notifications for mangers and owners

Id

Gets resource Id

(Inherited from Resource)
IncludeMemberScopes

Gets or sets defines whether the rule is management scope rule (master connector as a single scope or management scope)

IsDisabled

Gets or sets defines whether the rule is active/inactive

IsGracePeriod

Gets or sets defines whether there is a grace period on the governance rule

Metadata

Gets or sets the governance rule metadata

Name

Gets resource name

(Inherited from Resource)
OwnerSource

Gets or sets the owner source for the governance rule - e.g. Manually by user@contoso.com - see example

RemediationTimeframe

Gets or sets governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days

RulePriority

Gets or sets the governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed

RuleType

Gets or sets the rule type of the governance rule, defines the source of the rule e.g. Integrated Possible values include: 'Integrated', 'ServiceNow'

SourceResourceType

Gets or sets the governance rule source, what the rule affects, e.g. Assessments Possible values include: 'Assessments'

TenantId

Gets the tenantId (GUID)

Type

Gets resource type

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to