Get-MgSecurityAction

Get securityActions from security

Syntax

Get-MgSecurityAction
   [-ExpandProperty <String[]>]
   [-Property <String[]>]
   [-Filter <String>]
   [-Search <String>]
   [-Skip <Int32>]
   [-Sort <String[]>]
   [-Top <Int32>]
   [-PageSize <Int32>]
   [-All]
   [-CountVariable <String>]
   [<CommonParameters>]
Get-MgSecurityAction
   -SecurityActionId <String>
   [-ExpandProperty <String[]>]
   [-Property <String[]>]
   [<CommonParameters>]
Get-MgSecurityAction
   -InputObject <ISecurityIdentity>
   [-ExpandProperty <String[]>]
   [-Property <String[]>]
   [<CommonParameters>]

Description

Get securityActions from security

Examples

Example 1: Using the Get-MgSecurityAction Cmdlet

Import-Module Microsoft.Graph.Security
Get-MgSecurityAction -SecurityActionId $securityActionId

This example shows how to use the Get-MgSecurityAction Cmdlet. To learn about permissions for this resource, see the permissions reference.

Example 2: Using the Get-MgSecurityAction Cmdlet

Import-Module Microsoft.Graph.Security
Get-MgSecurityAction

This example shows how to use the Get-MgSecurityAction Cmdlet. To learn about permissions for this resource, see the permissions reference.

Parameters

-All

List all pages.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-CountVariable

Specifies a count of the total number of items in a collection. By default, this variable will be set in the global scope.

Type:String
Aliases:CV
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ExpandProperty

Expand related entities

Type:String[]
Aliases:Expand
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Filter

Filter items by property values

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, please use Get-Help -Online and see NOTES section for INPUTOBJECT properties and create a hash table.

Type:ISecurityIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-PageSize

Sets the page size of results.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Property

Select properties to be returned

Type:String[]
Aliases:Select
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Search

Search items by search phrases

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SecurityActionId

key: id of securityAction

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Skip

Skip the first n items

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Sort

Order items by property values

Type:String[]
Aliases:OrderBy
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Top

Show only the first n items

Type:Int32
Aliases:Limit
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.ISecurityIdentity

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSecurityAction

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <ISecurityIdentity>: Identity Parameter

  • [AlertId <String>]: key: id of alert
  • [AuthoredNoteId <String>]: key: id of authoredNote
  • [CaseOperationId <String>]: key: id of caseOperation
  • [CloudAppSecurityProfileId <String>]: key: id of cloudAppSecurityProfile
  • [DataSourceId <String>]: key: id of dataSource
  • [DispositionReviewStageId <String>]: key: id of dispositionReviewStage
  • [DomainSecurityProfileId <String>]: key: id of domainSecurityProfile
  • [EdiscoveryCaseId <String>]: key: id of ediscoveryCase
  • [EdiscoveryCustodianId <String>]: key: id of ediscoveryCustodian
  • [EdiscoveryFileId <String>]: key: id of ediscoveryFile
  • [EdiscoveryHoldPolicyId <String>]: key: id of ediscoveryHoldPolicy
  • [EdiscoveryNoncustodialDataSourceId <String>]: key: id of ediscoveryNoncustodialDataSource
  • [EdiscoveryReviewSetId <String>]: key: id of ediscoveryReviewSet
  • [EdiscoveryReviewSetQueryId <String>]: key: id of ediscoveryReviewSetQuery
  • [EdiscoveryReviewTagId <String>]: key: id of ediscoveryReviewTag
  • [EdiscoveryReviewTagId1 <String>]: key: id of ediscoveryReviewTag
  • [EdiscoverySearchId <String>]: key: id of ediscoverySearch
  • [EmailThreatSubmissionId <String>]: key: id of emailThreatSubmission
  • [EmailThreatSubmissionPolicyId <String>]: key: id of emailThreatSubmissionPolicy
  • [FileSecurityProfileId <String>]: key: id of fileSecurityProfile
  • [FileThreatSubmissionId <String>]: key: id of fileThreatSubmission
  • [HostSecurityProfileId <String>]: key: id of hostSecurityProfile
  • [IPSecurityProfileId <String>]: key: id of ipSecurityProfile
  • [IncidentId <String>]: key: id of incident
  • [ProviderTenantSettingId <String>]: key: id of providerTenantSetting
  • [RetentionEventId <String>]: key: id of retentionEvent
  • [RetentionEventTypeId <String>]: key: id of retentionEventType
  • [RetentionLabelId <String>]: key: id of retentionLabel
  • [SecureScoreControlProfileId <String>]: key: id of secureScoreControlProfile
  • [SecureScoreId <String>]: key: id of secureScore
  • [SecurityActionId <String>]: key: id of securityAction
  • [SensitivityLabelId <String>]: key: id of sensitivityLabel
  • [SimulationAutomationId <String>]: key: id of simulationAutomation
  • [SimulationAutomationRunId <String>]: key: id of simulationAutomationRun
  • [SimulationId <String>]: key: id of simulation
  • [SiteSourceId <String>]: key: id of siteSource
  • [SubjectRightsRequestId <String>]: key: id of subjectRightsRequest
  • [TiIndicatorId <String>]: key: id of tiIndicator
  • [UnifiedGroupSourceId <String>]: key: id of unifiedGroupSource
  • [UrlThreatSubmissionId <String>]: key: id of urlThreatSubmission
  • [UserSecurityProfileId <String>]: key: id of userSecurityProfile
  • [UserSourceId <String>]: key: id of userSource