st2 icon indicating copy to clipboard operation
st2 copied to clipboard

CLI Should have Create and Delete for sensors.

Open DoriftoShoes opened this issue 9 years ago • 1 comments

Currently, there is no way via the CLI to delete a sensor...or create one for that matter.

vagrant@st2vagrant:~/st2docs$ st2 sensor --help
usage: st2 sensor [-h] {list,get,enable,disable} ...

An adapter which allows you to integrate StackStorm with external system

positional arguments:
  {list,get,enable,disable}
                        List of commands for managing sensortypes.
    list                Get the list of sensortypes.
    get                 Get individual sensor.
    enable              Enable an existing sensor.
    disable             Disable an existing sensor.

optional arguments:
  -h, --help            show this help message and exit```

DoriftoShoes avatar Aug 23 '16 19:08 DoriftoShoes

In my case, I'm doing development and have decided that a particular sensor's name (or ref in the context of st2 sensor list output) is less than useful, and I've changed it (logically speaking, the reference sensor no longer exists). I'd like to maintain a "clean" list of sensors that can "actually be enabled". Do I need to remove some data from the database directly in order to "prune" the output of st2 sensor list?

mxmader avatar Nov 30 '17 21:11 mxmader