azure-native.search.listAdminKey
Explore with Pulumi AI
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. 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 for details.
Using listAdminKey
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function listAdminKey(args: ListAdminKeyArgs, opts?: InvokeOptions): Promise<ListAdminKeyResult>
function listAdminKeyOutput(args: ListAdminKeyOutputArgs, opts?: InvokeOptions): Output<ListAdminKeyResult>def list_admin_key(resource_group_name: Optional[str] = None,
                   search_service_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> ListAdminKeyResult
def list_admin_key_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                   search_service_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[ListAdminKeyResult]func ListAdminKey(ctx *Context, args *ListAdminKeyArgs, opts ...InvokeOption) (*ListAdminKeyResult, error)
func ListAdminKeyOutput(ctx *Context, args *ListAdminKeyOutputArgs, opts ...InvokeOption) ListAdminKeyResultOutput> Note: This function is named ListAdminKey in the Go SDK.
public static class ListAdminKey 
{
    public static Task<ListAdminKeyResult> InvokeAsync(ListAdminKeyArgs args, InvokeOptions? opts = null)
    public static Output<ListAdminKeyResult> Invoke(ListAdminKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ListAdminKeyResult> listAdminKey(ListAdminKeyArgs args, InvokeOptions options)
public static Output<ListAdminKeyResult> listAdminKey(ListAdminKeyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:search:listAdminKey
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Resource
Group stringName  - The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
 - Search
Service stringName  - The name of the search service associated with the specified resource group.
 
- Resource
Group stringName  - The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
 - Search
Service stringName  - The name of the search service associated with the specified resource group.
 
- resource
Group StringName  - The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
 - search
Service StringName  - The name of the search service associated with the specified resource group.
 
- resource
Group stringName  - The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
 - search
Service stringName  - The name of the search service associated with the specified resource group.
 
- resource_
group_ strname  - The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
 - search_
service_ strname  - The name of the search service associated with the specified resource group.
 
- resource
Group StringName  - The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
 - search
Service StringName  - The name of the search service associated with the specified resource group.
 
listAdminKey Result
The following output properties are available:
- Primary
Key string - The primary admin API key of the search service.
 - Secondary
Key string - The secondary admin API key of the search service.
 
- Primary
Key string - The primary admin API key of the search service.
 - Secondary
Key string - The secondary admin API key of the search service.
 
- primary
Key String - The primary admin API key of the search service.
 - secondary
Key String - The secondary admin API key of the search service.
 
- primary
Key string - The primary admin API key of the search service.
 - secondary
Key string - The secondary admin API key of the search service.
 
- primary_
key str - The primary admin API key of the search service.
 - secondary_
key str - The secondary admin API key of the search service.
 
- primary
Key String - The primary admin API key of the search service.
 - secondary
Key String - The secondary admin API key of the search service.
 
Package Details
- Repository
 - Azure Native pulumi/pulumi-azure-native
 - License
 - Apache-2.0