BastionHostsOperations Class  
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:bastion_hosts> attribute.
Constructor
BastionHostsOperations(*args, **kwargs)Methods
| begin_create_or_update | Creates or updates the specified Bastion Host. | 
| begin_delete | Deletes the specified Bastion Host. | 
| begin_update_tags | Updates Tags for BastionHost resource. | 
| get | Gets the specified Bastion Host. | 
| list | Lists all Bastion Hosts in a subscription. | 
| list_by_resource_group | Lists all Bastion Hosts in a resource group. | 
begin_create_or_update
Creates or updates the specified Bastion Host.
begin_create_or_update(resource_group_name: str, bastion_host_name: str, parameters: _models.BastionHost, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.BastionHost]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group. Required. | 
| bastion_host_name 
				Required
			 | The name of the Bastion Host. Required. | 
| parameters 
				Required
			 | Parameters supplied to the create or update Bastion Host operation. Is either a BastionHost type or a IO[bytes] type. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either BastionHost or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
begin_delete
Deletes the specified Bastion Host.
begin_delete(resource_group_name: str, bastion_host_name: str, **kwargs: Any) -> LROPoller[None]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group. Required. | 
| bastion_host_name 
				Required
			 | The name of the Bastion Host. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either None or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
begin_update_tags
Updates Tags for BastionHost resource.
begin_update_tags(resource_group_name: str, bastion_host_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.BastionHost]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group. Required. | 
| bastion_host_name 
				Required
			 | The name of the Bastion Host. Required. | 
| parameters 
				Required
			 | Parameters supplied to update BastionHost tags. Is either a TagsObject type or a IO[bytes] type. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either BastionHost or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
get
Gets the specified Bastion Host.
get(resource_group_name: str, bastion_host_name: str, **kwargs: Any) -> BastionHostParameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group. Required. | 
| bastion_host_name 
				Required
			 | The name of the Bastion Host. Required. | 
Returns
| Type | Description | 
|---|---|
| BastionHost or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list
Lists all Bastion Hosts in a subscription.
list(**kwargs: Any) -> Iterable[BastionHost]Returns
| Type | Description | 
|---|---|
| An iterator like instance of either BastionHost or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list_by_resource_group
Lists all Bastion Hosts in a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[BastionHost]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group. Required. | 
Returns
| Type | Description | 
|---|---|
| An iterator like instance of either BastionHost or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
Attributes
models
models = <module 'azure.mgmt.network.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv177\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>