获取云环境列表
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListCloudEnvs | 要执行的操作,取值:ListCloudEnvs。 |
Version | String | 是 | 2024-05-08 | API的版本,取值:2024-05-08。 |
PageNumber | Integer | 是 | 1 | 翻页页码 |
PageSize | Integer | 是 | 10 | 每页的大小 |
SyncStatus | Integer | 否 | 61 | SyncStatus |
AccessKey | String | 否 | AccessKey | 主账号或子账号AK |
CloudPlatform | String | 否 | CloudPlatform | CloudPlatform |
Comment | String | 否 | Comment | Comment |
SortBy | String | 否 | SortBy | 排序字段 |
SortOrder | String | 否 | Asc | 排序顺序
|
Status | Integer | 否 | RUNNING | 开关 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
TotalCount | Integer | 100 | 全部数据条数 |
PageNumber | Integer | 1 | 当前页面 |
PageSize | Integer | 10 | 页面大小 |
Data | Array of Object | -- | 响应结果 |
POST /?Action=ListCloudEnvs&Version=2024-05-08&PageNumber=1&OrderKey=NZFY&PageSize=10&OrderValue=Asc HTTP/1.1 Host: / Content-Type: application/json; charset=UTF-8 X-Date: 20240911T095705Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240911/cn-beijing/seccenter/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "SyncStatus": 0 }
{ "PageInfo": { "PageNumber": 90704045, "PageSize": 769169863, "TotalCount": 1720468444 }, "ResponseMetadata": { "RequestId": "2024121017454902201517405218D77B", "Action": "ListCloudEnvs", "Version": "2024-05-08", "Service": "seccenter", "Region": "cn-beijing" }, "Result": [ { "ID": "66eac07353890101c02b3310", "CloudPlatform": "ali", "AccessKey": "xxxxxxxx", "KeyType": "primary", "Comment": "xxxx", "SyncPeriod": 1, "Status": 1, "SyncStatus": 0, "ErrorMsg": "xxxx" } ] }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | MissingParameter | 请求参数缺失 |
400 | InvalidParameter | 请求参数错误 |
400 | OperationDenied | 不允许的操作 |
500 | InternalError | 服务器内部错误 |
500 | DBOperateError | 数据库操作异常 |