BatchAccountOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:batch_account> attribute.
Constructor
BatchAccountOperations(*args, **kwargs)
Methods
| begin_create |
Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. |
| begin_delete |
Deletes the specified Batch account. |
| get |
Gets information about the specified Batch account. |
| get_detector |
Gets information about the given detector for a given Batch account. |
| get_keys |
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. |
| list |
Gets information about the Batch accounts associated with the subscription. |
| list_by_resource_group |
Gets information about the Batch accounts associated with the specified resource group. |
| list_detectors |
Gets information about the detectors available for a given Batch account. |
| list_outbound_network_dependencies_endpoints |
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://learn.microsoft.com/azure/batch/batch-virtual-network. |
| regenerate_key |
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. |
| synchronize_auto_storage_keys |
Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. |
| update |
Updates the properties of an existing Batch account. |
begin_create
Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
async begin_create(resource_group_name: str, account_name: str, parameters: _models.BatchAccountCreateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.BatchAccount]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
|
parameters
Required
|
Additional parameters for account creation. Is one of the following types: BatchAccountCreateParameters, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns BatchAccount. The BatchAccount is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes the specified Batch account.
async begin_delete(resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
get
Gets information about the specified Batch account.
async get(resource_group_name: str, account_name: str, **kwargs: Any) -> BatchAccount
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
Returns
| Type | Description |
|---|---|
|
BatchAccount. The BatchAccount is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get_detector
Gets information about the given detector for a given Batch account.
async get_detector(resource_group_name: str, account_name: str, detector_id: str, **kwargs: Any) -> DetectorResponse
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
|
detector_id
Required
|
The name of the detector. Required. |
Returns
| Type | Description |
|---|---|
|
DetectorResponse. The DetectorResponse is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get_keys
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.
async get_keys(resource_group_name: str, account_name: str, **kwargs: Any) -> BatchAccountKeys
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
Returns
| Type | Description |
|---|---|
|
BatchAccountKeys. The BatchAccountKeys is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Gets information about the Batch accounts associated with the subscription.
list(**kwargs: Any) -> AsyncItemPaged[BatchAccount]
Returns
| Type | Description |
|---|---|
|
An iterator like instance of BatchAccount |
Exceptions
| Type | Description |
|---|---|
list_by_resource_group
Gets information about the Batch accounts associated with the specified resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncItemPaged[BatchAccount]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of BatchAccount |
Exceptions
| Type | Description |
|---|---|
list_detectors
Gets information about the detectors available for a given Batch account.
list_detectors(resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncItemPaged[DetectorResponse]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of DetectorResponse |
Exceptions
| Type | Description |
|---|---|
list_outbound_network_dependencies_endpoints
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://learn.microsoft.com/azure/batch/batch-virtual-network.
list_outbound_network_dependencies_endpoints(resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncItemPaged[OutboundEnvironmentEndpoint]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of OutboundEnvironmentEndpoint |
Exceptions
| Type | Description |
|---|---|
regenerate_key
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.
async regenerate_key(resource_group_name: str, account_name: str, parameters: _models.BatchAccountRegenerateKeyParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BatchAccountKeys
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
|
parameters
Required
|
The type of key to regenerate. Is one of the following types: BatchAccountRegenerateKeyParameters, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
BatchAccountKeys. The BatchAccountKeys is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
synchronize_auto_storage_keys
Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
async synchronize_auto_storage_keys(resource_group_name: str, account_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
update
Updates the properties of an existing Batch account.
async update(resource_group_name: str, account_name: str, parameters: _models.BatchAccountUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BatchAccount
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. Required. |
|
parameters
Required
|
Additional parameters for account update. Is one of the following types: BatchAccountUpdateParameters, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
BatchAccount. The BatchAccount is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|