查询ECS服务器规格信息[待下线] - ListEcsSpecification
功能介绍
查询ECS服务器规格信息
URI
GET /v1/{project_id}/dbss/audit/specification
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 参数解释: 项目ID。可通过IAM服务[查询指定IAM用户的项目列表]接口获取。 约束限制: 不涉及 取值范围: 以IAM服务接口返回值为准,字符长度32-64。 默认取值: 不涉及 |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Auth-Token | 是 | String | 参数解释: 用户Token。通过调用IAM服务查询用户Token接口获取(响应消息头中X-Subject-Token的值)。 约束限制: 不涉及 取值范围: IAM服务查询用户Token接口为准 默认取值: 不涉及 |
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
specification | Array of EcsSpecificationBean objects | ecs规格集合 |
参数 | 参数类型 | 描述 |
|---|---|---|
azs | Array of strings | ECS规格所在的可用区集合 |
id | String | 规格ID |
level | String | 规格等级,支持的等级以局点配置为准。
|
name | String | 规格名称 |
proxy | Integer | 规格可添加的数据库数量 |
ram | Integer | 内存 |
vcpus | Integer | CPU |
az_type | String | 可用区类型
|
状态码:400
参数 | 参数类型 | 描述 |
|---|---|---|
details | Array of DbssErrorDetail objects | PDP5鉴权异常信息 |
encoded_authorization_message | String | PDP5鉴权异常信息 |
error_code | String | 错误码 |
error_msg | String | 错误信息 |
状态码:403
参数 | 参数类型 | 描述 |
|---|---|---|
details | Array of DbssErrorDetail objects | PDP5鉴权异常信息 |
encoded_authorization_message | String | PDP5鉴权异常信息 |
error_code | String | 错误码 |
error_msg | String | 错误信息 |
状态码:500
参数 | 参数类型 | 描述 |
|---|---|---|
details | Array of DbssErrorDetail objects | PDP5鉴权异常信息 |
encoded_authorization_message | String | PDP5鉴权异常信息 |
error_code | String | 错误码 |
error_msg | String | 错误信息 |
请求示例
/v1/{project_id}/dbss/audit/specification 响应示例
状态码:200
成功
{
"specification" : [ {
"level" : "low",
"id" : "s2.xlarge.4",
"name" : "s2.xlarge.4",
"vcpus" : 4,
"ram" : 16384,
"proxy" : 3,
"azs" : [ "cn-cmcc1a-01" ]
}, {
"level" : "medium",
"id" : "s2.2xlarge.4",
"name" : "s2.2xlarge.4",
"vcpus" : 8,
"ram" : 32768,
"proxy" : 6,
"azs" : [ "cn-cmcc1a-01" ]
}, {
"level" : "high",
"id" : "s3.4xlarge.4",
"name" : "s3.4xlarge.4",
"vcpus" : 16,
"ram" : 65536,
"proxy" : 30,
"azs" : [ "cn-cmcc1a-01", "cn-cmcc1b-01" ]
} ]
} 状态码
状态码 | 描述 |
|---|---|
200 | 成功 |
400 | 客户端错误 |
403 | 认证失败 |
500 | 服务端错误 |
错误码
请参见错误码。

