IHub E-mail Listeners

Create an email listenerCreate an email listener

An email listener can be configured using create listener API call. The details are given below.
URL :- http://<host-name>:<port>/api/smartops/ihub/ihubmail/create
Request Method :- POST
Headers:-
Organization-key
Request Body:

{
  "automationStoryName": "string",
  "channelName": "string",
  "destinations": [
    {
      "apiAuthType": "BASIC",
      "apiHeaders": {},
      "apiPassword": "string",
      "apiRequestMethod": "GET",
      "apiUrl": "string",
      "apiUsername": "string",
      "destinationType": "QUEUE",
      "jsonMappings": {
        "jsonSpecs": [
          {
            "mappings": {},
            "operation": "string"
          }
      ]
      },
      "queueExchangeName": "string",
      "queueHost": "string",
      "queueName": "string",
      "queuePassword": "string",
    "queuePort": 0,
      "queueRoutingKey": "string",
      "queueUsername": "string",
      "queueVhost": "string"
    }
  ],
  "ihubEmailId": "string",
  "ihubEmailPwd": "string",
  "projectId": 0
}



View all email listenersView all email listeners

All configured email listeners for an organization can be viewed using the below API.
URL :- http://<host-name>:<port>/api/smartops/ihub/ihubmail/all
Request Method :- GET
Headers:-
Organization-key


All configured email listeners for all organization can be viewed using the below API
URL :- http://<host-name>:<port>/api/smartops/ihub/ihubmail/all-org
Request Method :- GET
Headers:-
Organization-key

Update an email listenerUpdate an email listener

An existing listener can be updated using update listener API call. The details are given below.
URL :- http://<host-name>:<port>/api/smartops/ihub/ihubmail/update
Request Method :- PUT
Headers:-
Organization-key
Request Body:

{
  "active": true,
  "automationStoryName": "string",
  "channelId": "string",
  "channelName": "string",
  "destinations": [
    {
    "apiAuthType": "string",
      "apiHeaders": {},
      "apiPassword": "string",
      "apiRequestMethod": "string",
      "apiUrl": "string",
    "apiUsername": "string",
      "destinationId": "string",
      "destinationType": "string",
      "joltSpec": "string",
      "jsonMappings": {
        "jsonSpecs": [
          {
            "mappings": {},
            "operation": "string"
          }
        ]
      },
      "queueExchangeName": "string",
      "queueHost": "string",
      "queueName": "string",
      "queuePassword": "string",
      "queuePort": 0,
      "queueRoutingKey": "string",
      "queueUsername": "string",
      "queueVhost": "string"
    }
  ],
  "ihubEmailId": "string",
  "ihubEmailPwd": "string",
"orgId": 0,
  "projectId": 0
}



Delete an email listenerDelete an email listener

An existing listener can be deleted using delete listener API call. The details are given below.
URL :- http://<host-name>:<port>/api/smartops/ihub/ihubmail/delete
Request Method :- DELETE
Headers:-
Organization-key
Request Body:

{
  "active": true,
  "automationStoryName": "string",
  "channelId": "string",
  "channelName": "string",
  "destinations": [
    {
    "apiAuthType": "string",
      "apiHeaders": {},
      "apiPassword": "string",
      "apiRequestMethod": "string",
      "apiUrl": "string",
    "apiUsername": "string",
      "destinationId": "string",
      "destinationType": "string",
      "joltSpec": "string",
      "jsonMappings": {
        "jsonSpecs": [
          {
            "mappings": {},
            "operation": "string"
          }
        ]
      },
      "queueExchangeName": "string",
      "queueHost": "string",
      "queueName": "string",
      "queuePassword": "string",
      "queuePort": 0,
      "queueRoutingKey": "string",
      "queueUsername": "string",
      "queueVhost": "string"
    }
  ],
  "ihubEmailId": "string",
  "ihubEmailPwd": "string",
"orgId": 0,
  "projectId": 0
}


Related Topics:

Feedback

Copyright © 2021 UST Global. All Rights Reserved.