ContentPackageOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SecurityInsightsMgmtClient's

<xref:content_package> attribute.

Constructor

ContentPackageOperations(*args, **kwargs)

Methods

install

Install a package to the workspace.

uninstall

Uninstall a package from the workspace.

install

Install a package to the workspace.

install(resource_group_name: str, workspace_name: str, package_id: str, package_installation_properties: _models.PackageModel, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PackageModel

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 monitor workspace. Required.

package_id
Required
str

package Id. Required.

package_installation_properties
Required
PackageModel or <xref:JSON> or IO[bytes]

Package installation properties. Is one of the following types: PackageModel, JSON, IO[bytes] Required.

Returns

Type Description

PackageModel. The PackageModel is compatible with MutableMapping

Exceptions

Type Description

uninstall

Uninstall a package from the workspace.

uninstall(resource_group_name: str, workspace_name: str, package_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 monitor workspace. Required.

package_id
Required
str

package Id. Required.

Returns

Type Description

None

Exceptions

Type Description