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: - config (CdnManagementClientConfiguration) – Configuration for client.
- profiles (azure.mgmt.cdn.operations.ProfilesOperations) – Profiles operations
- endpoints (azure.mgmt.cdn.operations.EndpointsOperations) – Endpoints operations
- origins (azure.mgmt.cdn.operations.OriginsOperations) – Origins operations
- custom_domains (azure.mgmt.cdn.operations.CustomDomainsOperations) – CustomDomains operations
- resource_usage (azure.mgmt.cdn.operations.ResourceUsageOperations) – ResourceUsage operations
- operations (azure.mgmt.cdn.operations.Operations) – Operations operations
- edge_nodes (azure.mgmt.cdn.operations.EdgeNodesOperations) – EdgeNodes operations
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_config – Operation configuration overrides.
Returns: CheckNameAvailabilityOutput or ClientRawResponse if raw=true
Return type: CheckNameAvailabilityOutput or ClientRawResponse
Raises:
-
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_config – Operation configuration overrides.
Returns: CheckNameAvailabilityOutput or ClientRawResponse if raw=true
Return type: CheckNameAvailabilityOutput or ClientRawResponse
Raises:
-
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_config – Operation configuration overrides.
Returns: ValidateProbeOutput or ClientRawResponse if raw=true
Return type: ValidateProbeOutput or ClientRawResponse
Raises: