Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Is there any way change a Nodes External flag via SDK

$
0
0

Is there any way change a Nodes External flag via SDK?   I am doing this via perl using the JSON/REST calls

This same call works for other properties.

 

  my $result = $swqldb->update($node_info->{uri}, {External => 'true'});

 

I keep getting the following error.

 

   'ERROR' => 'ERROR CODE:[400] [action:swis://ISWEGSFCP16002.solarwinds.local/Orion/Orion.Nodes/NodeID=13216] - {"Message":"Incorrect syntax near the keyword \'External\'.","ExceptionType":"System.Data.SqlClient.SqlException","FullException":"System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near the keyword \'External\'.\\u000d\\u000a   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)\\u000d\\u000a   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()\\u000d\\u000a   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)\\u000d\\u000a   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()\\u000d\\u000a   at System.Data.SqlClient.SqlDataReader.get_MetaData()\\u000d\\u000a   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)\\u000d\\u000a   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)\\u000d\\u000a   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)\\u000d\\u000a   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)\\u000d\\u000a   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)\\u000d\\u000a   at System.Data.SqlClient.SqlCommand.ExecuteReader()\\u000d\\u000a   at SolarWinds.Data.Providers.Orion.Plugins.EntityCrudHandler.GetEntityDetails(IDictionary`2[] keyColumns, String entityDetailsSelectQuery)\\u000d\\u000a   at SolarWinds.Data.Providers.Orion.Plugins.EntityCrudHandler.ValidateAndGetEditableColumns(IDictionary`2& columnsToBeUpdated, IDictionary`2[] keyColumns, List`1 nonEditableColumns, String entityDetailsSelectQuery)\\u000d\\u000a   at SolarWinds.Data.Providers.Orion.CrudHandlers.NodeCrudHandler.Update(IEnumerable`1 infos, Action`1 baseCall)\\u000d\\u000a   at SolarWinds.InformationService.Core.CrudProcessor.UpdateInternal(Boolean bulkMode, SwisUriResolver uriResolver, IDictionary`2 propertiesToUpdate, IQueryExecutionContext context)\\u000d\\u000a   at SolarWinds.InformationService.Core.CrudProcessor.Update(IServiceHost serviceHost, SwisUri uri, IDictionary`2 propertiesToUpdate, IQueryExecutionContext context)\\u000d\\u000a   at SolarWinds.InformationService.Core.InformationService.Update(String uri, IDictionary`2 propertiesToUpdate)\\u000d\\u000aClientConnectionId:65150303-5238-4e56-87b3-b5c5922e538b"} []'


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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