Interface Vaults
public interface Vaults
Resource collection API of Vaults.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Vault resource.void
deleteById
(String id) Deletes a vault.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a vault.void
deleteByResourceGroup
(String resourceGroupName, String vaultName) Deletes a vault.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String vaultName, com.azure.core.util.Context context) Deletes a vault.Get the Vault details.com.azure.core.http.rest.Response<Vault>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get the Vault details.getByResourceGroup
(String resourceGroupName, String vaultName) Get the Vault details.com.azure.core.http.rest.Response<Vault>
getByResourceGroupWithResponse
(String resourceGroupName, String vaultName, com.azure.core.util.Context context) Get the Vault details.com.azure.core.http.rest.PagedIterable<Vault>
list()
Fetches all the resources of the specified type in the subscription.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.com.azure.core.http.rest.PagedIterable<Vault>
listByResourceGroup
(String resourceGroupName) Retrieve a list of Vaults.com.azure.core.http.rest.PagedIterable<Vault>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Retrieve a list 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
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
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
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
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
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
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.
-