azure.mgmt.cdn package

Module contents

class azure.mgmt.cdn.CdnManagementClient(credentials, subscription_id, api_version='2016-10-02', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None)[source]

Bases: object

Use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

Variables:
Parameters:
  • credentials (A msrestazure Credentials object) – Credentials needed for the client to connect to Azure.
  • subscription_id (str) – Azure Subscription ID.
  • api_version (str) – Version of the API to be used with the client request. Current version is 2016-10-02.
  • accept_language (str) – Gets or sets the preferred language for the response.
  • long_running_operation_retry_timeout (int) – Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
  • generate_client_request_id (bool) – When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
  • base_url (str) – Service URL
  • filepath (str) – Existing config
check_name_availability(name, custom_headers=None, raw=False, **operation_config)[source]

Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint.

Parameters:
  • name (str) – The resource name to validate.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

CheckNameAvailabilityOutput

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

check_resource_usage(custom_headers=None, raw=False, **operation_config)[source]

Check the quota and actual usage of the CDN profiles under the given subscription.

Parameters:
Return type:

ResourceUsagePaged

Raises:

ErrorResponseException

list_operations(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available CDN REST API operations.

Parameters:
Return type:

OperationPaged

Raises:

ErrorResponseException