Content Package
Represents a Package in Azure Security Insights. Uses Azure REST API version 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview. Other available API versions: 2023-04-01-preview, 2023-05-01-preview, 2023-06-01-preview, 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-11-01, 2023-12-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview, 2024-10-01-preview, 2025-01-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native securityinsights [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Install a package to the workspace.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var contentPackage = new AzureNative.SecurityInsights.ContentPackage("contentPackage", new()
{
ContentId = "str.azure-sentinel-solution-str",
ContentKind = AzureNative.SecurityInsights.PackageKind.Solution,
ContentProductId = "str.azure-sentinel-solution-str-sl-igl6jawr4gwmu",
DisplayName = "str",
PackageId = "str.azure-sentinel-solution-str",
ResourceGroupName = "myRg",
Version = "2.0.0",
WorkspaceName = "myWorkspace",
});
});
package main
import (
securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securityinsights.NewContentPackage(ctx, "contentPackage", &securityinsights.ContentPackageArgs{
ContentId: pulumi.String("str.azure-sentinel-solution-str"),
ContentKind: pulumi.String(securityinsights.PackageKindSolution),
ContentProductId: pulumi.String("str.azure-sentinel-solution-str-sl-igl6jawr4gwmu"),
DisplayName: pulumi.String("str"),
PackageId: pulumi.String("str.azure-sentinel-solution-str"),
ResourceGroupName: pulumi.String("myRg"),
Version: pulumi.String("2.0.0"),
WorkspaceName: pulumi.String("myWorkspace"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securityinsights.ContentPackage;
import com.pulumi.azurenative.securityinsights.ContentPackageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var contentPackage = new ContentPackage("contentPackage", ContentPackageArgs.builder()
.contentId("str.azure-sentinel-solution-str")
.contentKind("Solution")
.contentProductId("str.azure-sentinel-solution-str-sl-igl6jawr4gwmu")
.displayName("str")
.packageId("str.azure-sentinel-solution-str")
.resourceGroupName("myRg")
.version("2.0.0")
.workspaceName("myWorkspace")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:securityinsights:ContentPackage str.azure-sentinel-solution-str /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/contentPackages/{packageId}
Properties
The author of the package
The Azure API version of the resource.
The categories of the package
The package kind
Unique ID for the content. It should be generated based on the contentId, contentKind and the contentVersion of the package
The version of the content schema.
The support tier of the package
The description of the package
The display name of the package
first publish date package item
Flag indicates if this template is deprecated
Flag indicates if this package is among the featured list.
last publish date for the package item
The publisher display name of the package
The source of the package
The support tier of the package
Azure Resource Manager metadata containing createdBy and modifiedBy information.
the tactics the resource covers
the techniques the resource covers, these have to be aligned with the tactics being used