azure.mgmt.cdn package

Module contents

class azure.mgmt.cdn.CdnManagementClient(credentials, subscription_id, base_url=None)[source]

Bases: msrest.service_client.SDKClient

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.

  • base_url (str) – Service URL

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.

Returns

CheckNameAvailabilityOutput or ClientRawResponse if raw=true

Return type

CheckNameAvailabilityOutput or ClientRawResponse

Raises

ErrorResponseException

check_name_availability_with_subscription(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.

Returns

CheckNameAvailabilityOutput or ClientRawResponse if raw=true

Return type

CheckNameAvailabilityOutput or ClientRawResponse

Raises

ErrorResponseException

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

Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN endpoint. This path is relative to the origin path specified in the endpoint configuration.

Parameters
  • probe_url (str) – The probe URL 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.

Returns

ValidateProbeOutput or ClientRawResponse if raw=true

Return type

ValidateProbeOutput or ClientRawResponse

Raises

ErrorResponseException