GovernanceRules interface

Interface representing a GovernanceRules.

Methods

beginDelete(string, string, GovernanceRulesDeleteOptionalParams)

Delete a Governance rule over a given scope

beginDeleteAndWait(string, string, GovernanceRulesDeleteOptionalParams)

Delete a Governance rule over a given scope

beginExecute(string, string, GovernanceRulesExecuteOptionalParams)

Execute a governance rule

beginExecuteAndWait(string, string, GovernanceRulesExecuteOptionalParams)

Execute a governance rule

createOrUpdate(string, string, GovernanceRule, GovernanceRulesCreateOrUpdateOptionalParams)

Creates or updates a governance rule over a given scope

get(string, string, GovernanceRulesGetOptionalParams)

Get a specific governance rule for the requested scope by ruleId

list(string, GovernanceRulesListOptionalParams)

Get a list of all relevant governance rules over a scope

operationResults(string, string, string, GovernanceRulesOperationResultsOptionalParams)

Get governance rules long run operation result for the requested scope by ruleId and operationId

Method Details

beginDelete(string, string, GovernanceRulesDeleteOptionalParams)

Delete a Governance rule over a given scope

function beginDelete(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

options
GovernanceRulesDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, GovernanceRulesDeleteOptionalParams)

Delete a Governance rule over a given scope

function beginDeleteAndWait(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams): Promise<void>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

options
GovernanceRulesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

beginExecute(string, string, GovernanceRulesExecuteOptionalParams)

Execute a governance rule

function beginExecute(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams): Promise<SimplePollerLike<OperationState<GovernanceRulesExecuteHeaders>, GovernanceRulesExecuteHeaders>>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

options
GovernanceRulesExecuteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<GovernanceRulesExecuteHeaders>, GovernanceRulesExecuteHeaders>>

beginExecuteAndWait(string, string, GovernanceRulesExecuteOptionalParams)

Execute a governance rule

function beginExecuteAndWait(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams): Promise<GovernanceRulesExecuteHeaders>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

options
GovernanceRulesExecuteOptionalParams

The options parameters.

Returns

createOrUpdate(string, string, GovernanceRule, GovernanceRulesCreateOrUpdateOptionalParams)

Creates or updates a governance rule over a given scope

function createOrUpdate(scope: string, ruleId: string, governanceRule: GovernanceRule, options?: GovernanceRulesCreateOrUpdateOptionalParams): Promise<GovernanceRule>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

governanceRule
GovernanceRule

Governance rule over a given scope

options
GovernanceRulesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<GovernanceRule>

get(string, string, GovernanceRulesGetOptionalParams)

Get a specific governance rule for the requested scope by ruleId

function get(scope: string, ruleId: string, options?: GovernanceRulesGetOptionalParams): Promise<GovernanceRule>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

options
GovernanceRulesGetOptionalParams

The options parameters.

Returns

Promise<GovernanceRule>

list(string, GovernanceRulesListOptionalParams)

Get a list of all relevant governance rules over a scope

function list(scope: string, options?: GovernanceRulesListOptionalParams): PagedAsyncIterableIterator<GovernanceRule, GovernanceRule[], PageSettings>

Parameters

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})'

options
GovernanceRulesListOptionalParams

The options parameters.

Returns

operationResults(string, string, string, GovernanceRulesOperationResultsOptionalParams)

Get governance rules long run operation result for the requested scope by ruleId and operationId

function operationResults(scope: string, ruleId: string, operationId: string, options?: GovernanceRulesOperationResultsOptionalParams): Promise<OperationResultAutoGenerated>

Parameters

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})'

ruleId

string

The governance rule key - unique key for the standard governance rule (GUID)

operationId

string

The governance rule long running operation unique key

options
GovernanceRulesOperationResultsOptionalParams

The options parameters.

Returns