SecurityCenterExtensions.GetServerVulnerabilityAssessment Method

Definition

Overloads

Name Description
GetServerVulnerabilityAssessment(ArmClient, ResourceIdentifier)

Gets an object representing a ServerVulnerabilityAssessmentResource along with the instance operations that can be performed on it in the ArmClient <item> Mocking. To mock this method, please mock GetServerVulnerabilityAssessment(ResourceIdentifier) instead. </item>

GetServerVulnerabilityAssessment(ResourceGroupResource, String, String, String, CancellationToken)

Provides a compatibility shim for the GetServerVulnerabilityAssessment operation preserved from the previous public API surface.

GetServerVulnerabilityAssessment(ArmClient, ResourceIdentifier)

Source:
SecurityCenterExtensions.cs

Gets an object representing a ServerVulnerabilityAssessmentResource along with the instance operations that can be performed on it in the ArmClient <item> Mocking. To mock this method, please mock GetServerVulnerabilityAssessment(ResourceIdentifier) instead. </item>

public static Azure.ResourceManager.SecurityCenter.ServerVulnerabilityAssessmentResource GetServerVulnerabilityAssessment(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);
static member GetServerVulnerabilityAssessment : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SecurityCenter.ServerVulnerabilityAssessmentResource
<Extension()>
Public Function GetServerVulnerabilityAssessment (client As ArmClient, scope As ResourceIdentifier) As ServerVulnerabilityAssessmentResource

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

Returns

Returns a ServerVulnerabilityAssessmentResource object.

Exceptions

client is null.

Applies to

GetServerVulnerabilityAssessment(ResourceGroupResource, String, String, String, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Provides a compatibility shim for the GetServerVulnerabilityAssessment operation preserved from the previous public API surface.

public static Azure.Response<Azure.ResourceManager.SecurityCenter.ServerVulnerabilityAssessmentResource> GetServerVulnerabilityAssessment(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceNamespace, string resourceType, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetServerVulnerabilityAssessment : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.ServerVulnerabilityAssessmentResource>
<Extension()>
Public Function GetServerVulnerabilityAssessment (resourceGroupResource As ResourceGroupResource, resourceNamespace As String, resourceType As String, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ServerVulnerabilityAssessmentResource)

Parameters

resourceGroupResource
ResourceGroupResource

The value preserved for API compatibility.

resourceNamespace
String

The value preserved for API compatibility.

resourceType
String

The value preserved for API compatibility.

resourceName
String

The value preserved for API compatibility.

cancellationToken
CancellationToken

The value preserved for API compatibility.

Returns

The compatibility result.

Exceptions

resourceGroupResource, resourceNamespace, resourceType or resourceName is null.

resourceNamespace, resourceType or resourceName is an empty string, and was expected to be non-empty.

Applies to