Interface ComplianceResults
public interface ComplianceResults
Resource collection API of ComplianceResults.
-
Method Summary
Modifier and TypeMethodDescriptionSecurity Compliance Result.com.azure.core.http.rest.Response<ComplianceResult>
getWithResponse
(String resourceId, String complianceResultName, com.azure.core.util.Context context) Security Compliance Result.com.azure.core.http.rest.PagedIterable<ComplianceResult>
Security compliance results in the subscription.com.azure.core.http.rest.PagedIterable<ComplianceResult>
Security compliance results in the subscription.
-
Method Details
-
list
Security compliance results in the subscription.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).- Returns:
- list of compliance results response 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<ComplianceResult> list(String scope, com.azure.core.util.Context context) Security compliance results in the subscription.- 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:
- list of compliance results response 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
Security Compliance Result.- Parameters:
resourceId
- The identifier of the resource.complianceResultName
- name of the desired assessment compliance result.- Returns:
- a compliance result.
- 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<ComplianceResult> getWithResponse(String resourceId, String complianceResultName, com.azure.core.util.Context context) Security Compliance Result.- Parameters:
resourceId
- The identifier of the resource.complianceResultName
- name of the desired assessment compliance result.context
- The context to associate with this operation.- Returns:
- a compliance result 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.
-