AssessmentsClient Interface

public interface AssessmentsClient

An instance of this class provides access to all the operations defined in AssessmentsClient.

Method Summary

Modifier and Type Method and Description
abstract SecurityAssessmentResponseInner createOrUpdate(String resourceId, String assessmentName, SecurityAssessment assessment)

Create a security assessment on your resource.

abstract Response<SecurityAssessmentResponseInner> createOrUpdateWithResponse(String resourceId, String assessmentName, SecurityAssessment assessment, Context context)

Create a security assessment on your resource.

abstract void delete(String resourceId, String assessmentName)

Delete a security assessment on your resource.

abstract Response<Void> deleteWithResponse(String resourceId, String assessmentName, Context context)

Delete a security assessment on your resource.

abstract SecurityAssessmentResponseInner get(String resourceId, String assessmentName)

Get a security assessment on your scanned resource.

abstract Response<SecurityAssessmentResponseInner> getWithResponse(String resourceId, String assessmentName, ExpandEnum expand, Context context)

Get a security assessment on your scanned resource.

abstract PagedIterable<SecurityAssessmentResponseInner> list(String scope)

Get security assessments on all your scanned resources inside a scope.

abstract PagedIterable<SecurityAssessmentResponseInner> list(String scope, Context context)

Get security assessments on all your scanned resources inside a scope.

Method Details

createOrUpdate

public abstract SecurityAssessmentResponseInner createOrUpdate(String resourceId, String assessmentName, SecurityAssessment assessment)

Create a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result.

Parameters:

resourceId - The identifier of the resource.
assessmentName - The Assessment Key - Unique key for the assessment type.
assessment - Calculated assessment on a pre-defined assessment metadata.

Returns:

security assessment on a resource - response format.

createOrUpdateWithResponse

public abstract Response<SecurityAssessmentResponseInner> createOrUpdateWithResponse(String resourceId, String assessmentName, SecurityAssessment assessment, Context context)

Create a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result.

Parameters:

resourceId - The identifier of the resource.
assessmentName - The Assessment Key - Unique key for the assessment type.
assessment - Calculated assessment on a pre-defined assessment metadata.
context - The context to associate with this operation.

Returns:

security assessment on a resource - response format along with Response<T>.

delete

public abstract void delete(String resourceId, String assessmentName)

Delete a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result.

Parameters:

resourceId - The identifier of the resource.
assessmentName - The Assessment Key - Unique key for the assessment type.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceId, String assessmentName, Context context)

Delete a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result.

Parameters:

resourceId - The identifier of the resource.
assessmentName - The Assessment Key - Unique key for the assessment type.
context - The context to associate with this operation.

Returns:

get

public abstract SecurityAssessmentResponseInner get(String resourceId, String assessmentName)

Get a security assessment on your scanned resource.

Parameters:

resourceId - The identifier of the resource.
assessmentName - The Assessment Key - Unique key for the assessment type.

Returns:

a security assessment on your scanned resource.

getWithResponse

public abstract Response<SecurityAssessmentResponseInner> getWithResponse(String resourceId, String assessmentName, ExpandEnum expand, Context context)

Get a security assessment on your scanned resource.

Parameters:

resourceId - The identifier of the resource.
assessmentName - The Assessment Key - Unique key for the assessment type.
expand - OData expand. Optional.
context - The context to associate with this operation.

Returns:

a security assessment on your scanned resource along with Response<T>.

list

public abstract PagedIterable<SecurityAssessmentResponseInner> list(String scope)

Get security assessments on all your scanned resources inside a scope.

Parameters:

scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

Returns:

security assessments on all your scanned resources inside a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<SecurityAssessmentResponseInner> list(String scope, Context context)

Get security assessments on all your scanned resources inside a scope.

Parameters:

scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
context - The context to associate with this operation.

Returns:

security assessments on all your scanned resources inside a scope as paginated response with PagedIterable<T>.

Applies to