MetadataArgs

data class MetadataArgs(val author: Output<MetadataAuthorArgs>? = null, val categories: Output<MetadataCategoriesArgs>? = null, val contentId: Output<String>? = null, val dependencies: Output<MetadataDependenciesArgs>? = null, val firstPublishDate: Output<String>? = null, val kind: Output<Either<String, Kind>>? = null, val lastPublishDate: Output<String>? = null, val metadataName: Output<String>? = null, val operationalInsightsResourceProvider: Output<String>? = null, val parentId: Output<String>? = null, val providers: Output<List<String>>? = null, val resourceGroupName: Output<String>? = null, val source: Output<MetadataSourceArgs>? = null, val support: Output<MetadataSupportArgs>? = null, val version: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<MetadataArgs>

Metadata resource definition. API Version: 2021-03-01-preview.

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",
OperationalInsightsResourceProvider = "Microsoft.OperationalInsights",
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"
"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"),
OperationalInsightsResourceProvider: pulumi.String("Microsoft.OperationalInsights"),
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")
.operationalInsightsResourceProvider("Microsoft.OperationalInsights")
.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/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/metadata/metadataName

Constructors

Link copied to clipboard
constructor(author: Output<MetadataAuthorArgs>? = null, categories: Output<MetadataCategoriesArgs>? = null, contentId: Output<String>? = null, dependencies: Output<MetadataDependenciesArgs>? = null, firstPublishDate: Output<String>? = null, kind: Output<Either<String, Kind>>? = null, lastPublishDate: Output<String>? = null, metadataName: Output<String>? = null, operationalInsightsResourceProvider: Output<String>? = null, parentId: Output<String>? = null, providers: Output<List<String>>? = null, resourceGroupName: Output<String>? = null, source: Output<MetadataSourceArgs>? = null, support: Output<MetadataSupportArgs>? = null, version: Output<String>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard
val author: Output<MetadataAuthorArgs>? = null

The creator of the content item.

Link copied to clipboard
val categories: Output<MetadataCategoriesArgs>? = null

Categories for the solution content item

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

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

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 firstPublishDate: Output<String>? = null

first publish date solution content item

Link copied to clipboard
val kind: Output<Either<String, Kind>>? = null

The kind of content the metadata is for.

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

last publish date for the solution content item

Link copied to clipboard
val metadataName: Output<String>? = null

The Metadata name.

Link copied to clipboard

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

Link copied to clipboard
val parentId: Output<String>? = null

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 providers: Output<List<String>>? = null

Providers for the solution content item

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val source: Output<MetadataSourceArgs>? = null

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

Link copied to clipboard
val support: Output<MetadataSupportArgs>? = null

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

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

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

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the workspace.

Functions

Link copied to clipboard
open override fun toJava(): MetadataArgs