import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing Cognitive Services Account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const test = azure.cognitive.getAccount({ * name: "example-account", * resourceGroupName: "cognitive_account_rg", * }); * export const primaryAccessKey = test.then(test => test.primaryAccessKey); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.CognitiveServices` - 2025-06-01 */ export declare function getAccount(args: GetAccountArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAccount. */ export interface GetAccountArgs { /** * Specifies the name of the Cognitive Services Account. */ name: string; /** * Specifies the name of the resource group where the Cognitive Services Account resides. */ resourceGroupName: string; /** * A mapping of tags to assigned to the resource. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getAccount. */ export interface GetAccountResult { /** * The ID of the search service. */ readonly customQuestionAnsweringSearchServiceId: string; /** * The subdomain name used for Entra ID token-based authentication. */ readonly customSubdomainName: string; /** * A `customerManagedKey` block as defined below. */ readonly customerManagedKeys: outputs.cognitive.GetAccountCustomerManagedKey[]; /** * Whether dynamic throttling is enabled for this Cognitive Services Account. */ readonly dynamicThrottlingEnabled: boolean; /** * The endpoint of the Cognitive Services Account. */ readonly endpoint: string; /** * List of FQDNs allowed for the Cognitive Services Account. */ readonly fqdns: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A `identity` block as defined below. */ readonly identities: outputs.cognitive.GetAccountIdentity[]; /** * The type of the Cognitive Services Account. */ readonly kind: string; /** * Whether local authentication methods are enabled for the Cognitive Services Account. */ readonly localAuthEnabled: boolean; /** * The Azure location where the Cognitive Services Account exists. */ readonly location: string; /** * The Microsoft Entra Application (client) ID. */ readonly metricsAdvisorAadClientId: string; /** * The Microsoft Entra Tenant ID. */ readonly metricsAdvisorAadTenantId: string; /** * The super user of Metrics Advisor. */ readonly metricsAdvisorSuperUserName: string; /** * The website name of Metrics Advisor. */ readonly metricsAdvisorWebsiteName: string; readonly name: string; /** * A `networkAcls` block as defined below. */ readonly networkAcls: outputs.cognitive.GetAccountNetworkAcl[]; /** * A `networkInjection` block as defined below. */ readonly networkInjections: outputs.cognitive.GetAccountNetworkInjection[]; /** * Whether outbound network access is restricted for the Cognitive Services Account. */ readonly outboundNetworkAccessRestricted: boolean; /** * The primary access key of the Cognitive Services Account. */ readonly primaryAccessKey: string; /** * Whether project management is enabled. */ readonly projectManagementEnabled: boolean; /** * Whether public network access is allowed for the Cognitive Services Account. */ readonly publicNetworkAccessEnabled: boolean; /** * The link to the QNA runtime. */ readonly qnaRuntimeEndpoint: string; readonly resourceGroupName: string; /** * The secondary access key of the Cognitive Services Account. */ readonly secondaryAccessKey: string; /** * The SKU name of the Cognitive Services Account. */ readonly skuName: string; /** * A `storage` block as defined below. */ readonly storages: outputs.cognitive.GetAccountStorage[]; /** * A mapping of tags to assigned to the resource. */ readonly tags?: { [key: string]: string; }; } /** * Use this data source to access information about an existing Cognitive Services Account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const test = azure.cognitive.getAccount({ * name: "example-account", * resourceGroupName: "cognitive_account_rg", * }); * export const primaryAccessKey = test.then(test => test.primaryAccessKey); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.CognitiveServices` - 2025-06-01 */ export declare function getAccountOutput(args: GetAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAccount. */ export interface GetAccountOutputArgs { /** * Specifies the name of the Cognitive Services Account. */ name: pulumi.Input; /** * Specifies the name of the resource group where the Cognitive Services Account resides. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assigned to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }