emc-delete-alert

command module
v0.0.0-...-8835833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README


{ "image": "direktiv/emc-delete-alert", "desc": "Delete an alert" }

EMC Delete Alert

Deletes an alert on EMC.

Direktiv

An example workflow that deletes an alert on EMC.

id: delete-alert
functions:
- id: delete
  image: direktiv/emc-delete-alert:v1
description: "Delete the alert"
states:
  - id: delete-alert-test
    type: action
    action: 
      secrets: ["PASSWORD"]
      function: delete
      input: 
        username": "admin"
        password": jq(.secrets.PASSWORD)
        id": "alert_48"

Input

input:
  username: "admin"
  password: jq(.secrets.PASSWORD)
  id: "alert_48"

Output

No output is returned upon success but the alert should now be cleared from the list.

Error

{
    "errorCode": "com.emc.delete-alert.%s.error",
    "errorMsg": "Something went wrong"
}

NOTE: '%s' will be replaced contextually with what error has been received.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL