Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16139

[fiware-stackoverflow] Fiware Cygnus - Change service for only some entities with name mappings?

    Details

      Description

      Created question in FIWARE Q/A platform on 05-09-2019 at 11:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings

      Question:
      Fiware Cygnus - Change service for only some entities with name mappings?

      Description:
      Context :
      I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works.

      What I want :
      These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan)

      Question :
      How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities?

      What I tried :
      I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities.

      {
      "serviceMappings": [
      {
      "originalService": "default",
      "newService": "paris",
      "servicePathMappings": [
      {
      "originalServicePath": "/",
      "entityMappings": [

      { "originalEntityId": "sensor1", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }

      ,

      { "originalEntityId": "sensor2", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }

      ,

      { "originalEntityId": "sensor3", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }

      ]
      }
      ]
      }
      ]
      }

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-05 12:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-05 12:06|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-10 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-10 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-10 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-10 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-11 18:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-11 18:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: