Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 2.04 KB

notifications.md

File metadata and controls

55 lines (33 loc) · 2.04 KB

Notifications

Notifications are the platform's problem and event notification configurations. dtctl lists and inspects them and can delete them (aliases: notification, notif); creating notifications is done in the Dynatrace UI or the Settings API.

dtctl docs / Resources / Notifications

Supported operations

Operation Resource Command syntax Description Mutating Access
delete notification dtctl delete notification Delete resources yes delete
get notifications dtctl get notifications Display one or many resources no read

Flags

These commands take dtctl's global flags (-o/--output, --context, --jq, -v, and more). Some verbs add their own flags (apply, diff, query, inventory); see the verb in COMMANDS.md. Individual commands may take further flags of their own — run dtctl <verb> <resource> --help for the authoritative list.

Required token scopes

Safety level Scopes
read notification:notifications:read
write notification:notifications:write

Output

get notifications returns each notification's ID, name, and type. Filter with --type, and use -o json for the full record.

Examples

# List all notifications
dtctl get notifications

# Filter by notification type
dtctl get notifications --type <type>

# Delete one (skip the confirmation prompt)
dtctl delete notification <notification-id> --yes

Notes