-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
141 lines (141 loc) · 6.01 KB
/
config.schema.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
140
141
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/Sherex/ddns-client/master/config.schema.json",
"title": "ConfigJson",
"type": "object",
"description": "Configuration of the ddns-client.",
"required": ["providers"],
"additionalProperties": false,
"properties": {
"$schema": {
"$id": "#/properties/$schema",
"type": "string",
"description": "The schema to verify this document against.",
"examples": [
"./config.schema.json"
]
},
"providers": {
"$id": "#/properties/providers",
"type": "object",
"description": "Defines one or more providers to add or update records at.",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"godaddy": {
"$id": "#/properties/providers/properties/godaddy",
"type": "object",
"description": "Provider GoDaddy.",
"required": ["apiUrl", "key", "secret", "records"],
"additionalProperties": false,
"properties": {
"apiUrl": {
"$id": "#/properties/providers/properties/godaddy/properties/apiUrl",
"type": "string",
"description": "The url to the providers API.",
"examples": [
"https://api.godaddy.com/",
"https://api.ote-godaddy.com/"
]
},
"key": {
"$id": "#/properties/providers/properties/godaddy/properties/key",
"type": "string",
"description": "The API key you get from https://developer.godaddy.com/keys. Or add '_ENV' at the end of the string to use the string as a name for an env variable containing the key.",
"examples": ["r4nDoM5Tr1nG", "GD_KEY_ENV"]
},
"secret": {
"$id": "#/properties/providers/properties/godaddy/properties/secret",
"type": "string",
"description": "The API secret you get from https://developer.godaddy.com/keys. Or add '_ENV' at the end of the string to use the string as a name for an env variable containing the secret.",
"examples": ["r4nDoM5Tr1nG", "GD_SECRET_ENV"]
},
"records": {
"$id": "#/properties/providers/properties/godaddy/properties/records",
"type": "array",
"description": "All records to add or update at this provider",
"items": {
"$id": "#/properties/providers/properties/godaddy/properties/records/items",
"anyOf": [
{
"$id": "#/properties/providers/properties/godaddy/properties/records/items/anyOf/0",
"type": "object",
"description": "Contains information about the domain and record to add or update.",
"required": [
"domainName",
"recordName",
"recordType",
"recordData",
"recordTTL"
],
"additionalProperties": false,
"properties": {
"domainName": {
"$id": "#/properties/providers/properties/godaddy/properties/records/items/anyOf/0/properties/domainName",
"type": "string",
"description": "The domain to add or update this record to.",
"examples": ["example.com"]
},
"recordName": {
"$id": "#/properties/providers/properties/godaddy/properties/records/items/anyOf/0/properties/recordName",
"type": "string",
"description": "The name of the record. '@' is replaced with the 'domainName'",
"examples": [
"@",
"subdomain.@",
"example.com",
"subdomain.example.com"
]
},
"recordType": {
"$id": "#/properties/providers/properties/godaddy/properties/records/items/anyOf/0/properties/recordType",
"type": "string",
"description": "The type of record to add or update.",
"enum": ["A", "AAAA", "CNAME", "MX", "NS", "SOA", "TXT"]
},
"recordData": {
"$id": "#/properties/providers/properties/godaddy/properties/records/items/anyOf/0/properties/recordData",
"type": "string",
"description": "The data to put in the record. Use '!ip' to automatically get your external IP.",
"examples": [
"!ip",
"10.20.30.40",
"example2.com",
"subdomain.example2.com"
]
},
"recordTTL": {
"$id": "#/properties/providers/properties/godaddy/properties/records/items/anyOf/0/properties/recordTTL",
"type": "integer",
"description": "The TTL (time to live) in seconds for the record.",
"examples": [
3600,
1800
]
}
}
}
]
}
}
}
}
}
},
"storage": {
"$id": "#/properties/storage",
"type": "object",
"description": "Object for storing properties.",
"additionalProperties": true,
"readOnly": true,
"properties": {
"lastIp": {
"$id": "#/properties/storage/properties/lastIp",
"type": "string",
"description": "The last external IP for this client.",
"readOnly": true
}
}
}
}
}