Closed omadawn closed 6 years ago
The datasource API does not provides "Create or update" method like the dashboard API.
So we have a couple of options:
Use the "Create" method and return an error if it already exists.
Check to see if the datasource already exists and use the appropriate method. This could allow us to error out if it exists unless -force is provided.
Howerver it would be significantly more work to implement.
Just answered my own question. Based on the usage message this should throw an error unless -force is applied.
The datasource API does not provides "Create or update" method like the dashboard API.
So we have a couple of options:
Use the "Create" method and return an error if it already exists.
Check to see if the datasource already exists and use the appropriate method. This could allow us to error out if it exists unless -force is provided.
Howerver it would be significantly more work to implement.