{"id":23229,"library":"alibabacloud-cdn20180510","title":"Alibaba Cloud CDN SDK (2018-05-10)","description":"Alibaba Cloud CDN (Content Delivery Network) SDK for Python. Current version 9.0.0. Allows management of CDN domains, configurations, and monitoring. Released under the Alibaba Cloud SDK for Python umbrella. Active development with frequent minor releases.","status":"active","version":"9.0.0","language":"python","source_language":"en","source_url":"https://github.com/aliyun/alibabacloud-python-sdk","tags":["alibaba-cloud","cdn","sdk","cloud-computing"],"install":[{"cmd":"pip install alibabacloud-cdn20180510","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required for authentication using Alibaba Cloud credentials","package":"alibabacloud_credentials","optional":false},{"reason":"Used for endpoint resolution","package":"alibabacloud_endpoint_util","optional":false},{"reason":"Used for OpenAPI client initialization","package":"alibabacloud_open_api_util","optional":false},{"reason":"Core runtime utilities","package":"alibabacloud_tea_util","optional":false}],"imports":[{"note":"Client is not a top-level export; must import from the .client module","wrong":"import Client from alibabacloud_cdn20180510","symbol":"Client","correct":"from alibabacloud_cdn20180510.client import Client"},{"note":"Models are in the models subpackage, not top-level","wrong":"from alibabacloud_cdn20180510 import DescribeCdnDomainDetailResponseBody","symbol":"DescribeCdnDomainDetailResponseBody","correct":"from alibabacloud_cdn20180510.models import DescribeCdnDomainDetailResponseBody"}],"quickstart":{"code":"import os\nfrom alibabacloud_cdn20180510.client import Client\nfrom alibabacloud_cdn20180510.models import DescribeCdnDomainDetailRequest\nfrom alibabacloud_tea_openapi.models import Config\n\nconfig = Config(\n    access_key_id=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_ID', ''),\n    access_key_secret=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_SECRET', ''),\n    region_id='cn-hangzhou'\n)\nclient = Client(config)\nrequest = DescribeCdnDomainDetailRequest(\n    domain_name='example.com'\n)\nresponse = client.describe_cdn_domain_detail(request)\nprint(response.body)","lang":"python","description":"Initializes the client and calls a simple API to describe a CDN domain detail."},"warnings":[{"fix":"Update imports to use the .client and .models subpackages. See quickstart for correct pattern.","message":"Version 9.0.0 changed the import paths: Client is now in alibabacloud_cdn20180510.client instead of alibabacloud_cdn20180510. Also, models are in a separate subpackage. Code from v8.x will break.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Use alibabacloud_credentials to create a credential object and pass it to Config.","message":"The old authentication method using 'access_key_id' and 'access_key_secret' directly in Config is being phased out. Consider using credential providers like 'AlibabacloudCredentials'.","severity":"deprecated","affected_versions":">=7.0.0"},{"fix":"Refer to the official API documentation or inspect the client methods via dir(Client).","message":"All API methods are generated and may have inconsistent naming (e.g., describe_* vs. list_*). Always check the model files for the exact method name.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install alibabacloud-cdn20180510' (note hyphens, not underscores).","cause":"Library not installed or installed with incorrect name.","error":"ModuleNotFoundError: No module named 'alibabacloud_cdn20180510'"},{"fix":"Use 'from alibabacloud_cdn20180510.client import Client'.","cause":"Wrong import path; Client is not in the top-level module.","error":"AttributeError: module 'alibabacloud_cdn20180510' has no attribute 'Client'"},{"fix":"Ensure region_id is set correctly in Config (e.g., 'cn-hangzhou') and that your machine can reach the Alibaba Cloud endpoint.","cause":"Missing or incorrect region_id, or network connectivity issue.","error":"tealink.UnknownHostException: Failed to connect to cdn.aliyuncs.com port 443"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}