@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 5.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a given incident.
*
* Uses Azure REST API version 2024-09-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, 2025-04-01-preview, 2025-06-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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getIncident(args: GetIncidentArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentResult>;
export interface GetIncidentArgs {
/**
* Incident ID
*/
incidentId: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the workspace.
*/
workspaceName: string;
}
/**
* Represents an incident in Azure Security Insights.
*/
export interface GetIncidentResult {
/**
* Additional data on the incident
*/
readonly additionalData: outputs.securityinsights.IncidentAdditionalDataResponse;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The reason the incident was closed
*/
readonly classification?: string;
/**
* Describes the reason the incident was closed
*/
readonly classificationComment?: string;
/**
* The classification reason the incident was closed with
*/
readonly classificationReason?: string;
/**
* The time the incident was created
*/
readonly createdTimeUtc: string;
/**
* The description of the incident
*/
readonly description?: string;
/**
* Etag of the azure resource
*/
readonly etag?: string;
/**
* The time of the first activity in the incident
*/
readonly firstActivityTimeUtc?: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* A sequential number
*/
readonly incidentNumber: number;
/**
* The deep-link url to the incident in Azure portal
*/
readonly incidentUrl: string;
/**
* List of labels relevant to this incident
*/
readonly labels?: outputs.securityinsights.IncidentLabelResponse[];
/**
* The time of the last activity in the incident
*/
readonly lastActivityTimeUtc?: string;
/**
* The last time the incident was updated
*/
readonly lastModifiedTimeUtc: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Describes a user that the incident is assigned to
*/
readonly owner?: outputs.securityinsights.IncidentOwnerInfoResponse;
/**
* The incident ID assigned by the incident provider
*/
readonly providerIncidentId: string;
/**
* The name of the source provider that generated the incident
*/
readonly providerName: string;
/**
* List of resource ids of Analytic rules related to the incident
*/
readonly relatedAnalyticRuleIds: string[];
/**
* The severity of the incident
*/
readonly severity: string;
/**
* The status of the incident
*/
readonly status: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.securityinsights.SystemDataResponse;
/**
* The title of the incident
*/
readonly title: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Gets a given incident.
*
* Uses Azure REST API version 2024-09-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, 2025-04-01-preview, 2025-06-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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getIncidentOutput(args: GetIncidentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentResult>;
export interface GetIncidentOutputArgs {
/**
* Incident ID
*/
incidentId: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the workspace.
*/
workspaceName: pulumi.Input<string>;
}