{"id":23235,"library":"alibabacloud-sas20181203","title":"Alibaba Cloud Threat Detection SDK (20181203)","description":"Official Alibaba Cloud SDK for Threat Detection (SAS) API version 2018-12-03. Current version 9.2.0, requires Python >=3.7. Released often alongside Alibaba Cloud API updates.","status":"active","version":"9.2.0","language":"python","source_language":"en","source_url":"https://github.com/aliyun/alibabacloud-python-sdk","tags":["alibaba-cloud","sdk","threat-detection","sas","tea-dsl"],"install":[{"cmd":"pip install alibabacloud-sas20181203","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Core runtime for Tea-based SDKs","package":"alibabacloud-tea","optional":true}],"imports":[{"note":"Client is in the client submodule, not package root.","wrong":"from alibabacloud_sas20181203 import Client","symbol":"Client","correct":"from alibabacloud_sas20181203.client import Client"},{"wrong":"alibabacloud_sas20181203.models.DescribeSecurityEventOperationsRequest (for some earlier Alibaba SDKs models were directly importable; this SDK uses a dotted path from the models module)","symbol":"DescribeSecurityEventOperationsRequest","correct":"from alibabacloud_sas20181203.models import DescribeSecurityEventOperationsRequest"}],"quickstart":{"code":"import os\nfrom alibabacloud_sas20181203.client import Client as SasClient\nfrom alibabacloud_sas20181203 import models\nfrom alibabacloud_tea_openapi import models as open_api_models\n\nconfig = open_api_models.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 = SasClient(config)\nreq = models.DescribeSecurityEventOperationsRequest(\n    source_ip='127.0.0.1',\n    lang='zh',\n    security_event_id='<event_id>'\n)\ntry:\n    resp = client.describe_security_event_operations(req)\n    print(resp.body.to_map())\nexcept Exception as e:\n    print(e)","lang":"python","description":"Initializes a SAS client and calls DescribeSecurityEventOperations."},"warnings":[{"fix":"Update imports: `from alibabacloud_sas20181203.client import Client`.","message":"Version 9.x changed the client import path. Before ~v7, Client was importable as `from alibabacloud_sas20181203 import Client`. In v9 you must use `from alibabacloud_sas20181203.client import Client`.","severity":"breaking","affected_versions":"<7.0 or >=9.0"},{"fix":"Consider using the newer V2 SDK if the service supports it.","message":"The SDK is based on the deprecated Tea DSL. Alibaba Cloud recommends migrating to the newer SDK style (V2 SDK) in the future. No immediate breaking changes, but new APIs may not be backported.","severity":"deprecated","affected_versions":"all"},{"fix":"Use `from alibabacloud_sas20181203 import models` then `models.SomeRequest`.","message":"Models are not directly importable from the package root; you must import from `alibabacloud_sas20181203.models`.","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":"Upgrade to latest: `pip install --upgrade alibabacloud-sas20181203` and use `from alibabacloud_sas20181203.client import Client`.","cause":"Using an older SDK version (e.g., <7.0) where Client was directly under the package or installing an incompatible version.","error":"ModuleNotFoundError: No module named 'alibabacloud_sas20181203.client'"},{"fix":"Change to `from alibabacloud_sas20181203.client import Client`.","cause":"Trying to import Client from the package root, which is not present in current versions.","error":"AttributeError: module 'alibabacloud_sas20181203' has no attribute 'Client'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}