Class Incident


  • public class Incident
    extends com.pulumi.resources.CustomResource
    Represents an incident in Azure Security Insights. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-01-01. Other available API versions: 2021-03-01-preview, 2023-02-01-preview, 2023-03-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. ## Example Usage ### Creates or updates an incident. ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.securityinsights.Incident; import com.pulumi.azurenative.securityinsights.IncidentArgs; 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 incident = new Incident("incident", IncidentArgs.builder() .classification("FalsePositive") .classificationComment("Not a malicious activity") .classificationReason("IncorrectAlertLogic") .description("This is a demo incident") .firstActivityTimeUtc("2019-01-01T13:00:30Z") .incidentId("73e01a99-5cd7-4139-a149-9f2736ff2ab5") .lastActivityTimeUtc("2019-01-01T13:05:30Z") .owner(Map.of("objectId", "2046feea-040d-4a46-9e2b-91c2941bfa70")) .resourceGroupName("myRg") .severity("High") .status("Closed") .title("My incident") .workspaceName("myWorkspace") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:securityinsights:Incident 73e01a99-5cd7-4139-a149-9f2736ff2ab5 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId} ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      Incident​(java.lang.String name)  
      Incident​(java.lang.String name, IncidentArgs args)  
      Incident​(java.lang.String name, IncidentArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<IncidentAdditionalDataResponse> additionalData()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> classification()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> classificationComment()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> classificationReason()  
      com.pulumi.core.Output<java.lang.String> createdTimeUtc()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> etag()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> firstActivityTimeUtc()  
      static Incident get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.Integer> incidentNumber()  
      com.pulumi.core.Output<java.lang.String> incidentUrl()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<IncidentLabelResponse>>> labels()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> lastActivityTimeUtc()  
      com.pulumi.core.Output<java.lang.String> lastModifiedTimeUtc()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.Optional<IncidentOwnerInfoResponse>> owner()  
      com.pulumi.core.Output<java.lang.String> providerIncidentId()  
      com.pulumi.core.Output<java.lang.String> providerName()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> relatedAnalyticRuleIds()  
      com.pulumi.core.Output<java.lang.String> severity()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<SystemDataResponse> systemData()  
      com.pulumi.core.Output<java.lang.String> title()  
      com.pulumi.core.Output<java.lang.String> type()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Incident

        public Incident​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Incident

        public Incident​(java.lang.String name,
                        IncidentArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Incident

        public Incident​(java.lang.String name,
                        IncidentArgs args,
                        @Nullable
                        com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • classification

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> classification()
        Returns:
        The reason the incident was closed
      • classificationComment

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> classificationComment()
        Returns:
        Describes the reason the incident was closed
      • classificationReason

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> classificationReason()
        Returns:
        The classification reason the incident was closed with
      • createdTimeUtc

        public com.pulumi.core.Output<java.lang.String> createdTimeUtc()
        Returns:
        The time the incident was created
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        The description of the incident
      • etag

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> etag()
        Returns:
        Etag of the azure resource
      • firstActivityTimeUtc

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> firstActivityTimeUtc()
        Returns:
        The time of the first activity in the incident
      • incidentNumber

        public com.pulumi.core.Output<java.lang.Integer> incidentNumber()
        Returns:
        A sequential number
      • incidentUrl

        public com.pulumi.core.Output<java.lang.String> incidentUrl()
        Returns:
        The deep-link url to the incident in Azure portal
      • labels

        public com.pulumi.core.Output<java.util.Optional<java.util.List<IncidentLabelResponse>>> labels()
        Returns:
        List of labels relevant to this incident
      • lastActivityTimeUtc

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> lastActivityTimeUtc()
        Returns:
        The time of the last activity in the incident
      • lastModifiedTimeUtc

        public com.pulumi.core.Output<java.lang.String> lastModifiedTimeUtc()
        Returns:
        The last time the incident was updated
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the resource
      • owner

        public com.pulumi.core.Output<java.util.Optional<IncidentOwnerInfoResponse>> owner()
        Returns:
        Describes a user that the incident is assigned to
      • providerIncidentId

        public com.pulumi.core.Output<java.lang.String> providerIncidentId()
        Returns:
        The incident ID assigned by the incident provider
      • providerName

        public com.pulumi.core.Output<java.lang.String> providerName()
        Returns:
        The name of the source provider that generated the incident
      • relatedAnalyticRuleIds

        public com.pulumi.core.Output<java.util.List<java.lang.String>> relatedAnalyticRuleIds()
        Returns:
        List of resource ids of Analytic rules related to the incident
      • severity

        public com.pulumi.core.Output<java.lang.String> severity()
        Returns:
        The severity of the incident
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        The status of the incident
      • systemData

        public com.pulumi.core.Output<SystemDataResponse> systemData()
        Returns:
        Azure Resource Manager metadata containing createdBy and modifiedBy information.
      • title

        public com.pulumi.core.Output<java.lang.String> title()
        Returns:
        The title of the incident
      • type

        public com.pulumi.core.Output<java.lang.String> type()
        Returns:
        The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
      • get

        public static Incident get​(java.lang.String name,
                                   com.pulumi.core.Output<java.lang.String> id,
                                   @Nullable
                                   com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        options - Optional settings to control the behavior of the CustomResource.