import * as pulumi from "@pulumi/pulumi"; import * as types from "./types"; /** * Gets the details of the Diagnostic for an API specified by its identifier. * * Uses Azure REST API version 2024-06-01-preview. * * Other available API versions: 2023-09-01-preview, 2024-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native apimanagement [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getWorkspaceApiDiagnostic(args: GetWorkspaceApiDiagnosticArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetWorkspaceApiDiagnosticArgs { /** * API identifier. Must be unique in the current API Management service instance. */ apiId: string; /** * Diagnostic identifier. Must be unique in the current API Management service instance. */ diagnosticId: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the API Management service. */ serviceName: string; /** * Workspace identifier. Must be unique in the current API Management service instance. */ workspaceId: string; } /** * Diagnostic details. */ export interface GetWorkspaceApiDiagnosticResult { /** * Specifies for what type of messages sampling settings should not apply. */ readonly alwaysLog?: string; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Diagnostic settings for incoming/outgoing HTTP messages to the Backend */ readonly backend?: types.outputs.PipelineDiagnosticSettingsResponse; /** * Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. */ readonly frontend?: types.outputs.PipelineDiagnosticSettingsResponse; /** * Sets correlation protocol to use for Application Insights diagnostics. */ readonly httpCorrelationProtocol?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * Large Language Models diagnostic settings */ readonly largeLanguageModel?: types.outputs.LLMDiagnosticSettingsResponse; /** * Log the ClientIP. Default is false. */ readonly logClientIp?: boolean; /** * Resource Id of a target logger. */ readonly loggerId: string; /** * Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings. */ readonly metrics?: boolean; /** * The name of the resource */ readonly name: string; /** * The format of the Operation Name for Application Insights telemetries. Default is Name. */ readonly operationNameFormat?: string; /** * Sampling settings for Diagnostic. */ readonly sampling?: types.outputs.SamplingSettingsResponse; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; /** * The verbosity level applied to traces emitted by trace policies. */ readonly verbosity?: string; } /** * Gets the details of the Diagnostic for an API specified by its identifier. * * Uses Azure REST API version 2024-06-01-preview. * * Other available API versions: 2023-09-01-preview, 2024-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native apimanagement [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getWorkspaceApiDiagnosticOutput(args: GetWorkspaceApiDiagnosticOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; export interface GetWorkspaceApiDiagnosticOutputArgs { /** * API identifier. Must be unique in the current API Management service instance. */ apiId: pulumi.Input; /** * Diagnostic identifier. Must be unique in the current API Management service instance. */ diagnosticId: pulumi.Input; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input; /** * The name of the API Management service. */ serviceName: pulumi.Input; /** * Workspace identifier. Must be unique in the current API Management service instance. */ workspaceId: pulumi.Input; }