{"base_path":"/","components":null,"consumes":"","definitions":{"CreateLineGroupsReq":{"properties":{"description":{"description":"线路分组的描述信息。\n长度不超过255个字符。默认值为空。","maxLength":255,"type":"string"},"lines":{"description":"线路分组包含的线路列表。最少为2个线路。\n解析线路ID。","items":{"pattern":"(?!null)[0-9a-zA-Z-_]{1,64}","type":"string"},"maxItems":500,"minItems":2,"type":"array"},"name":{"description":"线路分组名称。\n不能与自定义线路名称、预制线路名称重复。\n取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。","pattern":"[\\w\\u4e00-\\u9fa5\\._-]{1,64}","type":"string"}},"required":["name","lines"]},"CreateLineGroupsResp":{"properties":{"created_at":{"description":"创建时间。\n格式:yyyy-MM-dd'T'HH:mm:ss.SSS。","type":"string"},"description":{"description":"线路分组的描述信息","type":"string"},"line_id":{"description":"线路分组的id。","type":"string"},"lines":{"description":"线路分组包含的线路列表。\n解析线路ID。","items":{"type":"string"},"type":"array"},"name":{"description":"线路分组名称。","type":"string"},"status":{"description":"资源状态。\n取值范围:PENDING_CREATE,ACTIVE,PENDING_DELETE,PENDING_UPDATE,ERROR,FREEZE,DISABLE。","type":"string"},"updated_at":{"description":"更新时间。\n格式:yyyy-MM-dd'T'HH:mm:ss.SSS。","type":"string"}}},"ErrorResponse":{"description":"失败时返回的错误对象","properties":{"code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"message":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["code","message"]}},"description":null,"group_id":"2ab479966f0f4e20b884fafa72e0161b","host":"dns.cn-north-4.myhuaweicloud.com","id":"dde8b119834047988238af6a4dffdea8","info_version":"v2","method":"post","name":"CreateLineGroup","parameters":{"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."}},"paths":{"/v2.1/linegroups":{"post":{"description":"创建一个线路分组。 该接口部分区域未上线、如需使用请提交工单申请开通。","operationId":"CreateLineGroup","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"description":"创建线路分组请求。","in":"body","name":"CreateLineGroupsReq","required":true,"schema":{"$ref":"#/definitions/CreateLineGroupsReq"}}],"produces":["application/json"],"responses":{"202":{"description":"创建线路分组响应。","examples":{"application/json":{"created_at":"2019-07-29T08:41:38.096","description":"123","line_id":"lgroup_ff8080826c33046a016c3ce46a3322cf","lines":["ST","LA"],"name":"linegroup","status":"PENDING_CREATE","updated_at":null}},"schema":{"$ref":"#/definitions/CreateLineGroupsResp"}},"400":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}},"500":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"创建线路分组","tags":["线路分组管理"],"x-is-registered":"Y","x-request-examples-description-1":"创建一个线路分组,包含线路列表为\"ST\", \"LA\"。","x-request-examples-text-1":{"description":"123","lines":["ST","LA"],"name":"linegroup"},"x-request-examples-url-1":"POST https://{endpoint}/v2.1/linegroups","x-support-sdk":"Y"}}},"product_short":"DNS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建线路分组","tags":"线路分组管理","uri":null,"version":"2.0"}