Table of Contents

Search

  1. Preface
  2. Introduction to Edge Data Streaming Custom Entity Types
  3. Managing Custom Entity Types
  4. Custom Entities from Maven Archetypes
  5. REST APIs
  6. HTTP Request and Response Parameters
  7. Sample JSON Requests and Responses
  8. Glossary

Developer Guide

Developer Guide

Retrieve Source Service and Node Group Associations

Retrieve Source Service and Node Group Associations

Use the GET method to retrieve source service and node group associations in EDS.

GET Request in JSON Format

Generate a GET request. For example, the following GET request retrieves a source service and node group association:
GET /api/dataflows/{dataflow-id}/sources/{source-entity-id}/associatenodegroups Content-Type: application/json Accept: application/json

GET Response in JSON Format

The following is a sample response:
{ "success": true, "total": 1, "count": 1, "items": [ { "id": 1, "name": "ng1", "nodes": [ { "id": 1, "name": "node10" }, { "id": 2, "name": "node20" } ] } ] }
The following are sample responses for the 404 Not Found code:
{ "success": false, "errors": [ { "code": DATAFLOW_NOT_FOUND, "parameters": [{dataflow-id}], "errorMessage": "Dataflow with Id: {dataflow-id} not found" } ] }
{ "success": false, "errors": [ { "code": SOURCE_ENTITY_NOT_FOUND, "parameters": [{source-entity-id}], "errorMessage": "Source Entity with Id: {source-entity-id} not found" } ] }
The following is a sample response for the 500 Internal Server Error code:
{ "success": false, "errors": [ { "code": INTERNAL_SERVER_ERROR, "parameters": [{error-message}], "errorMessage": "Failed to get nodegroups associated with source. Exception: {error-message}" } ] }

0 COMMENTS

We’d like to hear from you!