@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets the active diagnostic setting for AadIam.
*
* Uses Azure REST API version 2017-04-01.
*/
export declare function getDiagnosticSetting(args: GetDiagnosticSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetDiagnosticSettingResult>;
export interface GetDiagnosticSettingArgs {
/**
* The name of the diagnostic setting.
*/
name: 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;
/**
* Azure resource Id
*/
readonly id: string;
/**
* The list of logs settings.
*/
readonly logs?: outputs.aadiam.LogSettingsResponse[];
/**
* Azure resource name
*/
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;
/**
* Azure resource type
*/
readonly type: string;
/**
* The workspace ID (resource ID of a Log Analytics workspace) for a 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 setting for AadIam.
*
* Uses Azure REST API version 2017-04-01.
*/
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>;
}