# send-message **Repository Path**: scottwong/send-message ## Basic Information - **Project Name**: send-message - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-05 - **Last Updated**: 2026-06-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 查询实例规格族列表完整工程示例 该项目为DescribeInstanceTypeFamilies的完整工程示例。 **工程代码建议使用更安全的无AK方式,凭据配置方式请参阅:[管理访问凭据](https://help.aliyun.com/zh/sdk/developer-reference/v2-manage-python-access-credentials)。** ## 运行条件 - 下载并解压需要语言的代码; - *要求 Python >= 3.7* ## 执行步骤 完成凭据配置后,可以在**解压代码所在目录下**按如下的步骤执行: - **创建并激活虚拟环境:** ```sh python -m venv venv && source venv/bin/activate ``` - **安装依赖:** ```sh pip install -r requirements.txt ``` - **运行代码** ```sh python ./alibabacloud_sample/sample.py ``` ## 使用的 API - DescribeInstanceTypeFamilies:本接口用于查询阿里云 ECS提供的实例规格族列表。通过该接口获取不同系列的实例规格族信息,从而更好地帮助您了解可用的实例规格资源,为您选择合适的实例规格创建 ECS 实例提供参考。 更多信息可参考:[文档](https://next.api.aliyun.com/document/Ecs/2014-05-26/DescribeInstanceTypeFamilies) ## API 返回示例 *下列输出值仅作为参考,实际输出结构可能稍有不同,以实际调用为准。* - JSON 格式 ```js { "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****", "InstanceTypeFamilies": { "InstanceTypeFamily": [ { "Generation": "ecs-5", "InstanceTypeFamilyId": "ecs.g6" } ] } } ```