HuntCommentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SecurityInsightsMgmtClient's

<xref:hunt_comments> attribute.

Constructor

HuntCommentsOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates a hunt relation.

delete

Delete a hunt comment.

get

Gets a hunt comment.

list

Gets all hunt comments.

create_or_update

Creates or updates a hunt relation.

create_or_update(resource_group_name: str, workspace_name: str, hunt_id: str, hunt_comment_id: str, hunt_comment: _models.HuntComment, *, content_type: str = 'application/json', **kwargs: Any) -> _models.HuntComment

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

workspace_name
Required
str

The name of the workspace. Required.

hunt_id
Required
str

The hunt id (GUID). Required.

hunt_comment_id
Required
str

The hunt comment id (GUID). Required.

hunt_comment
Required
HuntComment or <xref:JSON> or IO[bytes]

The hunt comment. Is one of the following types: HuntComment, JSON, IO[bytes] Required.

Returns

Type Description

HuntComment. The HuntComment is compatible with MutableMapping

Exceptions

Type Description

delete

Delete a hunt comment.

delete(resource_group_name: str, workspace_name: str, hunt_id: str, hunt_comment_id: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

workspace_name
Required
str

The name of the workspace. Required.

hunt_id
Required
str

The hunt id (GUID). Required.

hunt_comment_id
Required
str

The hunt comment id (GUID). Required.

Returns

Type Description

None

Exceptions

Type Description

get

Gets a hunt comment.

get(resource_group_name: str, workspace_name: str, hunt_id: str, hunt_comment_id: str, **kwargs: Any) -> HuntComment

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

workspace_name
Required
str

The name of the workspace. Required.

hunt_id
Required
str

The hunt id (GUID). Required.

hunt_comment_id
Required
str

The hunt comment id (GUID). Required.

Returns

Type Description

HuntComment. The HuntComment is compatible with MutableMapping

Exceptions

Type Description

list

Gets all hunt comments.

list(resource_group_name: str, workspace_name: str, hunt_id: str, *, filter: str | None = None, orderby: str | None = None, top: int | None = None, skip_token: str | None = None, **kwargs: Any) -> ItemPaged[HuntComment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

workspace_name
Required
str

The name of the workspace. Required.

hunt_id
Required
str

The hunt id (GUID). Required.

Keyword-Only Parameters

Name Description
filter
str

Filters the results, based on a Boolean condition. Optional. Default value is None.

Default value: None
orderby
str

Sorts the results. Optional. Default value is None.

Default value: None
top
int

Returns only the first n results. Optional. Default value is None.

Default value: None
skip_token
str

Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of HuntComment

Exceptions

Type Description