IHub HTTP Channels

iHub exposes an Http endpoint in which the external systems can push the input messages. 
iHub http endpoint API details is given below.
Request Type: POST
URL: http://<hostname>:<port> /api/smartops/ihub/endpoint
Header:
Organization-key
Request Body : <any json request> 

Create iHub HTTP channelCreate iHub HTTP channel

The API details for creating new end point channel is given below.
Request Type: POST
URL: http://<host-name>:<port>/api/smartops/ihub/apiChannel
Header:
Request Body:

{
  "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"
    }
  ],
  "jsonMappings": {
    "jsonSpecs": [
      {
        "mappings": {},
        "operation": "string"
      }
    ]
  },
  "projectId": 0,
  "sourcePredicates": [
    {
      "key": "string",
      "value": "string"
    }
  ]
}

View all HTTP channelsView all HTTP channels

The API details for listing all channels for an organization is given below.
Request Method: GET
URL: http://<host-name>:<port>/api/smartops/ihub/apiChannel/all
Header:
Organization-key

Update a HTTP channelUpdate a HTTP channel

The API details for updating an existing channel is given below.
Request Type: PUT
URL: http://<host-name>:<port>/api/smartops/ihub/apiChannel
Header:
Organization-key
Request Body:

{
  "active": true,
  "channelId": "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"
  }
  ],
  "jsonMappings": {
    "jsonSpecs": [
      {
        "mappings": {},
        "operation": "string"
      }
    ]
  },
  "orgId": "string",
  "projectId": 0,
  "sourcePredicates": [
    {
      "key": "string",
      "value": "string"
    }
  ]
}

 

Delete a HTTP channelDelete a HTTP channel

The API details for deleting an existing channel is given below.
Request Type: DELETE
URL: http://<host-name>:<port> /api/smartops/ihub/apiChannel
Header:
Organization-key
Request Body:

{
  "active": true,
  "channelId": "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"
    }
  ],
  "jsonMappings": {
    "jsonSpecs": [
      {
        "mappings": {},
        "operation": "string"
      }
  ]
  },
  "orgId": "string",
  "projectId": 0,
  "sourcePredicates": [
    {
      "key": "string",
      "value": "string"
    }
  ]
}

 

 

Related Topics:

Feedback

Copyright © 2021 UST Global. All Rights Reserved.