SubAssessments Interface

public interface SubAssessments

Resource collection API of SubAssessments.

Method Summary

Modifier and Type Method and Description
abstract SecuritySubAssessment get(String scope, String assessmentName, String subAssessmentName)

Get a security sub-assessment on your scanned resource.

abstract Response<SecuritySubAssessment> getWithResponse(String scope, String assessmentName, String subAssessmentName, Context context)

Get a security sub-assessment on your scanned resource.

abstract PagedIterable<SecuritySubAssessment> list(String scope, String assessmentName)

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

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

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

abstract PagedIterable<SecuritySubAssessment> listAll(String scope)

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

abstract PagedIterable<SecuritySubAssessment> listAll(String scope, Context context)

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

Method Details

get

public abstract SecuritySubAssessment get(String scope, String assessmentName, String subAssessmentName)

Get a security sub-assessment on your scanned resource.

Parameters:

scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
assessmentName - The Assessment Key - Unique key for the assessment type.
subAssessmentName - The Sub-Assessment Key - Unique key for the sub-assessment type.

Returns:

a security sub-assessment on your scanned resource.

getWithResponse

public abstract Response getWithResponse(String scope, String assessmentName, String subAssessmentName, Context context)

Get a security sub-assessment on your scanned resource.

Parameters:

scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
assessmentName - The Assessment Key - Unique key for the assessment type.
subAssessmentName - The Sub-Assessment Key - Unique key for the sub-assessment type.
context - The context to associate with this operation.

Returns:

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

list

public abstract PagedIterable list(String scope, String assessmentName)

Get security sub-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).
assessmentName - The Assessment Key - Unique key for the assessment type.

Returns:

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

list

public abstract PagedIterable list(String scope, String assessmentName, Context context)

Get security sub-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).
assessmentName - The Assessment Key - Unique key for the assessment type.
context - The context to associate with this operation.

Returns:

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

listAll

public abstract PagedIterable listAll(String scope)

Get security sub-assessments on all your scanned resources inside a subscription 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 sub-assessments on all your scanned resources inside a subscription scope as paginated response with PagedIterable<T>.

listAll

public abstract PagedIterable listAll(String scope, Context context)

Get security sub-assessments on all your scanned resources inside a subscription 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 sub-assessments on all your scanned resources inside a subscription scope as paginated response with PagedIterable<T>.

Applies to