更新时间:2025-11-18 GMT+08:00
查询配置项详情 - ShowConfigMap
功能介绍
该API用于查询一个配置项详情。
URI
GET /v2/{project_id}/edgemgr/configmaps/{configmap_id}
| 名称 | 是否必选 | 说明 |
|---|---|---|
| project_id | 是 | 项目ID,获取方法请参见获取项目ID。 |
| configmap_id | 是 | 配置项ID |
请求消息
| 参数 | 是否必选 | 类型 | 描述 |
|---|---|---|---|
| Content-Type | 是 | String | 消息体的类型(格式) 推荐您使用默认值application/json。 |
| X-Auth-Token | 是 | String | 用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
| ief-instance-id | 否 | String | 企业版实例ID,专业版实例为空值 |
响应消息
响应参数
| 名称 | 参数类型 | 说明 |
|---|---|---|
| configmap | 表4 object | 配置项 |
| 名称 | 参数类型 | 说明 |
|---|---|---|
| id | String | 配置项ID |
| name | String | 配置项名称 |
| description | String | 配置项描述 |
| configs | Map<String, String> | 属性键列表 |
| project_id | String | 项目ID |
| created_at | String | 创建时间 |
| updated_at | String | 更新时间 |
响应示例
{
"configmap": {
"id": "12ns9eb6cc0d49a0941df2f31283mds8 ",
"name": "test-cm",
"description": "this is a test cm2",
"configs": {
"key1": "val1",
"key3": "val3"
},
"project_id": "d16e6eb6cc0d49a0941df2f31285757a",
"created_at": "2018-07-16T13:41:25.347335",
"updated_at": "2018-07-19T13:41:25.347335"
}
} 错误码
请参见错误码。
父主题: 配置项管理