PolicyClient Class
To exempt your resources from policy evaluation and non-compliance state, you can create an exemption at a scope.
- Inheritance
-
builtins.objectPolicyClient
Constructor
PolicyClient(credential: AsyncTokenCredential, subscription_id: str, base_url: str = 'https://management.azure.com', **kwargs: Any)
Parameters
Name | Description |
---|---|
credential
Required
|
Credential needed for the client to connect to Azure. Required. |
subscription_id
Required
|
The ID of the target subscription. Required. |
base_url
|
Service URL. Default value is "https://management.azure.com". Default value: https://management.azure.com
|
Keyword-Only Parameters
Name | Description |
---|---|
api_version
|
Api Version. Default value is "2020-07-01-preview". Note that overriding this default value may result in unsupported behavior. |
Variables
Name | Description |
---|---|
policy_exemptions
|
PolicyExemptionsOperations operations |
Methods
close |
close
async close() -> None
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for Python