{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"CreateVpcRouteOption":{"description":"","properties":{"destination":{"description":"路由目的地址CIDR,如192.168.200.0/24。","example":"192.168.200.0/24","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"nexthop":{"description":"功能说明:路由下一跳\n\n取值范围:如果type为peering类型,则nexthop为peering的ID","example":"bdc3126d-d624-4752-9e5c-9d34eb7f0eb4","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"type":{"description":"功能说明:路由类型\n\n取值范围:peering","enum":["peering"],"example":"peering","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"vpc_id":{"description":"请求添加路由的VPC ID","example":"a7dea4c9-21db-4640-aaca-da0209c9ad62","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"}},"required":["destination","nexthop","type","vpc_id"]},"CreateVpcRouteRequestBody":{"description":"","properties":{"route":{"$ref":"#/definitions/CreateVpcRouteOption","description":"route对象","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["route"]},"NeutronError":{"description":"","properties":{"detail":{"description":"错误请求返回的错误详情","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"message":{"description":"错误请求返回的错误信息","example":"Resource could not be found","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"type":{"description":"错误请求返回的错误类型","example":"ResourceNotFound","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["detail","message","type"]},"NeutronErrorResp":{"description":"","properties":{"NeutronError":{"$ref":"#/definitions/NeutronError","description":"NeutronError对象"}},"required":["NeutronError"]},"VpcRoute":{"description":"","properties":{"destination":{"description":"路由目的地址CIDR,如192.168.200.0/24。","example":"192.168.200.0/24","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"id":{"description":"路由ID","example":"62818c73-543d-4e73-bf3f-771491113dbc","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"nexthop":{"description":"功能说明:路由下一跳\n取值范围:如果type为peering类型,则nexthop为peering的ID","example":"bdc3126d-d624-4752-9e5c-9d34eb7f0eb4","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"tenant_id":{"description":"项目ID","example":"b433fedb577940bfa59abff86482ed1a","pattern":"[0-9a-fA-F]{32}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"type":{"description":"功能说明:路由类型\n取值范围:peering","enum":["peering"],"example":"peering","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"vpc_id":{"description":"请求添加路由的VPC ID","example":"a7dea4c9-21db-4640-aaca-da0209c9ad62","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"}},"required":["destination","id","nexthop","tenant_id","type","vpc_id"]},"VpcRouteResponseBody":{"description":"","properties":{"route":{"$ref":"#/definitions/VpcRoute","description":"route对象","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["route"]}},"description":null,"group_id":"4784d190da9948c381c1603ddda2f4ff","host":"vpc.cn-north-4.myhuaweicloud.com","id":"4a3bad9e660a4c388eb74f7f5ae0007f","info_version":"v2","method":"post","name":"CreateVpcRoute","parameters":{},"paths":{"/v2.0/vpc/routes":{"post":{"consumes":[],"deprecated":false,"description":"创建路由","operationId":"CreateVpcRoute","parameters":[{"description":"用户Token。 \n获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc","x-order":1},{"description":"route对象,必选字段:destination、nexthop、type、vpc_id。","in":"body","name":"route","required":true,"schema":{"$ref":"#/definitions/CreateVpcRouteRequestBody"},"x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc","x-order":2}],"produces":[],"responses":{"201":{"description":"正常返回","examples":{"application/json":{"route":{"destination":"192.168.200.0/24","id":"3d42a0d4-a980-4613-ae76-a2cddecff054","nexthop":"60c809cb-6731-45d0-ace8-3bf5626421a9","tenant_id":"6fbe9263116a4b68818cf1edce16bc4f","type":"peering","vpc_id":"ab78be2d-782f-42a5-aa72-35879f6890ff"}}},"schema":{"$ref":"#/definitions/VpcRouteResponseBody"}},"400":{"description":"服务器未能处理请求。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"401":{"description":"被请求的页面需要用户名和密码。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"403":{"description":"对被请求页面的访问被禁止。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"404":{"description":"服务器无法找到被请求的页面","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"409":{"description":"由于冲突,请求无法被完成。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"500":{"description":"请求未完成。服务异常。","schema":{"$ref":"#/definitions/NeutronErrorResp"}}},"summary":"创建VPC路由","tags":["VPC路由"],"x-apiexplorer-hide":"false","x-constraint":"","x-first-open-time":"2017-9-30","x-hybridcloud":"false","x-is-registered":"Y","x-name":"创建VPC路由","x-open-region-cloud":"hc,hk,otc","x-order":31,"x-publishpath":"","x-request-examples-1":{"route":{"destination":"192.168.200.0/24","nexthop":"60c809cb-6731-45d0-ace8-3bf5626421a9","type":"peering","vpc_id":"ab78be2d-782f-42a5-aa72-35879f6890ff"}},"x-request-examples-description-1":"创建对等连接的路由","x-request-examples-text-1":"{\n \"route\": {\n \"type\": \"peering\",\n \"nexthop\": \"60c809cb-6731-45d0-ace8-3bf5626421a9\",\n \"destination\": \"192.168.200.0/24\",\n \"vpc_id\": \"ab78be2d-782f-42a5-aa72-35879f6890ff\"\n }\n}","x-request-examples-url-1":"POST https://{Endpoint}/v2.0/vpc/routes ","x-scope":"Commercial","x-source":"SelfDeveloped","x-support-sdk":"Y","x-version":"v2.0"}}},"product_short":"VPC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建VPC路由","tags":"VPC路由","uri":null,"version":"2.0"}