Python용 Azure CDN 라이브러리
개요
CDN(Azure Content Delivery Network)을 사용하면 전 세계에서 고대역폭 가용성을 보장하기 위해 웹 콘텐츠 캐시를 제공할 수 있습니다.
Azure CDN을 시작하려면 Azure CDN 시작을 참조하세요.
관리 API
관리 API를 사용하여 Azure CDN을 생성, 쿼리 및 관리합니다.
pip를 통해 관리 패키지를 설치합니다.
pip install azure-mgmt-cdn
예제
정의된 단일 엔드포인트가 있는 CDN 프로필 만들기:
from azure.mgmt.cdn import CdnManagementClient
cdn_client = CdnManagementClient(credentials, 'your-subscription-id')
profile_poller = cdn_client.profiles.create('my-resource-group',
'cdn-name',
{
"location": "some_region",
"sku": {
"name": "sku_tier"
}
})
profile = profile_poller.result()
endpoint_poller = cdn_client.endpoints.create('my-resource-group',
'cdn-name',
'unique-endpoint-name',
{
"location": "any_region",
"origins": [
{
"name": "origin_name",
"host_name": "url"
}]
})
endpoint = endpoint_poller.result()
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기