Give AlbumentationsX a star on GitHub — it powers this leaderboard

Star on GitHub

azure-mgmt-cdn

Microsoft Azure CDN Management Client Library for Python

Rank: #1408Downloads: 7,290,838 (30 days)Stars: 5,497Forks: 3,248

Description

Microsoft Azure SDK for Python

This is the Microsoft Azure CDN Management Client Library. This package has been tested with Python 3.8+. For a more complete view of Azure libraries, see the azure sdk python release.

Disclaimer

Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691

Getting started

Prerequisites

Install the package

pip install azure-mgmt-cdn
pip install azure-identity

Authentication

By default, Azure Active Directory token authentication depends on correct configure of following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.

With above configuration, client can be authenticated by following code:

from azure.identity import DefaultAzureCredential
from azure.mgmt.cdn import CdnManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = CdnManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Next steps

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

13.1.1 (2024-06-12)

Bugs Fixed

  • Fix serialization error when setting model property with azure.core.serialization.NULL

13.1.0 (2024-04-15)

Features Added

  • Model Profile has a new parameter log_scrubbing
  • Model ProfileUpdateParameters has a new parameter log_scrubbing

13.0.0 (2023-10-23)

Features Added

  • Added operation AFDProfilesOperations.begin_upgrade
  • Added operation AFDProfilesOperations.check_endpoint_name_availability
  • Added operation AFDProfilesOperations.validate_secret
  • Added operation ProfilesOperations.begin_can_migrate
  • Added operation ProfilesOperations.begin_migrate
  • Added operation ProfilesOperations.begin_migration_commit
  • Model AFDDomain has a new parameter extended_properties
  • Model AFDDomainProperties has a new parameter extended_properties
  • Model AzureFirstPartyManagedCertificateParameters has a new parameter certificate_authority
  • Model AzureFirstPartyManagedCertificateParameters has a new parameter expiration_date
  • Model AzureFirstPartyManagedCertificateParameters has a new parameter secret_source
  • Model AzureFirstPartyManagedCertificateParameters has a new parameter subject
  • Model AzureFirstPartyManagedCertificateParameters has a new parameter subject_alternative_names
  • Model AzureFirstPartyManagedCertificateParameters has a new parameter thumbprint
  • Model CdnWebApplicationFirewallPolicy has a new parameter extended_properties
  • Model Profile has a new parameter extended_properties
  • Model Profile has a new parameter identity
  • Model ProfileUpdateParameters has a new parameter identity

Breaking Changes

  • Removed operation group ValidateOperations
  • Renamed operation CustomDomainsOperations.disable_custom_https to CustomDomainsOperations.begin_disable_custom_https
  • Renamed operation CustomDomainsOperations.enable_custom_https to CustomDomainsOperations.begin_enable_custom_https

12.1.0b1 (2022-10-21)

Breaking Changes

  • Renamed operation CustomDomainsOperations.disable_custom_https to CustomDomainsOperations.begin_disable_custom_https
  • Renamed operation CustomDomainsOperations.enable_custom_https to CustomDomainsOperations.begin_enable_custom_https

12.0.0 (2022-03-22)

Features

  • Added operation CdnManagementClientOperationsMixin.check_endpoint_name_availability
  • Added operation RuleSetsOperations.create
  • Model AFDDomain has a new parameter pre_validated_custom_domain_resource_id
  • Model AFDDomain has a new parameter profile_name
  • Model AFDDomainProperties has a new parameter pre_validated_custom_domain_resource_id
  • Model AFDDomainProperties has a new parameter profile_name
  • Model AFDDomainUpdateParameters has a new parameter pre_validated_custom_domain_resource_id
  • Model AFDDomainUpdateParameters has a new parameter profile_name
  • Model AFDDomainUpdatePropertiesParameters has a new parameter pre_validated_custom_domain_resource_id
  • Model AFDDomainUpdatePropertiesParameters has a new parameter profile_name
  • Model AFDEndpoint has a new parameter auto_generated_domain_name_label_scope
  • Model AFDEndpoint has a new parameter profile_name
  • Model AFDEndpointProperties has a new parameter auto_generated_domain_name_label_scope
  • Model AFDEndpointProperties has a new parameter profile_name
  • Model AFDEndpointPropertiesUpdateParameters has a new parameter profile_name
  • Model AFDEndpointUpdateParameters has a new parameter profile_name
  • Model AFDOrigin has a new parameter enforce_certificate_name_check
  • Model AFDOrigin has a new parameter origin_group_name
  • Model AFDOriginGroup has a new parameter profile_name
  • Model AFDOriginGroupProperties has a new parameter profile_name
  • Model AFDOriginGroupUpdateParameters has a new parameter profile_name
  • Model AFDOriginGroupUpdatePropertiesParameters has a new parameter profile_name
  • Model AFDOriginProperties has a new parameter enforce_certificate_name_check
  • Model AFDOriginProperties has a new parameter origin_group_name
  • Model AFDOriginUpdateParameters has a new parameter enforce_certificate_name_check
  • Model AFDOriginUpdateParameters has a new parameter origin_group_name
  • Model AFDOriginUpdatePropertiesParameters has a new parameter enforce_certificate_name_check
  • Model AFDOriginUpdatePropertiesParameters has a new parameter origin_group_name
  • Model Certificate has a new parameter type
  • Model CustomDomain has a new parameter custom_https_parameters
  • Model CustomerCertificate has a new parameter secret_source
  • Model CustomerCertificate has a new parameter secret_version
  • Model CustomerCertificate has a new parameter type
  • Model CustomerCertificateParameters has a new parameter expiration_date
  • Model CustomerCertificateParameters has a new parameter subject
  • Model CustomerCertificateParameters has a new parameter thumbprint
  • Model DeepCreatedOrigin has a new parameter private_endpoint_status
  • Model Endpoint has a new parameter custom_domains
  • Model EndpointProperties has a new parameter custom_domains
  • Model ErrorResponse has a new parameter error
  • Model HttpVersionMatchConditionParameters has a new parameter transforms
  • Model ManagedCertificate has a new parameter type
  • Model ManagedCertificateParameters has a new parameter expiration_date
  • Model ManagedCertificateParameters has a new parameter subject
  • Model Operation has a new parameter is_data_action
  • Model Operation has a new parameter origin
  • Model Operation has a new parameter service_specification
  • Model OperationDisplay has a new parameter description
  • Model Profile has a new parameter front_door_id
  • Model Profile has a new parameter kind
  • Model Profile has a new parameter origin_response_timeout_seconds
  • Model ProfileUpdateParameters has a new parameter origin_response_timeout_seconds
  • Model RequestMethodMatchConditionParameters has a new parameter transforms
  • Model RequestSchemeMatchConditionParameters has a new parameter transforms
  • Model Route has a new parameter cache_configuration
  • Model Route has a new parameter endpoint_name
  • Model RouteProperties has a new parameter cache_configuration
  • Model RouteProperties has a new parameter endpoint_name
  • Model RouteUpdateParameters has a new parameter cache_configuration
  • Model RouteUpdateParameters has a new parameter endpoint_name
  • Model RouteUpdatePropertiesParameters has a new parameter cache_configuration
  • Model RouteUpdatePropertiesParameters has a new parameter endpoint_name
  • Model Rule has a new parameter rule_set_name
  • Model RuleProperties has a new parameter rule_set_name
  • Model RuleSet has a new parameter profile_name
  • Model RuleSetProperties has a new parameter profile_name
  • Model RuleUpdateParameters has a new parameter rule_set_name
  • Model RuleUpdatePropertiesParameters has a new parameter rule_set_name
  • Model Secret has a new parameter profile_name
  • Model SecretProperties has a new parameter profile_name
  • Model SecurityPolicy has a new parameter profile_name
  • Model SecurityPolicyProperties has a new parameter profile_name
  • Model ValidateSecretInput has a new parameter secret_version

Breaking changes

  • Model AFDEndpoint no longer has parameter origin_response_timeout_seconds
  • Model AFDEndpointProperties no longer has parameter origin_response_timeout_seconds
  • Model AFDEndpointPropertiesUpdateParameters no longer has parameter origin_response_timeout_seconds
  • Model AFDEndpointUpdateParameters no longer has parameter origin_response_timeout_seconds
  • Model AFDOriginGroup no longer has parameter response_based_afd_origin_error_detection_settings
  • Model AFDOriginGroupProperties no longer has parameter response_based_afd_origin_error_detection_settings
  • Model AFDOriginGroupUpdateParameters no longer has parameter response_based_afd_origin_error_detection_settings
  • Model AFDOriginGroupUpdatePropertiesParameters no l