@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.06 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets the active subscription diagnostic settings for the specified resource.
*
* Uses Azure REST API version 2021-05-01-preview.
*/
export declare function getSubscriptionDiagnosticSetting(args: GetSubscriptionDiagnosticSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetSubscriptionDiagnosticSettingResult>;
export interface GetSubscriptionDiagnosticSettingArgs {
/**
* The name of the diagnostic setting.
*/
name: string;
}
/**
* The subscription diagnostic setting resource.
*/
export interface GetSubscriptionDiagnosticSettingResult {
/**
* 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;
/**
* The list of logs settings.
*/
readonly logs?: outputs.monitor.SubscriptionLogSettingsResponse[];
/**
* The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
*/
readonly marketplacePartnerId?: string;
/**
* 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 subscription diagnostic settings for the specified resource.
*
* Uses Azure REST API version 2021-05-01-preview.
*/
export declare function getSubscriptionDiagnosticSettingOutput(args: GetSubscriptionDiagnosticSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSubscriptionDiagnosticSettingResult>;
export interface GetSubscriptionDiagnosticSettingOutputArgs {
/**
* The name of the diagnostic setting.
*/
name: pulumi.Input<string>;
}