Implement Kubeconfig endpoint in DCM
[multicloud/k8s.git] / src / ncm / json-schemas / virtual-network.json
1 {
2     "$schema": "http://json-schema.org/schema#",
3     "type": "object",
4     "properties": {
5         "spec": {
6             "properties": {
7                 "ipv4Subnets": {
8                     "items": {
9                         "required": [
10                             "name",
11                             "subnet"
12                         ],
13                         "type": "object",
14                         "properties": {
15                             "subnet": {
16                                 "type": "string",
17                                 "maxLength": 128,
18                                 "pattern": "[-_0-9a-zA-Z]+$"
19                             },
20                             "excludeIps": {
21                                 "type": "string",
22                                 "maxLength": 1024
23                             },
24                             "gateway": {
25                                 "type": "string",
26                                 "maxLength": 128
27                             },
28                             "name": {
29                                 "type": "string",
30                                 "maxLength": 128,
31                                 "pattern": "[-_0-9a-zA-Z]+$"
32                             }
33                         }
34                     },
35                     "type": "array"
36                 },
37                 "cniType": {
38                     "type": "string",
39                     "maxLength": 128,
40                     "pattern": "[-_0-9a-zA-Z]+$"
41                 }
42             }
43         },
44         "metadata": {
45             "required": ["name"],
46             "properties": {
47                 "userData2": {
48                     "description": "User relevant data for the resource",
49                     "type": "string",
50                     "example": "Some more data",
51                     "maxLength": 512
52                 },
53                 "userData1": {
54                     "description": "User relevant data for the resource",
55                     "type": "string",
56                     "example": "Some data",
57                     "maxLength": 512
58                 },
59                 "name": {
60                     "description": "Name of the resource",
61                     "type": "string",
62                     "example": "ResName",
63                     "maxLength": 128,
64                     "pattern": "[-_0-9a-zA-Z]+$"
65                 },
66                 "description": {
67                     "description": "Description for the resource",
68                     "type": "string",
69                     "example": "Resource description",
70                     "maxLength": 1024
71                 }
72             }
73         }
74     }
75 }