Share via


SecurityCenterExtensions.GetCustomAssessmentAutomations Method

Definition

Overloads

GetCustomAssessmentAutomations(ResourceGroupResource)

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

GetCustomAssessmentAutomations(SubscriptionResource, CancellationToken)

List custom assessment automations by provided subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/customAssessmentAutomations
  • Operation Id: CustomAssessmentAutomations_ListBySubscription
  • Default Api Version: 2021-07-01-preview
  • Resource: CustomAssessmentAutomationResource

GetCustomAssessmentAutomations(ResourceGroupResource)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of CustomAssessmentAutomationResources and their operations over a CustomAssessmentAutomationResource.

Exceptions

resourceGroupResource is null.

Applies to

GetCustomAssessmentAutomations(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

List custom assessment automations by provided subscription

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to