Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-harsh-sharma committed Aug 4, 2023
1 parent 6a6aadf commit 285b77e
Show file tree
Hide file tree
Showing 12 changed files with 434 additions and 7,454 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
""" Copyright start
Copyright (C) 2008 - 2022 Fortinet Inc.
Copyright (C) 2008 - 2023 Fortinet Inc.
All rights reserved.
FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE
Copyright end """

from connectors.core.connector import Connector, get_logger, ConnectorError
from .operations import _check_health, operations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
""" Copyright start
Copyright (C) 2008 - 2023 Fortinet Inc.
All rights reserved.
FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE
Copyright end """

import json
from typing import Union

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "fortinet_fortimanager_json_rpc",
"version": "1.0.0",
"name": "fortinet-fortimanager-json-rpc",
"label": "Fortinet FortiManager JSON RPC",
"description": "The Fortinet FortiManager JSON RPC Connector is an advanced connector with freeform actions to use the JSON-RPC API directly",
"publisher": "",
"description": "The Fortinet FortiManager JSON RPC Connector is an advanced connector with freeform actions to use the JSON-RPC API directly. This connector puts the onus on the user to understand the FortiManager API. To use the connector that simplify actions please see the original Fortinet FortiManager Connector",
"publisher": "Fortinet CSE",
"cs_approved": false,
"cs_compatible": true,
"version": "1.0.0",
"category": "Centralized Security Management",
"help_online": "",
"icon_small_name": "FortiManager_small.png",
"icon_large_name": "FortiManager_medium.png",
"id": 36,
"configuration": {
"fields": [
{
Expand Down Expand Up @@ -38,16 +41,6 @@
"required": true,
"description": "Password to access the Fortinet FortiManager server to which you will connect and perform the automated operations."
},
{
"name": "adom",
"title": "ADOM",
"type": "text",
"editable": true,
"visible": true,
"required": false,
"tooltip": "Provide Administrative domain name. Eg. root. Notes:- You can specify the ADOM here, as a configuration parameter, or you can also specify the ADOM as a function parameter.",
"description": "Administrative domain names (ADOMs) of the Fortinet FortiManager server to which you will connect and perform the automated operations. Enter the ADOMs, in the CSV or List format."
},
{
"name": "port",
"title": "Port",
Expand Down Expand Up @@ -266,12 +259,5 @@
],
"output_schema": {}
}
],
"category": "Centralized Security Management",
"playbook_collections": [],
"icon_small": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RUM2NjIyRjU0QjIxMTFFQUJDNThGNTk0RjQ0QTg3OUIiIHhtc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KzRaMD8lEpVe3t7XNy6h1ZG0hYLVro2Jkbl+BHLbDLBodlsFoiEt27dKi0pMRgM23JzDxw4CK0b4uOhNSgoKCZGu1RrGECq1ZqsrGwwDFjAEqkUliA7OoxHprDXBM93Y0cE8yZT2DHh0Ak6JCQkBAYFgSaHhoZqa9+SOHKwwEbok8CkHYng/wlRwSjmv9Ap9jarbfXq1YWFz0AN3A661WQy0VNaQtKamJgMDw8rLi7570qrkmdr6OeJiZmXTs2crxXl5CEyxDbRj4dlkxg2PT2l0+2IjZsz6fv3h06cON7X2xsVFWW1WOgZ0zI7OwtTB+RATvOhLn0I1mSxmCcnJx88eABNFy++/2F9/f6yMgzDYBS0mmZnm5ubaYW7GXBaWpq3t/fnKvGAABTD517atBGIyUJZCZTCYCeFKRReEmlmZvZ8ohn0yczM9Fco4Pua6GgYQZsx/N+8eXNoaCiszK1bt86nPAAVQ39YnMkbN95sarp69e/Ql7ATUA8GwuFwMjIyQoJD4PZgOAbInQTMbB4YwAxgBjADmAHsQfIvAQYA5UWZimZhQTMAAAAASUVORK5CYII\u003d",
"help_online": "https://docs.fortinet.com/document/fortisoar/3.0.0/fortinet-fortimanager/233/fortinet-fortimanager-v3-0-0",
"cs_approved": false,
"tags": []
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" Copyright start
Copyright (C) 2008 - 2022 Fortinet Inc.
Copyright (C) 2008 - 2023 Fortinet Inc.
All rights reserved.
FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE
Copyright end """
Expand Down
Loading

0 comments on commit 285b77e

Please sign in to comment.