This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
azure-native.security.getGovernanceRule
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
Get a specific governance rule for the requested scope by ruleId Azure REST API version: 2022-01-01-preview.
Using getGovernanceRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGovernanceRule(args: GetGovernanceRuleArgs, opts?: InvokeOptions): Promise<GetGovernanceRuleResult>
function getGovernanceRuleOutput(args: GetGovernanceRuleOutputArgs, opts?: InvokeOptions): Output<GetGovernanceRuleResult>
def get_governance_rule(rule_id: Optional[str] = None,
scope: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGovernanceRuleResult
def get_governance_rule_output(rule_id: Optional[pulumi.Input[str]] = None,
scope: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGovernanceRuleResult]
func LookupGovernanceRule(ctx *Context, args *LookupGovernanceRuleArgs, opts ...InvokeOption) (*LookupGovernanceRuleResult, error)
func LookupGovernanceRuleOutput(ctx *Context, args *LookupGovernanceRuleOutputArgs, opts ...InvokeOption) LookupGovernanceRuleResultOutput
> Note: This function is named LookupGovernanceRule
in the Go SDK.
public static class GetGovernanceRule
{
public static Task<GetGovernanceRuleResult> InvokeAsync(GetGovernanceRuleArgs args, InvokeOptions? opts = null)
public static Output<GetGovernanceRuleResult> Invoke(GetGovernanceRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGovernanceRuleResult> getGovernanceRule(GetGovernanceRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:security:getGovernanceRule
arguments:
# arguments dictionary
The following arguments are supported:
- Rule
Id string - The governance rule key - unique key for the standard governance rule (GUID)
- Scope string
- The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
- Rule
Id string - The governance rule key - unique key for the standard governance rule (GUID)
- Scope string
- The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
- rule
Id String - The governance rule key - unique key for the standard governance rule (GUID)
- scope String
- The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
- rule
Id string - The governance rule key - unique key for the standard governance rule (GUID)
- scope string
- The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
- rule_
id str - The governance rule key - unique key for the standard governance rule (GUID)
- scope str
- The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
- rule
Id String - The governance rule key - unique key for the standard governance rule (GUID)
- scope String
- The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
getGovernanceRule Result
The following output properties are available:
- Display
Name string - Display name of the governance rule
- Id string
- Resource Id
- Name string
- Resource name
- Owner
Source Pulumi.Azure Native. Security. Outputs. Governance Rule Owner Source Response - The owner source for the governance rule - e.g. Manually by user@contoso.com - see example
- Rule
Priority int - The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- Rule
Type string - The rule type of the governance rule, defines the source of the rule e.g. Integrated
- Source
Resource stringType - The governance rule source, what the rule affects, e.g. Assessments
- Tenant
Id string - The tenantId (GUID)
- Type string
- Resource type
- Description string
- Description of the governance rule
- Excluded
Scopes List<string> - Excluded scopes, filter out the descendants of the scope (on management scopes)
- Governance
Email Pulumi.Notification Azure Native. Security. Outputs. Governance Rule Email Notification Response - The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
- Include
Member boolScopes - Defines whether the rule is management scope rule (master connector as a single scope or management scope)
- Is
Disabled bool - Defines whether the rule is active/inactive
- Is
Grace boolPeriod - Defines whether there is a grace period on the governance rule
- Metadata
Pulumi.
Azure Native. Security. Outputs. Governance Rule Metadata Response - The governance rule metadata
- Remediation
Timeframe string - 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
- Display
Name string - Display name of the governance rule
- Id string
- Resource Id
- Name string
- Resource name
- Owner
Source GovernanceRule Owner Source Response - The owner source for the governance rule - e.g. Manually by user@contoso.com - see example
- Rule
Priority int - The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- Rule
Type string - The rule type of the governance rule, defines the source of the rule e.g. Integrated
- Source
Resource stringType - The governance rule source, what the rule affects, e.g. Assessments
- Tenant
Id string - The tenantId (GUID)
- Type string
- Resource type
- Description string
- Description of the governance rule
- Excluded
Scopes []string - Excluded scopes, filter out the descendants of the scope (on management scopes)
- Governance
Email GovernanceNotification Rule Email Notification Response - The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
- Include
Member boolScopes - Defines whether the rule is management scope rule (master connector as a single scope or management scope)
- Is
Disabled bool - Defines whether the rule is active/inactive
- Is
Grace boolPeriod - Defines whether there is a grace period on the governance rule
- Metadata
Governance
Rule Metadata Response - The governance rule metadata
- Remediation
Timeframe string - 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
- display
Name String - Display name of the governance rule
- id String
- Resource Id
- name String
- Resource name
- owner
Source GovernanceRule Owner Source Response - The owner source for the governance rule - e.g. Manually by user@contoso.com - see example
- rule
Priority Integer - The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- rule
Type String - The rule type of the governance rule, defines the source of the rule e.g. Integrated
- source
Resource StringType - The governance rule source, what the rule affects, e.g. Assessments
- tenant
Id String - The tenantId (GUID)
- type String
- Resource type
- description String
- Description of the governance rule
- excluded
Scopes List<String> - Excluded scopes, filter out the descendants of the scope (on management scopes)
- governance
Email GovernanceNotification Rule Email Notification Response - The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
- include
Member BooleanScopes - Defines whether the rule is management scope rule (master connector as a single scope or management scope)
- is
Disabled Boolean - Defines whether the rule is active/inactive
- is
Grace BooleanPeriod - Defines whether there is a grace period on the governance rule
- metadata
Governance
Rule Metadata Response - The governance rule metadata
- remediation
Timeframe String - 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
- display
Name string - Display name of the governance rule
- id string
- Resource Id
- name string
- Resource name
- owner
Source GovernanceRule Owner Source Response - The owner source for the governance rule - e.g. Manually by user@contoso.com - see example
- rule
Priority number - The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- rule
Type string - The rule type of the governance rule, defines the source of the rule e.g. Integrated
- source
Resource stringType - The governance rule source, what the rule affects, e.g. Assessments
- tenant
Id string - The tenantId (GUID)
- type string
- Resource type
- description string
- Description of the governance rule
- excluded
Scopes string[] - Excluded scopes, filter out the descendants of the scope (on management scopes)
- governance
Email GovernanceNotification Rule Email Notification Response - The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
- include
Member booleanScopes - Defines whether the rule is management scope rule (master connector as a single scope or management scope)
- is
Disabled boolean - Defines whether the rule is active/inactive
- is
Grace booleanPeriod - Defines whether there is a grace period on the governance rule
- metadata
Governance
Rule Metadata Response - The governance rule metadata
- remediation
Timeframe string - 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
- display_
name str - Display name of the governance rule
- id str
- Resource Id
- name str
- Resource name
- owner_
source GovernanceRule Owner Source Response - The owner source for the governance rule - e.g. Manually by user@contoso.com - see example
- rule_
priority int - The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- rule_
type str - The rule type of the governance rule, defines the source of the rule e.g. Integrated
- source_
resource_ strtype - The governance rule source, what the rule affects, e.g. Assessments
- tenant_
id str - The tenantId (GUID)
- type str
- Resource type
- description str
- Description of the governance rule
- excluded_
scopes Sequence[str] - Excluded scopes, filter out the descendants of the scope (on management scopes)
- governance_
email_ Governancenotification Rule Email Notification Response - The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
- include_
member_ boolscopes - Defines whether the rule is management scope rule (master connector as a single scope or management scope)
- is_
disabled bool - Defines whether the rule is active/inactive
- is_
grace_ boolperiod - Defines whether there is a grace period on the governance rule
- metadata
Governance
Rule Metadata Response - The governance rule metadata
- remediation_
timeframe str - 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
- display
Name String - Display name of the governance rule
- id String
- Resource Id
- name String
- Resource name
- owner
Source Property Map - The owner source for the governance rule - e.g. Manually by user@contoso.com - see example
- rule
Priority Number - The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- rule
Type String - The rule type of the governance rule, defines the source of the rule e.g. Integrated
- source
Resource StringType - The governance rule source, what the rule affects, e.g. Assessments
- tenant
Id String - The tenantId (GUID)
- type String
- Resource type
- description String
- Description of the governance rule
- excluded
Scopes List<String> - Excluded scopes, filter out the descendants of the scope (on management scopes)
- governance
Email Property MapNotification - The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
- include
Member BooleanScopes - Defines whether the rule is management scope rule (master connector as a single scope or management scope)
- is
Disabled Boolean - Defines whether the rule is active/inactive
- is
Grace BooleanPeriod - Defines whether there is a grace period on the governance rule
- metadata Property Map
- The governance rule metadata
- remediation
Timeframe String - 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
Supporting Types
GovernanceRuleEmailNotificationResponse
- Disable
Manager boolEmail Notification - Defines whether manager email notifications are disabled
- Disable
Owner boolEmail Notification - Defines whether owner email notifications are disabled
- Disable
Manager boolEmail Notification - Defines whether manager email notifications are disabled
- Disable
Owner boolEmail Notification - Defines whether owner email notifications are disabled
- disable
Manager BooleanEmail Notification - Defines whether manager email notifications are disabled
- disable
Owner BooleanEmail Notification - Defines whether owner email notifications are disabled
- disable
Manager booleanEmail Notification - Defines whether manager email notifications are disabled
- disable
Owner booleanEmail Notification - Defines whether owner email notifications are disabled
- disable_
manager_ boolemail_ notification - Defines whether manager email notifications are disabled
- disable_
owner_ boolemail_ notification - Defines whether owner email notifications are disabled
- disable
Manager BooleanEmail Notification - Defines whether manager email notifications are disabled
- disable
Owner BooleanEmail Notification - Defines whether owner email notifications are disabled
GovernanceRuleMetadataResponse
- created_
by str - Governance rule Created by object id (GUID)
- created_
on str - Governance rule creation date
- updated_
by str - Governance rule last updated by object id (GUID)
- updated_
on str - Governance rule last update date
GovernanceRuleOwnerSourceResponse
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi