Interface SubAssessmentsClient
public interface SubAssessmentsClient
An instance of this class provides access to all the operations defined in SubAssessmentsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGet a security sub-assessment on your scanned resource.com.azure.core.http.rest.Response<SecuritySubAssessmentInner>
getWithResponse
(String scope, String assessmentName, String subAssessmentName, com.azure.core.util.Context context) Get a security sub-assessment on your scanned resource.com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner>
Get security sub-assessments on all your scanned resources inside a scope.com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner>
Get security sub-assessments on all your scanned resources inside a scope.com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner>
Get security sub-assessments on all your scanned resources inside a subscription scope.com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner>
Get security sub-assessments on all your scanned resources inside a subscription scope.
-
Method Details
-
listAll
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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listAll
com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner> listAll(String scope, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner> 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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SecuritySubAssessmentInner> list(String scope, String assessmentName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<SecuritySubAssessmentInner> getWithResponse(String scope, String assessmentName, String subAssessmentName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-