sdk/python/pulumi_azure_nextgen/search/v20191001preview/list_admin_key.py
def list_admin_key(resource_group_name: Optional[str] = None,
                   search_service_name: Optional[str] = None,
                   opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListAdminKeyResult:
    """
    Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service.


    :param str resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
    :param str search_service_name: The name of the Azure Cognitive Search service associated with the specified resource group.
    """
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['searchServiceName'] = search_service_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:search/v20191001preview:listAdminKey', __args__, opts=opts, typ=ListAdminKeyResult).value

    return AwaitableListAdminKeyResult(
        primary_key=__ret__.primary_key,
        secondary_key=__ret__.secondary_key)

    Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service.


    :param str resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
    :param str search_service_name: The name of the Azure Cognitive Search service associated with the specified resource group.
    
Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service.
Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service .
def list_admin_key(resource_group_name: Optional[str] = None,
                   search_service_name: Optional[str] = None,
                   opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListAdminKeyResult:
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['searchServiceName'] = search_service_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:search/v20191001preview:listAdminKey', __args__, opts=opts, typ=ListAdminKeyResult).value
    return AwaitableListAdminKeyResult(
        primary_key=__ret__.primary_key,
        secondary_key=__ret__.secondary_key)
def list_admin_key ( resource_group_name : Optional [ str ] = None , search_service_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListAdminKeyResult : __args__ = dict ( ) __args__ [ 'resourceGroupName' ] = resource_group_name __args__ [ 'searchServiceName' ] = search_service_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:search/v20191001preview:listAdminKey' , __args__ , opts = opts , typ = ListAdminKeyResult ) . value return AwaitableListAdminKeyResult ( primary_key = __ret__ . primary_key , secondary_key = __ret__ . secondary_key )
Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service.
Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service .
"""
    Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service.


    :param str resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
    :param str search_service_name: The name of the Azure Cognitive Search service associated with the specified resource group.
    """
resource_group_name
Optional[str]
The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
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_name
Optional[str]
The name of the Azure Cognitive Search service associated with the specified resource group.
The name of the Azure Cognitive Search service associated with the specified resource group .
opts
Optional[pulumi.InvokeOptions]