@itentialopensource/adapter-sendgrid 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/AUTH.md +31 -0
- package/BROKER.md +211 -0
- package/CALLS.md +2211 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +13 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +646 -0
- package/README.md +343 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +20 -0
- package/TAB1.md +11 -0
- package/TAB2.md +302 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +38033 -0
- package/adapterBase.js +1452 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/APIKeyPermissions/action.json +25 -0
- package/entities/APIKeyPermissions/schema.json +19 -0
- package/entities/APIKeys/action.json +126 -0
- package/entities/APIKeys/schema.json +35 -0
- package/entities/Alerts/action.json +106 -0
- package/entities/Alerts/schema.json +34 -0
- package/entities/BlocksAPI/action.json +86 -0
- package/entities/BlocksAPI/schema.json +44 -0
- package/entities/BouncesAPI/action.json +86 -0
- package/entities/BouncesAPI/schema.json +55 -0
- package/entities/CSVUIOnly/action.json +45 -0
- package/entities/CSVUIOnly/schema.json +31 -0
- package/entities/CampaignsAPI/action.json +227 -0
- package/entities/CampaignsAPI/schema.json +40 -0
- package/entities/CancelScheduledSends/action.json +147 -0
- package/entities/CancelScheduledSends/schema.json +36 -0
- package/entities/Categories/action.json +67 -0
- package/entities/Categories/schema.json +76 -0
- package/entities/Certificates/action.json +106 -0
- package/entities/Certificates/schema.json +45 -0
- package/entities/Contacts/action.json +270 -0
- package/entities/Contacts/schema.json +42 -0
- package/entities/ContactsAPICustomFields/action.json +107 -0
- package/entities/ContactsAPICustomFields/schema.json +34 -0
- package/entities/ContactsAPILists/action.json +207 -0
- package/entities/ContactsAPILists/schema.json +72 -0
- package/entities/ContactsAPIRecipients/action.json +251 -0
- package/entities/ContactsAPIRecipients/schema.json +63 -0
- package/entities/ContactsAPISegments/action.json +127 -0
- package/entities/ContactsAPISegments/schema.json +57 -0
- package/entities/CustomFields/action.json +85 -0
- package/entities/CustomFields/schema.json +33 -0
- package/entities/DesignsAPI/action.json +188 -0
- package/entities/DesignsAPI/schema.json +49 -0
- package/entities/DomainAuthentication/action.json +248 -0
- package/entities/DomainAuthentication/schema.json +52 -0
- package/entities/EmailAddressValidation/action.json +24 -0
- package/entities/EmailAddressValidation/schema.json +19 -0
- package/entities/EmailCNAMERecords/action.json +24 -0
- package/entities/EmailCNAMERecords/schema.json +19 -0
- package/entities/IPAccessManagement/action.json +127 -0
- package/entities/IPAccessManagement/schema.json +35 -0
- package/entities/IPAddresses/action.json +108 -0
- package/entities/IPAddresses/schema.json +56 -0
- package/entities/IPPools/action.json +146 -0
- package/entities/IPPools/schema.json +36 -0
- package/entities/IPWarmup/action.json +86 -0
- package/entities/IPWarmup/schema.json +33 -0
- package/entities/InvalidEmailsAPI/action.json +86 -0
- package/entities/InvalidEmailsAPI/schema.json +44 -0
- package/entities/LinkBranding/action.json +208 -0
- package/entities/LinkBranding/schema.json +39 -0
- package/entities/Lists/action.json +147 -0
- package/entities/Lists/schema.json +80 -0
- package/entities/MailSend/action.json +24 -0
- package/entities/MailSend/schema.json +19 -0
- package/entities/MarketingCampaignsStats/action.json +172 -0
- package/entities/MarketingCampaignsStats/schema.json +147 -0
- package/entities/Query/action.json +46 -0
- package/entities/Query/schema.json +31 -0
- package/entities/ReverseDNS/action.json +106 -0
- package/entities/ReverseDNS/schema.json +23 -0
- package/entities/SegmentingContacts/action.json +126 -0
- package/entities/SegmentingContacts/schema.json +68 -0
- package/entities/SegmentingContactsV2/action.json +86 -0
- package/entities/SegmentingContactsV2/schema.json +66 -0
- package/entities/SegmentingContactsV2Beta/action.json +24 -0
- package/entities/SegmentingContactsV2Beta/schema.json +30 -0
- package/entities/SendTestEmail/action.json +24 -0
- package/entities/SendTestEmail/schema.json +19 -0
- package/entities/SenderIdentitiesAPI/action.json +126 -0
- package/entities/SenderIdentitiesAPI/schema.json +35 -0
- package/entities/SenderVerification/action.json +168 -0
- package/entities/SenderVerification/schema.json +26 -0
- package/entities/Senders/action.json +24 -0
- package/entities/Senders/schema.json +19 -0
- package/entities/SettingsEnforcedTLS/action.json +45 -0
- package/entities/SettingsEnforcedTLS/schema.json +20 -0
- package/entities/SettingsInboundParse/action.json +85 -0
- package/entities/SettingsInboundParse/schema.json +22 -0
- package/entities/SettingsMail/action.json +271 -0
- package/entities/SettingsMail/schema.json +31 -0
- package/entities/SettingsPartner/action.json +66 -0
- package/entities/SettingsPartner/schema.json +21 -0
- package/entities/SettingsTracking/action.json +189 -0
- package/entities/SettingsTracking/schema.json +27 -0
- package/entities/SingleSends/action.json +227 -0
- package/entities/SingleSends/schema.json +51 -0
- package/entities/SingleSignOnSettings/action.json +106 -0
- package/entities/SingleSignOnSettings/schema.json +23 -0
- package/entities/SingleSignOnTeammates/action.json +44 -0
- package/entities/SingleSignOnTeammates/schema.json +20 -0
- package/entities/SpamReportsAPI/action.json +86 -0
- package/entities/SpamReportsAPI/schema.json +44 -0
- package/entities/Stats/action.json +151 -0
- package/entities/Stats/schema.json +80 -0
- package/entities/SubuserMonitorSettings/action.json +85 -0
- package/entities/SubuserMonitorSettings/schema.json +33 -0
- package/entities/SubuserStatistics/action.json +88 -0
- package/entities/SubuserStatistics/schema.json +88 -0
- package/entities/SubusersAPI/action.json +126 -0
- package/entities/SubusersAPI/schema.json +35 -0
- package/entities/SuppressionsGlobalSuppressions/action.json +86 -0
- package/entities/SuppressionsGlobalSuppressions/schema.json +44 -0
- package/entities/SuppressionsSuppressions/action.json +127 -0
- package/entities/SuppressionsSuppressions/schema.json +35 -0
- package/entities/SuppressionsUnsubscribeGroups/action.json +106 -0
- package/entities/SuppressionsUnsubscribeGroups/schema.json +34 -0
- package/entities/Teammates/action.json +228 -0
- package/entities/Teammates/schema.json +40 -0
- package/entities/TransactionalTemplates/action.json +126 -0
- package/entities/TransactionalTemplates/schema.json +57 -0
- package/entities/TransactionalTemplatesVersions/action.json +105 -0
- package/entities/TransactionalTemplatesVersions/schema.json +45 -0
- package/entities/UsersAPI/action.json +189 -0
- package/entities/UsersAPI/schema.json +27 -0
- package/entities/Webhooks/action.json +148 -0
- package/entities/Webhooks/schema.json +58 -0
- package/error.json +190 -0
- package/metadata.json +77 -0
- package/package.json +81 -0
- package/pronghorn.json +17316 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1574 -0
- package/report/adapter-openapi.json +59750 -0
- package/report/adapter-openapi.yaml +43964 -0
- package/report/adapterInfo.json +10 -0
- package/report/auto-adapter-openapi.json +14137 -0
- package/report/creationReport.json +2750 -0
- package/report/sendgrid.json +48136 -0
- package/sampleProperties.json +257 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +118 -0
- package/test/integration/adapterTestIntegration.js +9099 -0
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +8691 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +152 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +239 -0
- package/utils/tbUtils.js +489 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +193 -0
package/TAB2.md
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
# Adapter for SendGrid
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
|
|
5
|
+
- [Specific Adapter Information](#specific-adapter-information)
|
|
6
|
+
- [Authentication](#authentication)
|
|
7
|
+
- [Sample Properties](#sample-properties)
|
|
8
|
+
- [Swagger](#swagger)
|
|
9
|
+
- [Generic Adapter Information](#generic-adapter-information)
|
|
10
|
+
|
|
11
|
+
## Specific Adapter Information
|
|
12
|
+
### Authentication
|
|
13
|
+
|
|
14
|
+
This document will go through the steps for authenticating the SendGrid adapter with API Key Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
|
|
15
|
+
|
|
16
|
+
#### API Key Authentication
|
|
17
|
+
The SendGrid adapter requires API Key Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
18
|
+
|
|
19
|
+
STEPS
|
|
20
|
+
1. Ensure you have access to a SendGrid server and that it is running
|
|
21
|
+
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
22
|
+
3. Use the properties below for the ```properties.authentication``` field
|
|
23
|
+
```json
|
|
24
|
+
"authentication": {
|
|
25
|
+
"auth_method": "static_token",
|
|
26
|
+
"token": "<your_API_Secret_Key>",
|
|
27
|
+
"auth_field": "header.headers.Authorization",
|
|
28
|
+
"auth_field_format": "Bearer {token}",
|
|
29
|
+
"auth_logging": false
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
33
|
+
|
|
34
|
+
#### Troubleshooting
|
|
35
|
+
- Make sure you copied over the correct token.
|
|
36
|
+
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
|
37
|
+
- Turn on auth_logging for the adapter in IAP Admin Essentials (adapter properties).
|
|
38
|
+
- Investigate the logs - in particular:
|
|
39
|
+
- The FULL REQUEST log to make sure the proper headers are being sent with the request.
|
|
40
|
+
- The FULL BODY log to make sure the payload is accurate.
|
|
41
|
+
- The CALL RETURN log to see what the other system is telling us.
|
|
42
|
+
- Remember when you are done to turn auth_logging off as you do not want to log credentials.
|
|
43
|
+
|
|
44
|
+
### Sample Properties
|
|
45
|
+
|
|
46
|
+
Sample Properties can be used to help you configure the adapter in the Itential Automation Platform. You will need to update connectivity information such as the host, port, protocol and credentials.
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
"properties": {
|
|
50
|
+
"host": "localhost",
|
|
51
|
+
"port": 443,
|
|
52
|
+
"choosepath": "",
|
|
53
|
+
"base_path": "/v3",
|
|
54
|
+
"version": "",
|
|
55
|
+
"cache_location": "none",
|
|
56
|
+
"encode_pathvars": true,
|
|
57
|
+
"encode_queryvars": true,
|
|
58
|
+
"save_metric": false,
|
|
59
|
+
"stub": true,
|
|
60
|
+
"protocol": "https",
|
|
61
|
+
"authentication": {
|
|
62
|
+
"auth_method": "static_token",
|
|
63
|
+
"username": "username",
|
|
64
|
+
"password": "password",
|
|
65
|
+
"token": "token",
|
|
66
|
+
"token_timeout": 600000,
|
|
67
|
+
"token_cache": "local",
|
|
68
|
+
"invalid_token_error": 401,
|
|
69
|
+
"auth_field": "header.headers.Authorization",
|
|
70
|
+
"auth_field_format": "Bearer {token}",
|
|
71
|
+
"auth_logging": false,
|
|
72
|
+
"client_id": "",
|
|
73
|
+
"client_secret": "",
|
|
74
|
+
"grant_type": "",
|
|
75
|
+
"sensitive": [],
|
|
76
|
+
"multiStepAuthCalls": [
|
|
77
|
+
{
|
|
78
|
+
"name": "",
|
|
79
|
+
"requestFields": {},
|
|
80
|
+
"responseFields": {},
|
|
81
|
+
"successfullResponseCode": 200
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"sso": {
|
|
85
|
+
"protocol": "",
|
|
86
|
+
"host": "",
|
|
87
|
+
"port": 0
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"healthcheck": {
|
|
91
|
+
"type": "none",
|
|
92
|
+
"frequency": 60000,
|
|
93
|
+
"query_object": {},
|
|
94
|
+
"addlHeaders": {}
|
|
95
|
+
},
|
|
96
|
+
"throttle": {
|
|
97
|
+
"throttle_enabled": false,
|
|
98
|
+
"number_pronghorns": 1,
|
|
99
|
+
"sync_async": "sync",
|
|
100
|
+
"max_in_queue": 1000,
|
|
101
|
+
"concurrent_max": 1,
|
|
102
|
+
"expire_timeout": 0,
|
|
103
|
+
"avg_runtime": 200,
|
|
104
|
+
"priorities": [
|
|
105
|
+
{
|
|
106
|
+
"value": 0,
|
|
107
|
+
"percent": 100
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"request": {
|
|
112
|
+
"number_redirects": 0,
|
|
113
|
+
"number_retries": 3,
|
|
114
|
+
"limit_retry_error": [
|
|
115
|
+
0
|
|
116
|
+
],
|
|
117
|
+
"failover_codes": [],
|
|
118
|
+
"attempt_timeout": 5000,
|
|
119
|
+
"global_request": {
|
|
120
|
+
"payload": {},
|
|
121
|
+
"uriOptions": {},
|
|
122
|
+
"addlHeaders": {},
|
|
123
|
+
"authData": {}
|
|
124
|
+
},
|
|
125
|
+
"healthcheck_on_timeout": true,
|
|
126
|
+
"return_raw": false,
|
|
127
|
+
"archiving": false,
|
|
128
|
+
"return_request": false
|
|
129
|
+
},
|
|
130
|
+
"proxy": {
|
|
131
|
+
"enabled": false,
|
|
132
|
+
"host": "",
|
|
133
|
+
"port": 1,
|
|
134
|
+
"protocol": "http",
|
|
135
|
+
"username": "",
|
|
136
|
+
"password": ""
|
|
137
|
+
},
|
|
138
|
+
"ssl": {
|
|
139
|
+
"ecdhCurve": "",
|
|
140
|
+
"enabled": false,
|
|
141
|
+
"accept_invalid_cert": false,
|
|
142
|
+
"ca_file": "",
|
|
143
|
+
"key_file": "",
|
|
144
|
+
"cert_file": "",
|
|
145
|
+
"secure_protocol": "",
|
|
146
|
+
"ciphers": ""
|
|
147
|
+
},
|
|
148
|
+
"mongo": {
|
|
149
|
+
"host": "",
|
|
150
|
+
"port": 0,
|
|
151
|
+
"database": "",
|
|
152
|
+
"username": "",
|
|
153
|
+
"password": "",
|
|
154
|
+
"replSet": "",
|
|
155
|
+
"db_ssl": {
|
|
156
|
+
"enabled": false,
|
|
157
|
+
"accept_invalid_cert": false,
|
|
158
|
+
"ca_file": "",
|
|
159
|
+
"key_file": "",
|
|
160
|
+
"cert_file": ""
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"devicebroker": {
|
|
164
|
+
"enabled": false,
|
|
165
|
+
"getDevice": [
|
|
166
|
+
{
|
|
167
|
+
"path": "/get/devices/{id}",
|
|
168
|
+
"method": "GET",
|
|
169
|
+
"query": {},
|
|
170
|
+
"body": {},
|
|
171
|
+
"headers": {},
|
|
172
|
+
"handleFailure": "fail",
|
|
173
|
+
"requestFields": {
|
|
174
|
+
"id": "name"
|
|
175
|
+
},
|
|
176
|
+
"responseDatakey": "",
|
|
177
|
+
"responseFields": {
|
|
178
|
+
"name": "host",
|
|
179
|
+
"ostype": "os",
|
|
180
|
+
"ostypePrefix": "system-",
|
|
181
|
+
"ipaddress": "attributes.ipaddr",
|
|
182
|
+
"port": "443"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"getDevicesFiltered": [
|
|
187
|
+
{
|
|
188
|
+
"path": "/get/devices",
|
|
189
|
+
"method": "GET",
|
|
190
|
+
"pagination": {
|
|
191
|
+
"offsetVar": "",
|
|
192
|
+
"limitVar": "",
|
|
193
|
+
"incrementBy": "limit",
|
|
194
|
+
"requestLocation": "query"
|
|
195
|
+
},
|
|
196
|
+
"query": {},
|
|
197
|
+
"body": {},
|
|
198
|
+
"headers": {},
|
|
199
|
+
"handleFailure": "fail",
|
|
200
|
+
"requestFields": {},
|
|
201
|
+
"responseDatakey": "",
|
|
202
|
+
"responseFields": {
|
|
203
|
+
"name": "host",
|
|
204
|
+
"ostype": "os",
|
|
205
|
+
"ostypePrefix": "system-",
|
|
206
|
+
"ipaddress": "attributes.ipaddr",
|
|
207
|
+
"port": "443"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"isAlive": [
|
|
212
|
+
{
|
|
213
|
+
"path": "/get/devices/{id}/status",
|
|
214
|
+
"method": "GET",
|
|
215
|
+
"query": {},
|
|
216
|
+
"body": {},
|
|
217
|
+
"headers": {},
|
|
218
|
+
"handleFailure": "fail",
|
|
219
|
+
"requestFields": {
|
|
220
|
+
"id": "name"
|
|
221
|
+
},
|
|
222
|
+
"responseDatakey": "",
|
|
223
|
+
"responseFields": {
|
|
224
|
+
"status": "status",
|
|
225
|
+
"statusValue": "online"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"getConfig": [
|
|
230
|
+
{
|
|
231
|
+
"path": "/get/devices/{id}/configPart1",
|
|
232
|
+
"method": "GET",
|
|
233
|
+
"query": {},
|
|
234
|
+
"body": {},
|
|
235
|
+
"headers": {},
|
|
236
|
+
"handleFailure": "fail",
|
|
237
|
+
"requestFields": {
|
|
238
|
+
"id": "name"
|
|
239
|
+
},
|
|
240
|
+
"responseDatakey": "",
|
|
241
|
+
"responseFields": {}
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"getCount": [
|
|
245
|
+
{
|
|
246
|
+
"path": "/get/devices",
|
|
247
|
+
"method": "GET",
|
|
248
|
+
"query": {},
|
|
249
|
+
"body": {},
|
|
250
|
+
"headers": {},
|
|
251
|
+
"handleFailure": "fail",
|
|
252
|
+
"requestFields": {},
|
|
253
|
+
"responseDatakey": "",
|
|
254
|
+
"responseFields": {}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"cache": {
|
|
259
|
+
"enabled": false,
|
|
260
|
+
"entities": [
|
|
261
|
+
{
|
|
262
|
+
"entityType": "",
|
|
263
|
+
"frequency": 1440,
|
|
264
|
+
"flushOnFail": false,
|
|
265
|
+
"limit": 1000,
|
|
266
|
+
"retryAttempts": 5,
|
|
267
|
+
"sort": true,
|
|
268
|
+
"populate": [
|
|
269
|
+
{
|
|
270
|
+
"path": "",
|
|
271
|
+
"method": "GET",
|
|
272
|
+
"pagination": {
|
|
273
|
+
"offsetVar": "",
|
|
274
|
+
"limitVar": "",
|
|
275
|
+
"incrementBy": "limit",
|
|
276
|
+
"requestLocation": "query"
|
|
277
|
+
},
|
|
278
|
+
"query": {},
|
|
279
|
+
"body": {},
|
|
280
|
+
"headers": {},
|
|
281
|
+
"handleFailure": "ignore",
|
|
282
|
+
"requestFields": {},
|
|
283
|
+
"responseDatakey": "",
|
|
284
|
+
"responseFields": {}
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"cachedTasks": [
|
|
288
|
+
{
|
|
289
|
+
"name": "",
|
|
290
|
+
"filterField": "",
|
|
291
|
+
"filterLoc": ""
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
### [Swagger](https://gitlab.com/itentialopensource/adapters/adapter-sendgrid/-/blob/master/report/adapter-openapi.json)
|
|
300
|
+
|
|
301
|
+
## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/adapter-sendgrid/-/blob/master/README.md)
|
|
302
|
+
|
package/TROUBLESHOOT.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
## Troubleshoot
|
|
2
|
+
|
|
3
|
+
Run `npm run troubleshoot` to start the interactive troubleshooting process. The command allows you to verify and update connection, authentication as well as healthcheck configuration. After that it will test these properties by sending HTTP request to the endpoint. If the tests pass, it will persist these changes into IAP.
|
|
4
|
+
|
|
5
|
+
You also have the option to run individual commands to perform specific test:
|
|
6
|
+
|
|
7
|
+
- `npm run healthcheck` will perform a healthcheck request of with current setting.
|
|
8
|
+
- `npm run basicget` will perform some non-parameter GET request with current setting.
|
|
9
|
+
- `npm run connectivity` will perform networking diagnostics of the adatper endpoint.
|
|
10
|
+
|
|
11
|
+
### Connectivity Issues
|
|
12
|
+
|
|
13
|
+
1. You can run the adapter troubleshooting script which will check connectivity, run the healthcheck and run basic get calls.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm run troubleshoot
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Verify the adapter properties are set up correctly.
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
Go into the Itential Platform GUI and verify/update the properties
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
3. Verify there is connectivity between the Itential Platform Server and Sendgrid Server.
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
ping the ip address of Sendgrid server
|
|
29
|
+
try telnet to the ip address port of Sendgrid
|
|
30
|
+
execute a curl command to the other system
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
4. Verify the credentials provided for Sendgrid.
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
login to Sendgrid using the provided credentials
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
5. Verify the API of the call utilized for Sendgrid Healthcheck.
|
|
40
|
+
|
|
41
|
+
```text
|
|
42
|
+
Go into the Itential Platform GUI and verify/update the properties
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Functional Issues
|
|
46
|
+
|
|
47
|
+
Adapter logs are located in `/var/log/pronghorn`. In older releases of the Itential Platform, there is a `pronghorn.log` file which contains logs for all of the Itential Platform. In newer versions, adapters can be configured to log into their own files.
|