共用方式為


SecuritySubAssessmentCollection Class

Definition

A class representing a collection of SecuritySubAssessmentResource and their operations. Each SecuritySubAssessmentResource in the collection will belong to the same instance of SecurityAssessmentResource. To get a SecuritySubAssessmentCollection instance call the GetSecuritySubAssessments method from an instance of SecurityAssessmentResource.

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

Constructors

SecuritySubAssessmentCollection()

Initializes a new instance of the SecuritySubAssessmentCollection 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: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}
  • Operation Id: SubAssessments_Get
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}
  • Operation Id: SubAssessments_Get
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
Get(String, CancellationToken)

Get a security sub-assessment on your scanned resource

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}
  • Operation Id: SubAssessments_Get
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
GetAll(CancellationToken)

Get security sub-assessments on all your scanned resources inside a scope

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments
  • Operation Id: SubAssessments_List
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
GetAllAsync(CancellationToken)

Get security sub-assessments on all your scanned resources inside a scope

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments
  • Operation Id: SubAssessments_List
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
GetAsync(String, CancellationToken)

Get a security sub-assessment on your scanned resource

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}
  • Operation Id: SubAssessments_Get
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}
  • Operation Id: SubAssessments_Get
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}
  • Operation Id: SubAssessments_Get
  • Default Api Version: 2019-01-01-preview
  • Resource: SecuritySubAssessmentResource
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<SecuritySubAssessmentResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SecuritySubAssessmentResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to