Interface BackupPoliciesClient


  • public interface BackupPoliciesClient
    An instance of this class provides access to all the operations defined in BackupPoliciesClient.
    • Method Detail

      • list

        com.azure.core.http.rest.PagedIterable<ProtectionPolicyResourceInner> list​(String vaultName,
                                                                                   String resourceGroupName)
        Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters to fetch scoped results.
        Parameters:
        vaultName - The name of the recovery services vault.
        resourceGroupName - The name of the resource group where the recovery services vault is present.
        Returns:
        list of ProtectionPolicy resources 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<ProtectionPolicyResourceInner> list​(String vaultName,
                                                                                   String resourceGroupName,
                                                                                   String filter,
                                                                                   com.azure.core.util.Context context)
        Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters to fetch scoped results.
        Parameters:
        vaultName - The name of the recovery services vault.
        resourceGroupName - The name of the resource group where the recovery services vault is present.
        filter - OData filter options.
        context - The context to associate with this operation.
        Returns:
        list of ProtectionPolicy resources 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.