@itentialopensource/adapter-alkira 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 +6 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +2818 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +39117 -0
- package/adapterBase.js +1787 -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/ASPathLists/action.json +126 -0
- package/entities/ASPathLists/mockdatafiles/getAllAsPathLists-default.json +13 -0
- package/entities/ASPathLists/schema.json +24 -0
- package/entities/AWSVPCConnectors/action.json +106 -0
- package/entities/AWSVPCConnectors/mockdatafiles/getAWSVPCConnector-default.json +91 -0
- package/entities/AWSVPCConnectors/mockdatafiles/getawsvpcconnectors-default.json +312 -0
- package/entities/AWSVPCConnectors/schema.json +23 -0
- package/entities/AWSVPCCredentials/action.json +64 -0
- package/entities/AWSVPCCredentials/schema.json +21 -0
- package/entities/ActiveNATTranslation/action.json +44 -0
- package/entities/ActiveNATTranslation/schema.json +20 -0
- package/entities/AkamaiProlexicConnectors/action.json +106 -0
- package/entities/AkamaiProlexicConnectors/mockdatafiles/getAkamaiProlexicConnector-default.json +167 -0
- package/entities/AkamaiProlexicConnectors/mockdatafiles/getAkamaiProlexicconnectors-default.json +863 -0
- package/entities/AkamaiProlexicConnectors/schema.json +23 -0
- package/entities/AkamaiProlexicCredentials/action.json +44 -0
- package/entities/AkamaiProlexicCredentials/schema.json +20 -0
- package/entities/Alerts/action.json +67 -0
- package/entities/Alerts/schema.json +21 -0
- package/entities/ArubaEdgeConnectConnectors/action.json +127 -0
- package/entities/ArubaEdgeConnectConnectors/mockdatafiles/getArubaEdgeConnectConnector-default.json +98 -0
- package/entities/ArubaEdgeConnectConnectors/mockdatafiles/getArubaEdgeconnectconnectors-default.json +89 -0
- package/entities/ArubaEdgeConnectConnectors/schema.json +24 -0
- package/entities/ArubaEdgeConnectCredentials/action.json +44 -0
- package/entities/ArubaEdgeConnectCredentials/schema.json +20 -0
- package/entities/AuditLogs/action.json +46 -0
- package/entities/AuditLogs/schema.json +20 -0
- package/entities/Authentication/action.json +165 -0
- package/entities/Authentication/schema.json +26 -0
- package/entities/AzureCredentials/action.json +64 -0
- package/entities/AzureCredentials/schema.json +21 -0
- package/entities/AzureErConnectors/action.json +127 -0
- package/entities/AzureErConnectors/mockdatafiles/getAzureErConnector-default.json +154 -0
- package/entities/AzureErConnectors/mockdatafiles/getAzureErConnectors-default.json +88 -0
- package/entities/AzureErConnectors/schema.json +24 -0
- package/entities/AzureVNETConnectors/action.json +106 -0
- package/entities/AzureVNETConnectors/mockdatafiles/getazurevnetconnectors-default.json +308 -0
- package/entities/AzureVNETConnectors/schema.json +23 -0
- package/entities/BYOIP/action.json +147 -0
- package/entities/BYOIP/mockdatafiles/createBYOIP-default.json +14 -0
- package/entities/BYOIP/mockdatafiles/getAllBYOIP-default.json +16 -0
- package/entities/BYOIP/mockdatafiles/getBYOIP-default.json +58 -0
- package/entities/BYOIP/mockdatafiles/getBYOIPReferences-default.json +110 -0
- package/entities/BYOIP/schema.json +25 -0
- package/entities/BaseConnectors/action.json +46 -0
- package/entities/BaseConnectors/mockdatafiles/getConnector-default.json +78 -0
- package/entities/BaseConnectors/mockdatafiles/getconnectors-default.json +350 -0
- package/entities/BaseConnectors/schema.json +20 -0
- package/entities/BaseServices/action.json +46 -0
- package/entities/BaseServices/mockdatafiles/getservices-default.json +296 -0
- package/entities/BaseServices/schema.json +20 -0
- package/entities/BillingInfo/action.json +25 -0
- package/entities/BillingInfo/schema.json +19 -0
- package/entities/BillingTags/action.json +106 -0
- package/entities/BillingTags/mockdatafiles/getbillingtags-default.json +46 -0
- package/entities/BillingTags/schema.json +23 -0
- package/entities/CXPs/action.json +25 -0
- package/entities/CXPs/mockdatafiles/getCXPs-default.json +44 -0
- package/entities/CXPs/schema.json +19 -0
- package/entities/CheckPointFWManagementServerCredentials/action.json +64 -0
- package/entities/CheckPointFWManagementServerCredentials/schema.json +21 -0
- package/entities/CheckPointFWServiceCredentials/action.json +64 -0
- package/entities/CheckPointFWServiceCredentials/schema.json +21 -0
- package/entities/CheckPointFWServiceInstanceCredentials/action.json +64 -0
- package/entities/CheckPointFWServiceInstanceCredentials/schema.json +21 -0
- package/entities/CheckPointFWServices/action.json +127 -0
- package/entities/CheckPointFWServices/mockdatafiles/getCheckPointFWServices-default.json +94 -0
- package/entities/CheckPointFWServices/schema.json +24 -0
- package/entities/CiscoFTDvFWCredentials/action.json +64 -0
- package/entities/CiscoFTDvFWCredentials/schema.json +21 -0
- package/entities/CiscoFTDvFWInstanceCredentials/action.json +64 -0
- package/entities/CiscoFTDvFWInstanceCredentials/schema.json +21 -0
- package/entities/CiscoFTDvFWServices/action.json +127 -0
- package/entities/CiscoFTDvFWServices/mockdatafiles/createCiscoFTDvFWService-default.json +78 -0
- package/entities/CiscoFTDvFWServices/mockdatafiles/deleteCiscoFTDvFWService-default.json +87 -0
- package/entities/CiscoFTDvFWServices/mockdatafiles/getCiscoFTDvFWService-default.json +51 -0
- package/entities/CiscoFTDvFWServices/mockdatafiles/getCiscoFTDvFWServices-default.json +245 -0
- package/entities/CiscoFTDvFWServices/mockdatafiles/updateCiscoFTDvFWService-default.json +114 -0
- package/entities/CiscoFTDvFWServices/schema.json +24 -0
- package/entities/CiscoSDWANConnectors/action.json +127 -0
- package/entities/CiscoSDWANConnectors/mockdatafiles/getciscosdwaningresses-default.json +559 -0
- package/entities/CiscoSDWANConnectors/schema.json +24 -0
- package/entities/CiscoSDWANInstanceCredentials/action.json +64 -0
- package/entities/CiscoSDWANInstanceCredentials/schema.json +21 -0
- package/entities/CloudInsight/action.json +107 -0
- package/entities/CloudInsight/mockdatafiles/getCloudInsight-default.json +93 -0
- package/entities/CloudInsight/mockdatafiles/getCloudInsightCategorySummaries-default.json +348 -0
- package/entities/CloudInsight/schema.json +23 -0
- package/entities/CloudInsightDefinition/action.json +87 -0
- package/entities/CloudInsightDefinition/schema.json +22 -0
- package/entities/CloudInsightRefreshRequest/action.json +86 -0
- package/entities/CloudInsightRefreshRequest/mockdatafiles/getCloudInsightRefreshRequest-default.json +6 -0
- package/entities/CloudInsightRefreshRequest/schema.json +22 -0
- package/entities/CloudInsightReport/action.json +86 -0
- package/entities/CloudInsightReport/mockdatafiles/getCloudInsightReport-default.json +617 -0
- package/entities/CloudInsightReport/schema.json +22 -0
- package/entities/CloudInsightReportConfiguration/action.json +86 -0
- package/entities/CloudInsightReportConfiguration/mockdatafiles/getCloudInsightReportConfiguration-default.json +34 -0
- package/entities/CloudInsightReportConfiguration/schema.json +22 -0
- package/entities/CloudNativeServices/action.json +25 -0
- package/entities/CloudNativeServices/mockdatafiles/getCloudNativeServices-default.json +83 -0
- package/entities/CloudNativeServices/schema.json +19 -0
- package/entities/CloudProviderAccount/action.json +126 -0
- package/entities/CloudProviderAccount/mockdatafiles/getCloudProviderAccount-default.json +10 -0
- package/entities/CloudProviderAccount/mockdatafiles/getCloudProviderAccounts-default.json +32 -0
- package/entities/CloudProviderAccount/schema.json +24 -0
- package/entities/CloudProviderObject/action.json +109 -0
- package/entities/CloudProviderObject/mockdatafiles/getCloudProviderObject-default.json +52 -0
- package/entities/CloudProviderObject/mockdatafiles/getCloudProviderObjectCountByTimes-default.json +27 -0
- package/entities/CloudProviderObject/mockdatafiles/getCloudProviderObjectCounts-default.json +22 -0
- package/entities/CloudProviderObject/mockdatafiles/getCloudProviderObjectTags-default.json +23 -0
- package/entities/CloudProviderObject/schema.json +23 -0
- package/entities/CloudProviderObjectSyncRequest/action.json +86 -0
- package/entities/CloudProviderObjectSyncRequest/mockdatafiles/getCloudProviderObjectSyncRequest-default.json +10 -0
- package/entities/CloudProviderObjectSyncRequest/schema.json +22 -0
- package/entities/CommunityLists/action.json +126 -0
- package/entities/CommunityLists/mockdatafiles/getAllCommunityLists-default.json +42 -0
- package/entities/CommunityLists/schema.json +24 -0
- package/entities/Credentials/action.json +25 -0
- package/entities/Credentials/mockdatafiles/getallcredentials-default.json +14 -0
- package/entities/Credentials/schema.json +19 -0
- package/entities/DirectConnectConnectors/action.json +127 -0
- package/entities/DirectConnectConnectors/mockdatafiles/getdirectconnectconnectors-default.json +862 -0
- package/entities/DirectConnectConnectors/schema.json +24 -0
- package/entities/ExtendedCommunityLists/action.json +126 -0
- package/entities/ExtendedCommunityLists/mockdatafiles/getAllExtendedCommunityLists-default.json +50 -0
- package/entities/ExtendedCommunityLists/schema.json +24 -0
- package/entities/FeatureFlags/action.json +46 -0
- package/entities/FeatureFlags/mockdatafiles/getTenantEnabledFeatures-default.json +3 -0
- package/entities/FeatureFlags/schema.json +20 -0
- package/entities/FirewallZones/action.json +46 -0
- package/entities/FirewallZones/mockdatafiles/getfirewallzones-default.json +91 -0
- package/entities/FirewallZones/schema.json +20 -0
- package/entities/FlowCapture/action.json +44 -0
- package/entities/FlowCapture/schema.json +20 -0
- package/entities/Flows/action.json +151 -0
- package/entities/Flows/schema.json +25 -0
- package/entities/FortinetFWServiceCredentials/action.json +64 -0
- package/entities/FortinetFWServiceCredentials/schema.json +21 -0
- package/entities/FortinetFWServiceInstanceCredentials/action.json +64 -0
- package/entities/FortinetFWServiceInstanceCredentials/schema.json +21 -0
- package/entities/FortinetFWServices/action.json +127 -0
- package/entities/FortinetFWServices/mockdatafiles/createFortinetFWService-default.json +64 -0
- package/entities/FortinetFWServices/mockdatafiles/getFortinetFWService-default.json +64 -0
- package/entities/FortinetFWServices/mockdatafiles/getFortinetFWServices-default.json +155 -0
- package/entities/FortinetFWServices/mockdatafiles/updateFortinetFWService-default.json +93 -0
- package/entities/FortinetFWServices/schema.json +24 -0
- package/entities/GCPConnectors/action.json +106 -0
- package/entities/GCPConnectors/mockdatafiles/getgcpconnectors-default.json +71 -0
- package/entities/GCPConnectors/schema.json +23 -0
- package/entities/GCPCredentials/action.json +64 -0
- package/entities/GCPCredentials/schema.json +21 -0
- package/entities/GetMessages/action.json +25 -0
- package/entities/GetMessages/mockdatafiles/getMessages-default.json +46 -0
- package/entities/GetMessages/schema.json +19 -0
- package/entities/GlobalCidrLists/action.json +106 -0
- package/entities/GlobalCidrLists/mockdatafiles/createGlobalCidrList-default.json +12 -0
- package/entities/GlobalCidrLists/mockdatafiles/getGlobalCidrList-default.json +12 -0
- package/entities/GlobalCidrLists/mockdatafiles/getGlobalCidrLists-default.json +50 -0
- package/entities/GlobalCidrLists/mockdatafiles/updateGlobalCidrList-default.json +12 -0
- package/entities/GlobalCidrLists/schema.json +34 -0
- package/entities/Groups/action.json +106 -0
- package/entities/Groups/mockdatafiles/getgroups-default.json +107 -0
- package/entities/Groups/schema.json +23 -0
- package/entities/Health/action.json +151 -0
- package/entities/Health/mockdatafiles/retrieveshealthforallconnectorsandservicesinthistenant-default.json +399 -0
- package/entities/Health/mockdatafiles/retrieveshealthforallinternetapplicationsinthistenant-default.json +1254 -0
- package/entities/Health/mockdatafiles/retrieveshealthforaspecificconnectorinthistenant-default.json +751 -0
- package/entities/Health/mockdatafiles/retrieveshealthforaspecificfirewalzoneinthistenant-default.json +1086 -0
- package/entities/Health/mockdatafiles/retrieveshealthforaspecificinstanceofaconnectorinthistenant-default.json +1352 -0
- package/entities/Health/mockdatafiles/retrieveshealthforaspecificinstanceofaserviceinthistenant-default.json +803 -0
- package/entities/Health/mockdatafiles/retrieveshealthforaspecificserviceinthistenant-default.json +730 -0
- package/entities/Health/schema.json +25 -0
- package/entities/Healthv3/action.json +25 -0
- package/entities/Healthv3/schema.json +19 -0
- package/entities/IPSecConnectors/action.json +127 -0
- package/entities/IPSecConnectors/mockdatafiles/getipsecconnectors-default.json +826 -0
- package/entities/IPSecConnectors/schema.json +24 -0
- package/entities/IdentityProviders/action.json +106 -0
- package/entities/IdentityProviders/mockdatafiles/getIdentityProvidersUsingGET-default.json +37 -0
- package/entities/IdentityProviders/schema.json +23 -0
- package/entities/InfoBloxCredentials/action.json +24 -0
- package/entities/InfoBloxCredentials/schema.json +19 -0
- package/entities/InfoBloxGridMasterCredentials/action.json +24 -0
- package/entities/InfoBloxGridMasterCredentials/schema.json +19 -0
- package/entities/InfoBloxInstanceCredentials/action.json +24 -0
- package/entities/InfoBloxInstanceCredentials/schema.json +19 -0
- package/entities/InfoBloxServices/action.json +106 -0
- package/entities/InfoBloxServices/mockdatafiles/getInfoBloxServices-default.json +220 -0
- package/entities/InfoBloxServices/schema.json +23 -0
- package/entities/Integration/action.json +126 -0
- package/entities/Integration/mockdatafiles/createIntegration-default.json +6 -0
- package/entities/Integration/mockdatafiles/deleteIntegration-default.json +6 -0
- package/entities/Integration/mockdatafiles/deleteIntegrations-default.json +8 -0
- package/entities/Integration/mockdatafiles/getIntegrations-default.json +26 -0
- package/entities/Integration/mockdatafiles/getIntegrationsByTypeAndSubType-default.json +20 -0
- package/entities/Integration/mockdatafiles/updateIntegration-default.json +6 -0
- package/entities/Integration/schema.json +24 -0
- package/entities/InternetApplications/action.json +106 -0
- package/entities/InternetApplications/mockdatafiles/getinternetapplications-default.json +383 -0
- package/entities/InternetApplications/schema.json +23 -0
- package/entities/InternetConnectors/action.json +127 -0
- package/entities/InternetConnectors/mockdatafiles/getInternetConnectorConfiguration-default.json +35 -0
- package/entities/InternetConnectors/mockdatafiles/getinternetconnectors-default.json +30 -0
- package/entities/InternetConnectors/schema.json +24 -0
- package/entities/InvoiceSummaries/action.json +46 -0
- package/entities/InvoiceSummaries/schema.json +20 -0
- package/entities/Invoices/action.json +46 -0
- package/entities/Invoices/schema.json +20 -0
- package/entities/Jobs/action.json +46 -0
- package/entities/Jobs/schema.json +20 -0
- package/entities/KeyPairCredentials/action.json +44 -0
- package/entities/KeyPairCredentials/schema.json +20 -0
- package/entities/LDAPCredentials/action.json +64 -0
- package/entities/LDAPCredentials/schema.json +21 -0
- package/entities/LoginSpecification/action.json +65 -0
- package/entities/LoginSpecification/mockdatafiles/createOrUpdateLoginSpecification-default.json +6 -0
- package/entities/LoginSpecification/mockdatafiles/getLoginSpecification-default.json +6 -0
- package/entities/LoginSpecification/schema.json +21 -0
- package/entities/Logs/action.json +44 -0
- package/entities/Logs/schema.json +20 -0
- package/entities/Meters/action.json +46 -0
- package/entities/Meters/schema.json +20 -0
- package/entities/NATPolicies/action.json +106 -0
- package/entities/NATPolicies/mockdatafiles/getNATPolicies-default.json +46 -0
- package/entities/NATPolicies/schema.json +34 -0
- package/entities/NATRules/action.json +106 -0
- package/entities/NATRules/mockdatafiles/getNATRules-default.json +312 -0
- package/entities/NATRules/schema.json +34 -0
- package/entities/OCIVCNConnectors/action.json +106 -0
- package/entities/OCIVCNConnectors/mockdatafiles/getOCIVCNConnectors-default.json +148 -0
- package/entities/OCIVCNConnectors/schema.json +34 -0
- package/entities/OCIVCNCredentials/action.json +64 -0
- package/entities/OCIVCNCredentials/schema.json +21 -0
- package/entities/OneTimePassword/action.json +85 -0
- package/entities/OneTimePassword/mockdatafiles/createOneTimePassword-default.json +10 -0
- package/entities/OneTimePassword/mockdatafiles/getAllUnexpiredOTP-default.json +42 -0
- package/entities/OneTimePassword/schema.json +22 -0
- package/entities/PANCredentials/action.json +64 -0
- package/entities/PANCredentials/schema.json +21 -0
- package/entities/PANFWServices/action.json +188 -0
- package/entities/PANFWServices/mockdatafiles/getpanfwservices-default.json +455 -0
- package/entities/PANFWServices/schema.json +27 -0
- package/entities/PANInstanceCredentials/action.json +64 -0
- package/entities/PANInstanceCredentials/schema.json +21 -0
- package/entities/PANMasterKeyCredentials/action.json +64 -0
- package/entities/PANMasterKeyCredentials/schema.json +21 -0
- package/entities/PANRegistrationCredentials/action.json +64 -0
- package/entities/PANRegistrationCredentials/schema.json +21 -0
- package/entities/PacketCapture/action.json +66 -0
- package/entities/PacketCapture/mockdatafiles/getPacketCaptureResponses-default.json +35 -0
- package/entities/PacketCapture/schema.json +32 -0
- package/entities/PasswordSpecification/action.json +65 -0
- package/entities/PasswordSpecification/mockdatafiles/createOrUpdatePasswordSpecification-default.json +9 -0
- package/entities/PasswordSpecification/mockdatafiles/getPasswordSpecification-default.json +9 -0
- package/entities/PasswordSpecification/schema.json +21 -0
- package/entities/Permissions/action.json +25 -0
- package/entities/Permissions/mockdatafiles/getPermissionsUsingGET-default.json +5 -0
- package/entities/Permissions/schema.json +19 -0
- package/entities/Ping/action.json +44 -0
- package/entities/Ping/schema.json +20 -0
- package/entities/Policies/action.json +106 -0
- package/entities/Policies/mockdatafiles/getPolicies-default.json +42 -0
- package/entities/Policies/schema.json +23 -0
- package/entities/Prefixlists/action.json +106 -0
- package/entities/Prefixlists/mockdatafiles/getPrefixlists-default.json +75 -0
- package/entities/Prefixlists/schema.json +23 -0
- package/entities/Products/action.json +25 -0
- package/entities/Products/mockdatafiles/listofallproducts-default.json +136 -0
- package/entities/Products/schema.json +19 -0
- package/entities/RemoteAccess/action.json +172 -0
- package/entities/RemoteAccess/schema.json +26 -0
- package/entities/RemoteAccessConnectorTemplates/action.json +106 -0
- package/entities/RemoteAccessConnectorTemplates/mockdatafiles/createConnectorTemplate-default.json +683 -0
- package/entities/RemoteAccessConnectorTemplates/mockdatafiles/deleteConnectorTemplate-default.json +146 -0
- package/entities/RemoteAccessConnectorTemplates/mockdatafiles/getConnectorTemplate-default.json +89 -0
- package/entities/RemoteAccessConnectorTemplates/mockdatafiles/getConnectorTemplates-default.json +2408 -0
- package/entities/RemoteAccessConnectorTemplates/mockdatafiles/updateConnectorTemplate-default.json +632 -0
- package/entities/RemoteAccessConnectorTemplates/schema.json +23 -0
- package/entities/RemoteAccessConnectors/action.json +107 -0
- package/entities/RemoteAccessConnectors/mockdatafiles/getRemoteAccessConnectors-default.json +629 -0
- package/entities/RemoteAccessConnectors/mockdatafiles/getRemoteAccesssConnector-default.json +662 -0
- package/entities/RemoteAccessConnectors/schema.json +23 -0
- package/entities/ResourceLimits/action.json +25 -0
- package/entities/ResourceLimits/mockdatafiles/getTenantResourceLimits-default.json +10 -0
- package/entities/ResourceLimits/schema.json +19 -0
- package/entities/ResourceUsage/action.json +25 -0
- package/entities/ResourceUsage/mockdatafiles/getResourceUsage-default.json +183 -0
- package/entities/ResourceUsage/schema.json +19 -0
- package/entities/Roles/action.json +106 -0
- package/entities/Roles/mockdatafiles/getRolesUsingGET-default.json +22 -0
- package/entities/Roles/schema.json +23 -0
- package/entities/RoutePolicies/action.json +126 -0
- package/entities/RoutePolicies/mockdatafiles/getAllRoutePolicies-default.json +388 -0
- package/entities/RoutePolicies/schema.json +24 -0
- package/entities/Routes/action.json +25 -0
- package/entities/Routes/schema.json +19 -0
- package/entities/Rulelists/action.json +106 -0
- package/entities/Rulelists/mockdatafiles/getRulelists-default.json +18 -0
- package/entities/Rulelists/schema.json +23 -0
- package/entities/Rules/action.json +106 -0
- package/entities/Rules/mockdatafiles/getRules-default.json +76 -0
- package/entities/Rules/schema.json +23 -0
- package/entities/SegmentResourceShares/action.json +106 -0
- package/entities/SegmentResourceShares/mockdatafiles/getSegmentResourceShares-default.json +64 -0
- package/entities/SegmentResourceShares/schema.json +34 -0
- package/entities/SegmentResources/action.json +106 -0
- package/entities/SegmentResources/mockdatafiles/getsegmentResources-default.json +108 -0
- package/entities/SegmentResources/schema.json +23 -0
- package/entities/Segments/action.json +106 -0
- package/entities/Segments/mockdatafiles/getsegments-default.json +196 -0
- package/entities/Segments/schema.json +23 -0
- package/entities/SplunkHECTokenCredentials/action.json +64 -0
- package/entities/SplunkHECTokenCredentials/schema.json +21 -0
- package/entities/Tenant/action.json +45 -0
- package/entities/Tenant/mockdatafiles/getTenant-default.json +14 -0
- package/entities/Tenant/mockdatafiles/updateTenant-default.json +14 -0
- package/entities/Tenant/schema.json +20 -0
- package/entities/TenantNetworks/action.json +126 -0
- package/entities/TenantNetworks/mockdatafiles/getTenantNetworks-default.json +5816 -0
- package/entities/TenantNetworks/schema.json +24 -0
- package/entities/TenantPreferences/action.json +45 -0
- package/entities/TenantPreferences/mockdatafiles/getTenantPreferences-default.json +10 -0
- package/entities/TenantPreferences/schema.json +20 -0
- package/entities/TraceRoute/action.json +44 -0
- package/entities/TraceRoute/schema.json +20 -0
- package/entities/Traffic/action.json +130 -0
- package/entities/Traffic/mockdatafiles/retrievesactivesessionscountforservicesinthistenant-default.json +18 -0
- package/entities/Traffic/mockdatafiles/retrievesinstancecountforservicesinthistenant-default.json +18 -0
- package/entities/Traffic/mockdatafiles/retrievestheInterCXPtraffic-default.json +53 -0
- package/entities/Traffic/mockdatafiles/retrievestheoveralltrafficgoingtointernetfromCXP-default.json +140 -0
- package/entities/Traffic/mockdatafiles/retrievestrafficstatsforconnectorsinthistenant-default.json +126 -0
- package/entities/Traffic/mockdatafiles/retrievestrafficstatsforservicesinthistenant-default.json +126 -0
- package/entities/Traffic/schema.json +24 -0
- package/entities/UserGroups/action.json +208 -0
- package/entities/UserGroups/mockdatafiles/getUserFromUserGroup-default.json +17 -0
- package/entities/UserGroups/mockdatafiles/getUsersInUserGroup-default.json +19 -0
- package/entities/UserGroups/mockdatafiles/getusergroups-default.json +23 -0
- package/entities/UserGroups/schema.json +28 -0
- package/entities/UsernamePasswordCredentials/action.json +64 -0
- package/entities/UsernamePasswordCredentials/schema.json +21 -0
- package/entities/Users/action.json +147 -0
- package/entities/Users/mockdatafiles/createUsersUsingPOST-default.json +17 -0
- package/entities/Users/mockdatafiles/getAllUsersUsingGET-default.json +70 -0
- package/entities/Users/mockdatafiles/getUsersByIdUsingGET-default.json +17 -0
- package/entities/Users/mockdatafiles/updateUsersByIdUsingPUT-default.json +17 -0
- package/entities/Users/schema.json +25 -0
- package/entities/ZscalerInternetAccessServices/action.json +106 -0
- package/entities/ZscalerInternetAccessServices/mockdatafiles/getZscalerInternetAccessServices-default.json +84 -0
- package/entities/ZscalerInternetAccessServices/schema.json +23 -0
- package/error.json +190 -0
- package/package.json +86 -0
- package/pronghorn.json +44773 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/alkira_swagger.json-OpenApi3Json.json +50699 -0
- package/report/creationReport.json +3472 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +12410 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +19120 -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 +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -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/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "Adapter-alkira",
|
|
3
|
+
"type": "Alkira",
|
|
4
|
+
"properties": {
|
|
5
|
+
"host": "localhost",
|
|
6
|
+
"port": 443,
|
|
7
|
+
"base_path": "/api",
|
|
8
|
+
"version": "",
|
|
9
|
+
"cache_location": "none",
|
|
10
|
+
"encode_pathvars": true,
|
|
11
|
+
"encode_queryvars": true,
|
|
12
|
+
"save_metric": false,
|
|
13
|
+
"stub": true,
|
|
14
|
+
"protocol": "https",
|
|
15
|
+
"authentication": {
|
|
16
|
+
"auth_method": "no_authentication",
|
|
17
|
+
"username": "username",
|
|
18
|
+
"password": "password",
|
|
19
|
+
"token": "token",
|
|
20
|
+
"token_timeout": 600000,
|
|
21
|
+
"token_cache": "local",
|
|
22
|
+
"invalid_token_error": 401,
|
|
23
|
+
"auth_field": "header.headers.Authorization",
|
|
24
|
+
"auth_field_format": "Basic {b64}{username}:{password}{/b64}",
|
|
25
|
+
"auth_logging": false,
|
|
26
|
+
"client_id": "",
|
|
27
|
+
"client_secret": "",
|
|
28
|
+
"grant_type": ""
|
|
29
|
+
},
|
|
30
|
+
"healthcheck": {
|
|
31
|
+
"type": "none",
|
|
32
|
+
"frequency": 60000,
|
|
33
|
+
"query_object": {}
|
|
34
|
+
},
|
|
35
|
+
"throttle": {
|
|
36
|
+
"throttle_enabled": false,
|
|
37
|
+
"number_pronghorns": 1,
|
|
38
|
+
"sync_async": "sync",
|
|
39
|
+
"max_in_queue": 1000,
|
|
40
|
+
"concurrent_max": 1,
|
|
41
|
+
"expire_timeout": 0,
|
|
42
|
+
"avg_runtime": 200,
|
|
43
|
+
"priorities": [
|
|
44
|
+
{
|
|
45
|
+
"value": 0,
|
|
46
|
+
"percent": 100
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"request": {
|
|
51
|
+
"number_redirects": 0,
|
|
52
|
+
"number_retries": 3,
|
|
53
|
+
"limit_retry_error": [
|
|
54
|
+
0
|
|
55
|
+
],
|
|
56
|
+
"failover_codes": [],
|
|
57
|
+
"attempt_timeout": 5000,
|
|
58
|
+
"global_request": {
|
|
59
|
+
"payload": {},
|
|
60
|
+
"uriOptions": {},
|
|
61
|
+
"addlHeaders": {},
|
|
62
|
+
"authData": {}
|
|
63
|
+
},
|
|
64
|
+
"healthcheck_on_timeout": true,
|
|
65
|
+
"return_raw": false,
|
|
66
|
+
"archiving": false,
|
|
67
|
+
"return_request": false
|
|
68
|
+
},
|
|
69
|
+
"proxy": {
|
|
70
|
+
"enabled": false,
|
|
71
|
+
"host": "",
|
|
72
|
+
"port": 1,
|
|
73
|
+
"protocol": "http",
|
|
74
|
+
"username": "",
|
|
75
|
+
"password": ""
|
|
76
|
+
},
|
|
77
|
+
"ssl": {
|
|
78
|
+
"ecdhCurve": "",
|
|
79
|
+
"enabled": false,
|
|
80
|
+
"accept_invalid_cert": false,
|
|
81
|
+
"ca_file": "",
|
|
82
|
+
"key_file": "",
|
|
83
|
+
"cert_file": "",
|
|
84
|
+
"secure_protocol": "",
|
|
85
|
+
"ciphers": ""
|
|
86
|
+
},
|
|
87
|
+
"mongo": {
|
|
88
|
+
"host": "",
|
|
89
|
+
"port": 0,
|
|
90
|
+
"database": "",
|
|
91
|
+
"username": "",
|
|
92
|
+
"password": "",
|
|
93
|
+
"replSet": "",
|
|
94
|
+
"db_ssl": {
|
|
95
|
+
"enabled": false,
|
|
96
|
+
"accept_invalid_cert": false,
|
|
97
|
+
"ca_file": "",
|
|
98
|
+
"key_file": "",
|
|
99
|
+
"cert_file": ""
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"devicebroker": {
|
|
103
|
+
"getDevice": [
|
|
104
|
+
{
|
|
105
|
+
"path": "/get/devices/{id}",
|
|
106
|
+
"method": "GET",
|
|
107
|
+
"query": {},
|
|
108
|
+
"body": {},
|
|
109
|
+
"headers": {},
|
|
110
|
+
"handleFailure": "ignore",
|
|
111
|
+
"requestFields": {
|
|
112
|
+
"id": "name"
|
|
113
|
+
},
|
|
114
|
+
"responseDatakey": "",
|
|
115
|
+
"responseFields": {
|
|
116
|
+
"name": "host",
|
|
117
|
+
"ostype": "os",
|
|
118
|
+
"ostypePrefix": "system-",
|
|
119
|
+
"ipaddress": "attributes.ipaddr",
|
|
120
|
+
"port": "443"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"getDevicesFiltered": [
|
|
125
|
+
{
|
|
126
|
+
"path": "/get/devices",
|
|
127
|
+
"method": "GET",
|
|
128
|
+
"query": {},
|
|
129
|
+
"body": {},
|
|
130
|
+
"headers": {},
|
|
131
|
+
"handleFailure": "ignore",
|
|
132
|
+
"requestFields": {},
|
|
133
|
+
"responseDatakey": "",
|
|
134
|
+
"responseFields": {
|
|
135
|
+
"name": "host",
|
|
136
|
+
"ostype": "os",
|
|
137
|
+
"ostypePrefix": "system-",
|
|
138
|
+
"ipaddress": "attributes.ipaddr",
|
|
139
|
+
"port": "443"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"isAlive": [
|
|
144
|
+
{
|
|
145
|
+
"path": "/get/devices/{id}/status",
|
|
146
|
+
"method": "GET",
|
|
147
|
+
"query": {},
|
|
148
|
+
"body": {},
|
|
149
|
+
"headers": {},
|
|
150
|
+
"handleFailure": "ignore",
|
|
151
|
+
"requestFields": {
|
|
152
|
+
"id": "name"
|
|
153
|
+
},
|
|
154
|
+
"responseDatakey": "",
|
|
155
|
+
"responseFields": {
|
|
156
|
+
"status": "status",
|
|
157
|
+
"statusValue": "online"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"getConfig": [
|
|
162
|
+
{
|
|
163
|
+
"path": "/get/devices/{id}/configPart1",
|
|
164
|
+
"method": "GET",
|
|
165
|
+
"query": {},
|
|
166
|
+
"body": {},
|
|
167
|
+
"headers": {},
|
|
168
|
+
"handleFailure": "ignore",
|
|
169
|
+
"requestFields": {
|
|
170
|
+
"id": "name"
|
|
171
|
+
},
|
|
172
|
+
"responseDatakey": "",
|
|
173
|
+
"responseFields": {}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"getCount": [
|
|
177
|
+
{
|
|
178
|
+
"path": "/get/devices",
|
|
179
|
+
"method": "GET",
|
|
180
|
+
"query": {},
|
|
181
|
+
"body": {},
|
|
182
|
+
"headers": {},
|
|
183
|
+
"handleFailure": "ignore",
|
|
184
|
+
"requestFields": {},
|
|
185
|
+
"responseDatakey": "",
|
|
186
|
+
"responseFields": {}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"groups": [],
|
|
192
|
+
"brokers": [],
|
|
193
|
+
"logLevel": "none",
|
|
194
|
+
"timeout": 120000
|
|
195
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* @copyright Itential, LLC 2020 */
|
|
2
|
+
|
|
3
|
+
/* global describe context before after */
|
|
4
|
+
/* eslint global-require: warn */
|
|
5
|
+
/* eslint no-unused-vars: warn */
|
|
6
|
+
/* eslint import/no-extraneous-dependencies: warn */
|
|
7
|
+
/* eslint import/no-dynamic-require: warn */
|
|
8
|
+
/* eslint import/no-unresolved: warn */
|
|
9
|
+
|
|
10
|
+
const mocha = require('mocha');
|
|
11
|
+
const path = require('path');
|
|
12
|
+
const assert = require('assert');
|
|
13
|
+
const itParam = require('mocha-param');
|
|
14
|
+
|
|
15
|
+
const utils = require('../../utils/tbUtils');
|
|
16
|
+
const basicGet = require('../../utils/basicGet');
|
|
17
|
+
const { name } = require('../../package.json');
|
|
18
|
+
const { methods } = require('../../pronghorn.json');
|
|
19
|
+
|
|
20
|
+
const getPronghornProps = (iapDir) => {
|
|
21
|
+
console.log('Retrieving properties.json file...');
|
|
22
|
+
const rawProps = require(path.join(iapDir, 'properties.json'));
|
|
23
|
+
console.log('Decrypting properties...');
|
|
24
|
+
const pronghornProps = utils.decryptProperties(rawProps, iapDir);
|
|
25
|
+
console.log('Found properties.\n');
|
|
26
|
+
return pronghornProps;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
let a;
|
|
30
|
+
|
|
31
|
+
describe('[integration] Adapter BasicGET Test', () => {
|
|
32
|
+
context('Testing GET calls without query parameters', () => {
|
|
33
|
+
before(async () => {
|
|
34
|
+
const iapDir = path.join(__dirname, '../../../../../');
|
|
35
|
+
if (!utils.areWeUnderIAPinstallationDirectory()) {
|
|
36
|
+
const sampleProperties = require('../../sampleProperties.json');
|
|
37
|
+
const adapter = { properties: sampleProperties };
|
|
38
|
+
a = basicGet.getAdapterInstance(adapter);
|
|
39
|
+
} else {
|
|
40
|
+
const pronghornProps = getPronghornProps(iapDir);
|
|
41
|
+
console.log('Connecting to Database...');
|
|
42
|
+
const database = await basicGet.connect(pronghornProps);
|
|
43
|
+
console.log('Connection established.');
|
|
44
|
+
const adapter = await database.collection(utils.SERVICE_CONFIGS_COLLECTION).findOne(
|
|
45
|
+
{ model: name }
|
|
46
|
+
);
|
|
47
|
+
a = basicGet.getAdapterInstance(adapter);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
after((done) => {
|
|
52
|
+
done();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const basicGets = methods.filter((method) => (method.route.verb === 'GET' && method.input.length === 0));
|
|
56
|
+
if (basicGets.length === 0) {
|
|
57
|
+
console.log('No non-parameter GET calls found.');
|
|
58
|
+
process.exit(0);
|
|
59
|
+
}
|
|
60
|
+
const functionNames = basicGets.map((g) => g.name);
|
|
61
|
+
const request = function request(f, ad) {
|
|
62
|
+
return new Promise((resolve, reject) => {
|
|
63
|
+
const getRespCode = (resp) => {
|
|
64
|
+
if (resp) {
|
|
65
|
+
if (resp.metrics.code !== 200) {
|
|
66
|
+
console.log('\x1b[31m', `Testing ${f} \nResponseCode: ${resp.metrics.code}`);
|
|
67
|
+
}
|
|
68
|
+
resolve(resp.metrics.code);
|
|
69
|
+
} else {
|
|
70
|
+
console.log('\x1b[31m', `call ${f} results in failure`);
|
|
71
|
+
reject(new Error(`${f} failed`));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
ad[f](getRespCode, console.log);
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
itParam('GET call should return 200', functionNames, (fname) => {
|
|
79
|
+
console.log(`\t ${fname}`);
|
|
80
|
+
return request(fname, a).then((result) => assert.equal(result, 200));
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
});
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* @copyright Itential, LLC 2020 */
|
|
2
|
+
|
|
3
|
+
/* global describe it context before after */
|
|
4
|
+
/* eslint no-unused-vars: warn */
|
|
5
|
+
|
|
6
|
+
const mocha = require('mocha');
|
|
7
|
+
const assert = require('assert');
|
|
8
|
+
const diagnostics = require('network-diagnostics');
|
|
9
|
+
|
|
10
|
+
let host;
|
|
11
|
+
process.argv.forEach((val) => {
|
|
12
|
+
if (val.indexOf('--HOST') === 0) {
|
|
13
|
+
[, host] = val.split('=');
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
describe('[integration] Adapter Test', () => {
|
|
18
|
+
context(`Testing network connection on ${host}`, () => {
|
|
19
|
+
before(() => {
|
|
20
|
+
diagnostics.setTestURL(host);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
after((done) => {
|
|
24
|
+
done();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('DNS resolve', (done) => {
|
|
28
|
+
diagnostics.haveDNS((result) => {
|
|
29
|
+
try {
|
|
30
|
+
assert.equal(result, true);
|
|
31
|
+
done();
|
|
32
|
+
} catch (error) {
|
|
33
|
+
done(error);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it('Responds to ping', (done) => {
|
|
39
|
+
diagnostics.havePing((result) => {
|
|
40
|
+
try {
|
|
41
|
+
assert.equal(result, true);
|
|
42
|
+
done();
|
|
43
|
+
} catch (error) {
|
|
44
|
+
done(error);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('Support HTTP on port 80', (done) => {
|
|
50
|
+
diagnostics.haveHTTP((result) => {
|
|
51
|
+
try {
|
|
52
|
+
assert.equal(result, true);
|
|
53
|
+
done();
|
|
54
|
+
} catch (error) {
|
|
55
|
+
done(error);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('Support HTTPS on port 443', (done) => {
|
|
61
|
+
diagnostics.haveHTTPS((result) => {
|
|
62
|
+
try {
|
|
63
|
+
assert.equal(result, true);
|
|
64
|
+
done();
|
|
65
|
+
} catch (error) {
|
|
66
|
+
done(error);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('Support IPv4', (done) => {
|
|
72
|
+
diagnostics.haveIPv4Async((result) => {
|
|
73
|
+
try {
|
|
74
|
+
assert.equal(result, true);
|
|
75
|
+
done();
|
|
76
|
+
} catch (error) {
|
|
77
|
+
done(error);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('Support IPv6', (done) => {
|
|
83
|
+
diagnostics.haveIPv6Async((result) => {
|
|
84
|
+
try {
|
|
85
|
+
assert.equal(result, true);
|
|
86
|
+
done();
|
|
87
|
+
} catch (error) {
|
|
88
|
+
done(error);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
});
|