ResourceManagementClient Classe
Fornece operações para trabalhar com recursos e grupos de recursos.
Esta opção pronta contém várias versões de API, para o ajudar a lidar com todas as clouds do Azure (Azure Stack, Azure Government, Azure China, etc.). Por predefinição, utiliza a versão mais recente da API disponível no Azure público. Para produção, deve manter uma versão e/ou perfil de api específicos. O perfil define um mapeamento entre um grupo de operações e a respetiva versão da API. O parâmetro api-version define a versão predefinida da API se o grupo de operações não estiver descrito no perfil.
- Herança
-
ResourceManagementClientazure.mgmt.resource.resources._resource_management_client._SDKClientResourceManagementClient
Construtor
ResourceManagementClient(credential: TokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)
Parâmetros
- credential
- TokenCredential
Credenciais necessárias para que o cliente se ligue ao Azure. Obrigatório.
- api_version
- str
Versão da API a utilizar se não for fornecido nenhum perfil ou se estiver em falta no perfil.
- profile
- KnownProfiles
Uma definição de perfil, de KnownProfiles a dict.
- polling_interval
- int
Tempo de espera predefinido entre duas sondagens para operações LRO se não existir nenhum cabeçalho de Retry-After.
Métodos
close | |
models |
O módulo depende da versão da API:
|
close
close()
models
O módulo depende da versão da 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')
Parâmetros
- api_version
Atributos
deployment_operations
A instância depende da versão da 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
A instância depende da versão da 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
A instância depende da versão da 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
A instância depende da versão da API:
2020-10-01: ProviderResourceTypesOperations
2021-01-01: ProviderResourceTypesOperations
2021-04-01: ProviderResourceTypesOperations
2022-09-01: ProviderResourceTypesOperations
providers
A instância depende da versão da 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
A instância depende da versão da 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
A instância depende da versão da 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
A instância depende da versão da 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
Azure SDK for Python