-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathHost.json
139 lines (139 loc) · 4.02 KB
/
Host.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#Host",
"description": "A compute instance that itself owns a whole network stack and serves as an environment for workloads. Typically it runs an operating system. The exact host type is described in the _type property of the Entity. The UUID of the host should be captured in the _id property of the Entity",
"type": "object",
"allOf": [
{ "$ref": "#Entity" },
{
"properties": {
"fqdn": {
"description": "Fully qualified domain name(s)",
"anyOf": [
{ "type": "string" },
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
]
},
"hostname": {
"description": "The primary/local hostname",
"type": ["string", "null"]
},
"ipAddress": {
"description": "A listing of all IP addresses associated with this Host",
"anyOf": [
{ "type": "string", "format": "ip" },
{ "type": "string", "format": "ipCidr" },
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"format": "ip"
}
},
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"format": "ipCidr"
}
}
]
},
"publicDnsName": {
"description": "The public DNS name",
"type": "string",
"format": "hostname"
},
"privateDnsName": {
"description": "The private DNS name",
"type": "string",
"format": "hostname"
},
"publicIpAddress": {
"description": "The public IP address or addresses",
"anyOf": [
{ "type": "string", "format": "ip" },
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"format": "ip"
}
}
]
},
"privateIpAddress": {
"description": "The private IP address or addresses",
"anyOf": [
{ "type": "string", "format": "ip" },
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"format": "ip"
}
}
]
},
"macAddress": {
"description": "A listing of all MAC addresses associated with this Host",
"anyOf": [
{ "type": "string" },
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
]
},
"platform": {
"description": "Operating System Platform",
"type": "string",
"enum": [
"darwin",
"linux",
"unix",
"windows",
"android",
"ios",
"embedded",
"other"
]
},
"osDetails": {
"description": "Operating System Full Details (e.g. macOS High Sierra version 10.13.6)",
"type": "string"
},
"osName": {
"description": "Operating System Name (e.g. macOS)",
"type": "string"
},
"osVersion": {
"description": "Operating System Version (e.g. 10.13.6)",
"type": "string"
},
"physical": {
"description": "Indicates if this is a physical host, such as a physical server.",
"type": "boolean"
},
"state": {
"description": "The current state of a host (e.g. pending, running, shutting-down, terminated, stopping, stopped)",
"type": "string"
}
},
"required": ["hostname"]
}
]
}