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

51 lines (50 loc) 2.42 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets the primary and secondary admin API keys for the specified search service. * * Uses Azure REST API version 2023-11-01. * * Other available API versions: 2022-09-01, 2024-03-01-preview, 2024-06-01-preview, 2025-02-01-preview, 2025-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native search [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function listAdminKey(args: ListAdminKeyArgs, opts?: pulumi.InvokeOptions): Promise<ListAdminKeyResult>; export interface ListAdminKeyArgs { /** * The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. */ resourceGroupName: string; /** * The name of the search service associated with the specified resource group. */ searchServiceName: string; } /** * Response containing the primary and secondary admin API keys for a given search service. */ export interface ListAdminKeyResult { /** * The primary admin API key of the search service. */ readonly primaryKey: string; /** * The secondary admin API key of the search service. */ readonly secondaryKey: string; } /** * Gets the primary and secondary admin API keys for the specified search service. * * Uses Azure REST API version 2023-11-01. * * Other available API versions: 2022-09-01, 2024-03-01-preview, 2024-06-01-preview, 2025-02-01-preview, 2025-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native search [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function listAdminKeyOutput(args: ListAdminKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListAdminKeyResult>; export interface ListAdminKeyOutputArgs { /** * The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. */ resourceGroupName: pulumi.Input<string>; /** * The name of the search service associated with the specified resource group. */ searchServiceName: pulumi.Input<string>; }