INNER CODE UNIT · Python

list_render_services

phasehq/console · backend/api/utils/syncing/render/main.py:43

def list_render_services(credential_id):
    """
    List all Render services available under the account associated with the API key.
    Handles pagination using the 'cursor' field.
    API DOCS: https://api-docs.render.com/reference/get-services
    """
    url = f"{RENDER_API_BASE_URL}/services"
    headers = get_render_headers(credential_id)
    params = {"limit": 100}
    all_services = []
    cursor = None

    while True:
        if cursor:
            params["cursor"] = cursor
        else:
            params.pop("cursor", None)
        response = requests.get(url, headers=headers, params=params)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…