Hyper Docs
  • Introduction
  • What is Hyper
  • Why Hyper
  • Regions
  • Pricing
  • Quota and Limits
  • FAQ
  • Getting Started
    • Generate API Credential
    • Install CLI
    • Part 1 - Starting and inspecting your first container
    • Part 2 - Working with multiple containers
    • Part 3 - Hyper Compose
    • Migrate data
      • hyper container as client
      • hyper container as server
  • Features
    • Container
      • Container
      • Logs
      • Compose
      • Cron
      • Service
      • Func
    • Storage
      • Volume
      • Snapshot
    • Network
      • Network
      • Floating IP
      • Port
      • Security Group
    • Console
      • Filter
  • Reference
    • CLI
      • attach
      • commit
      • config
      • create
      • exec
      • images
      • info
      • inspect
      • kill
      • load
      • login
      • logout
      • logs
      • port
      • ps
      • pull
      • push
      • rename
      • restart
      • rm
      • rmi
      • run
      • search
      • start
      • stats
      • stop
      • version
      • update
      • wait
      • Volume
        • create
        • init
        • inspect
        • ls
        • rm
      • Snapshot
        • create
        • ls
        • rm
      • FIP
        • allocate
        • attach
        • detach
        • ls
        • release
        • name
      • Security Group
        • create
        • ls
        • inspect
        • rm
        • update
      • Compose
        • create
        • down
        • up
        • rm
        • ps
        • pull
        • run
        • kill
        • start
        • stop
        • scale
      • Service
        • create
        • ls
        • inspect
        • scale
        • rolling-update
        • attach-fip
        • detach-fip
        • rm
      • Cron
        • create
        • inspect
        • ls
        • history
        • rm
      • Func
        • create
        • update
        • inspect
        • ls
        • rm
        • logs
        • call
        • get
    • API
      • 2016-04-04 [Ver. 1.23]
        • Container
          • List Containers
          • Create a container
          • Get container logs
          • Start a container
          • Stop a container
          • Restart a container
          • Resize a container
          • Rename a container
          • Kill a container
          • Attach to a container
          • Remove a container
          • Update a container
          • Get container stats
          • Inspect a container
          • Exec Create
          • Commit a container
        • Event
          • Monitor events with WebSocket
        • Misc
          • Display system-wide information
          • Show the hyper version information
          • Exec Start
          • Exec Resize
          • Exec Inspect
        • Image
          • Inspect Images
          • Search Images
          • List Images
          • Load Images
          • Create an image
          • Remove an image
          • Push an image
        • Volume
          • List volumes
          • Create a volume
          • Remove a volume
          • Init a volume
          • Inspect a volume
        • Snapshot
          • Create a snapshot
          • List snapshots
          • Inspect a snapshot
          • Remove a snapshot
        • Network
          • Allocate floating IP
          • Attach a floating IP to a (running) container
          • Detach floating IP from a (running) container
          • List floating IP
          • Release floating IP
          • Name floating IP
        • Security Group
          • Create a security group
          • Remove a security group
          • Inspect a security group
          • Update a security group
          • List security groups
        • Service
          • service create
          • service list
          • service inspect
          • service update
          • service remove
        • Compose
          • Compose up
          • Compose create
          • Compose down
          • Compose rm
          • Compose start
          • Compose stop
          • Compose kill
        • Cron
          • Cron create
          • Cron list
          • Cron inspect
          • Cron remove
          • Cron history
        • Func
          • Func create
          • Func update
          • Func list
          • Func inspect
          • Func remove
          • Func call
          • Func get
          • Func logs
          • Func status
    • Compose File Reference
    • Security Group Reference
  • FAQ
    • Pricing
    • Quota and Limits
    • Privacy Policy
    • Terms of Service
    • Acceptable Use Policy
  • Docs version
Powered by GitBook
On this page
  1. Reference
  2. API
  3. 2016-04-04 [Ver. 1.23]
  4. Func

Func logs

GET https://$region.hyperfunc.io/logs/$name/$uuid

Retrieve the logs of a function.

The endpoint should be $region.hyperfunc.io, and no signature authentication requirements.

Example request:

GET https://us-west-1.hyperfunc.io/logs/helloworld/e62c014e-386c-42ea-8d07-41d44e98cc3d?follow=1?callid=218b7b10-e7f1-4c48-ac3c-66792f8ffc06 HTTP/1.1

Example response:

HTTP/1.1 101 UPGRADED
Connection: Upgrade
Upgrade: tcp

{"Time":"2017-03-16T07:05:58.216Z","Event":"CALL","CallId":"218b7b10-e7f1-4c48-ac3c-66792f8ffc06"}
{"Time":"2017-03-16T07:05:58.257Z","Event":"PENDING","CallId":"218b7b10-e7f1-4c48-ac3c-66792f8ffc06"}
{"Time":"2017-03-16T07:06:04.483Z","Event":"RUNNING","CallId":"218b7b10-e7f1-4c48-ac3c-66792f8ffc06"}
{"Time":"2017-03-16T07:06:10.528Z","Event":"FINISHED","CallId":"218b7b10-e7f1-4c48-ac3c-66792f8ffc06","ShortStdout":"HelloWorld\n"}

URL parameters:

  • $region - Supported region.

  • $name - The function name.

  • $uuid - The uuid of function.

Query Parameters:

  • callid - Filter logs of specific CallId. Default all.

  • follow - 1/True/true or 0/False/false, return stream. Default false.

  • tail - Output specified number of lines at the end of logs: all or <number>. Default all.

Json Response:

  • Time - The time of the event.

  • Event - The event name, can be CALL, PENDING, RUNNING, FINISHED, FAILED.

  • CallId - The call id of a function call.

  • ShortStdin - The first few bytes of STDIN.

  • ShortStdout - The first few bytes of STDOUT.

  • ShortStderr - The first few bytes of STDERR.

  • Message - The error message.

Status Codes:

  • 101 - no error, hints proxy about hijacking

  • 200 - no error, no upgrade header found

  • 404 - no such function

  • 500 - server error

PreviousFunc getNextFunc status

Last updated 7 years ago