Share via


SubscriptionSecurityTaskCollection Class

Definition

A class representing a collection of SubscriptionSecurityTaskResource and their operations. Each SubscriptionSecurityTaskResource in the collection will belong to the same instance of SecurityCenterLocationResource. To get a SubscriptionSecurityTaskCollection instance call the GetSubscriptionSecurityTasks method from an instance of SecurityCenterLocationResource.

public class SubscriptionSecurityTaskCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>
type SubscriptionSecurityTaskCollection = class
    inherit ArmCollection
    interface seq<SubscriptionSecurityTaskResource>
    interface IEnumerable
    interface IAsyncEnumerable<SubscriptionSecurityTaskResource>
Public Class SubscriptionSecurityTaskCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SubscriptionSecurityTaskResource), IEnumerable(Of SubscriptionSecurityTaskResource)
Inheritance
SubscriptionSecurityTaskCollection
Implements

Constructors

SubscriptionSecurityTaskCollection()

Initializes a new instance of the SubscriptionSecurityTaskCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operation Id: Tasks_GetSubscriptionLevelTask
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operation Id: Tasks_GetSubscriptionLevelTask
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
Get(String, CancellationToken)

Recommended tasks that will help improve the security of the subscription proactively

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operation Id: Tasks_GetSubscriptionLevelTask
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
GetAll(String, CancellationToken)

Recommended tasks that will help improve the security of the subscription proactively

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks
  • Operation Id: Tasks_ListByHomeRegion
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
GetAllAsync(String, CancellationToken)

Recommended tasks that will help improve the security of the subscription proactively

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks
  • Operation Id: Tasks_ListByHomeRegion
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
GetAsync(String, CancellationToken)

Recommended tasks that will help improve the security of the subscription proactively

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operation Id: Tasks_GetSubscriptionLevelTask
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operation Id: Tasks_GetSubscriptionLevelTask
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operation Id: Tasks_GetSubscriptionLevelTask
  • Default Api Version: 2015-06-01-preview
  • Resource: SubscriptionSecurityTaskResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<SubscriptionSecurityTaskResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SubscriptionSecurityTaskResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to