@@ -24,7 +24,7 @@ endpoints:
24
24
name :
25
25
description : The contact's full name.
26
26
type : String
27
- limit : " 1-64 characters"
27
+ limit : 1-64 characters
28
28
email :
29
29
description : The email address for the contact.
30
30
type : String
@@ -49,7 +49,6 @@ endpoints:
49
49
"group": "Support",
50
50
}' \
51
51
https://$api_root/$version/managed/contacts
52
-
53
52
/managed/contacts/$id :
54
53
group : Contacts
55
54
type : resource
@@ -81,3 +80,204 @@ endpoints:
81
80
"group": "Developers"
82
81
}' \
83
82
https://$api_root/$version/account/oauth-clients/$client_id
83
+ # /managed/history:
84
+ # group: History
85
+ # type: resource
86
+ # description: >
87
+ # A list of the issues created from monitoring your Services.
88
+ # methods:
89
+ # GET:
90
+ # response: ManagedHistory
91
+ # description: >
92
+ # Returns your managed service issue history list.
93
+ # examples:
94
+ # curl: |
95
+ # curl -H "Authorization: Bearer $TOKEN" \
96
+ # https://$api_root/$version/managed/history
97
+ /managed/services :
98
+ group : Services
99
+ type : resource
100
+ description : >
101
+ A list of the service monitors your account may access.
102
+ methods :
103
+ GET :
104
+ response : ManagedService
105
+ description : >
106
+ Returns your managed services list.
107
+ examples :
108
+ curl : |
109
+ curl https://$api_root/$version/managed/services
110
+ POST :
111
+ description : >
112
+ Registers a new service to monitor.
113
+ params :
114
+ label :
115
+ description : A unique label for the service.
116
+ type : String
117
+ limit : 3-64 characters
118
+ service_type :
119
+ description : Which service type being used.
120
+ type : String
121
+ value : url
122
+ address :
123
+ description : The URL to request. If service_type is TCP, must include port number. For example, tcp://monitor.example.org:23
124
+ type : String
125
+ value : https://monitor.example.org
126
+ timeout :
127
+ description : Response must be received before this timeout or an alert will be triggered.
128
+ value : 30
129
+ limit : 1-255
130
+ body :
131
+ description : Response must contain this string or an alert will be triggered.
132
+ type : String
133
+ value : Success!
134
+ limit : 0-100 chracters
135
+ optional : true
136
+ consultation_group :
137
+ description : If we need help along the way, we'll contact someone from this group.
138
+ value : Support
139
+ limit : 0-50 characters
140
+ optional : true
141
+ region :
142
+ description : Required if address is a private IP, otherwise not used.
143
+ type : String
144
+ value : us-east-1a
145
+ notes :
146
+ description : We'll refer to these instructions when responding to a service-related issue.
147
+ type : String
148
+ value : If the Linode needs to be rebooted, please contact us first.
149
+ limit : 0-1000 characters
150
+ optional : true
151
+ examples :
152
+ curl : |
153
+ curl -H "Content-Type: application/json" \
154
+ -H "Authorization: Bearer $TOKEN" \
155
+ -X POST -d '{
156
+ "label": "NewMonitor",
157
+ "service_type": "url",
158
+ "address": "https://monitor.example.org",
159
+ "timeout": 30,
160
+ "consultation_group": "Support",
161
+ "region": "us-east-1a",
162
+ "body": "Success!",
163
+ "notes": "Please contact us if the Linode must be rebooted",
164
+ "credentials": 12345,23456,34567
165
+ }' \
166
+ https://$api_root/$version/managed/contacts
167
+ /managed/services/$id :
168
+ group : Services
169
+ type : resource
170
+ authenticated : true
171
+ description : >
172
+ Manage a particular Managed service your account may access.
173
+ methods :
174
+ GET :
175
+ response : ManagedService
176
+ description : >
177
+ Returns information about this service.
178
+ examples :
179
+ curl : |
180
+ curl -H "Authorization: Bearer $TOKEN" \
181
+ https://$api_root/$version/managed/services/$service_id
182
+ /managed/credentials :
183
+ group : Credentials
184
+ type : resource
185
+ description : >
186
+ Manage your managed service credentials list.
187
+ methods :
188
+ GET :
189
+ response : ManagedCredential
190
+ description : >
191
+ Returns your credentials list.
192
+ examples :
193
+ curl : |
194
+ curl https://$api_root/$version/managed/credentials
195
+ POST :
196
+ description : >
197
+ Registers a new credential.
198
+ params :
199
+ label :
200
+ type : String
201
+ limit : 2-75 characters
202
+ description : >
203
+ A unique label describing the credential being added.
204
+ username :
205
+ type : String
206
+ optional : true
207
+ description : >
208
+ An optional login username.
209
+ password :
210
+ type : String
211
+ description : >
212
+ A password or passphrase that provides access.
213
+ examples :
214
+ curl : |
215
+ curl -H "Content-Type: application/json" \
216
+ -H "Authorization: Bearer $TOKEN" \
217
+ -X POST -d '{
218
+ "label": "MyCredential",
219
+ "username": "myusername",
220
+ "pasword": "mypassword",
221
+ }' \
222
+ https://$api_root/$version/managed/credentials
223
+ /managed/credentials/$id :
224
+ group : Credentials
225
+ type : resource
226
+ authenticated : true
227
+ description : >
228
+ Manage a particular Managed service credential your account may access.
229
+ methods :
230
+ GET :
231
+ response : ManagedCredential
232
+ description : >
233
+ Returns information about this credential.
234
+ examples :
235
+ curl : |
236
+ curl -H "Authorization: Bearer $TOKEN" \
237
+ https://$api_root/$version/managed/credential/$credential_id
238
+ PUT :
239
+ description : >
240
+ Edits this credential.
241
+ examples :
242
+ curl : |
243
+ curl -H "Content-Type: application/json" \
244
+ -H "Authorization: Bearer $TOKEN" \
245
+ -X PUT -d '{
246
+ "label": "MyNewCredential",
247
+ "username": "myusername2",
248
+ }' \
249
+ https://$api_root/$version/managed/credentials/$credential_id
250
+ /managed/credentials/$id/password :
251
+ group : Credentials
252
+ type : resource
253
+ authenticated : true
254
+ description : >
255
+ Change the password for a credential.
256
+ methods :
257
+ POST :
258
+ response : ManagedCredential
259
+ description : >
260
+ Changes the password for a credential.
261
+ examples :
262
+ curl : |
263
+ curl -H "Content-Type: application/json" \
264
+ -H "Authorization: Bearer $TOKEN" \
265
+ -X POST -d '{
266
+ "pasword": "mypassword",
267
+ }' \
268
+ https://$api_root/$version/managed/credentials/$credential_id/password
269
+ /managed/credentials/$id/revoke :
270
+ group : Credentials
271
+ type : resource
272
+ authenticated : true
273
+ description : >
274
+ Revokes a credential.
275
+ methods :
276
+ POST :
277
+ description : >
278
+ Revokes a credential.
279
+ examples :
280
+ curl : |
281
+ curl -H "Content-Type: application/json" \
282
+ -H "Authorization: Bearer $TOKEN" \
283
+ https://$api_root/$version/managed/credentials/$credential_id/revoke
0 commit comments