Registry / aws / tencentcloud-sdk-python-ssa

tencentcloud-sdk-python-ssa

JSON →
library3.0.1459pypypi✓ verified 88d ago

The official Tencent Cloud SDK for the Security Situational Awareness (SSA) service, providing Python bindings to manage security incidents and risks. Current version: 3.0.1459. Updated frequently, often multiple times per month.

pip install tencentcloud-sdk-python-ssa
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-ssa
awspythonv3.0.1459
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SsaClient
✓ from tencentcloud.ssa.v20180608 import ssa_client
✗ from tencentcloud.ssa import SsaClient
Correct import path includes versioned subpackage (v20180608). Common mistake: omitting the version.
models
✓ from tencentcloud.ssa.v20180608 import models
✗ from tencentcloud.ssa import models
Models are also under the versioned path.

Initialize client and describe alert list.

import os from tencentcloud.common import credential from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.ssa.v20180608 import ssa_client, models try: cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) httpProfile = HttpProfile() httpProfile.endpoint = "ssa.tencentcloudapi.com" clientProfile = ClientProfile() clientProfile.httpProfile = httpProfile client = ssa_client.SsaClient(cred, "ap-guangzhou", clientProfile) req = models.DescribeAlertListRequest() req.PageIndex = 1 req.PageSize = 10 resp = client.DescribeAlertList(req) print(resp.to_json_string()) except TencentCloudSDKException as err: print(err)
Debug
Known issues
gotchaThe import path includes a versioned subpackage (v20180608). This version string can change in future SDK releases. Always check the latest API version.
fix
Use the import pattern: from tencentcloud.ssa.v20180608 import ...
affects: all
gotchaRegion parameter is required for client initialization. Incorrect region may cause authentication or service errors.
fix
Pass a valid Tencent Cloud region (e.g., 'ap-guangzhou') to SsaClient constructor.
affects: all
gotchaEndpoints default to ssa.tencentcloudapi.com, but may be overridden per region. Check official documentation for region-specific endpoints.
fix
Set endpoint via HttpProfile if needed.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.ssa'
The ssa package is not installed or import path is incorrect.
fix
Install tencentcloud-sdk-python-ssa and use correct import: from tencentcloud.ssa.v20180608 import ssa_client
AttributeError: module 'tencentcloud.ssa.v20180608' has no attribute 'models'
Missing import of models submodule.
fix
Add: from tencentcloud.ssa.v20180608 import models
tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnsupportedRegion error: the region is not supported
Region passed to client is not valid for SSA service.
fix
Use a supported region, e.g., 'ap-guangzhou', 'ap-shanghai', 'ap-beijing'.
Upgrade
Version history
3.0.1459latest on PyPI · released Sep 15, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCore SDK required for authentication and base client
Agent activity
19 hits · last 30 days
node
16
Resources