azure.mgmt.resource.policy package

Module contents

class azure.mgmt.resource.policy.PolicyClient(credentials, subscription_id, api_version='2016-12-01', base_url=None)[source]

Bases: object

To manage and control access to your resources, you can define customized policies and assign them at a scope.

Variables:

config (PolicyClientConfiguration) – Configuration for client.

Parameters:
  • credentials (A msrestazure Credentials object) – Credentials needed for the client to connect to Azure.
  • subscription_id (str) – The ID of the target subscription.
  • base_url (str) – Service URL
DEFAULT_API_VERSION = '2016-12-01'
classmethod models(api_version='2016-12-01')[source]

Module depends on the API version:

policy_assignments

Instance depends on the API version:

policy_definitions

Instance depends on the API version:

policy_set_definitions

Instance depends on the API version:

  • 2017-06-01-preview: PolicySetDefinitionsOperations