1. Packages
  2. Azure Native v1
  3. API Docs
  4. insights
  5. getSubscriptionDiagnosticSetting
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.insights.getSubscriptionDiagnosticSetting

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Gets the active subscription diagnostic settings for the specified resource. API Version: 2017-05-01-preview.

    Using getSubscriptionDiagnosticSetting

    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 getSubscriptionDiagnosticSetting(args: GetSubscriptionDiagnosticSettingArgs, opts?: InvokeOptions): Promise<GetSubscriptionDiagnosticSettingResult>
    function getSubscriptionDiagnosticSettingOutput(args: GetSubscriptionDiagnosticSettingOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionDiagnosticSettingResult>
    def get_subscription_diagnostic_setting(name: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetSubscriptionDiagnosticSettingResult
    def get_subscription_diagnostic_setting_output(name: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionDiagnosticSettingResult]
    func LookupSubscriptionDiagnosticSetting(ctx *Context, args *LookupSubscriptionDiagnosticSettingArgs, opts ...InvokeOption) (*LookupSubscriptionDiagnosticSettingResult, error)
    func LookupSubscriptionDiagnosticSettingOutput(ctx *Context, args *LookupSubscriptionDiagnosticSettingOutputArgs, opts ...InvokeOption) LookupSubscriptionDiagnosticSettingResultOutput

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

    public static class GetSubscriptionDiagnosticSetting 
    {
        public static Task<GetSubscriptionDiagnosticSettingResult> InvokeAsync(GetSubscriptionDiagnosticSettingArgs args, InvokeOptions? opts = null)
        public static Output<GetSubscriptionDiagnosticSettingResult> Invoke(GetSubscriptionDiagnosticSettingInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSubscriptionDiagnosticSettingResult> getSubscriptionDiagnosticSetting(GetSubscriptionDiagnosticSettingArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:insights:getSubscriptionDiagnosticSetting
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the diagnostic setting.
    Name string
    The name of the diagnostic setting.
    name String
    The name of the diagnostic setting.
    name string
    The name of the diagnostic setting.
    name str
    The name of the diagnostic setting.
    name String
    The name of the diagnostic setting.

    getSubscriptionDiagnosticSetting Result

    The following output properties are available:

    Id string
    Azure resource Id
    Name string
    Azure resource name
    Type string
    Azure resource type
    EventHubAuthorizationRuleId string
    The resource Id for the event hub authorization rule.
    EventHubName string
    The name of the event hub. If none is specified, the default event hub will be selected.
    Location string
    Location of the resource
    Logs List<Pulumi.AzureNative.Insights.Outputs.SubscriptionLogSettingsResponse>
    The list of logs settings.
    ServiceBusRuleId string
    The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
    StorageAccountId string
    The resource ID of the storage account to which you would like to send Diagnostic Logs.
    WorkspaceId string
    The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
    Id string
    Azure resource Id
    Name string
    Azure resource name
    Type string
    Azure resource type
    EventHubAuthorizationRuleId string
    The resource Id for the event hub authorization rule.
    EventHubName string
    The name of the event hub. If none is specified, the default event hub will be selected.
    Location string
    Location of the resource
    Logs []SubscriptionLogSettingsResponse
    The list of logs settings.
    ServiceBusRuleId string
    The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
    StorageAccountId string
    The resource ID of the storage account to which you would like to send Diagnostic Logs.
    WorkspaceId string
    The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
    id String
    Azure resource Id
    name String
    Azure resource name
    type String
    Azure resource type
    eventHubAuthorizationRuleId String
    The resource Id for the event hub authorization rule.
    eventHubName String
    The name of the event hub. If none is specified, the default event hub will be selected.
    location String
    Location of the resource
    logs List<SubscriptionLogSettingsResponse>
    The list of logs settings.
    serviceBusRuleId String
    The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
    storageAccountId String
    The resource ID of the storage account to which you would like to send Diagnostic Logs.
    workspaceId String
    The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
    id string
    Azure resource Id
    name string
    Azure resource name
    type string
    Azure resource type
    eventHubAuthorizationRuleId string
    The resource Id for the event hub authorization rule.
    eventHubName string
    The name of the event hub. If none is specified, the default event hub will be selected.
    location string
    Location of the resource
    logs SubscriptionLogSettingsResponse[]
    The list of logs settings.
    serviceBusRuleId string
    The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
    storageAccountId string
    The resource ID of the storage account to which you would like to send Diagnostic Logs.
    workspaceId string
    The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
    id str
    Azure resource Id
    name str
    Azure resource name
    type str
    Azure resource type
    event_hub_authorization_rule_id str
    The resource Id for the event hub authorization rule.
    event_hub_name str
    The name of the event hub. If none is specified, the default event hub will be selected.
    location str
    Location of the resource
    logs Sequence[SubscriptionLogSettingsResponse]
    The list of logs settings.
    service_bus_rule_id str
    The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
    storage_account_id str
    The resource ID of the storage account to which you would like to send Diagnostic Logs.
    workspace_id str
    The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
    id String
    Azure resource Id
    name String
    Azure resource name
    type String
    Azure resource type
    eventHubAuthorizationRuleId String
    The resource Id for the event hub authorization rule.
    eventHubName String
    The name of the event hub. If none is specified, the default event hub will be selected.
    location String
    Location of the resource
    logs List<Property Map>
    The list of logs settings.
    serviceBusRuleId String
    The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
    storageAccountId String
    The resource ID of the storage account to which you would like to send Diagnostic Logs.
    workspaceId String
    The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2

    Supporting Types

    SubscriptionLogSettingsResponse

    Enabled bool
    a value indicating whether this log is enabled.
    Category string
    Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
    Enabled bool
    a value indicating whether this log is enabled.
    Category string
    Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
    enabled Boolean
    a value indicating whether this log is enabled.
    category String
    Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
    enabled boolean
    a value indicating whether this log is enabled.
    category string
    Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
    enabled bool
    a value indicating whether this log is enabled.
    category str
    Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
    enabled Boolean
    a value indicating whether this log is enabled.
    category String
    Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi