你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualApplianceSitesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:virtual_appliance_sites> attribute.

Inheritance
builtins.object
VirtualApplianceSitesOperations

Constructor

VirtualApplianceSitesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates the specified Network Virtual Appliance Site.

begin_delete

Deletes the specified site from a Virtual Appliance.

get

Gets the specified Virtual Appliance Site.

list

Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource.

begin_create_or_update

Creates or updates the specified Network Virtual Appliance Site.

begin_create_or_update(resource_group_name: str, network_virtual_appliance_name: str, site_name: str, parameters: _models.VirtualApplianceSite, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VirtualApplianceSite]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_virtual_appliance_name
Required
str

The name of the Network Virtual Appliance. Required.

site_name
Required
str

The name of the site. Required.

parameters
Required

Parameters supplied to the create or update Network Virtual Appliance Site operation. Is either a VirtualApplianceSite type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either VirtualApplianceSite or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified site from a Virtual Appliance.

begin_delete(resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_virtual_appliance_name
Required
str

The name of the Network Virtual Appliance. Required.

site_name
Required
str

The name of the site. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Gets the specified Virtual Appliance Site.

get(resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any) -> VirtualApplianceSite

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_virtual_appliance_name
Required
str

The name of the Network Virtual Appliance. Required.

site_name
Required
str

The name of the site. Required.

Returns

Type Description

VirtualApplianceSite or the result of cls(response)

Exceptions

Type Description

list

Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource.

list(resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any) -> Iterable[VirtualApplianceSite]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_virtual_appliance_name
Required
str

The name of the Network Virtual Appliance. Required.

Returns

Type Description

An iterator like instance of either VirtualApplianceSite or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>