UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

96 lines (95 loc) 3.55 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets the active diagnostic settings for the specified resource. * * Uses Azure REST API version 2021-05-01-preview. */ export declare function getDiagnosticSetting(args: GetDiagnosticSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetDiagnosticSettingResult>; export interface GetDiagnosticSettingArgs { /** * The name of the diagnostic setting. */ name: string; /** * The identifier of the resource. */ resourceUri: string; } /** * The diagnostic setting resource. */ export interface GetDiagnosticSettingResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The resource Id for the event hub authorization rule. */ readonly eventHubAuthorizationRuleId?: string; /** * The name of the event hub. If none is specified, the default event hub will be selected. */ readonly eventHubName?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.) */ readonly logAnalyticsDestinationType?: string; /** * The list of logs settings. */ readonly logs?: outputs.monitor.LogSettingsResponse[]; /** * The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. */ readonly marketplacePartnerId?: string; /** * The list of metric settings. */ readonly metrics?: outputs.monitor.MetricSettingsResponse[]; /** * The name of the resource */ readonly name: string; /** * The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. */ readonly serviceBusRuleId?: string; /** * The resource ID of the storage account to which you would like to send Diagnostic Logs. */ readonly storageAccountId?: string; /** * The system metadata related to this resource. */ readonly systemData: outputs.monitor.SystemDataResponse; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: 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 */ readonly workspaceId?: string; } /** * Gets the active diagnostic settings for the specified resource. * * Uses Azure REST API version 2021-05-01-preview. */ export declare function getDiagnosticSettingOutput(args: GetDiagnosticSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDiagnosticSettingResult>; export interface GetDiagnosticSettingOutputArgs { /** * The name of the diagnostic setting. */ name: pulumi.Input<string>; /** * The identifier of the resource. */ resourceUri: pulumi.Input<string>; }