Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Updating Orion.WorldMap.Point via the Perl SDK

$
0
0

I've been playing with the new world maps with doing the creating, updating and deletion of points via the Perl Orion SDK. I've had success with creating points with the following:

my $data = $self->{_swis}->Create("Orion.WorldMap.Point", {Instance => 'Orion.Nodes', InstanceID => $node_id, Latitude => $lat, Longitude => $long} );

 

 

 

 

 

However not having much success with with updates or deletions as both of the following:

my $data = $self->{_swis}->Update($self->{_swis_url} . "/Orion.WorldMap.Point/PointId=$point_id", {Latitude => $lat, Longitude => $long} );

 

 

my $data = $self->{_swis}->Delete("swis://localhost/Orion/Orion.WorldMap.Point/Instance=Orion.Nodes,PointId=$point_id");

 

produce the following error:

Invalid key properties specified for entity Orion.WorldMap.Point.

Anyone got any pointers? I've got quite a large amount of location data to import and then allow updates to be carried out from our CMDB. And I also notice it's create multiple pointers for the same node.

 

Cheers,

 

Jon


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>