Skip to content

list_license_server_endpoints async

list_license_server_endpoints(
    *,
    config_overrides: Optional[AsyncLicenseManagerUserSubscriptionsClientConfig] = None,
    max_results: Optional[BoxInteger] = None,
    filters: Optional[FilterList] = None,
    next_token: Optional[str] = None,
) -> ListLicenseServerEndpointsResponse

List the Remote Desktop Services (RDS) License Server endpoints

Parameters:

  • max_results (Optional[BoxInteger], default: None ) –

    The maximum number of results to return from a single request.

  • filters (Optional[FilterList], default: None ) –

    You can use the following filters to streamline results:

    • IdentityProviderArn

  • next_token (Optional[str], default: None ) –

    A token to specify where to start paginating. This is the nextToken from a previously truncated response.

Raises:

Source code in docs_src/capo_license_manager_user_subscriptions/_services/async_license_manager_user_subscriptions.py
async def list_license_server_endpoints(
    self,
    *,
    config_overrides: Optional[
        AsyncLicenseManagerUserSubscriptionsClientConfig
    ] = None,
    max_results: Optional[
        "capo_license_manager_user_subscriptions.types.box_integer.BoxInteger"
    ] = None,
    filters: Optional[
        "capo_license_manager_user_subscriptions.types.filter_list.FilterList"
    ] = None,
    next_token: Optional[str] = None,
) -> "capo_license_manager_user_subscriptions.types.list_license_server_endpoints_response.ListLicenseServerEndpointsResponse":
    """<p>List the Remote Desktop Services (RDS) License Server endpoints </p>

    Args:
        max_results: <p>The maximum number of results to return from a single request.</p>
        filters: <p>You can use the following filters to streamline results:</p> <ul> <li> <p>IdentityProviderArn</p> </li> </ul>
        next_token: <p>A token to specify where to start paginating. This is the nextToken from a previously truncated response.</p>

    Raises:
        capo_license_manager_user_subscriptions.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
        capo_license_manager_user_subscriptions.errors.conflict_exception.ConflictException: <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
        capo_license_manager_user_subscriptions.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
        capo_license_manager_user_subscriptions.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request failed because a service quota is exceeded.</p>
        capo_license_manager_user_subscriptions.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling. Retry the request.</p>
        capo_license_manager_user_subscriptions.errors.validation_exception.ValidationException: <p>A parameter is not valid.</p>
        capo_license_manager_user_subscriptions.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_license_manager_user_subscriptions.types.list_license_server_endpoints_request.ListLicenseServerEndpointsRequest]",
    ) -> AsyncOperationResponse[
        "capo_license_manager_user_subscriptions.types.list_license_server_endpoints_response.ListLicenseServerEndpointsResponse"
    ]:
        import capo_license_manager_user_subscriptions._operations.license_manager_user_subscriptions.list_license_server_endpoints

        (
            output,
            http_response,
        ) = await capo_license_manager_user_subscriptions._operations.license_manager_user_subscriptions.list_license_server_endpoints.async_list_license_server_endpoints(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListLicenseServerEndpoints")
    )
    input_: capo_license_manager_user_subscriptions.types.list_license_server_endpoints_request.ListLicenseServerEndpointsRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if filters is not None:
        input_["filters"] = filters
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output