ComplianceResults Interface

public interface ComplianceResults

Resource collection API of ComplianceResults.

Method Summary

Modifier and Type Method and Description
abstract ComplianceResult get(String resourceId, String complianceResultName)

Security Compliance Result.

abstract Response<ComplianceResult> getWithResponse(String resourceId, String complianceResultName, Context context)

Security Compliance Result.

abstract PagedIterable<ComplianceResult> list(String scope)

Security compliance results in the subscription.

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

Security compliance results in the subscription.

Method Details

get

public abstract ComplianceResult get(String resourceId, String complianceResultName)

Security Compliance Result.

Parameters:

resourceId - The identifier of the resource.
complianceResultName - name of the desired assessment compliance result.

Returns:

a compliance result.

getWithResponse

public abstract Response getWithResponse(String resourceId, String complianceResultName, 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<T>.

list

public abstract PagedIterable list(String scope)

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<T>.

list

public abstract PagedIterable list(String scope, 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<T>.

Applies to