This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi
azure-native.insights.getSubscriptionDiagnosticSetting
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi
Gets the active subscription diagnostic settings for the specified resource. Azure REST API version: 2021-05-01-preview.
Other available API versions: 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
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Insights. Outputs. System Data Response - The system metadata related to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- string
- The resource Id for the event hub authorization rule.
- Event
Hub stringName - The name of the event hub. If none is specified, the default event hub will be selected.
- Logs
List<Pulumi.
Azure Native. Insights. Outputs. Subscription Log Settings Response> - The list of logs settings.
- Marketplace
Partner stringId - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- Service
Bus stringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- Storage
Account stringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- Workspace
Id 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
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- string
- The resource Id for the event hub authorization rule.
- Event
Hub stringName - The name of the event hub. If none is specified, the default event hub will be selected.
- Logs
[]Subscription
Log Settings Response - The list of logs settings.
- Marketplace
Partner stringId - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- Service
Bus stringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- Storage
Account stringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- Workspace
Id 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
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- String
- The resource Id for the event hub authorization rule.
- event
Hub StringName - The name of the event hub. If none is specified, the default event hub will be selected.
- logs
List<Subscription
Log Settings Response> - The list of logs settings.
- marketplace
Partner StringId - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- service
Bus StringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage
Account StringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace
Id 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
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name string
- The name of the resource
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- string
- The resource Id for the event hub authorization rule.
- event
Hub stringName - The name of the event hub. If none is specified, the default event hub will be selected.
- logs
Subscription
Log Settings Response[] - The list of logs settings.
- marketplace
Partner stringId - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- service
Bus stringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage
Account stringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace
Id 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
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name str
- The name of the resource
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- str
- The resource Id for the event hub authorization rule.
- event_
hub_ strname - The name of the event hub. If none is specified, the default event hub will be selected.
- logs
Sequence[Subscription
Log Settings Response] - The list of logs settings.
- marketplace_
partner_ strid - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- service_
bus_ strrule_ id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage_
account_ strid - 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
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- system
Data Property Map - The system metadata related to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- String
- The resource Id for the event hub authorization rule.
- event
Hub StringName - The name of the event hub. If none is specified, the default event hub will be selected.
- logs List<Property Map>
- The list of logs settings.
- marketplace
Partner StringId - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- service
Bus StringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage
Account StringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace
Id 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.
- Category
Group string - Name of a Subscription Diagnostic Log category group 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.
- Category
Group string - Name of a Subscription Diagnostic Log category group 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.
- category
Group String - Name of a Subscription Diagnostic Log category group 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.
- category
Group string - Name of a Subscription Diagnostic Log category group 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.
- category_
group str - Name of a Subscription Diagnostic Log category group 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.
- category
Group String - Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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 v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi