Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/securityinsight/azext_sentinel/generated/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,21 @@ def cf_action(cli_ctx, *_):
return cf_sentinel(cli_ctx).action


def cf_alert_rule_template(cli_ctx, *_):
return cf_sentinel(cli_ctx).alert_rule_template


def cf_bookmark(cli_ctx, *_):
return cf_sentinel(cli_ctx).bookmark


def cf_data_connector(cli_ctx, *_):
return cf_sentinel(cli_ctx).data_connector


def cf_incident(cli_ctx, *_):
return cf_sentinel(cli_ctx).incident


def cf_incident_comment(cli_ctx, *_):
return cf_sentinel(cli_ctx).incident_comment
183 changes: 183 additions & 0 deletions src/securityinsight/azext_sentinel/generated/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,92 @@
pace-name "myWorkspace"
"""

helps['sentinel alert-rule-template'] = """
type: group
short-summary: sentinel alert-rule-template
"""

helps['sentinel alert-rule-template list'] = """
type: command
short-summary: Gets all alert rule templates.
examples:
- name: Get all alert rule templates.
text: |-
az sentinel alert-rule-template list --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel alert-rule-template show'] = """
type: command
short-summary: Gets the alert rule template.
examples:
- name: Get alert rule template by Id.
text: |-
az sentinel alert-rule-template show --alert-rule-template-id "65360bb0-8986-4ade-a89d-af3cf44d28aa" --r\
esource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel bookmark'] = """
type: group
short-summary: sentinel bookmark
"""

helps['sentinel bookmark list'] = """
type: command
short-summary: Gets all bookmarks.
examples:
- name: Get all bookmarks.
text: |-
az sentinel bookmark list --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel bookmark show'] = """
type: command
short-summary: Gets a bookmark.
examples:
- name: Get a bookmark.
text: |-
az sentinel bookmark show --bookmark-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" -\
-workspace-name "myWorkspace"
"""

helps['sentinel bookmark create'] = """
type: command
short-summary: Creates or updates the bookmark.
examples:
- name: Creates or updates a bookmark.
text: |-
az sentinel bookmark create --etag "\\"0300bf09-0000-0000-0000-5c37296e0000\\"" --created "2019-01-01T13\
:15:30Z" --created-by name="john doe" email="john@contoso.com" object-id="2046feea-040d-4a46-9e2b-91c2941bfa70" --displ\
ay-name "My bookmark" --labels "[\\"Tag1\\",\\"Tag2\\"]" --notes "Found a suspicious activity" --query "SecurityEvent |\
where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" --query-result "Security Event query result" --updated "201\
9-01-01T13:15:30Z" --updated-by name="john doe" email="john@contoso.com" object-id="2046feea-040d-4a46-9e2b-91c2941bfa7\
0" --bookmark-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel bookmark update'] = """
type: command
short-summary: Creates or updates the bookmark.
examples:
- name: Creates or updates a bookmark.
text: |-
az sentinel bookmark update --etag "\\"0300bf09-0000-0000-0000-5c37296e0000\\"" --created "2019-01-01T13\
:15:30Z" --created-by name="john doe" email="john@contoso.com" object-id="2046feea-040d-4a46-9e2b-91c2941bfa70" --displ\
ay-name "My bookmark" --labels "[\\"Tag1\\",\\"Tag2\\"]" --notes "Found a suspicious activity" --query "SecurityEvent |\
where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" --query-result "Security Event query result" --updated "201\
9-01-01T13:15:30Z" --updated-by name="john doe" email="john@contoso.com" object-id="2046feea-040d-4a46-9e2b-91c2941bfa7\
0" --bookmark-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel bookmark delete'] = """
type: command
short-summary: Delete the bookmark.
examples:
- name: Delete a bookmark.
text: |-
az sentinel bookmark delete --bookmark-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg"\
--workspace-name "myWorkspace"
"""

helps['sentinel data-connector'] = """
type: group
short-summary: sentinel data-connector
Expand Down Expand Up @@ -156,3 +242,100 @@
az sentinel data-connector delete --data-connector-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-\
group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel incident'] = """
type: group
short-summary: sentinel incident
"""

helps['sentinel incident list'] = """
type: command
short-summary: Gets all incidents.
examples:
- name: Get all incidents.
text: |-
az sentinel incident list --orderby "properties/createdTimeUtc desc" --top 1 --resource-group "myRg" --w\
orkspace-name "myWorkspace"
"""

helps['sentinel incident show'] = """
type: command
short-summary: Gets an incident.
examples:
- name: Get an incident.
text: |-
az sentinel incident show --incident-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" -\
-workspace-name "myWorkspace"
"""

helps['sentinel incident create'] = """
type: command
short-summary: Creates or updates the incident.
examples:
- name: Creates or updates an incident.
text: |-
az sentinel incident create --etag "\\"0300bf09-0000-0000-0000-5c37296e0000\\"" --description "This is a\
demo incident" --classification "FalsePositive" --classification-comment "Not a malicious activity" --classification-r\
eason "IncorrectAlertLogic" --first-activity-time-utc "2019-01-01T13:00:30Z" --last-activity-time-utc "2019-01-01T13:05\
:30Z" --owner object-id="2046feea-040d-4a46-9e2b-91c2941bfa70" --severity "High" --status "Closed" --title "My incident\
" --incident-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel incident update'] = """
type: command
short-summary: Creates or updates the incident.
examples:
- name: Creates or updates an incident.
text: |-
az sentinel incident update --etag "\\"0300bf09-0000-0000-0000-5c37296e0000\\"" --description "This is a\
demo incident" --classification "FalsePositive" --classification-comment "Not a malicious activity" --classification-r\
eason "IncorrectAlertLogic" --first-activity-time-utc "2019-01-01T13:00:30Z" --last-activity-time-utc "2019-01-01T13:05\
:30Z" --owner object-id="2046feea-040d-4a46-9e2b-91c2941bfa70" --severity "High" --status "Closed" --title "My incident\
" --incident-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel incident delete'] = """
type: command
short-summary: Delete the incident.
examples:
- name: Delete an incident.
text: |-
az sentinel incident delete --incident-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg"\
--workspace-name "myWorkspace"
"""

helps['sentinel incident-comment'] = """
type: group
short-summary: sentinel incident-comment
"""

helps['sentinel incident-comment list'] = """
type: command
short-summary: Gets all incident comments.
examples:
- name: Get all incident comments.
text: |-
az sentinel incident-comment list --incident-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group \
"myRg" --workspace-name "myWorkspace"
"""

helps['sentinel incident-comment show'] = """
type: command
short-summary: Gets an incident comment.
examples:
- name: Get an incident comment.
text: |-
az sentinel incident-comment show --incident-comment-id "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" --inciden\
t-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" --workspace-name "myWorkspace"
"""

helps['sentinel incident-comment create'] = """
type: command
short-summary: Creates the incident comment.
examples:
- name: Creates an incident comment.
text: |-
az sentinel incident-comment create --message "Some message" --incident-comment-id "4bb36b7b-26ff-4d1c-9\
cbe-0d8ab3da0014" --incident-id "73e01a99-5cd7-4139-a149-9f2736ff2ab5" --resource-group "myRg" --workspace-name "myWork\
space"
"""
Loading