Jian Li | 2077f66 | 2018-02-12 14:01:35 +0900 | [diff] [blame] | 1 | |
| 2 | { |
| 3 | "type": "object", |
| 4 | "required": [ |
| 5 | "network" |
| 6 | ], |
| 7 | "properties": { |
| 8 | "network": { |
| 9 | "type": "object", |
| 10 | "description": "A network object.", |
| 11 | "required": [ |
| 12 | "id", |
| 13 | "subnets", |
| 14 | "provider:physical_network", |
| 15 | "admin_state_up", |
| 16 | "tenant_id", |
| 17 | "provider:network_type", |
| 18 | "router:external", |
| 19 | "provider:segmentation_id", |
| 20 | "availability_zone_hints", |
| 21 | "availability_zones" |
| 22 | ], |
| 23 | "properties": { |
| 24 | "id": { |
| 25 | "type": "string", |
| 26 | "example": "396f12f8-521e-4b91-8e21-2e003500433a", |
| 27 | "description": "The ID of the network." |
| 28 | }, |
| 29 | "subnets": { |
| 30 | "type": "array", |
| 31 | "items": { |
| 32 | "type": "string", |
| 33 | "example": "10.10.0.0/24", |
| 34 | "description": "The associated subnets." |
| 35 | } |
| 36 | }, |
| 37 | "provider:physical_network": { |
| 38 | "type": "string", |
| 39 | "example": "physnet1", |
| 40 | "description": "The physical network where this network is implemented." |
| 41 | }, |
| 42 | "admin_state_up": { |
| 43 | "type": "boolean", |
| 44 | "example": true, |
| 45 | "description": "The administrative state of the network, which is up (true) or down (false)." |
| 46 | }, |
| 47 | "tenant_id": { |
| 48 | "type": "string", |
| 49 | "example": "20bd52ff3e1b40039c312395b04683cf", |
| 50 | "description": "The ID of the project." |
| 51 | }, |
| 52 | "provider:network_type": { |
| 53 | "type": "string", |
| 54 | "example": "vlan", |
| 55 | "description": "The type of physical network that this network is mapped to." |
| 56 | }, |
| 57 | "router:external": { |
| 58 | "type": "boolean", |
| 59 | "example": true, |
| 60 | "description": "Indicates whether the network has an external routing facility that’s not managed by the networking service." |
| 61 | }, |
| 62 | "provider:segmentation_id": { |
| 63 | "type": "string", |
| 64 | "example": "1002", |
| 65 | "description": "The ID of the isolated segment on the physical network." |
| 66 | }, |
| 67 | "availability_zone_hints": { |
| 68 | "type": "array", |
| 69 | "items": { |
| 70 | "type": "string", |
| 71 | "example": "1", |
| 72 | "description": "The availability zone candidate for the network." |
| 73 | } |
| 74 | }, |
| 75 | "availability_zones": { |
| 76 | "type": "array", |
| 77 | "items": { |
| 78 | "type": "string", |
| 79 | "example": "nova", |
| 80 | "description": "The availability zone for the network." |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |