Interface Compliances


public interface Compliances
Resource collection API of Compliances.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String scope, String complianceName)
    Details of a specific Compliance.
    com.azure.core.http.rest.Response<Compliance>
    getWithResponse(String scope, String complianceName, com.azure.core.util.Context context)
    Details of a specific Compliance.
    com.azure.core.http.rest.PagedIterable<Compliance>
    list(String scope)
    The Compliance scores of the specific management group.
    com.azure.core.http.rest.PagedIterable<Compliance>
    list(String scope, com.azure.core.util.Context context)
    The Compliance scores of the specific management group.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<Compliance> list(String scope)
      The Compliance scores of the specific management group.
      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 objects 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<Compliance> list(String scope, com.azure.core.util.Context context)
      The Compliance scores of the specific management group.
      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 objects 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

      Compliance get(String scope, String complianceName)
      Details of a specific Compliance.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      complianceName - name of the Compliance.
      Returns:
      compliance of a scope.
      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<Compliance> getWithResponse(String scope, String complianceName, com.azure.core.util.Context context)
      Details of a specific Compliance.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      complianceName - name of the Compliance.
      context - The context to associate with this operation.
      Returns:
      compliance of a scope 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.