Metadata

class Metadata : KotlinCustomResource

Metadata resource definition. Uses Azure REST API version 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01. Other available API versions: 2023-02-01, 2023-03-01-preview, 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

Create/update minimal metadata.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var metadata = new AzureNative.SecurityInsights.Metadata("metadata", new()
{
ContentId = "c00ee137-7475-47c8-9cce-ec6f0f1bedd0",
Kind = "AnalyticsRule",
MetadataName = "metadataName",
ParentId = "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName",
ResourceGroupName = "myRg",
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.NewMetadata(ctx, "metadata", &securityinsights.MetadataArgs{
ContentId: pulumi.String("c00ee137-7475-47c8-9cce-ec6f0f1bedd0"),
Kind: pulumi.String("AnalyticsRule"),
MetadataName: pulumi.String("metadataName"),
ParentId: pulumi.String("/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName"),
ResourceGroupName: pulumi.String("myRg"),
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.Metadata;
import com.pulumi.azurenative.securityinsights.MetadataArgs;
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 metadata = new Metadata("metadata", MetadataArgs.builder()
.contentId("c00ee137-7475-47c8-9cce-ec6f0f1bedd0")
.kind("AnalyticsRule")
.metadataName("metadataName")
.parentId("/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName")
.resourceGroupName("myRg")
.workspaceName("myWorkspace")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:securityinsights:Metadata metadataName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}

Properties

Link copied to clipboard

The creator of the content item.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Categories for the solution content item

Link copied to clipboard
val contentId: Output<String>?

Static ID for the content. Used to identify dependencies and content from solutions or community. Hard-coded/static for out of the box content and solutions. Dynamic for user-created. This is the resource name

Link copied to clipboard

Schema version of the content. Can be used to distinguish between different flow based on the schema version

Link copied to clipboard
val customVersion: Output<String>?

The custom version of the content. A optional free text

Link copied to clipboard

Dependencies for the content item, what other content items it requires to work. Can describe more complex dependencies using a recursive/nested structure. For a single dependency an id/kind/version can be supplied or operator/criteria for complex formats.

Link copied to clipboard
val etag: Output<String>?

Etag of the azure resource

Link copied to clipboard
val firstPublishDate: Output<String>?

first publish date solution content item

Link copied to clipboard
val icon: Output<String>?

the icon identifier. this id can later be fetched from the solution template

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>

The kind of content the metadata is for.

Link copied to clipboard
val lastPublishDate: Output<String>?

last publish date for the solution content item

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val parentId: Output<String>

Full parent resource ID of the content item the metadata is for. This is the full resource ID including the scope (subscription and resource group)

Link copied to clipboard
val previewImages: Output<List<String>>?

preview image file names. These will be taken from the solution artifacts

Link copied to clipboard

preview image file names. These will be taken from the solution artifacts. used for dark theme support

Link copied to clipboard
val providers: Output<List<String>>?

Providers for the solution content item

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Source of the content. This is where/how it was created.

Link copied to clipboard

Support information for the metadata - type, name, contact information

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard

the tactics the resource covers

Link copied to clipboard

the techniques the resource covers, these have to be aligned with the tactics being used

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>?

Version of the content. Default and recommended format is numeric (e.g. 1, 1.0, 1.0.0, 1.0.0.0), following ARM template best practices. Can also be any string, but then we cannot guarantee any version checks