connector.get

    The method allows to retrieve connector objects according to the given parameters.

    This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See for more information.

    The method supports the following parameters.

    (integer/array) Returns either:

    • an array of objects;
    • the count of retrieved objects, if the countOutput parameter has been used.

    Retrieving all connectors

    Request:

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "connectorid": "1",
    6. "name": "Export of item values",
    7. "protocol": "0",
    8. "data_type": "0",
    9. "url": "{$DATA_EXPORT_VALUES_URL}",
    10. "max_records": "0",
    11. "max_senders": "4",
    12. "max_attempts": "2",
    13. "timeout": "10s",
    14. "http_proxy": "{$DATA_EXPORT_VALUES_PROXY}",
    15. "authtype": "4",
    16. "token": "",
    17. "verify_peer": "1",
    18. "verify_host": "1",
    19. "ssl_cert_file": "{$DATA_EXPORT_VALUES_SSL_CERT_FILE}",
    20. "ssl_key_file": "{$DATA_EXPORT_VALUES_SSL_KEY_FILE}",
    21. "ssl_key_password": "",
    22. "description": "",
    23. "status": "1",
    24. "tags_evaltype": "0",
    25. "tags": [
    26. {
    27. "tag": "component",
    28. "operator": "0",
    29. "value": "memory"
    30. }
    31. ]
    32. },
    33. {
    34. "connectorid": "2",
    35. "name": "Export of events",
    36. "protocol": "0",
    37. "data_type": "1",
    38. "url": "{$DATA_EXPORT_EVENTS_URL}",
    39. "max_records": "0",
    40. "max_attempts": "2",
    41. "timeout": "5s",
    42. "http_proxy": "",
    43. "authtype": "5",
    44. "username": "",
    45. "password": "",
    46. "token": "{$DATA_EXPORT_EVENTS_BEARER_TOKEN}",
    47. "verify_peer": "1",
    48. "verify_host": "1",
    49. "ssl_cert_file": "",
    50. "ssl_key_file": "",
    51. "ssl_key_password": "",
    52. "description": "",
    53. "status": "1",
    54. "tags_evaltype": "0",
    55. "tags": [
    56. {
    57. "tag": "scope",
    58. "operator": "0",
    59. "value": "performance"
    60. }
    61. ]
    62. }
    63. ],