Tencent Cloud SSL Pod SDK for Python
raw JSON → 3.0.1459 verified Sat May 09 auth: no python
Official Tencent Cloud SDK for the SSL Pod service, providing Python bindings to manage SSL certificate monitoring, validation, and reporting. Current version 3.0.1459, frequent releases tracking the cloud API.
pip install tencentcloud-sdk-python-sslpod Common errors
error ModuleNotFoundError: No module named 'tencentcloud.sslpod' ↓
cause The SDK is split into per-service packages; the base package 'tencentcloud-sdk-python' does not include sslpod.
fix
Install the correct package: pip install tencentcloud-sdk-python-sslpod
error ImportError: cannot import name 'SslpodClient' from 'tencentcloud.sslpod' ↓
cause The import path includes the API version; SslpodClient is located under the versioned module.
fix
Use: from tencentcloud.sslpod.v20190605 import sslpod_client
Warnings
breaking Module paths changed after v3.0.100: version number now appears in the import path (e.g., v20190605). Old imports without version number will break. ↓
fix Update imports to include the version segment, e.g., from tencentcloud.sslpod.v20190605 import ...
gotcha The SDK auto-detects region from environment variable TENCENTCLOUD_REGION, but if not set and not passed to the client constructor, it defaults to ap-guangzhou. Many users forget to set region and get unexpected results. ↓
fix Always pass the region parameter to SslpodClient(cred, region='ap-guangzhou').
deprecated The old credential pattern using SecretId/SecretKey strings directly in client init is deprecated. Use the Credential class from tencentcloud.common instead. ↓
fix Replace client = SslpodClient(secret_id, secret_key, region) with client = SslpodClient(credential.Credential(secret_id, secret_key), region).
Imports
- SslpodClient wrong
from tencentcloud.sslpod import SslpodClientcorrectfrom tencentcloud.sslpod.v20190605 import sslpod_client
Quickstart
from tencentcloud.common import credential
from tencentcloud.sslpod.v20190605 import sslpod_client
from tencentcloud.sslpod.v20190605 import models as sslpod_models
try:
cred = credential.Credential(
secret_id=os.environ.get('TENCENTCLOUD_SECRET_ID', ''),
secret_key=os.environ.get('TENCENTCLOUD_SECRET_KEY', '')
)
client = sslpod_client.SslpodClient(cred, "ap-guangzhou")
req = sslpod_models.DescribeDashboardRequest()
resp = client.DescribeDashboard(req)
print(resp.to_json_string())
except Exception as e:
print("Error:", e)