Skip to content

Commit

Permalink
feat: src/connectors: add connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Mar 10, 2024
1 parent 3666e6d commit 18f334d
Show file tree
Hide file tree
Showing 12 changed files with 728 additions and 0 deletions.
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Objects": {
"connection":
[
"AA 360 Control Room"
]
},
"Information": {
"GUID": "9a7d04ff-2a5a-42bb-9524-47847b3958cb",
"Exported By": "rarleh",
"Exported On": "2024-02-14 05:36:20",
"System": "ssm-upg-sbx-bp.saviyntcloud.com",
"TransferOwners": "0",
"TransferUsers": "0"
}
}
Binary file added src/connectors/Cloudflare/Cloudflare.zip
Binary file not shown.
166 changes: 166 additions & 0 deletions src/connectors/Cloudflare/Connection_2023-08-03_10-18-13(UTC).json
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"Cloudflare_Test": {
"connectiondescription": "Cloudflare",
"sslCertificateId": null,
"msconnectorversion": null,
"templateMandatoryData": "an+EhFRIDHRZDTiepgHr6CfGQt81mkJKFe3hOSqyz728V7JUR8uQqt854453INR8",
"connectorms": false,
"templateName": "Cloudflare",
"statusForEnableDisable": 1,
"vaultCredentialConnection": null,
"sslCertificate": null,
"vaultConfig": null,
"credentialChangeConfig": null,
"externalconnectiontype": "REST",
"connectionname": "Cloudflare_Test",
"connectorType": null,
"status": 1,
"EXTERNAL_ATTR":
[
{
"encryptedattributevalue": "F094T0v6WHOpHcSzOqzN/G0EOXMVamwB8u2E9ttQNJNH/uqcgtvsw9t4/JqDJeCqQsdihkRCJpZn9bLHAwEt1khfhJ57qiyRImlt7xYaAw8R3gKwlb5P5Pls/NpXrJCJ/cipoJgDTEYXSi8KTVQ1EgD1/a2DjNsmtiykthgS2cVEk6VdaUUHggXQ2VO/ATgioWaZO2mA0+TKvsTYHtVp6K9yHo/Z1fKuWU+vJl7Lxa1GIkmXnXBwagOCdRSnHo/Kw4hxU48LYZ/x+ML0g/DOeJh9UG8QWus9HPZteOXU7vlhZYjUISqxKm/WBNxrpYs7X1gyyUWxJC/ucl//kWPh3FR5Gwo5SSFtJguilbKnEbO2FrMbF+F1d8ny3ne3ESbsAwjLXUeox1gvdg+qI2dDELi8JL0Jfb7Uq0TJaVjpilxccs7dyqzlEsrmTnNr7rQ+4zuiKvG9H//Kr0veZpa2IrqNK9cXQe1aX074d7HFwCABZXvg57l2Rfv4xhUjp+CsW0wzSLrEwJWS2opg4JrkU7kqNYPH4c9CMO3cTt/11fUnpfMm1lqL5nhVBtHV8i32uZFc2zaYBp1xTrzcCeGqdiRSeZGDMZmyxze0uU7WNR2JkE/vUIqM4cAUbIuDNfyMLoICPO9cxVV44sbIQeaoAjjxakMylDqLVelnMGYvB2lX0csjGOWnI4gcmNh1FH0hbJLFVUfeJr5/B74soJx2ItuVkdLGr66HWXw970JACHekxyBNd9a2XzCTDPW90aFlYDnnmi59AVJtckfLXlSjHoWC9xMbSaTX4e3GB3KgEgqkz1Emv+wWJy6AJRFeobmBJwGTRWHUBa5uhrzvrqA0XbcDhtypmUL0YTuWub6nX6Q=",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "ConnectionJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"attributename": "ImportUserJSON",
"credentialSaveStatus": false
},
{
"formdata": null,
"encryptedattributevalue": "{\r\n \"accountParams\": {\r\n \"connection\": \"acctAuth\",\r\n \"processingType\": \"SequentialAndIterative\",\r\n \"statusAndThresholdConfig\": {\r\n \"statusColumn\": \"customproperty5\",\r\n \"status\": [\r\n \"accepted\"\r\n ],\r\n \"deleteLinks\": true,\r\n \"accountThresholdValue\": 1000,\r\n \"correlateInactiveAccounts\": false,\r\n \"inactivateAccountsNotInFile\": true,\r\n \"deleteAccEntForActiveAccounts\": true\r\n },\r\n \"call\": {\r\n \"call1\": {\r\n \"callOrder\": 0,\r\n \"stageNumber\": 0,\r\n \"http\": {\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members?count=2&per_page=2\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Content-Type\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"httpMethod\": \"GET\"\r\n },\r\n \"listField\": \"result\",\r\n \"keyField\": \"accountID\",\r\n \"colsToPropsMap\": {\r\n \"accountID\": \"id~#~char\",\r\n \"name\": \"user.email~#~char\",\r\n \"displayName\": \"user.email~#~char\",\r\n \"customproperty1\": \"user.id~#~char\",\r\n \"customproperty2\": \"user.first_name~#~char\",\r\n \"customproperty3\": \"user.last_name~#~char\",\r\n \"customproperty4\": \"user.two_factor_authentication_enabled~#~char\",\r\n \"customproperty5\": \"status~#~char\",\r\n \"customproperty6\": \"api_access_enabled~#~char\",\r\n \"customproperty7\": \"policies.id~#~char\",\r\n \"customproperty8\": \"policies.access~#~char\",\r\n \"customproperty9\": \"policies.permission_groups.id~#~char\",\r\n \"customproperty10\": \"policies.permission_groups.name~#~char\",\r\n \"customproperty11\": \"policies.resource_groups.id~#~char\",\r\n \"customproperty12\": \"policies.resource_groups.name~#~char\"\r\n },\r\n \"page\": {\r\n \"pageSizeParam\": \"count\",\r\n \"pageSize\": 20,\r\n \"pageRecordCount\": \"per_page\",\r\n \"pageNumberParam\": \"page\",\r\n \"totalCountPath\": \"completeResponseMap.meta.total_count\",\r\n \"firstPageNumber\": 1\r\n }\r\n }\r\n }\r\n },\r\n \"entitlementParams\": {\r\n \"connection\": \"acctAuth\",\r\n \"processingType\": \"SequentialAndIterative\",\r\n \"entTypes\": {\r\n \"Role\": {\r\n \"entTypeOrder\": 0,\r\n \"entTypeLabels\": {},\r\n \"call\": {\r\n \"call1\": {\r\n \"connection\": \"acctAuth\",\r\n \"callOrder\": 0,\r\n \"stageNumber\": 0,\r\n \"http\": {\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//roles\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Content-Type\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"httpMethod\": \"GET\"\r\n },\r\n \"listField\": \"result\",\r\n \"keyField\": \"entitlementID\",\r\n \"colsToPropsMap\": {\r\n \"entitlementID\": \"id~#~char\",\r\n \"entitlement_value\": \"name~#~char\",\r\n \"customproperty1\": \"description~#~char\",\r\n \"customproperty2\": \"permissions.zone_settings~#~char\",\r\n \"customproperty3\": \"permissions.page_shield~#~char\",\r\n \"customproperty4\": \"permissions.zone~#~char\",\r\n \"customproperty5\": \"permissions.organization~#~char\"\r\n },\r\n \"disableDeletedEntitlements\": true\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"acctEntParams\": {\r\n \"connection\": \"acctAuth\",\r\n \"entTypes\": {\r\n \"Role\": {\r\n \"call\": {\r\n \"call1\": {\r\n \"callOrder\": 0,\r\n \"stageNumber\": 0,\r\n \"processingType\": \"httpAcctToEnt\",\r\n \"http\": {\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Content-Type\": \"application/json\"\r\n },\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members/${id}\",\r\n \"httpContentType\": \"application/json\",\r\n \"httpMethod\": \"GET\"\r\n },\r\n \"listField\": \"result\",\r\n \"entIdPath\": \"roles.id\",\r\n \"entKeyField\": \"entitlementID\",\r\n \"acctKeyField\": \"accountID\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}",
"credentialSaveStatus": false,
"attributename": "ImportAccountEntJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "STATUS_THRESHOLD_CONFIG"
},
{
"formdata": null,
"credentialSaveStatus": false,
"encryptedattributevalue": "{\r\n \"accountIdPath\": \"call1.message.id\",\r\n \"responseColsToPropsMap\": {},\r\n \"call\": [\r\n {\r\n \"name\": \"call1\",\r\n \"connection\": \"acctAuth\",\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members\",\r\n \"httpMethod\": \"POST\",\r\n \"httpParams\": \"{\\\"first_name\\\":\\\"${user.firstname}\\\",\\\"last_name\\\":\\\"${user.lastname}\\\",\\\"email\\\":\\\"${user.email}\\\",\\\"status\\\":\\\"pending\\\",\\\"policies\\\":[{\\\"id\\\":\\\"${user.customproperty7}\\\",\\\"access\\\":\\\"allow\\\"}],\\\"roles\\\":[\\\"${requestAccessAttributes.RoleType}\\\"]}\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Accept\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"successResponses\": {\r\n \"statusCode\": [\r\n 200,\r\n 201\r\n ]\r\n }\r\n }\r\n ]\r\n}",
"attributename": "CreateAccountJSON"
},
{
"formdata": null,
"encryptedattributevalue": "{\r\n \"call\": [\r\n {\r\n \"name\": \"call1\",\r\n \"connection\": \"acctAuth\",\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members/{account.accountID}\",\r\n \"httpMethod\": \"PUT\",\r\n \"httpParams\": \"{\\\"first_name\\\":\\\"${user.firstname}\\\",\\\"last_name\\\":\\\"${user.lastname}\\\",\\\"email\\\":\\\"${user.email}\\\",\\\"status\\\":\\\"accepted\\\",\\\"policies\\\":[{\\\"id\\\":\\\"${user.customproperty7}\\\",\\\"access\\\":\\\"allow\\\"}],\\\"roles\\\":[\\\"${requestAccessAttributes.RoleType}\\\"]}\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Accept\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"successResponses\": {\r\n \"statusCode\": [\r\n 200,\r\n 201\r\n ]\r\n }\r\n }\r\n ]\r\n}",
"attributename": "UpdateAccountJSON",
"credentialSaveStatus": false
},
{
"formdata": null,
"credentialSaveStatus": false,
"attributename": "EnableAccountJSON",
"encryptedattributevalue": "{\r\n \"call\": [\r\n {\r\n \"name\": \"call1\",\r\n \"connection\": \"acctAuth\",\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members/{account.accountID}\",\r\n \"httpMethod\": \"PUT\",\r\n \"httpParams\": \"{\\\"status\\\":\\\"accepted\\\"}\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Accept\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"successResponses\": {\r\n \"statusCode\": [\r\n 200,\r\n 201\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"formdata": null,
"encryptedattributevalue": "{\r\n \"call\": [\r\n {\r\n \"name\": \"call1\",\r\n \"connection\": \"acctAuth\",\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members/{account.accountID}\",\r\n \"httpMethod\": \"PUT\",\r\n \"httpParams\": \"{\\\"status\\\":\\\"Pending\\\"}\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Accept\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"successResponses\": {\r\n \"statusCode\": [\r\n 200,\r\n 201\r\n ]\r\n }\r\n }\r\n ]\r\n}",
"credentialSaveStatus": false,
"attributename": "DisableAccountJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "AddAccessJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "RemoveAccessJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "UpdateUserJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"attributename": "ChangePassJSON",
"credentialSaveStatus": false
},
{
"formdata": null,
"attributename": "RemoveAccountJSON",
"credentialSaveStatus": false,
"encryptedattributevalue": "{\r\n \"call\": [\r\n {\r\n \"name\": \"call1\",\r\n \"connection\": \"acctAuth\",\r\n \"url\": \"https://api.cloudflare.com/client/v4/accounts//members/${account.accountID}\",\r\n \"httpMethod\": \"DELETE\",\r\n \"httpHeaders\": {\r\n \"X-Auth-Key\": \"${access_token}\",\r\n \"X-Auth-Email\": \"${connection.Email}\",\r\n \"Accept\": \"application/json\"\r\n },\r\n \"httpContentType\": \"application/json\",\r\n \"successResponses\": {\r\n \"statusCode\": [\r\n 200,\r\n 201,\r\n 204\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "TicketStatusJSON"
},
{
"attributename": "CreateTicketJSON",
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false
},
{
"encryptedattributevalue": "",
"formdata": null,
"attributename": "ENDPOINTS_FILTER",
"credentialSaveStatus": false
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "PasswdPolicyJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "ConfigJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "AddFFIDAccessJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "RemoveFFIDAccessJSON"
},
{
"encryptedattributevalue": "",
"formdata": null,
"attributename": "MODIFYUSERDATAJSON",
"credentialSaveStatus": false
},
{
"encryptedattributevalue": "",
"formdata": null,
"attributename": "SendOtpJSON",
"credentialSaveStatus": false
},
{
"encryptedattributevalue": "",
"formdata": null,
"attributename": "ValidateOtpJSON",
"credentialSaveStatus": false
},
{
"encryptedattributevalue": "",
"formdata": null,
"credentialSaveStatus": false,
"attributename": "PAM_CONFIG"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Objects": {
"connection":
[
"Cloudflare_Test"
]
},
"Information": {
"GUID": "55c3402a-47fd-4d81-bb9d-61fca0a0e600",
"Exported By": "admin",
"Exported On": "2023-08-03 10:17:50",
"System": "scrum-exchange.saviyntcloud.com",
"TransferOwners": "0",
"TransferUsers": "0"
}
}
Loading

0 comments on commit 18f334d

Please sign in to comment.