get Alert Rule Template
Use this data source to access information about an existing Sentinel Alert Rule Template.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.sentinel.SentinelFunctions;
import com.pulumi.azure.sentinel.inputs.GetAlertRuleTemplateArgs;
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) {
final var example = SentinelFunctions.getAlertRuleTemplate(GetAlertRuleTemplateArgs.builder()
.logAnalyticsWorkspaceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1")
.displayName("Create incidents based on Azure Security Center for IoT alerts")
.build());
ctx.export("id", example.applyValue(getAlertRuleTemplateResult -> getAlertRuleTemplateResult.id()));
}
}
Return
A collection of values returned by getAlertRuleTemplate.
Parameters
A collection of arguments for invoking getAlertRuleTemplate.
Return
A collection of values returned by getAlertRuleTemplate.
See also
Parameters
The display name of this Sentinel Alert Rule Template. Either display_name
or name
have to be specified.
NOTE As
display_name
is not unique, errors may occur when there are multiple Sentinel Alert Rule Template with samedisplay_name
.
The ID of the Log Analytics Workspace.
The name of this Sentinel Alert Rule Template. Either display_name
or name
have to be specified.
Return
A collection of values returned by getAlertRuleTemplate.
See also
Parameters
Builder for com.pulumi.azure.sentinel.kotlin.inputs.GetAlertRuleTemplatePlainArgs.