1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. getDefenderForStorage
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.security.getDefenderForStorage

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Gets the Defender for Storage settings for the specified storage account.

Uses Azure REST API version 2024-10-01-preview.

Other available API versions: 2022-12-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native security [ApiVersion]. See the version guide for details.

Using getDefenderForStorage

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDefenderForStorage(args: GetDefenderForStorageArgs, opts?: InvokeOptions): Promise<GetDefenderForStorageResult>
function getDefenderForStorageOutput(args: GetDefenderForStorageOutputArgs, opts?: InvokeOptions): Output<GetDefenderForStorageResult>
Copy
def get_defender_for_storage(resource_id: Optional[str] = None,
                             setting_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDefenderForStorageResult
def get_defender_for_storage_output(resource_id: Optional[pulumi.Input[str]] = None,
                             setting_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDefenderForStorageResult]
Copy
func LookupDefenderForStorage(ctx *Context, args *LookupDefenderForStorageArgs, opts ...InvokeOption) (*LookupDefenderForStorageResult, error)
func LookupDefenderForStorageOutput(ctx *Context, args *LookupDefenderForStorageOutputArgs, opts ...InvokeOption) LookupDefenderForStorageResultOutput
Copy

> Note: This function is named LookupDefenderForStorage in the Go SDK.

public static class GetDefenderForStorage 
{
    public static Task<GetDefenderForStorageResult> InvokeAsync(GetDefenderForStorageArgs args, InvokeOptions? opts = null)
    public static Output<GetDefenderForStorageResult> Invoke(GetDefenderForStorageInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDefenderForStorageResult> getDefenderForStorage(GetDefenderForStorageArgs args, InvokeOptions options)
public static Output<GetDefenderForStorageResult> getDefenderForStorage(GetDefenderForStorageArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:security:getDefenderForStorage
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The identifier of the resource.
SettingName
This property is required.
Changes to this property will trigger replacement.
string
Defender for Storage setting name.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The identifier of the resource.
SettingName
This property is required.
Changes to this property will trigger replacement.
string
Defender for Storage setting name.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The identifier of the resource.
settingName
This property is required.
Changes to this property will trigger replacement.
String
Defender for Storage setting name.
resourceId
This property is required.
Changes to this property will trigger replacement.
string
The identifier of the resource.
settingName
This property is required.
Changes to this property will trigger replacement.
string
Defender for Storage setting name.
resource_id
This property is required.
Changes to this property will trigger replacement.
str
The identifier of the resource.
setting_name
This property is required.
Changes to this property will trigger replacement.
str
Defender for Storage setting name.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The identifier of the resource.
settingName
This property is required.
Changes to this property will trigger replacement.
String
Defender for Storage setting name.

getDefenderForStorage Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Resource Id
Name string
Resource name
Properties Pulumi.AzureNative.Security.Outputs.DefenderForStorageSettingPropertiesResponse
Defender for Storage resource properties.
Type string
Resource type
AzureApiVersion string
The Azure API version of the resource.
Id string
Resource Id
Name string
Resource name
Properties DefenderForStorageSettingPropertiesResponse
Defender for Storage resource properties.
Type string
Resource type
azureApiVersion String
The Azure API version of the resource.
id String
Resource Id
name String
Resource name
properties DefenderForStorageSettingPropertiesResponse
Defender for Storage resource properties.
type String
Resource type
azureApiVersion string
The Azure API version of the resource.
id string
Resource Id
name string
Resource name
properties DefenderForStorageSettingPropertiesResponse
Defender for Storage resource properties.
type string
Resource type
azure_api_version str
The Azure API version of the resource.
id str
Resource Id
name str
Resource name
properties DefenderForStorageSettingPropertiesResponse
Defender for Storage resource properties.
type str
Resource type
azureApiVersion String
The Azure API version of the resource.
id String
Resource Id
name String
Resource name
properties Property Map
Defender for Storage resource properties.
type String
Resource type

Supporting Types

DefenderForStorageSettingPropertiesResponse

IsEnabled bool
Indicates whether Defender for Storage is enabled on this storage account.
MalwareScanning Pulumi.AzureNative.Security.Inputs.MalwareScanningPropertiesResponse
Properties of Malware Scanning.
OverrideSubscriptionLevelSettings bool
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
SensitiveDataDiscovery Pulumi.AzureNative.Security.Inputs.SensitiveDataDiscoveryPropertiesResponse
Properties of Sensitive Data Discovery.
IsEnabled bool
Indicates whether Defender for Storage is enabled on this storage account.
MalwareScanning MalwareScanningPropertiesResponse
Properties of Malware Scanning.
OverrideSubscriptionLevelSettings bool
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
SensitiveDataDiscovery SensitiveDataDiscoveryPropertiesResponse
Properties of Sensitive Data Discovery.
isEnabled Boolean
Indicates whether Defender for Storage is enabled on this storage account.
malwareScanning MalwareScanningPropertiesResponse
Properties of Malware Scanning.
overrideSubscriptionLevelSettings Boolean
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
sensitiveDataDiscovery SensitiveDataDiscoveryPropertiesResponse
Properties of Sensitive Data Discovery.
isEnabled boolean
Indicates whether Defender for Storage is enabled on this storage account.
malwareScanning MalwareScanningPropertiesResponse
Properties of Malware Scanning.
overrideSubscriptionLevelSettings boolean
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
sensitiveDataDiscovery SensitiveDataDiscoveryPropertiesResponse
Properties of Sensitive Data Discovery.
is_enabled bool
Indicates whether Defender for Storage is enabled on this storage account.
malware_scanning MalwareScanningPropertiesResponse
Properties of Malware Scanning.
override_subscription_level_settings bool
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
sensitive_data_discovery SensitiveDataDiscoveryPropertiesResponse
Properties of Sensitive Data Discovery.
isEnabled Boolean
Indicates whether Defender for Storage is enabled on this storage account.
malwareScanning Property Map
Properties of Malware Scanning.
overrideSubscriptionLevelSettings Boolean
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
sensitiveDataDiscovery Property Map
Properties of Sensitive Data Discovery.

MalwareScanningPropertiesResponse

OperationStatus This property is required. Pulumi.AzureNative.Security.Inputs.OperationStatusResponse
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
OnUpload Pulumi.AzureNative.Security.Inputs.OnUploadPropertiesResponse
Properties of On Upload malware scanning.
ScanResultsEventGridTopicResourceId string
Optional. Resource id of an Event Grid Topic to send scan results to.
OperationStatus This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
OnUpload OnUploadPropertiesResponse
Properties of On Upload malware scanning.
ScanResultsEventGridTopicResourceId string
Optional. Resource id of an Event Grid Topic to send scan results to.
operationStatus This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
onUpload OnUploadPropertiesResponse
Properties of On Upload malware scanning.
scanResultsEventGridTopicResourceId String
Optional. Resource id of an Event Grid Topic to send scan results to.
operationStatus This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
onUpload OnUploadPropertiesResponse
Properties of On Upload malware scanning.
scanResultsEventGridTopicResourceId string
Optional. Resource id of an Event Grid Topic to send scan results to.
operation_status This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
on_upload OnUploadPropertiesResponse
Properties of On Upload malware scanning.
scan_results_event_grid_topic_resource_id str
Optional. Resource id of an Event Grid Topic to send scan results to.
operationStatus This property is required. Property Map
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
onUpload Property Map
Properties of On Upload malware scanning.
scanResultsEventGridTopicResourceId String
Optional. Resource id of an Event Grid Topic to send scan results to.

OnUploadPropertiesResponse

CapGBPerMonth int
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
IsEnabled bool
Indicates whether On Upload malware scanning should be enabled.
CapGBPerMonth int
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
IsEnabled bool
Indicates whether On Upload malware scanning should be enabled.
capGBPerMonth Integer
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
isEnabled Boolean
Indicates whether On Upload malware scanning should be enabled.
capGBPerMonth number
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
isEnabled boolean
Indicates whether On Upload malware scanning should be enabled.
cap_gb_per_month int
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
is_enabled bool
Indicates whether On Upload malware scanning should be enabled.
capGBPerMonth Number
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
isEnabled Boolean
Indicates whether On Upload malware scanning should be enabled.

OperationStatusResponse

Code string
The operation status code.
Message string
Additional information regarding the success/failure of the operation.
Code string
The operation status code.
Message string
Additional information regarding the success/failure of the operation.
code String
The operation status code.
message String
Additional information regarding the success/failure of the operation.
code string
The operation status code.
message string
Additional information regarding the success/failure of the operation.
code str
The operation status code.
message str
Additional information regarding the success/failure of the operation.
code String
The operation status code.
message String
Additional information regarding the success/failure of the operation.

SensitiveDataDiscoveryPropertiesResponse

OperationStatus This property is required. Pulumi.AzureNative.Security.Inputs.OperationStatusResponse
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
IsEnabled bool
Indicates whether Sensitive Data Discovery should be enabled.
OperationStatus This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
IsEnabled bool
Indicates whether Sensitive Data Discovery should be enabled.
operationStatus This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
isEnabled Boolean
Indicates whether Sensitive Data Discovery should be enabled.
operationStatus This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
isEnabled boolean
Indicates whether Sensitive Data Discovery should be enabled.
operation_status This property is required. OperationStatusResponse
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
is_enabled bool
Indicates whether Sensitive Data Discovery should be enabled.
operationStatus This property is required. Property Map
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
isEnabled Boolean
Indicates whether Sensitive Data Discovery should be enabled.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi