SecurityCenterExtensions.GetSecurityAssessment Method

Definition

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

public static Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource> GetSecurityAssessment(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string assessmentName, Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityAssessment : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>
<Extension()>
Public Function GetSecurityAssessment (client As ArmClient, scope As ResourceIdentifier, assessmentName As String, Optional expand As Nullable(Of SecurityAssessmentODataExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SecurityAssessmentResource)

Parameters

client
ArmClient

The value preserved for API compatibility.

scope
ResourceIdentifier

The value preserved for API compatibility.

assessmentName
String

The value preserved for API compatibility.

expand
Nullable<SecurityAssessmentODataExpand>

The value preserved for API compatibility.

cancellationToken
CancellationToken

The value preserved for API compatibility.

Returns

The compatibility result.

Exceptions

client or assessmentName is null.

assessmentName is an empty string, and was expected to be non-empty.

Applies to