huawei-cloud-api-definitions-IEC 0.1.20240521

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"CreateRoutesRequestBody":{"description":"创建路由请求体","properties":{"routes":{"description":"待创建的路由列表","items":{"$ref":"#/definitions/RouteOption","description":""},"type":"array"}},"required":["routes"]},"Route":{"description":"路由对象","properties":{"description":{"description":"路由的描述信息\n\n取值范围:0-255个字符,不能包含“<”和“>”","type":"string"},"destination":{"description":"路由的目的网段\n\n约束:合法的CIDR格式","example":" 0.0.0.0/0","type":"string"},"nexthop":{"description":"路由下一跳对象的ID\n\n取值范围:\n    1)当type为ecs时,传入ecs实例ID;\n    2)当type为vip时,取值为vip对应的IP地址;","type":"string"},"type":{"description":"路由的类型\n\n取值范围:\n    1)ecs:弹性云服务器\n    2)vip:虚拟IP\n    3)local:系统路由,不可修改和删除","enum":["ecs","vip","local"],"type":"string"}}},"RouteOption":{"description":"路由对象","properties":{"description":{"description":"路由的描述信息\n\n取值范围:0-255个字符,不能包含“<”和“>”","maxLength":255,"minLength":0,"type":"string"},"destination":{"description":"路由的目的网段\n\n约束:合法的CIDR格式, 目的地址不可更新","example":" 0.0.0.0/0","type":"string"},"nexthop":{"description":"路由下一跳对象的ID\n\n取值范围:\n    1)当type为ecs时,传入ecs实例ID;\n    2)当type为vip时,取值为vip的ip地址;","type":"string"},"type":{"description":"路由的类型\n\n取值范围:\n    1)ecs:弹性云服务器\n    2)vip:虚拟IP","enum":["ecs","vip","cc","igw"],"type":"string"}},"required":["destination","nexthop","type"]},"RoutesResponseBody":{"description":"路由响应体","properties":{"routes":{"description":"路由列表","items":{"$ref":"#/definitions/Route","description":""},"type":"array"}}}},"description":null,"group_id":"2e1a5bff2db646fdb41a09591e08a02f","host":"iecs.myhuaweicloud.com","id":"391ae52d5d7b4cdc88db600007c69cba","info_version":"v1","method":"post","name":"CreateRoutes","parameters":{},"paths":{"/v1/routetables/{routetable_id}/add-routes":{"post":{"consumes":[],"deprecated":false,"description":"创建路由","operationId":"CreateRoutes","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-order":1},{"description":"路由表ID","in":"path","name":"routetable_id","pattern":"^[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}$","required":true,"type":"string","x-order":2},{"description":"创建路由请求体","in":"body","name":"CreateRoutesRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateRoutesRequestBody"},"x-admin":"","x-internal":"","x-open-region-cloud":"","x-order":3}],"produces":[],"responses":{"200":{"description":"OK","examples":{"application/json":{"routes":[{"description":"abc","destination":"10.10.10.0/24","nexthop":"562203c6-e475-46de-81cb-ce8579459b18","type":"ecs"}]}},"schema":{"$ref":"#/definitions/RoutesResponseBody"}}},"summary":"创建路由","tags":["路由表"],"x-apiexplorer-hide":"","x-constraint":"1、自定义路由表的目的网段,不能被包含在系统路由的网段内\n2、同一个路由表,路由的目的网段不能相同","x-first-open-time":"","x-hybridcloud":"","x-is-registered":"Y","x-name":"创建路由","x-open-region-cloud":"hc","x-order":81,"x-publishpath":"","x-request-examples-1":{"routes":[{"description":"abc","destination":"10.10.10.0/24","nexthop":"562203c6-e475-46de-81cb-ce8579459b18","type":"ecs"}]},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n        \"routes\": [\n                {\n                    \"type\": \"ecs\",\n                    \"destination\": \"10.10.10.0/24\",\n                    \"nexthop\": \"562203c6-e475-46de-81cb-ce8579459b18\",\n                    \"description\": \"abc\"\n                }\n            ]\n}","x-request-examples-url-1":"POST https://{{endpoint}}/v1/routetables/97d08984-d346-410e-bc0e-f466dfbd1f24/add-routes","x-scope":"Commercial","x-source":"","x-support-sdk":"Y"}}},"product_short":"IEC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建路由","tags":"路由表","uri":null,"version":"2.0"}