共用方式為


SqlServerVulnerabilityAssessmentCollection Class

Definition

A class representing a collection of SqlServerVulnerabilityAssessmentResource and their operations. Each SqlServerVulnerabilityAssessmentResource in the collection will belong to the same instance of SqlServerResource. To get a SqlServerVulnerabilityAssessmentCollection instance call the GetSqlServerVulnerabilityAssessments method from an instance of SqlServerResource.

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

Constructors

SqlServerVulnerabilityAssessmentCollection()

Initializes a new instance of the SqlServerVulnerabilityAssessmentCollection 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

CreateOrUpdate(WaitUntil, VulnerabilityAssessmentName, SqlServerVulnerabilityAssessmentData, CancellationToken)

Creates or updates the server's vulnerability assessment. Learn more about setting SQL vulnerability assessment with managed identity - https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
CreateOrUpdateAsync(WaitUntil, VulnerabilityAssessmentName, SqlServerVulnerabilityAssessmentData, CancellationToken)

Creates or updates the server's vulnerability assessment. Learn more about setting SQL vulnerability assessment with managed identity - https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
Exists(VulnerabilityAssessmentName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
ExistsAsync(VulnerabilityAssessmentName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
Get(VulnerabilityAssessmentName, CancellationToken)

Gets the server's vulnerability assessment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
GetAll(CancellationToken)

Lists the vulnerability assessment policies associated with a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments
  • Operation Id: ServerVulnerabilityAssessments_ListByServer
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
GetAllAsync(CancellationToken)

Lists the vulnerability assessment policies associated with a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments
  • Operation Id: ServerVulnerabilityAssessments_ListByServer
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
GetAsync(VulnerabilityAssessmentName, CancellationToken)

Gets the server's vulnerability assessment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
GetIfExists(VulnerabilityAssessmentName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
GetIfExistsAsync(VulnerabilityAssessmentName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
  • Operation Id: ServerVulnerabilityAssessments_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerVulnerabilityAssessmentResource
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<SqlServerVulnerabilityAssessmentResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlServerVulnerabilityAssessmentResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to