Assessments Interface

public interface Assessments

Resource collection API of Assessments.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new SecurityAssessmentResponse resource.

abstract void deleteById(String id)

Delete a security assessment on your resource.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a security assessment on your resource.

abstract void deleteByResourceGroup(String resourceId, String assessmentName)

Delete a security assessment on your resource.

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

Delete a security assessment on your resource.

abstract SecurityAssessmentResponse get(String resourceId, String assessmentName)

Get a security assessment on your scanned resource.

abstract SecurityAssessmentResponse getById(String id)

Get a security assessment on your scanned resource.

abstract Response<SecurityAssessmentResponse> getByIdWithResponse(String id, ExpandEnum expand, Context context)

Get a security assessment on your scanned resource.

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

Get a security assessment on your scanned resource.

abstract PagedIterable<SecurityAssessmentResponse> list(String scope)

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

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

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

Method Details

define

public abstract SecurityAssessmentResponse.DefinitionStages.Blank define(String name)

Begins definition for a new SecurityAssessmentResponse resource.

Parameters:

name - resource name.

Returns:

the first stage of the new SecurityAssessmentResponse definition.

deleteById

public abstract void deleteById(String id)

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:

id - the resource ID.

deleteByIdWithResponse

public abstract Response deleteByIdWithResponse(String id, 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:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(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.

deleteByResourceGroupWithResponse

public abstract Response deleteByResourceGroupWithResponse(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 SecurityAssessmentResponse 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.

getById

public abstract SecurityAssessmentResponse getById(String id)

Get a security assessment on your scanned resource.

Parameters:

id - the resource ID.

Returns:

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

getByIdWithResponse

public abstract Response getByIdWithResponse(String id, ExpandEnum expand, Context context)

Get a security assessment on your scanned resource.

Parameters:

id - the resource ID.
expand - OData expand. Optional.
context - The context to associate with this operation.

Returns:

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

getWithResponse

public abstract Response 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 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 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