PolicyClient Class
To use in policy authoring you can create a variable at a scope. Variables created at a scope can be shared between multiple policy definitions.
- Inheritance
-
builtins.objectPolicyClient
Constructor
PolicyClient(credential: TokenCredential, 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 "2022-08-01-preview". Note that overriding this default value may result in unsupported behavior. |
Variables
Name | Description |
---|---|
variables
|
VariablesOperations operations |
variable_values
|
VariableValuesOperations operations |
Methods
close |
close
close() -> None
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python