Interface ProtectionPolicyOperationStatuses


  • public interface ProtectionPolicyOperationStatuses
    Resource collection API of ProtectionPolicyOperationStatuses.
    • Method Detail

      • get

        OperationStatus get​(String vaultName,
                            String resourceGroupName,
                            String policyName,
                            String operationId)
        Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations create jobs. This method returns the list of jobs associated with operation.
        Parameters:
        vaultName - The name of the recovery services vault.
        resourceGroupName - The name of the resource group where the recovery services vault is present.
        policyName - Backup policy name whose operation's status needs to be fetched.
        operationId - Operation ID which represents an operation whose status needs to be fetched.
        Returns:
        operation status.
        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<OperationStatus> getWithResponse​(String vaultName,
                                                                           String resourceGroupName,
                                                                           String policyName,
                                                                           String operationId,
                                                                           com.azure.core.util.Context context)
        Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations create jobs. This method returns the list of jobs associated with operation.
        Parameters:
        vaultName - The name of the recovery services vault.
        resourceGroupName - The name of the resource group where the recovery services vault is present.
        policyName - Backup policy name whose operation's status needs to be fetched.
        operationId - Operation ID which represents an operation whose status needs to be fetched.
        context - The context to associate with this operation.
        Returns:
        operation status 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.