共用方式為


SecurityCenterExtensions.GetSecurityAutomations Method

Definition

Overloads

GetSecurityAutomations(ResourceGroupResource)

Gets a collection of SecurityAutomationResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSecurityAutomations() instead.

GetSecurityAutomations(SubscriptionResource, CancellationToken)

Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/automations
  • Operation Id: Automations_List
  • Default Api Version: 2019-01-01-preview
  • Resource: SecurityAutomationResource

GetSecurityAutomations(ResourceGroupResource)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Gets a collection of SecurityAutomationResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSecurityAutomations() instead.

public static Azure.ResourceManager.SecurityCenter.SecurityAutomationCollection GetSecurityAutomations (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSecurityAutomations : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.SecurityCenter.SecurityAutomationCollection
<Extension()>
Public Function GetSecurityAutomations (resourceGroupResource As ResourceGroupResource) As SecurityAutomationCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of SecurityAutomationResources and their operations over a SecurityAutomationResource.

Exceptions

resourceGroupResource is null.

Applies to

GetSecurityAutomations(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/automations
  • Operation Id: Automations_List
  • Default Api Version: 2019-01-01-preview
  • Resource: SecurityAutomationResource
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAutomationResource> GetSecurityAutomations (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityAutomations : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAutomationResource>
<Extension()>
Public Function GetSecurityAutomations (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityAutomationResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SecurityAutomationResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to