public interface Vaults
Resource collection API of Vaults.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<Vault> list()
      Fetches all the resources of the specified type in the subscription.
      Returns:
      the response model for a list of Vaults as paginated response with PagedIterable.
      Throws:
      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<Vault> list(com.azure.core.util.Context context)
      Fetches all the resources of the specified type in the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the response model for a list of Vaults 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Vault> listByResourceGroup(String resourceGroupName)
      Retrieve a list of Vaults.
      Parameters:
      resourceGroupName - The name of the resource group where the recovery services vault is present.
      Returns:
      the response model for a list of Vaults 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Vault> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Retrieve a list of Vaults.
      Parameters:
      resourceGroupName - The name of the resource group where the recovery services vault is present.
      context - The context to associate with this operation.
      Returns:
      the response model for a list of Vaults 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.
    • getByResourceGroup

      Vault getByResourceGroup(String resourceGroupName, String vaultName)
      Get the Vault details.
      Parameters:
      resourceGroupName - The name of the resource group where the recovery services vault is present.
      vaultName - The name of the recovery services vault.
      Returns:
      the Vault details.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Vault> getByResourceGroupWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
      Get the Vault details.
      Parameters:
      resourceGroupName - The name of the resource group where the recovery services vault is present.
      vaultName - The name of the recovery services vault.
      context - The context to associate with this operation.
      Returns:
      the Vault details 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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String vaultName)
      Deletes a vault.
      Parameters:
      resourceGroupName - The name of the resource group where the recovery services vault is present.
      vaultName - The name of the recovery services vault.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
      Deletes a vault.
      Parameters:
      resourceGroupName - The name of the resource group where the recovery services vault is present.
      vaultName - The name of the recovery services vault.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • getById

      Vault getById(String id)
      Get the Vault details.
      Parameters:
      id - the resource ID.
      Returns:
      the Vault details 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<Vault> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get the Vault details.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the Vault details 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.
    • deleteById

      void deleteById(String id)
      Deletes a vault.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a vault.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

      Begins definition for a new Vault resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Vault definition.