@itentialopensource/adapter-digicert_pki 0.1.1 → 1.1.0
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 +0 -1
- package/.jshintrc +3 -0
- package/CALLS.md +957 -3
- package/CHANGELOG.md +16 -1
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +31 -22
- package/adapter.js +13682 -334
- package/adapterBase.js +538 -873
- package/changelogs/changelog.md +16 -0
- package/entities/ACME/action.json +166 -0
- package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
- package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
- package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
- package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
- package/entities/ACME/schema.json +125 -0
- package/entities/AuthenticationCACertificates/action.json +107 -0
- package/entities/AuthenticationCACertificates/schema.json +155 -0
- package/entities/AuthenticationCATemplates/action.json +187 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/schema.json +137 -0
- package/entities/AuthenticationCertificates/action.json +166 -0
- package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
- package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
- package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
- package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
- package/entities/AuthenticationCertificates/schema.json +202 -0
- package/entities/BatchCertificateEnrollment/action.json +268 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
- package/entities/BatchCertificateEnrollment/schema.json +284 -0
- package/entities/CertificateProfiles/action.json +206 -0
- package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
- package/entities/CertificateProfiles/schema.json +116 -0
- package/entities/CertificateRequests/action.json +25 -0
- package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
- package/entities/CertificateRequests/schema.json +30 -0
- package/entities/CertificateTemplates/action.json +186 -0
- package/entities/CertificateTemplates/schema.json +104 -0
- package/entities/Certificates/action.json +312 -0
- package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
- package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
- package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
- package/entities/Certificates/schema.json +462 -0
- package/entities/DeviceProfiles/action.json +126 -0
- package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
- package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/schema.json +57 -0
- package/entities/Devices/action.json +166 -0
- package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
- package/entities/Devices/schema.json +103 -0
- package/entities/DevicesV2/action.json +186 -0
- package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
- package/entities/DevicesV2/schema.json +115 -0
- package/entities/Divisions/action.json +288 -0
- package/entities/Divisions/schema.json +164 -0
- package/entities/EnrollmentProfilePasscodes/action.json +186 -0
- package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
- package/entities/EnrollmentProfiles/action.json +191 -0
- package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
- package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
- package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
- package/entities/EnrollmentProfiles/schema.json +148 -0
- package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
- package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
- package/entities/Gateways/action.json +187 -0
- package/entities/Gateways/schema.json +126 -0
- package/entities/ICAs/action.json +46 -0
- package/entities/ICAs/schema.json +163 -0
- package/entities/OCSPGroups/action.json +167 -0
- package/entities/OCSPGroups/schema.json +466 -0
- package/metadata.json +49 -0
- package/package.json +22 -25
- package/pronghorn.json +23155 -266
- package/propertiesSchema.json +455 -42
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +3224 -0
- package/report/adapter-openapi.yaml +2185 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691508686598.json +120 -0
- package/report/updateReport1692203137726.json +120 -0
- package/report/updateReport1694467869659.json +120 -0
- package/report/updateReport1698422457936.json +120 -0
- package/sampleProperties.json +67 -6
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +4704 -32
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +5211 -148
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +1 -0
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +71 -23
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +3 -10
- package/utils/tbUtils.js +2 -3
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +1 -3
- package/workflows/README.md +0 -3
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"limit": 20,
|
|
3
|
+
"offset": 0,
|
|
4
|
+
"pagination": true,
|
|
5
|
+
"next": false,
|
|
6
|
+
"total": 1,
|
|
7
|
+
"records": [
|
|
8
|
+
{
|
|
9
|
+
"id": "1fb93940-7580-4f94-a8ca-57585f9ecb2e",
|
|
10
|
+
"name": "Certificate profile example",
|
|
11
|
+
"account_id": "5220789d-df09-485f-aa21-d2979188b3ca",
|
|
12
|
+
"certificate_template": {
|
|
13
|
+
"id": "c376def4-b39a-4301-8391-6ffecd071057",
|
|
14
|
+
"name": "Certificate template example"
|
|
15
|
+
},
|
|
16
|
+
"allow_bare_public_key": false,
|
|
17
|
+
"created_at": "2022-07-06T08:22:25Z",
|
|
18
|
+
"status": "ACTIVE",
|
|
19
|
+
"body": [
|
|
20
|
+
{
|
|
21
|
+
"key": "certificate_value",
|
|
22
|
+
"optional": false,
|
|
23
|
+
"sources": [
|
|
24
|
+
"fixed_value"
|
|
25
|
+
],
|
|
26
|
+
"value": "auto",
|
|
27
|
+
"enabled": true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "unique_certificate_value",
|
|
31
|
+
"optional": false,
|
|
32
|
+
"sources": [
|
|
33
|
+
"fixed_value"
|
|
34
|
+
],
|
|
35
|
+
"value": "no",
|
|
36
|
+
"enabled": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "signature_algorithm",
|
|
40
|
+
"optional": false,
|
|
41
|
+
"sources": [
|
|
42
|
+
"fixed_value"
|
|
43
|
+
],
|
|
44
|
+
"value": "match_issuer",
|
|
45
|
+
"enabled": true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "allow_any_key_type",
|
|
49
|
+
"optional": false,
|
|
50
|
+
"sources": [
|
|
51
|
+
"fixed_value"
|
|
52
|
+
],
|
|
53
|
+
"value": "yes",
|
|
54
|
+
"enabled": true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "allowed_key_types",
|
|
58
|
+
"optional": false,
|
|
59
|
+
"sources": [
|
|
60
|
+
"fixed_value"
|
|
61
|
+
],
|
|
62
|
+
"value": "[\"rsa_2048\",\"rsa_3072\",\"rsa_4096\",\"p_256\",\"p_384\",\"p_521\",\"ed_25519\"]",
|
|
63
|
+
"enabled": true
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"key": "subject.common_name",
|
|
67
|
+
"optional": false,
|
|
68
|
+
"sources": [
|
|
69
|
+
"user_supplied",
|
|
70
|
+
"csr"
|
|
71
|
+
],
|
|
72
|
+
"enabled": true
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "subject.organization_name",
|
|
76
|
+
"optional": true,
|
|
77
|
+
"sources": [
|
|
78
|
+
"user_supplied",
|
|
79
|
+
"csr"
|
|
80
|
+
],
|
|
81
|
+
"enabled": true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"key": "subject.organization_unit",
|
|
85
|
+
"optional": true,
|
|
86
|
+
"sources": [],
|
|
87
|
+
"enabled": false
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "subject.street_address",
|
|
91
|
+
"optional": true,
|
|
92
|
+
"sources": [],
|
|
93
|
+
"enabled": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"key": "subject.postal_code",
|
|
97
|
+
"optional": true,
|
|
98
|
+
"sources": [],
|
|
99
|
+
"enabled": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "subject.locality",
|
|
103
|
+
"optional": true,
|
|
104
|
+
"sources": [],
|
|
105
|
+
"enabled": false
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"key": "subject.state",
|
|
109
|
+
"optional": true,
|
|
110
|
+
"sources": [],
|
|
111
|
+
"enabled": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "subject.country",
|
|
115
|
+
"optional": true,
|
|
116
|
+
"sources": [],
|
|
117
|
+
"enabled": false
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"key": "subject.unique_identifier",
|
|
121
|
+
"optional": true,
|
|
122
|
+
"sources": [
|
|
123
|
+
"user_supplied",
|
|
124
|
+
"csr"
|
|
125
|
+
],
|
|
126
|
+
"enabled": true
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"key": "validity.duration_unit",
|
|
130
|
+
"optional": false,
|
|
131
|
+
"sources": [
|
|
132
|
+
"fixed_value"
|
|
133
|
+
],
|
|
134
|
+
"value": "months",
|
|
135
|
+
"enabled": true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "validity.duration_value",
|
|
139
|
+
"optional": false,
|
|
140
|
+
"sources": [
|
|
141
|
+
"fixed_value"
|
|
142
|
+
],
|
|
143
|
+
"value": "9",
|
|
144
|
+
"enabled": true
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"key": "key_usage.critical",
|
|
148
|
+
"optional": true,
|
|
149
|
+
"sources": [
|
|
150
|
+
"fixed_value"
|
|
151
|
+
],
|
|
152
|
+
"value": "yes",
|
|
153
|
+
"enabled": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"key": "extended_key_usage.critical",
|
|
157
|
+
"optional": true,
|
|
158
|
+
"sources": [
|
|
159
|
+
"fixed_value"
|
|
160
|
+
],
|
|
161
|
+
"value": "yes",
|
|
162
|
+
"enabled": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"key": "extended_key_usage.additional_values",
|
|
166
|
+
"optional": true,
|
|
167
|
+
"sources": [],
|
|
168
|
+
"enabled": false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"key": "renewal_settings.renew_valid_cert",
|
|
172
|
+
"optional": false,
|
|
173
|
+
"sources": [
|
|
174
|
+
"fixed_value"
|
|
175
|
+
],
|
|
176
|
+
"value": "anytime",
|
|
177
|
+
"enabled": true
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"key": "renewal_settings.renew_expired_cert",
|
|
181
|
+
"optional": false,
|
|
182
|
+
"sources": [
|
|
183
|
+
"fixed_value"
|
|
184
|
+
],
|
|
185
|
+
"value": "anytime",
|
|
186
|
+
"enabled": true
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"key": "renewal_settings.renew_revoked_cert",
|
|
190
|
+
"optional": false,
|
|
191
|
+
"sources": [
|
|
192
|
+
"fixed_value"
|
|
193
|
+
],
|
|
194
|
+
"value": "true",
|
|
195
|
+
"enabled": true
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"key": "renewal_settings.renewal_key_pair",
|
|
199
|
+
"optional": false,
|
|
200
|
+
"sources": [
|
|
201
|
+
"fixed_value"
|
|
202
|
+
],
|
|
203
|
+
"value": "optional",
|
|
204
|
+
"enabled": true
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"enrollment_methods": [],
|
|
208
|
+
"certificate_format": "x509",
|
|
209
|
+
"certificate_type": "end_entity",
|
|
210
|
+
"ca_connector_type": "digicert_one",
|
|
211
|
+
"divisions": [
|
|
212
|
+
{
|
|
213
|
+
"id": "4340c299-f39c-4fcf-8d3a-650d24e5eb99",
|
|
214
|
+
"name": "Example division"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"listCertificateProfiles",
|
|
14
|
+
"createCertificateProfile",
|
|
15
|
+
"getCertificateProfile",
|
|
16
|
+
"updateCertificateProfile",
|
|
17
|
+
"disableCertificateProfile",
|
|
18
|
+
"enableCertificateProfile",
|
|
19
|
+
"deleteCertificateProfile",
|
|
20
|
+
"restoreCertificateProfile",
|
|
21
|
+
"assignCertificateProfileDivisions",
|
|
22
|
+
"unassignCertificateProfileDivisions"
|
|
23
|
+
],
|
|
24
|
+
"external_name": "ph_request_type"
|
|
25
|
+
},
|
|
26
|
+
"accountId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Limits results to certificate profiles assigned to an account ID that is an exact match for the given ID.",
|
|
29
|
+
"parse": false,
|
|
30
|
+
"encode": false,
|
|
31
|
+
"encrypt": {
|
|
32
|
+
"type": "AES",
|
|
33
|
+
"key": ""
|
|
34
|
+
},
|
|
35
|
+
"external_name": "account_id"
|
|
36
|
+
},
|
|
37
|
+
"divisionId": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Limits results to certificate profiles assigned to a division ID that is an exact match for the given ID.",
|
|
40
|
+
"parse": false,
|
|
41
|
+
"encode": false,
|
|
42
|
+
"encrypt": {
|
|
43
|
+
"type": "AES",
|
|
44
|
+
"key": ""
|
|
45
|
+
},
|
|
46
|
+
"external_name": "division_id"
|
|
47
|
+
},
|
|
48
|
+
"templateName": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Limits results to certificate profiles that use the given certificate template.",
|
|
51
|
+
"parse": false,
|
|
52
|
+
"encode": false,
|
|
53
|
+
"encrypt": {
|
|
54
|
+
"type": "AES",
|
|
55
|
+
"key": ""
|
|
56
|
+
},
|
|
57
|
+
"external_name": "template_name"
|
|
58
|
+
},
|
|
59
|
+
"createdFrom": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Limits results to certificate profiles created after the given date. Format: `YYYY-MM-DD`",
|
|
62
|
+
"parse": false,
|
|
63
|
+
"encode": false,
|
|
64
|
+
"encrypt": {
|
|
65
|
+
"type": "AES",
|
|
66
|
+
"key": ""
|
|
67
|
+
},
|
|
68
|
+
"external_name": "created_from"
|
|
69
|
+
},
|
|
70
|
+
"createdTo": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Limits results to certificate profiles created before the given date. Format: `YYYY-MM-DD`",
|
|
73
|
+
"parse": false,
|
|
74
|
+
"encode": false,
|
|
75
|
+
"encrypt": {
|
|
76
|
+
"type": "AES",
|
|
77
|
+
"key": ""
|
|
78
|
+
},
|
|
79
|
+
"external_name": "created_to"
|
|
80
|
+
},
|
|
81
|
+
"sortBy": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "Sorts results by the given property. Case-insensitive. Default `sort_by` property is `created_at`.",
|
|
84
|
+
"parse": false,
|
|
85
|
+
"encode": false,
|
|
86
|
+
"encrypt": {
|
|
87
|
+
"type": "AES",
|
|
88
|
+
"key": ""
|
|
89
|
+
},
|
|
90
|
+
"external_name": "sort_by"
|
|
91
|
+
},
|
|
92
|
+
"sortDirection": {
|
|
93
|
+
"type": "",
|
|
94
|
+
"description": "Sorts results in ascending or descending order by the value of the `sort_by` property. Case-insensitive. Default `sort_direction` value is `DESC`.",
|
|
95
|
+
"parse": false,
|
|
96
|
+
"encode": false,
|
|
97
|
+
"encrypt": {
|
|
98
|
+
"type": "AES",
|
|
99
|
+
"key": ""
|
|
100
|
+
},
|
|
101
|
+
"external_name": "sort_direction"
|
|
102
|
+
},
|
|
103
|
+
"certificateProfileId": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "Certificate profile ID (UUID).",
|
|
106
|
+
"parse": false,
|
|
107
|
+
"encode": false,
|
|
108
|
+
"encrypt": {
|
|
109
|
+
"type": "AES",
|
|
110
|
+
"key": ""
|
|
111
|
+
},
|
|
112
|
+
"external_name": "certificate_profile_id"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"definitions": {}
|
|
116
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getRequestStatus",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-request/{pathv1}/status?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": "mockdatafiles/getRequestStatus-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getRequestStatus"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"certificateRequestId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Certificate request ID.",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "certificate_request_id"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"definitions": {}
|
|
30
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "listCertificateTemplates",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createCertificateTemplate",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "getCertificateTemplate",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "updateCertificateTemplate",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PUT",
|
|
69
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "clonecertificatetemplate",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "POST",
|
|
89
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}/clone?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"requestDatatype": "JSON",
|
|
95
|
+
"responseDatatype": "JSON",
|
|
96
|
+
"headers": {},
|
|
97
|
+
"responseObjects": [
|
|
98
|
+
{
|
|
99
|
+
"type": "default",
|
|
100
|
+
"key": "",
|
|
101
|
+
"mockFile": ""
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "disableCertificateTemplate",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}/disable?{query}",
|
|
110
|
+
"requestSchema": "schema.json",
|
|
111
|
+
"responseSchema": "schema.json",
|
|
112
|
+
"timeout": 0,
|
|
113
|
+
"sendEmpty": false,
|
|
114
|
+
"requestDatatype": "JSON",
|
|
115
|
+
"responseDatatype": "JSON",
|
|
116
|
+
"headers": {},
|
|
117
|
+
"responseObjects": [
|
|
118
|
+
{
|
|
119
|
+
"type": "default",
|
|
120
|
+
"key": "",
|
|
121
|
+
"mockFile": ""
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "enableCertificateTemplate",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "PUT",
|
|
129
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}/enable?{query}",
|
|
130
|
+
"requestSchema": "schema.json",
|
|
131
|
+
"responseSchema": "schema.json",
|
|
132
|
+
"timeout": 0,
|
|
133
|
+
"sendEmpty": false,
|
|
134
|
+
"requestDatatype": "JSON",
|
|
135
|
+
"responseDatatype": "JSON",
|
|
136
|
+
"headers": {},
|
|
137
|
+
"responseObjects": [
|
|
138
|
+
{
|
|
139
|
+
"type": "default",
|
|
140
|
+
"key": "",
|
|
141
|
+
"mockFile": ""
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "deleteCertificateTemplate",
|
|
147
|
+
"protocol": "REST",
|
|
148
|
+
"method": "PUT",
|
|
149
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}/delete?{query}",
|
|
150
|
+
"requestSchema": "schema.json",
|
|
151
|
+
"responseSchema": "schema.json",
|
|
152
|
+
"timeout": 0,
|
|
153
|
+
"sendEmpty": false,
|
|
154
|
+
"requestDatatype": "JSON",
|
|
155
|
+
"responseDatatype": "JSON",
|
|
156
|
+
"headers": {},
|
|
157
|
+
"responseObjects": [
|
|
158
|
+
{
|
|
159
|
+
"type": "default",
|
|
160
|
+
"key": "",
|
|
161
|
+
"mockFile": ""
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "restoreCertificateTemplate",
|
|
167
|
+
"protocol": "REST",
|
|
168
|
+
"method": "PUT",
|
|
169
|
+
"entitypath": "{base_path}/{version}/api/v1/certificate-template/{pathv1}/undelete?{query}",
|
|
170
|
+
"requestSchema": "schema.json",
|
|
171
|
+
"responseSchema": "schema.json",
|
|
172
|
+
"timeout": 0,
|
|
173
|
+
"sendEmpty": false,
|
|
174
|
+
"requestDatatype": "JSON",
|
|
175
|
+
"responseDatatype": "JSON",
|
|
176
|
+
"headers": {},
|
|
177
|
+
"responseObjects": [
|
|
178
|
+
{
|
|
179
|
+
"type": "default",
|
|
180
|
+
"key": "",
|
|
181
|
+
"mockFile": ""
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"listCertificateTemplates",
|
|
14
|
+
"createCertificateTemplate",
|
|
15
|
+
"getCertificateTemplate",
|
|
16
|
+
"updateCertificateTemplate",
|
|
17
|
+
"clonecertificatetemplate",
|
|
18
|
+
"disableCertificateTemplate",
|
|
19
|
+
"enableCertificateTemplate",
|
|
20
|
+
"deleteCertificateTemplate",
|
|
21
|
+
"restoreCertificateTemplate"
|
|
22
|
+
],
|
|
23
|
+
"external_name": "ph_request_type"
|
|
24
|
+
},
|
|
25
|
+
"accountId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Limits results to certificate templates assigned to an account ID that is an exact match for the given ID.",
|
|
28
|
+
"parse": false,
|
|
29
|
+
"encode": false,
|
|
30
|
+
"encrypt": {
|
|
31
|
+
"type": "AES",
|
|
32
|
+
"key": ""
|
|
33
|
+
},
|
|
34
|
+
"external_name": "account_id"
|
|
35
|
+
},
|
|
36
|
+
"createdFrom": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Limits results to certificate templates created after the given date. Format: `YYYY-MM-DD`",
|
|
39
|
+
"parse": false,
|
|
40
|
+
"encode": false,
|
|
41
|
+
"encrypt": {
|
|
42
|
+
"type": "AES",
|
|
43
|
+
"key": ""
|
|
44
|
+
},
|
|
45
|
+
"external_name": "created_from"
|
|
46
|
+
},
|
|
47
|
+
"createdTo": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Limits results to certificate templates created before the given date. Format: `YYYY-MM-DD`",
|
|
50
|
+
"parse": false,
|
|
51
|
+
"encode": false,
|
|
52
|
+
"encrypt": {
|
|
53
|
+
"type": "AES",
|
|
54
|
+
"key": ""
|
|
55
|
+
},
|
|
56
|
+
"external_name": "created_to"
|
|
57
|
+
},
|
|
58
|
+
"limitByAccount": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"description": "Limits results to certificate templates that are either limited to specific accounts (true) or not limited (false).",
|
|
61
|
+
"parse": false,
|
|
62
|
+
"encode": false,
|
|
63
|
+
"encrypt": {
|
|
64
|
+
"type": "AES",
|
|
65
|
+
"key": ""
|
|
66
|
+
},
|
|
67
|
+
"external_name": "limit_by_account"
|
|
68
|
+
},
|
|
69
|
+
"sortBy": {
|
|
70
|
+
"type": "",
|
|
71
|
+
"description": "Sorts results by the given property. Case-insensitive. Default `sort_by` property is `created_at`.",
|
|
72
|
+
"parse": false,
|
|
73
|
+
"encode": false,
|
|
74
|
+
"encrypt": {
|
|
75
|
+
"type": "AES",
|
|
76
|
+
"key": ""
|
|
77
|
+
},
|
|
78
|
+
"external_name": "sort_by"
|
|
79
|
+
},
|
|
80
|
+
"sortDirection": {
|
|
81
|
+
"type": "",
|
|
82
|
+
"description": "Sorts results in ascending or descending order by the value of the `sort_by` property. Case-insensitive.",
|
|
83
|
+
"parse": false,
|
|
84
|
+
"encode": false,
|
|
85
|
+
"encrypt": {
|
|
86
|
+
"type": "AES",
|
|
87
|
+
"key": ""
|
|
88
|
+
},
|
|
89
|
+
"external_name": "sort_direction"
|
|
90
|
+
},
|
|
91
|
+
"certificateTemplateId": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Certificate template ID.",
|
|
94
|
+
"parse": false,
|
|
95
|
+
"encode": false,
|
|
96
|
+
"encrypt": {
|
|
97
|
+
"type": "AES",
|
|
98
|
+
"key": ""
|
|
99
|
+
},
|
|
100
|
+
"external_name": "certificate_template_id"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"definitions": {}
|
|
104
|
+
}
|