def get_alert_details(alert_id, api_key):
    """
    This function retrieves details for a single alert, specified by an alert
    ID.

    Args:
        alert_id (str): The ID of the alert to retrieve details for.
        api_key (str): The API key to authenticate the request.

    Returns:
        A dictionary containing the details for the alert.
    """
    api_url = (
        "https://helios.cohesity.com/mcm/alerts?maxAlerts=1"
        "&alertIdList=" + alert_id
    )
    headers = create_headers(api_key)
    response = requests.get(api_url, headers=headers)
    return response.json()[0] if response.json() else None

    This function retrieves details for a single alert, specified by an alert
    ID.

    Args:
        alert_id (str): The ID of the alert to retrieve details for.
        api_key (str): The API key to authenticate the request.

    Returns:
        A dictionary containing the details for the alert.
    
Solutions/CohesitySecurity/Tests/helios.py