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

ResourceHealthMetadataOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

WebSiteManagementClient's

<xref:resource_health_metadata> attribute.

Inheritance
builtins.object
ResourceHealthMetadataOperations

Constructor

ResourceHealthMetadataOperations(*args, **kwargs)

Methods

get_by_site

Gets the category of ResourceHealthMetadata to use for the given site.

Description for Gets the category of ResourceHealthMetadata to use for the given site.

get_by_site_slot

Gets the category of ResourceHealthMetadata to use for the given site.

Description for Gets the category of ResourceHealthMetadata to use for the given site.

list

List all ResourceHealthMetadata for all sites in the subscription.

Description for List all ResourceHealthMetadata for all sites in the subscription.

list_by_resource_group

List all ResourceHealthMetadata for all sites in the resource group in the subscription.

Description for List all ResourceHealthMetadata for all sites in the resource group in the subscription.

list_by_site

Gets the category of ResourceHealthMetadata to use for the given site as a collection.

Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.

list_by_site_slot

Gets the category of ResourceHealthMetadata to use for the given site as a collection.

Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.

get_by_site

Gets the category of ResourceHealthMetadata to use for the given site.

Description for Gets the category of ResourceHealthMetadata to use for the given site.

get_by_site(resource_group_name: str, name: str, **kwargs: Any) -> ResourceHealthMetadata

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of web app. Required.

Returns

Type Description

ResourceHealthMetadata or the result of cls(response)

Exceptions

Type Description

get_by_site_slot

Gets the category of ResourceHealthMetadata to use for the given site.

Description for Gets the category of ResourceHealthMetadata to use for the given site.

get_by_site_slot(resource_group_name: str, name: str, slot: str, **kwargs: Any) -> ResourceHealthMetadata

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of web app. Required.

slot
Required
str

Name of web app slot. If not specified then will default to production slot. Required.

Returns

Type Description

ResourceHealthMetadata or the result of cls(response)

Exceptions

Type Description

list

List all ResourceHealthMetadata for all sites in the subscription.

Description for List all ResourceHealthMetadata for all sites in the subscription.

list(**kwargs: Any) -> Iterable[ResourceHealthMetadata]

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

List all ResourceHealthMetadata for all sites in the resource group in the subscription.

Description for List all ResourceHealthMetadata for all sites in the resource group in the subscription.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[ResourceHealthMetadata]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

Returns

Type Description

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

Exceptions

Type Description

list_by_site

Gets the category of ResourceHealthMetadata to use for the given site as a collection.

Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.

list_by_site(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[ResourceHealthMetadata]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of web app. Required.

Returns

Type Description

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

Exceptions

Type Description

list_by_site_slot

Gets the category of ResourceHealthMetadata to use for the given site as a collection.

Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.

list_by_site_slot(resource_group_name: str, name: str, slot: str, **kwargs: Any) -> Iterable[ResourceHealthMetadata]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of web app. Required.

slot
Required
str

Name of web app slot. If not specified then will default to production slot. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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