sdk/python/pulumi_azure_nextgen/media/list_media_service_keys.py
def list_media_service_keys(media_service_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListMediaServiceKeysResult:
    """
    The response body for a ListKeys API.
    API Version: 2015-10-01.


    :param str media_service_name: Name of the Media Service.
    :param str resource_group_name: Name of the resource group within the Azure subscription.
    """
    __args__ = dict()
    __args__['mediaServiceName'] = media_service_name
    __args__['resourceGroupName'] = resource_group_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:media:listMediaServiceKeys', __args__, opts=opts, typ=ListMediaServiceKeysResult).value

    return AwaitableListMediaServiceKeysResult(
        primary_auth_endpoint=__ret__.primary_auth_endpoint,
        primary_key=__ret__.primary_key,
        scope=__ret__.scope,
        secondary_auth_endpoint=__ret__.secondary_auth_endpoint,
        secondary_key=__ret__.secondary_key)

    The response body for a ListKeys API.
    API Version: 2015-10-01.


    :param str media_service_name: Name of the Media Service.
    :param str resource_group_name: Name of the resource group within the Azure subscription.
    
The response body for a ListKeys API.
The response body for a ListKeys API .
def list_media_service_keys(media_service_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListMediaServiceKeysResult:
    __args__ = dict()
    __args__['mediaServiceName'] = media_service_name
    __args__['resourceGroupName'] = resource_group_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:media:listMediaServiceKeys', __args__, opts=opts, typ=ListMediaServiceKeysResult).value
    return AwaitableListMediaServiceKeysResult(
        primary_auth_endpoint=__ret__.primary_auth_endpoint,
        primary_key=__ret__.primary_key,
        scope=__ret__.scope,
        secondary_auth_endpoint=__ret__.secondary_auth_endpoint,
        secondary_key=__ret__.secondary_key)
def list_media_service_keys ( media_service_name : Optional [ str ] = None , resource_group_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListMediaServiceKeysResult : __args__ = dict ( ) __args__ [ 'mediaServiceName' ] = media_service_name __args__ [ 'resourceGroupName' ] = resource_group_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:media:listMediaServiceKeys' , __args__ , opts = opts , typ = ListMediaServiceKeysResult ) . value return AwaitableListMediaServiceKeysResult ( primary_auth_endpoint = __ret__ . primary_auth_endpoint , primary_key = __ret__ . primary_key , scope = __ret__ . scope , secondary_auth_endpoint = __ret__ . secondary_auth_endpoint , secondary_key = __ret__ . secondary_key )
The response body for a ListKeys API.
The response body for a ListKeys API .
"""
    The response body for a ListKeys API.
    API Version: 2015-10-01.


    :param str media_service_name: Name of the Media Service.
    :param str resource_group_name: Name of the resource group within the Azure subscription.
    """
media_service_name
Optional[str]
Name of the Media Service.
Name of the Media Service .
resource_group_name
Optional[str]
Name of the resource group within the Azure subscription.
Name of the resource group within the Azure subscription .
opts
Optional[pulumi.InvokeOptions]