Jian Li | daa7d6a | 2021-04-13 17:22:56 +0900 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "title": "loadBalancers", |
| 4 | "required": [ |
| 5 | "loadBalancers" |
| 6 | ], |
| 7 | "properties": { |
| 8 | "loadBalancers": { |
| 9 | "type": "array", |
| 10 | "xml": { |
| 11 | "name": "loadBalancers", |
| 12 | "wrapped": true |
| 13 | }, |
| 14 | "items": { |
| 15 | "type": "object", |
| 16 | "description": "A load balancer object.", |
| 17 | "required": [ |
| 18 | "name", |
| 19 | "description", |
| 20 | "networkId", |
| 21 | "vip", |
| 22 | "members", |
| 23 | "rules" |
| 24 | ], |
| 25 | "properties": { |
| 26 | "name": { |
| 27 | "type": "string", |
| 28 | "example": "lb-1", |
| 29 | "description": "The name of load balancer." |
| 30 | }, |
| 31 | "description": { |
| 32 | "type": "string", |
| 33 | "example": "Example load balancer", |
| 34 | "description": "The description of load balancer." |
| 35 | }, |
| 36 | "networkId": { |
| 37 | "type": "string", |
| 38 | "example": "net-1", |
| 39 | "description": "The name of network where the load balancer is attached to." |
| 40 | }, |
| 41 | "vip": { |
| 42 | "type": "string", |
| 43 | "example": "10.10.10.10", |
| 44 | "description": "The virtual IP address of the load balancer." |
| 45 | }, |
| 46 | "members": { |
| 47 | "type": "array", |
| 48 | "xml": { |
| 49 | "name": "members", |
| 50 | "wrapped": true |
| 51 | }, |
| 52 | "items": { |
| 53 | "type": "string", |
| 54 | "example": "10.10.10.11", |
| 55 | "description": "IP address of member instance." |
| 56 | } |
| 57 | }, |
| 58 | "rules": { |
| 59 | "type": "array", |
| 60 | "description": "A list of load balancer rule objects.", |
| 61 | "items": { |
| 62 | "type": "object", |
| 63 | "description": "A load balancer rule object.", |
| 64 | "required": [ |
| 65 | "portRangeMax", |
| 66 | "portRangeMin", |
| 67 | "protocol" |
| 68 | ], |
| 69 | "properties": { |
| 70 | "portRangeMax": { |
| 71 | "type": "integer", |
| 72 | "format": "int32", |
| 73 | "example": 80, |
| 74 | "description": "The maximum port number in the range that is matched by the rule." |
| 75 | }, |
| 76 | "portRangeMin": { |
| 77 | "type": "integer", |
| 78 | "format": "int32", |
| 79 | "example": 80, |
| 80 | "description": "The minimum port number in the range that is matched by the rule." |
| 81 | }, |
| 82 | "protocol": { |
| 83 | "type": "string", |
| 84 | "example": "tcp", |
| 85 | "description": "The IP protocol can be represented by a string, an integer, or null." |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | } |