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


    :param str resource_group_name: The name of the resource group within the current subscription.
    :param str service_name: The name of the Search service for which to list admin keys.
    """
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['serviceName'] = 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/v20150228: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 API keys for a given Azure Search service.


    :param str resource_group_name: The name of the resource group within the current subscription.
    :param str service_name: The name of the Search service for which to list admin keys.
    
Response containing the primary and secondary API keys for a given Azure Search service.
Response containing the primary and secondary API keys for a given Azure Search service .
def list_admin_key(resource_group_name: Optional[str] = None,
                   service_name: Optional[str] = None,
                   opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListAdminKeyResult:
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['serviceName'] = 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/v20150228: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 , service_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListAdminKeyResult : __args__ = dict ( ) __args__ [ 'resourceGroupName' ] = resource_group_name __args__ [ 'serviceName' ] = 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/v20150228: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 API keys for a given Azure Search service.
Response containing the primary and secondary API keys for a given Azure Search service .
"""
    Response containing the primary and secondary API keys for a given Azure Search service.


    :param str resource_group_name: The name of the resource group within the current subscription.
    :param str service_name: The name of the Search service for which to list admin keys.
    """
resource_group_name
Optional[str]
The name of the resource group within the current subscription.
The name of the resource group within the current subscription .
service_name
Optional[str]
The name of the Search service for which to list admin keys.
The name of the Search service for which to list admin keys .
opts
Optional[pulumi.InvokeOptions]