{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ConfigMap":{"description":"配置项","properties":{"configs":{"additionalProperties":{"type":"string"},"description":"configs是一个字典,由多个键值对组成,json化后最大总长度为1048576,key和value均为字符串。键值对中key由大小写字母或中划线开头,由数字、大小写字母、点号(.)、中划线(-)、下划线(_)组成,最小长度为1,最大长度63个字符, 键值对中的value无其它限制。\n注:configs字典的长度即字典转为标准的字符串后的长度,例如字典{\"a\": \"b\"}转为标准字符串后为'{\"a\": \"b\"}',长度为10","type":"object"},"description":{"description":"配置项描述,最大长度255,不允许^ ~ # $ % & * < > ( ) [ ] { } ' \" \\","type":"string"},"name":{"description":"配置项名称,以小写英文字母开头,4-64位,可以使用小写英文、数字、中划线(-),不能以中划线结尾只允许中文字符、英文字母、数字、下划线、中划线,最大长度64","type":"string"}},"required":["name"]},"ConfigMapResp":{"description":"配置项","properties":{"configs":{"additionalProperties":{"type":"string"},"description":"配置项键列表","type":"object"},"created_at":{"description":"创建时间","type":"string"},"description":{"description":"配置项描述","type":"string"},"id":{"description":"配置项ID","type":"string"},"name":{"description":"配置项名称","type":"string"},"project_id":{"description":"项目ID","type":"string"},"updated_at":{"description":"更新时间","type":"string"}},"required":["id","name","description","configs","project_id","created_at","updated_at"]},"ConfigMaps":{"properties":{"configmap":{"$ref":"#/definitions/ConfigMap"}},"required":["configmap"]},"ConfigMapsResp":{"properties":{"configmap":{"$ref":"#/definitions/ConfigMapResp"}},"required":["configmap"]}},"description":null,"group_id":"cdaa2d3f4fbb4dc38b6a6c55f9222ed9","host":"ief.cn-north-4.myhuaweicloud.com","id":"99ac254b4ec5453b99c87d531ffe8700","info_version":"v1","method":"post","name":"CreateConfigMap","parameters":{"Content-Type":{"description":"消息体的类型(格式),默认取值为“application/json”","in":"header","name":"Content-Type","required":true,"type":"string"},"IEF-Instance-Id":{"description":"铂金版实例ID,专业版实例为空值","in":"header","name":"ief-instance-id","required":false,"type":"string"},"X-Auth-Token":{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."}},"paths":{"/v2/{project_id}/edgemgr/configmaps":{"post":{"consumes":["application/json"],"description":"创建配置项","operationId":"CreateConfigMap","parameters":[{"$ref":"#/parameters/Content-Type"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/IEF-Instance-Id"},{"description":"项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"请求Body参数","in":"body","name":"CreateConfigMap","required":true,"schema":{"$ref":"#/definitions/ConfigMaps"}}],"produces":["application/json"],"responses":{"201":{"description":"ok","examples":{"application/json":{"configmap":{"configs":{"key1":"val-1","key2":"val-2"},"created_at":"2018-07-16T13:41:25.347335","description":"this is a test cm","id":"12ns9eb6cc0d49a0941df2f31283mds8 ","name":"test-cm","project_id":"d16e6eb6cc0d49a0941df2f31285757a","updated_at":"2018-07-18T13:41:25.347335"}}},"schema":{"$ref":"#/definitions/ConfigMapsResp"}}},"summary":"创建配置项","tags":["配置项管理"],"x-is-registered":"Y","x-publishpath":"ief_02_0064","x-request-examples-1":{"configmap":{"configs":{"key1":"val1 ","key2":"val2 "},"description":"this is a test cm","name":"test-cm"}},"x-request-examples-description-1":"创建配置项,输入配置项键值对。","x-request-examples-text-1":{"configmap":{"configs":{"key1":"val1 ","key2":"val2 "},"description":"this is a test cm","name":"test-cm"}},"x-support-sdk":"Y"}}},"product_short":"IEF","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建配置项","tags":"配置项管理","uri":null,"version":"2.0"}