sdk/python/pulumi_azure_nextgen/labservices/list_global_user_environments.py
def list_global_user_environments(lab_id: Optional[str] = None,
                                  user_name: Optional[str] = None,
                                  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListGlobalUserEnvironmentsResult:
    """
    Represents the list of environments owned by a user
    API Version: 2018-10-15.


    :param str lab_id: The resource Id of the lab
    :param str user_name: The name of the user.
    """
    __args__ = dict()
    __args__['labId'] = lab_id
    __args__['userName'] = user_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:labservices:listGlobalUserEnvironments', __args__, opts=opts, typ=ListGlobalUserEnvironmentsResult).value

    return AwaitableListGlobalUserEnvironmentsResult(
        environments=__ret__.environments)

    Represents the list of environments owned by a user
    API Version: 2018-10-15.


    :param str lab_id: The resource Id of the lab
    :param str user_name: The name of the user.
    
Represents the list of environments owned by a user
API Version: 2018-10-15.
Represents the list of environments owned by a user API Version : 2018 - 10 - 15 .
def list_global_user_environments(lab_id: Optional[str] = None,
                                  user_name: Optional[str] = None,
                                  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListGlobalUserEnvironmentsResult:
    __args__ = dict()
    __args__['labId'] = lab_id
    __args__['userName'] = user_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:labservices:listGlobalUserEnvironments', __args__, opts=opts, typ=ListGlobalUserEnvironmentsResult).value
    return AwaitableListGlobalUserEnvironmentsResult(
        environments=__ret__.environments)
def list_global_user_environments ( lab_id : Optional [ str ] = None , user_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListGlobalUserEnvironmentsResult : __args__ = dict ( ) __args__ [ 'labId' ] = lab_id __args__ [ 'userName' ] = user_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:labservices:listGlobalUserEnvironments' , __args__ , opts = opts , typ = ListGlobalUserEnvironmentsResult ) . value return AwaitableListGlobalUserEnvironmentsResult ( environments = __ret__ . environments )
Represents the list of environments owned by a user
API Version: 2018-10-15.
Represents the list of environments owned by a user API Version : 2018 - 10 - 15 .
"""
    Represents the list of environments owned by a user
    API Version: 2018-10-15.


    :param str lab_id: The resource Id of the lab
    :param str user_name: The name of the user.
    """
lab_id
Optional[str]
The resource Id of the lab
The resource Id of the lab
user_name
Optional[str]
The name of the user.
The name of the user .
opts
Optional[pulumi.InvokeOptions]