你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmSecurityCenterModelFactory.GovernanceRuleData 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 GovernanceRuleData 的新实例。
public static Azure.ResourceManager.SecurityCenter.GovernanceRuleData GovernanceRuleData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Guid? tenantId = default, string displayName = default, string description = default, string remediationTimeframe = default, bool? isGracePeriod = default, int? rulePriority = default, bool? isDisabled = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleType? ruleType = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleSourceResourceType? sourceResourceType = default, System.Collections.Generic.IEnumerable<string> excludedScopes = default, System.Collections.Generic.IEnumerable<BinaryData> conditionSets = default, bool? includeMemberScopes = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleOwnerSource ownerSource = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleEmailNotification governanceEmailNotification = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleMetadata metadata = default);
static member GovernanceRuleData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Guid> * string * string * string * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleType> * Nullable<Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleSourceResourceType> * seq<string> * seq<BinaryData> * Nullable<bool> * Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleOwnerSource * Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleEmailNotification * Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleMetadata -> Azure.ResourceManager.SecurityCenter.GovernanceRuleData
Public Shared Function GovernanceRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional remediationTimeframe As String = Nothing, Optional isGracePeriod As Nullable(Of Boolean) = Nothing, Optional rulePriority As Nullable(Of Integer) = Nothing, Optional isDisabled As Nullable(Of Boolean) = Nothing, Optional ruleType As Nullable(Of GovernanceRuleType) = Nothing, Optional sourceResourceType As Nullable(Of GovernanceRuleSourceResourceType) = Nothing, Optional excludedScopes As IEnumerable(Of String) = Nothing, Optional conditionSets As IEnumerable(Of BinaryData) = Nothing, Optional includeMemberScopes As Nullable(Of Boolean) = Nothing, Optional ownerSource As GovernanceRuleOwnerSource = Nothing, Optional governanceEmailNotification As GovernanceRuleEmailNotification = Nothing, Optional metadata As GovernanceRuleMetadata = Nothing) As GovernanceRuleData
参数
ID。
- name
- String
名称。
- resourceType
- ResourceType
resourceType。
- systemData
- SystemData
systemData。
- displayName
- String
治理规则的显示名称。
- description
- String
治理规则的说明。
- remediationTimeframe
- String
治理规则修正时间范围 - 这是影响宽限期持续时间的时间,例如 7.00:00:00 - 表示 7 天。
- ruleType
- Nullable<GovernanceRuleType>
治理规则的规则类型定义规则的源,例如集成。
- sourceResourceType
- Nullable<GovernanceRuleSourceResourceType>
治理规则源,规则影响的内容,例如评估。
- excludedScopes
- IEnumerable<String>
排除的范围,筛选出管理范围) (范围的后代。
- conditionSets
- IEnumerable<BinaryData>
治理规则条件集 - 请参阅示例。
- ownerSource
- GovernanceRuleOwnerSource
治理规则的所有者源(例如手动管理) user@contoso.com 请参阅示例。
- governanceEmailNotification
- GovernanceRuleEmailNotification
治理规则电子邮件通知设置,指出是否禁用管理员和所有者的通知。
- metadata
- GovernanceRuleMetadata
治理规则元数据。
返回
用于模拟的新 GovernanceRuleData 实例。