你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResourceManagementClient 类
提供用于处理资源和资源组的操作。
此就绪包含多个 API 版本,可帮助你处理所有 Azure 云 (Azure Stack、Azure 政府、Azure 中国等) 。 默认情况下,它使用公共 Azure 上提供的最新 API 版本。 对于生产环境,应坚持使用特定的 API 版本和/或配置文件。 配置文件设置操作组与其 API 版本之间的映射。 如果配置文件中未描述操作组,则 api-version 参数设置默认 API 版本。
- 继承
-
ResourceManagementClientazure.mgmt.resource.resources._resource_management_client._SDKClientResourceManagementClient
构造函数
ResourceManagementClient(credential: TokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)
参数
- polling_interval
- int
如果没有Retry-After标头,则 LRO 操作的两次轮询之间的默认等待时间。
方法
close | |
models |
模块取决于 API 版本:
|
close
close()
models
模块取决于 API 版本:
2016-02-01: models
2016-09-01: models
2017-05-10: models
2018-02-01: models
2018-05-01: models
2019-03-01: models
2019-05-01: models
2019-05-10: models
2019-07-01: models
2019-08-01: models
2019-10-01: models
2020-06-01: models
2020-10-01: models
2021-01-01: models
2021-04-01: models
2022-09-01: models
models(api_version='2022-09-01')
参数
- api_version
属性
deployment_operations
实例取决于 API 版本:
2016-02-01: DeploymentOperationsOperations
2016-09-01: DeploymentOperationsOperations
2017-05-10: DeploymentOperationsOperations
2018-02-01: DeploymentOperationsOperations
2018-05-01: DeploymentOperationsOperations
2019-03-01: DeploymentOperationsOperations
2019-05-01: DeploymentOperationsOperations
2019-05-10: DeploymentOperationsOperations
2019-07-01: DeploymentOperationsOperations
2019-08-01: DeploymentOperationsOperations
2019-10-01: DeploymentOperationsOperations
2020-06-01: DeploymentOperationsOperations
2020-10-01: DeploymentOperationsOperations
2021-01-01: DeploymentOperationsOperations
2021-04-01: DeploymentOperationsOperations
2022-09-01: DeploymentOperationsOperations
deployments
实例取决于 API 版本:
2016-02-01: DeploymentsOperations
2016-09-01: DeploymentsOperations
2017-05-10: DeploymentsOperations
2018-02-01: DeploymentsOperations
2018-05-01: DeploymentsOperations
2019-03-01: DeploymentsOperations
2019-05-01: DeploymentsOperations
2019-05-10: DeploymentsOperations
2019-07-01: DeploymentsOperations
2019-08-01: DeploymentsOperations
2019-10-01: DeploymentsOperations
2020-06-01: DeploymentsOperations
2020-10-01: DeploymentsOperations
2021-01-01: DeploymentsOperations
2021-04-01: DeploymentsOperations
2022-09-01: DeploymentsOperations
operations
实例取决于 API 版本:
2018-05-01: Operations
2019-03-01: Operations
2019-05-01: Operations
2019-05-10: Operations
2019-07-01: Operations
2019-08-01: Operations
2019-10-01: Operations
2020-06-01: Operations
2020-10-01: Operations
2021-01-01: Operations
2021-04-01: Operations
2022-09-01: Operations
provider_resource_types
实例取决于 API 版本:
2020-10-01: ProviderResourceTypesOperations
2021-01-01: ProviderResourceTypesOperations
2021-04-01: ProviderResourceTypesOperations
2022-09-01: ProviderResourceTypesOperations
providers
实例取决于 API 版本:
2016-02-01: ProvidersOperations
2016-09-01: ProvidersOperations
2017-05-10: ProvidersOperations
2018-02-01: ProvidersOperations
2018-05-01: ProvidersOperations
2019-03-01: ProvidersOperations
2019-05-01: ProvidersOperations
2019-05-10: ProvidersOperations
2019-07-01: ProvidersOperations
2019-08-01: ProvidersOperations
2019-10-01: ProvidersOperations
2020-06-01: ProvidersOperations
2020-10-01: ProvidersOperations
2021-01-01: ProvidersOperations
2021-04-01: ProvidersOperations
2022-09-01: ProvidersOperations
resource_groups
实例取决于 API 版本:
2016-02-01: ResourceGroupsOperations
2016-09-01: ResourceGroupsOperations
2017-05-10: ResourceGroupsOperations
2018-02-01: ResourceGroupsOperations
2018-05-01: ResourceGroupsOperations
2019-03-01: ResourceGroupsOperations
2019-05-01: ResourceGroupsOperations
2019-05-10: ResourceGroupsOperations
2019-07-01: ResourceGroupsOperations
2019-08-01: ResourceGroupsOperations
2019-10-01: ResourceGroupsOperations
2020-06-01: ResourceGroupsOperations
2020-10-01: ResourceGroupsOperations
2021-01-01: ResourceGroupsOperations
2021-04-01: ResourceGroupsOperations
2022-09-01: ResourceGroupsOperations
resources
实例取决于 API 版本:
2016-02-01: ResourcesOperations
2016-09-01: ResourcesOperations
2017-05-10: ResourcesOperations
2018-02-01: ResourcesOperations
2018-05-01: ResourcesOperations
2019-03-01: ResourcesOperations
2019-05-01: ResourcesOperations
2019-05-10: ResourcesOperations
2019-07-01: ResourcesOperations
2019-08-01: ResourcesOperations
2019-10-01: ResourcesOperations
2020-06-01: ResourcesOperations
2020-10-01: ResourcesOperations
2021-01-01: ResourcesOperations
2021-04-01: ResourcesOperations
2022-09-01: ResourcesOperations
tags
实例取决于 API 版本:
2016-02-01: TagsOperations
2016-09-01: TagsOperations
2017-05-10: TagsOperations
2018-02-01: TagsOperations
2018-05-01: TagsOperations
2019-03-01: TagsOperations
2019-05-01: TagsOperations
2019-05-10: TagsOperations
2019-07-01: TagsOperations
2019-08-01: TagsOperations
2019-10-01: TagsOperations
2020-06-01: TagsOperations
2020-10-01: TagsOperations
2021-01-01: TagsOperations
2021-04-01: TagsOperations
2022-09-01: TagsOperations
DEFAULT_API_VERSION
DEFAULT_API_VERSION = '2022-09-01'
LATEST_PROFILE
LATEST_PROFILE = azure.mgmt.resource.resources.ResourceManagementClient latest