HuntsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SecurityInsightsMgmtClient's

<xref:hunts> attribute.

Constructor

HuntsOperations(*args, **kwargs)

Methods

create_or_update

Create or update a hunt.

delete

Delete a hunt.

get

Gets a hunt, without relations and comments.

list

Gets all hunts, without relations and comments.

create_or_update

Create or update a hunt.

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

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
Required
Hunt or <xref:JSON> or IO[bytes]

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

Returns

Type Description

Hunt. The Hunt is compatible with MutableMapping

Exceptions

Type Description

delete

Delete a hunt.

delete(resource_group_name: str, workspace_name: str, hunt_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.

Returns

Type Description

None

Exceptions

Type Description

get

Gets a hunt, without relations and comments.

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

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.

Returns

Type Description

Hunt. The Hunt is compatible with MutableMapping

Exceptions

Type Description

list

Gets all hunts, without relations and comments.

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

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.

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 Hunt

Exceptions

Type Description