@itentialopensource/adapter-alkira 0.1.7 → 0.2.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.
@@ -0,0 +1,56 @@
1
+
2
+ ## 0.1.7 [08-01-2023]
3
+
4
+ * Bug fixes and performance improvements
5
+
6
+ See commit a5678d1
7
+
8
+ ---
9
+
10
+ ## 0.1.6 [08-01-2023]
11
+
12
+ * Migrate adapter base with broker changes
13
+
14
+ See merge request itentialopensource/adapters/cloud/adapter-alkira!4
15
+
16
+ ---
17
+
18
+ ## 0.1.5 [05-02-2023]
19
+
20
+ * Migrate adapter base with broker changes
21
+
22
+ See merge request itentialopensource/adapters/cloud/adapter-alkira!4
23
+
24
+ ---
25
+
26
+ ## 0.1.4 [04-12-2023]
27
+
28
+ * Patch/fixed get config and get count in adapterBase.json
29
+
30
+ See merge request itentialopensource/adapters/cloud/adapter-alkira!3
31
+
32
+ ---
33
+
34
+ ## 0.1.3 [04-06-2023]
35
+
36
+ * bug fix for getConfig and iapGetDeviceCount in adapterBase.js
37
+
38
+ See merge request itentialopensource/adapters/cloud/adapter-alkira!2
39
+
40
+ ---
41
+
42
+ ## 0.1.2 [12-21-2022]
43
+
44
+ * Updates to authentication schemas
45
+
46
+ See merge request itentialopensource/adapters/cloud/adapter-alkira!1
47
+
48
+ ---
49
+
50
+ ## 0.1.1 [11-28-2022]
51
+
52
+ * Bug fixes and performance improvements
53
+
54
+ See commit c896979
55
+
56
+ ---
package/metadata.json ADDED
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "adapter-alkira",
3
+ "vendor": "Alkira",
4
+ "product": "Cloud Management",
5
+ "osVersion": [],
6
+ "apiVersions": [
7
+ "v1"
8
+ ],
9
+ "iapVersions": [
10
+ "2021.1.x",
11
+ "2021.2.x",
12
+ "2022.1.x",
13
+ "2023.1.x"
14
+ ],
15
+ "method": "REST API",
16
+ "type": "Adapter",
17
+ "example": "",
18
+ "domains": [
19
+ "Cloud"
20
+ ],
21
+ "tags": [],
22
+ "deprecated": {
23
+ "isDeprecated": false
24
+ },
25
+ "brokerSince": "0.2.0",
26
+ "documentation": {
27
+ "storeLink": "",
28
+ "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-alkira",
29
+ "repoLink": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-alkira",
30
+ "docLink": "https://docs.itential.com/opensource/docs/alkira",
31
+ "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
32
+ "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
33
+ "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
34
+ "webLink": "https://www.itential.com/adapters/alkira/",
35
+ "vendorLink": "https://www.alkira.com/",
36
+ "productLink": "https://www.alkira.com/",
37
+ "apiLinks": []
38
+ },
39
+ "relatedItems": {
40
+ "adapters": [],
41
+ "integrations": [],
42
+ "ecosystemApplications": [],
43
+ "automations": [
44
+ {
45
+ "name": "Alkira - Cloud Network as a Service",
46
+ "overview": "Project for use cases around Alkira Cloud Network such as: Create AWS VPC Connector - Alkira, Create Azure VNet Connector - Alkira, Create Internet Connector - Alkira, Create IPSec Connector - Alkira, Get ID for Segment - Alkira, Provision Palo Alto Firewall - Alkira",
47
+ "versions": [
48
+ "^1.0.0"
49
+ ],
50
+ "repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/alkira-cloud-network-as-a-service",
51
+ "docLink": "<TBD>",
52
+ "webLink": "<TBD>"
53
+ }
54
+ ],
55
+ "transformations": [],
56
+ "useCases": [
57
+ {
58
+ "name": "Create AWS VPC Connector - Alkira",
59
+ "overview": "Creates AWS VPC connector over Alkira Cloud Network as a Service.",
60
+ "webLink": "",
61
+ "exampleInput": "{\n \"adapterId\": \"alkira\",\n \"vpcId\": \"vpc-05cbeb1e27dbba348\",\n \"credentialId\": \"48ebf9a7-1af8-45a4-9569-7adcc100e130\",\n \"vpcOwnerId\": \"462676810652\",\n \"connectorName\": \"ConnectorTest1\",\n \"cxp\": \"US-EAST-1\",\n \"customerRegion\": \"us-west-1\",\n \"customerName\": \"Customer\",\n \"size\": \"SMALL\",\n \"group\": \"PROD-AWS\",\n \"segmentName\": \"CORP\",\n \"tenantNetworkId\": 170,\n \"enabled\": true,\n \"directInterVPCCommunicationEnabled\": false\n}",
62
+ "exampleOutput": "{\n \"createdAWSVPCConnectorResult\": {\n \"icode\": \"AD.201\",\n \"response\": {\n \"id\": 11374,\n \"name\": \"ConnectorTest2\",\n \"cxp\": \"US-EAST\",\n \"segments\": [\n \"CORP\"\n ],\n \"vpcId\": \"vpc-0af55e16b6e371902\",\n \"vpcOwnerId\": \"462676810652\",\n \"customerName\": \"Customer\",\n \"customerRegion\": \"us-east-1\",\n \"credentialId\": \"48ebf9a7-1af8-45a4-9569-7adcc100e130\",\n \"group\": \"PROD-AWS\",\n \"groupId\": 16766,\n \"implicitGroupId\": 23386,\n \"billingTags\": [],\n \"size\": \"SMALL\",\n \"vpcRouting\": {\n \"exportToCXPOptions\": {\n \"userInputPrefixes\": [\n {\n \"id\": null,\n \"value\": \"10.0.0.0/24\",\n \"type\": \"CIDR\"\n }\n ],\n \"routeExportMode\": \"USER_INPUT_PREFIXES\",\n \"selectedCidrPrefixes\": [\n \"10.0.0.0/24\"\n ],\n \"selectedSubnetPrefixes\": [],\n \"selectedSubnetIds\": []\n },\n \"importFromCXPOptions\": {\n \"routeTables\": [\n {\n \"id\": \"rtb-0d4d1c975c3f30312\",\n \"prefixListIds\": [],\n \"routeImportMode\": \"ADVERTISE_DEFAULT_ROUTE\"\n }\n ]\n }\n },\n \"enabled\": true,\n \"primary\": true,\n \"directInterVPCCommunicationEnabled\": false,\n \"configStatus\": {\n \"configValid\": true,\n \"messages\": []\n }\n }\n }\n}"
63
+ },
64
+ {
65
+ "name": "Create Azure VNet Connector - Alkira",
66
+ "overview": "Creates Azure VNet connector over Alkira Cloud Network as a Service.",
67
+ "webLink": "",
68
+ "exampleInput": "{\n \"adapterId\": \"alkira\",\n \"segmentName\": \"CORP\",\n \"credentialId\": \"a39a474b-34f4-41b3-b684-95fd6024b2a9\",\n \"connectorName\": \"TestAzure2\",\n \"cxp\": \"US-EAST\",\n \"customerRegion\": \"westus\",\n \"size\": \"SMALL\",\n \"vnetId\": \"/subscriptions/34211a125-c6e3-2015-bc4e-84dbb14128f9/resourceGroups/itential-poc-resourcegroup/providers/Microsoft.Network/virtualNetworks/itential-poc-vnet1\",\n \"resourceGroupName\": \"itential-poc-resourcegroup\",\n \"subscriptionId\": \"34211a125-c6e3-2015-bc4e-84dbb14128f9\",\n \"group\": \"PROD_AZURE\",\n \"tenantNetworkId\": 170,\n \"enabled\": true\n}",
69
+ "exampleOutput": "{\n \"createdAzureVNETConnectorResult\": {\n \"icode\": \"AD.201\",\n \"response\": {\n \"id\": 11378,\n \"gatewaySubnetPrefix\": \"10.12.1.0/27\",\n \"name\": \"TestAzure2\",\n \"group\": \"PROD_AZURE\",\n \"groupId\": 17663,\n \"implicitGroupId\": 23390,\n \"vnetId\": \"/subscriptions/34211a125-c6e3-2015-bc4e-84dbb14128f9/resourceGroups/itential-poc-resourcegroup/providers/Microsoft.Network/virtualNetworks/itential-poc-vnet1\",\n \"cxp\": \"US-EAST\",\n \"customerRegion\": \"westus\",\n \"credentialId\": \"a39a474b-34f4-41b3-b684-95fd6024b2a9\",\n \"resourceGroupName\": \"itential-poc-resourcegroup\",\n \"enabled\": true,\n \"primary\": true,\n \"deploymentMode\": \"VGW\",\n \"connectionMode\": \"VNET_GATEWAY\",\n \"segments\": [\n \"CORP\"\n ],\n \"billingTags\": [],\n \"size\": \"SMALL\",\n \"vnetRouting\": {\n \"exportToCXPOptions\": {\n \"userInputPrefixes\": null\n },\n \"importFromCXPOptions\": {\n \"prefixListIds\": [],\n \"routeImportMode\": \"ADVERTISE_DEFAULT_ROUTE\",\n \"cidrs\": null,\n \"subnets\": null\n },\n \"serviceRoutes\": {\n \"cidrs\": null,\n \"subnets\": null\n }\n },\n \"subscriptionId\": \"34211a125-c6e3-2015-bc4e-84dbb14128f9\",\n \"configStatus\": {\n \"configValid\": true,\n \"messages\": []\n },\n \"vgwdeployment\": true\n }\n }\n}"
70
+ },
71
+ {
72
+ "name": "Create Internet Connector - Alkira",
73
+ "overview": "Creates Internet connector over Alkira Cloud Network as a Service.",
74
+ "webLink": "",
75
+ "exampleInput": "{\n \"adapterId\": \"alkira\",\n \"tenantNetworkId\": 170,\n \"cxp\": \"US-EAST\",\n \"connectorName\": \"TestConnectorName2\",\n \"segment\": \"CORP\",\n \"description\": \"Internet Connector\",\n \"group\": \"inet-zone\",\n \"algorithm\": \"HASHING\",\n \"keys\": \"DEFAULT\"\n}",
76
+ "exampleOutput": "{\n \"createdInternetConnectorResult\": {\n \"icode\": \"AD.201\",\n \"response\": {\n \"id\": 11375,\n \"name\": \"TestConnectorName2\",\n \"description\": \"Internet Connector\",\n \"group\": \"inet-zone\",\n \"groupId\": 20501,\n \"implicitGroupId\": 23387,\n \"cxp\": \"US-EAST\",\n \"segments\": [\n \"CORP\"\n ],\n \"billingTags\": [],\n \"size\": \"SMALL\",\n \"trafficDistribution\": {\n \"algorithm\": \"HASHING\",\n \"algorithmAttributes\": {\n \"keys\": \"DEFAULT\"\n }\n },\n \"numOfPublicIPs\": 2,\n \"enabled\": true\n }\n }\n}"
77
+ },
78
+ {
79
+ "name": "Create IPSec Connector - Alkira",
80
+ "overview": "Creates IPSec connector over Alkira Cloud Network as a Service.",
81
+ "webLink": "",
82
+ "exampleInput": "{\n \"adapterId\": \"alkira\",\n \"cxp\": \"US-EAST\",\n \"connectorName\": \"TestConnectorName\",\n \"siteName\": \"TestConnectorName-1\",\n \"customerGwIp\": \"10.20.30.40\",\n \"presharedKeys\": [\"abc\",\"xyz\"],\n \"size\": \"SMALL\",\n \"segmentName\": \"CORP\",\n \"segmentId\": 2878,\n \"tenantNetworkId\": 170\n}",
83
+ "exampleOutput": "{\n \"createdIPSecConnectorResult\": {\n \"icode\": \"AD.201\",\n \"response\": {\n \"id\": 11377,\n \"name\": \"TestConnectorName1\",\n \"segments\": [\n \"CORP\"\n ],\n \"segmentOptions\": {\n \"CORP\": {\n \"segmentId\": 2878,\n \"disableInternetExit\": true,\n \"advertiseOnPremRoutes\": false\n }\n },\n \"cxp\": \"US-EAST\",\n \"group\": \"OnPrem\",\n \"groupId\": 20028,\n \"implicitGroupId\": 23389,\n \"size\": \"SMALL\",\n \"sites\": [\n {\n \"id\": 3131,\n \"name\": \"TestConnectorName-1\",\n \"connectorId\": 11377,\n \"gatewayIpType\": \"STATIC\",\n \"gatewayNo\": 0,\n \"customerGwIp\": \"10.20.30.40\",\n \"presharedKeys\": [\n \"abc\",\n \"xyz\"\n ],\n \"state\": \"PENDING\",\n \"billingTags\": [],\n \"enableTunnelRedundancy\": true,\n \"haMode\": \"ACTIVE\",\n \"remoteAuthValueKey\": \"STATIC--\"\n }\n ],\n \"state\": \"PENDING\",\n \"type\": \"IP_SEC\",\n \"vpnMode\": \"ROUTE_BASED\",\n \"routingOptions\": {\n \"staticRouting\": null,\n \"dynamicRouting\": {\n \"customerGwAsn\": \"65000\",\n \"bgpAuthKeyAlkira\": null,\n \"availability\": \"IPSEC_INTERFACE_PING\"\n }\n },\n \"enabled\": true,\n \"primary\": true,\n \"secondaryCXPs\": []\n }\n }\n}"
84
+ },
85
+ {
86
+ "name": "Get ID for Segment - Alkira",
87
+ "overview": "Get ID for segment in Alkira Cloud Network as a Service.",
88
+ "webLink": "",
89
+ "exampleInput": "{\n \"adapterId\": \"alkira\",\n \"segmentName\": \"CORP\",\n \"tenantNetworkId\": 170\n}",
90
+ "exampleOutput": "2878"
91
+ },
92
+ {
93
+ "name": "Provision Palo Alto Firewall - Alkira",
94
+ "overview": "Provisions Palo Alto Firewall over Alkira Cloud Network as a Service.",
95
+ "webLink": "",
96
+ "exampleInput": "{\n \"adapterId\": \"alkira\",\n \"tenantNetworkId\": 170,\n \"username\": \"username\",\n \"password\": \"password\",\n \"name\": \"Firewall500\",\n \"cxp\": \"US-EAST\",\n \"version\": \"9.1.3\",\n \"segmentId\": 2878,\n \"segmentName\": \"CORP\",\n \"registrationPinValue\": \"2abfbad825a4233b8d1e243a07925a2c\",\n \"registrationPinId\": \"a52685ac-1fb8-4a90-b891-18cf9b461237\",\n \"expires\": \"Wed Aug 09 2023\",\n \"panoramaEnabled\": false,\n \"size\": \"SMALL\",\n \"licenseType\": \"PAY_AS_YOU_GO\",\n \"bundle\": \"VM_SERIES_BUNDLE_1\",\n \"maxInstanceCount\": 1,\n \"minInstanceCount\": 1,\n \"tunnelProtocol\": \"IPSEC\",\n \"globalProtectEnabled\": false,\n \"onPremZone\": [\"OnPrem\"],\n \"prodAwsZone\": [\"PROD-AWS\"],\n \"prodAzureZone\": [\"PROD_AZURE\"],\n \"inetZone\": [\"INET-Connector\"]\n}",
97
+ "exampleOutput": "{\n \"panFW\": {\n \"icode\": \"AD.201\",\n \"response\": {\n \"id\": 1527,\n \"name\": \"Firewall500\",\n \"cxp\": \"US-EAST\",\n \"segments\": [\n 2878\n ],\n \"panoramaEnabled\": false,\n \"managementSegment\": 2878,\n \"maxInstanceCount\": 1,\n \"minInstanceCount\": 1,\n \"licenseType\": \"PAY_AS_YOU_GO\",\n \"version\": \"9.1.3\",\n \"credentialId\": \"40a6186d-e691-4a81-8e1f-f4a43416af12\",\n \"instances\": [\n {\n \"id\": 1934,\n \"uniqueId\": \"c3d08fd9-2add-466b-af9c-c1cdabeb56aa\",\n \"name\": \"Firewall500\",\n \"credentialId\": \"96af7b91-426e-4c0e-b427-6cfa3402c846\",\n \"dormant\": false,\n \"hostName\": \"Firewall500\",\n \"masterKeyEnabled\": false,\n \"internalName\": \"svci-pan-afae0629-23fa-4f0a-85e7-432f6cc4\"\n }\n ],\n \"size\": \"SMALL\",\n \"segmentOptions\": {\n \"CORP\": {\n \"segmentId\": 2878,\n \"zonesToGroups\": {\n \"on-prem-zone\": [\n \"OnPrem\"\n ],\n \"ALKIRA_MGMT_ZONE\": [],\n \"prod-aws-zone\": [\n \"PROD-AWS\"\n ],\n \"prod-azure-zone\": [\n \"PROD_AZURE\"\n ],\n \"inet-zone\": [\n \"INET-Connector\"\n ]\n }\n }\n },\n \"billingTags\": [],\n \"tunnelProtocol\": \"IPSEC\",\n \"panWarmBootEnabled\": false,\n \"bundle\": \"VM_SERIES_BUNDLE_1\",\n \"globalProtectEnabled\": false,\n \"masterKeyEnabled\": false,\n \"registrationCredentialId\": \"a52685ac-1fb8-4a90-b891-18cf9b461237\",\n \"internalName\": \"svc-pan-14af6dba-bd57-4351-a322-fc13d784\",\n \"panSubLicenseType\": \"MODEL_BASED\"\n }\n }\n}"
98
+ }
99
+ ]
100
+ }
101
+ }
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-alkira",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "description": "This adapter integrates with system described as: alkiraApi.",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.44.15",
7
- "engineVersion": "1.62.7",
6
+ "systemName": "Alkira",
7
+ "wizardVersion": "2.44.7",
8
+ "engineVersion": "1.67.0",
8
9
  "adapterType": "http",
9
10
  "scripts": {
10
11
  "artifactize": "npm i && node utils/packModificationScript.js",
11
- "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
12
+ "preinstall": "node utils/setup.js",
12
13
  "deinstall": "node utils/removeHooks.js",
13
14
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
14
15
  "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
@@ -53,34 +54,31 @@
53
54
  "author": "Itential",
54
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-alkira#readme",
55
56
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^4.49.0",
57
- "ajv": "^6.12.0",
58
- "axios": "^0.21.0",
59
- "commander": "^2.20.0",
57
+ "@itentialopensource/adapter-utils": "^5.1.0",
58
+ "ajv": "^8.12.0",
59
+ "axios": "^1.4.0",
60
+ "commander": "^11.0.0",
61
+ "dns-lookup-promise": "^1.0.4",
60
62
  "esprima": "^4.0.1",
61
- "fs-extra": "^8.1.0",
63
+ "fs-extra": "^11.1.1",
62
64
  "json-query": "^2.2.2",
63
- "mocha": "^9.0.1",
65
+ "mocha": "^10.2.0",
64
66
  "mocha-param": "^2.0.1",
65
- "mongodb": "^4.1.0",
66
- "network-diagnostics": "^0.5.3",
67
+ "mongodb": "^4.16.0",
67
68
  "nyc": "^15.1.0",
69
+ "ping": "^0.4.4",
68
70
  "prompts": "^2.4.2",
69
71
  "readline-sync": "^1.4.10",
70
- "semver": "^7.3.2",
71
- "winston": "^3.3.3"
72
+ "semver": "^7.5.3",
73
+ "winston": "^3.9.0"
72
74
  },
73
75
  "devDependencies": {
74
- "chai": "^4.3.4",
75
- "eslint": "^7.29.0",
76
- "eslint-config-airbnb-base": "^14.2.1",
77
- "eslint-plugin-import": "^2.23.4",
78
- "eslint-plugin-json": "^3.0.0",
79
- "package-json-validator": "^0.6.3",
80
- "testdouble": "^3.16.1"
81
- },
82
- "resolutions": {
83
- "minimist": "^1.2.5"
76
+ "chai": "^4.3.7",
77
+ "eslint": "^8.44.0",
78
+ "eslint-config-airbnb-base": "^15.0.0",
79
+ "eslint-plugin-import": "^2.27.5",
80
+ "eslint-plugin-json": "^3.1.0",
81
+ "testdouble": "^3.18.0"
84
82
  },
85
83
  "private": false
86
84
  }