共用方式為


ResourceManagementClient 類別

提供使用資源與資源群組的作業。

此就緒包含多個 API 版本,可協助您處理 Azure Stack、Azure Government、Azure China 等所有 Azure 雲端 ) (。 根據預設,它會使用公用 Azure 上可用的最新 API 版本。 針對生產環境,您應該繼續使用特定的 API 版本和/或設定檔。 設定檔會設定作業群組與其 API 版本之間的對應。 如果設定檔中未描述作業群組,api-version 參數會設定預設 API 版本。

繼承
ResourceManagementClient
azure.mgmt.resource.resources._resource_management_client._SDKClient
ResourceManagementClient

建構函式

ResourceManagementClient(credential: TokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)

參數

credential
TokenCredential
必要

用戶端連線到 Azure 所需的認證。 必要。

subscription_id
str
必要

Microsoft Azure 訂用帳戶識別碼。 必要。

api_version
str
預設值: None

如果未提供任何設定檔,或設定檔中遺漏,則要使用的 API 版本。

base_url
str
預設值: https://management.azure.com

服務 URL

profile
KnownProfiles
預設值: KnownProfiles.default

設定檔定義,從 KnownProfiles 到聽寫。

polling_interval
int

如果沒有Retry-After標頭,則兩次輪詢 LRO 作業之間的預設等候時間。

方法

close
models

模組取決於 API 版本:

close

close()

models

模組取決於 API 版本:

models(api_version='2022-09-01')

參數

api_version
預設值: 2022-09-01

屬性

deployment_operations

deployments

實例取決於 API 版本:

operations

實例取決於 API 版本:

provider_resource_types

實例取決於 API 版本:

providers

實例取決於 API 版本:

resource_groups

resources

實例取決於 API 版本:

tags

實例取決於 API 版本:

DEFAULT_API_VERSION

DEFAULT_API_VERSION = '2022-09-01'

LATEST_PROFILE

LATEST_PROFILE = azure.mgmt.resource.resources.ResourceManagementClient latest