PolicyClient Class
To manage and control access to your resources, you can define customized policies and assign them at a scope.
- 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. The value must be an UUID. 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 "2023-04-01". Note that overriding this default value may result in unsupported behavior. |
Variables
Name | Description |
---|---|
policy_definitions
|
PolicyDefinitionsOperations operations |
policy_definition_versions
|
PolicyDefinitionVersionsOperations operations |
policy_set_definitions
|
PolicySetDefinitionsOperations operations |
policy_set_definition_versions
|
PolicySetDefinitionVersionsOperations operations |
policy_assignments
|
PolicyAssignmentsOperations operations |
Methods
close |
close
close() -> None
Azure SDK for Python