Interface BatchAccounts
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new BatchAccount resource.void
Deletes the specified Batch account.void
deleteById
(String id) Deletes the specified Batch account.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the specified Batch account.void
deleteByResourceGroup
(String resourceGroupName, String accountName) Deletes the specified Batch account.Gets information about the specified Batch account.com.azure.core.http.rest.Response<BatchAccount>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets information about the specified Batch account.getByResourceGroup
(String resourceGroupName, String accountName) Gets information about the specified Batch account.com.azure.core.http.rest.Response<BatchAccount>
getByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets information about the specified Batch account.getDetector
(String resourceGroupName, String accountName, String detectorId) Gets information about the given detector for a given Batch account.com.azure.core.http.rest.Response<DetectorResponse>
getDetectorWithResponse
(String resourceGroupName, String accountName, String detectorId, com.azure.core.util.Context context) Gets information about the given detector for a given Batch account.Gets the account keys for the specified Batch account.com.azure.core.http.rest.Response<BatchAccountKeys>
getKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets the account keys for the specified Batch account.com.azure.core.http.rest.PagedIterable<BatchAccount>
list()
Gets information about the Batch accounts associated with the subscription.com.azure.core.http.rest.PagedIterable<BatchAccount>
list
(com.azure.core.util.Context context) Gets information about the Batch accounts associated with the subscription.com.azure.core.http.rest.PagedIterable<BatchAccount>
listByResourceGroup
(String resourceGroupName) Gets information about the Batch accounts associated with the specified resource group.com.azure.core.http.rest.PagedIterable<BatchAccount>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Gets information about the Batch accounts associated with the specified resource group.com.azure.core.http.rest.PagedIterable<DetectorResponse>
listDetectors
(String resourceGroupName, String accountName) Gets information about the detectors available for a given Batch account.com.azure.core.http.rest.PagedIterable<DetectorResponse>
listDetectors
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets information about the detectors available for a given Batch account.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint>
listOutboundNetworkDependenciesEndpoints
(String resourceGroupName, String accountName) Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration.com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint>
listOutboundNetworkDependenciesEndpoints
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration.regenerateKey
(String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters) Regenerates the specified account key for the Batch account.com.azure.core.http.rest.Response<BatchAccountKeys>
regenerateKeyWithResponse
(String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters, com.azure.core.util.Context context) Regenerates the specified account key for the Batch account.void
synchronizeAutoStorageKeys
(String resourceGroupName, String accountName) Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.com.azure.core.http.rest.Response<Void>
synchronizeAutoStorageKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
-
Method Details
-
deleteByResourceGroup
Deletes the specified Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.- 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.
-
delete
Deletes the specified Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.context
- The context to associate with this operation.- 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<BatchAccount> getByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets information about the specified Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.context
- The context to associate with this operation.- Returns:
- information about the specified Batch account 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.
-
getByResourceGroup
Gets information about the specified Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.- Returns:
- information about the specified Batch account.
- 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<BatchAccount> list()Gets information about the Batch accounts associated with the subscription.- Returns:
- information about the Batch accounts associated with the subscription 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
Gets information about the Batch accounts associated with the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- information about the Batch accounts associated with the subscription 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
Gets information about the Batch accounts associated with the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.- Returns:
- information about the Batch accounts associated with the specified resource group 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<BatchAccount> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets information about the Batch accounts associated with the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.context
- The context to associate with this operation.- Returns:
- information about the Batch accounts associated with the specified resource group 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.
-
synchronizeAutoStorageKeysWithResponse
com.azure.core.http.rest.Response<Void> synchronizeAutoStorageKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.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.
-
synchronizeAutoStorageKeys
Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.- 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.
-
regenerateKeyWithResponse
com.azure.core.http.rest.Response<BatchAccountKeys> regenerateKeyWithResponse(String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters, com.azure.core.util.Context context) Regenerates the specified account key for the Batch account.This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.parameters
- The type of key to regenerate.context
- The context to associate with this operation.- Returns:
- a set of Azure Batch account keys 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.
-
regenerateKey
BatchAccountKeys regenerateKey(String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters) Regenerates the specified account key for the Batch account.This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.parameters
- The type of key to regenerate.- Returns:
- a set of Azure Batch account keys.
- 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.
-
getKeysWithResponse
com.azure.core.http.rest.Response<BatchAccountKeys> getKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets the account keys for the specified Batch account.This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.context
- The context to associate with this operation.- Returns:
- a set of Azure Batch account keys 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.
-
getKeys
Gets the account keys for the specified Batch account.This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.- Returns:
- a set of Azure Batch account keys.
- 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.
-
listDetectors
com.azure.core.http.rest.PagedIterable<DetectorResponse> listDetectors(String resourceGroupName, String accountName) Gets information about the detectors available for a given Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.- Returns:
- information about the detectors available for a given Batch account 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.
-
listDetectors
com.azure.core.http.rest.PagedIterable<DetectorResponse> listDetectors(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets information about the detectors available for a given Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.context
- The context to associate with this operation.- Returns:
- information about the detectors available for a given Batch account 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.
-
getDetectorWithResponse
com.azure.core.http.rest.Response<DetectorResponse> getDetectorWithResponse(String resourceGroupName, String accountName, String detectorId, com.azure.core.util.Context context) Gets information about the given detector for a given Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.detectorId
- The name of the detector.context
- The context to associate with this operation.- Returns:
- information about the given detector for a given Batch account 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.
-
getDetector
Gets information about the given detector for a given Batch account.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.detectorId
- The name of the detector.- Returns:
- information about the given detector for a given Batch account.
- 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.
-
listOutboundNetworkDependenciesEndpoints
com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint> listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String accountName) Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.- Returns:
- values returned by the List operation 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.
-
listOutboundNetworkDependenciesEndpoints
com.azure.core.http.rest.PagedIterable<OutboundEnvironmentEndpoint> listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.- Parameters:
resourceGroupName
- The name of the resource group that contains the Batch account.accountName
- The name of the Batch account.context
- The context to associate with this operation.- Returns:
- values returned by the List operation 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.
-
getById
Gets information about the specified Batch account.- Parameters:
id
- the resource ID.- Returns:
- information about the specified Batch account 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<BatchAccount> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets information about the specified Batch account.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- information about the specified Batch account 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 the specified Batch account.- 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
Deletes the specified Batch account.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- 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 BatchAccount resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new BatchAccount definition.
-