Fetch Build Log

Gets the log of a specific build.

Requires the stacks-builds-manage permission.

Returns

Returns a stack build log, otherwise returns an Error.

stack build log
  • id
    string

    The ID of the build log.

  • stack_id
    string

    The ID of the stack this build log is associated with.

  • hub_id
    string

    The ID of the hub this build log is associated with.

  • build_id
    string

    The ID of the build this log is associated with.

  • log
    string

    The contents of the log.

GET /v1/stacks/{STACK_ID}/builds/{BUILD_ID}/log

Example Request
$ curl https://api.cycle.io/v1/stacks/5a98710df231a500017f9aa4/builds/5d02f7e9b89494000108422a/log \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-Hub-Id: HUB_ID"
Example Response
{
"data": {
"id": "5b9c2a77b6393d0001eb45fd",
"stack_id": "5fff2a77b6393d0001eb3333",
"hub_id": "5ccc2a2226393d1231eb4abd",
"build_id": "5a232a77b6393d0001ac2df2",
"log": "latest: Pulling from cycleplatform/wordpress\n6ae821421a7d: Pulling fs layer\n08f3d19635b0: Pulling fs layer\ndc8a54b8000b: Pulling fs layer\nb2c1d103db99: Pulling fs layer\nedfa752aa38a: Pulling fs layer\n583d37cbf2f0: Pulling fs layer\nc7846a240c1d: Pulling fs layer\nd8f9f0fd02fe: Pulling fs layer\n01d43e56770d: Pulling fs layer\nd7028d09ed0d: Pulling fs layer\ne7ada57130df: Pulling fs layer\nf8e18fc0e759: Pulling fs layer\n84b31f19dee2: Pulling fs layer\n5c0a2578817b: Pulling fs layer\n2fc1807539b8: Pulling fs layer\n62fcf2f6ca7b: Pulling fs layer\n64fda3ba2679: Pulling fs layer\n7500be78bfbe: Pulling fs layer\n30d4b67ba4ce: Pulling fs layer\n583d37cbf2f0: Waiting\nc7846a240c1d: Waiting\nd8f9f0fd02fe: Waiting\n01d43e56770d: Waiting\nd7028d09ed0d: Waiting\ne7ada57130df: Waiting\nb2c1d103db99: Waiting\nedfa752aa38a: Waiting\nf8e18fc0e759: Waiting\n84b31f19dee2: Waiting\n5c0a2578817b: Waiting\n2fc1807539b8: Waiting\n62fcf2f6ca7b: Waiting\n64fda3ba2679: Waiting\n7500be78bfbe: Waiting\n30d4b67ba4ce: Waiting\n08f3d19635b0: Verifying Checksum\n08f3d19635b0: Download complete\nb2c1d103db99: Verifying Checksum\nb2c1d103db99: Download complete\n6ae821421a7d: Verifying Checksum\n6ae821421a7d: Download complete\n583d37cbf2f0: Verifying Checksum\n583d37cbf2f0: Download complete\nedfa752aa38a: Verifying Checksum\nedfa752aa38a: Download complete\nc7846a240c1d: Verifying Checksum\nc7846a240c1d: Download complete\n01d43e56770d: Verifying Checksum\n01d43e56770d: Download complete\nd8f9f0fd02fe: Verifying Checksum\nd8f9f0fd02fe: Download complete\ne7ada57130df: Verifying Checksum\ne7ada57130df: Download complete\ndc8a54b8000b: Verifying Checksum\ndc8a54b8000b: Download complete\nf8e18fc0e759: Verifying Checksum\nf8e18fc0e759: Download complete\n84b31f19dee2: Verifying Checksum\n84b31f19dee2: Download complete\n5c0a2578817b: Verifying Checksum\n5c0a2578817b: Download complete\nd7028d09ed0d: Verifying Checksum\nd7028d09ed0d: Download complete\n2fc1807539b8: Verifying Checksum\n2fc1807539b8: Download complete\n62fcf2f6ca7b: Verifying Checksum\n62fcf2f6ca7b: Download complete\n7500be78bfbe: Verifying Checksum\n7500be78bfbe: Download complete\n30d4b67ba4ce: Verifying Checksum\n30d4b67ba4ce: Download complete\n64fda3ba2679: Verifying Checksum\n64fda3ba2679: Download complete\n6ae821421a7d: Pull complete\n08f3d19635b0: Pull complete\ndc8a54b8000b: Pull complete\nb2c1d103db99: Pull complete\nedfa752aa38a: Pull complete\n583d37cbf2f0: Pull complete\nc7846a240c1d: Pull complete\nd8f9f0fd02fe: Pull complete\n01d43e56770d: Pull complete\nd7028d09ed0d: Pull complete\ne7ada57130df: Pull complete\nf8e18fc0e759: Pull complete\n84b31f19dee2: Pull complete\n5c0a2578817b: Pull complete\n2fc1807539b8: Pull complete\n62fcf2f6ca7b: Pull complete\n64fda3ba2679: Pull complete\n7500be78bfbe: Pull complete\n30d4b67ba4ce: Pull complete\nDigest: sha256:44c435c5e27d51b294183dafc025ec1064dfe51c2a89505c32e8f264cf49373b\nStatus: Downloaded newer image for cycleplatform/wordpress:latest\n5.7: Pulling from library/mysql\n27833a3ba0a5: Pulling fs layer\n864c283b3c4b: Pulling fs layer\ncea281b2278b: Pulling fs layer\n8f856c14f5af: Pulling fs layer\n9c4f38c23b6f: Pulling fs layer\n1b810e1751b3: Pulling fs layer\n5479aaef3d30: Pulling fs layer\n1d924ec3d520: Pulling fs layer\n1ab7ae63ac60: Pulling fs layer\n08aa5f3680e9: Pulling fs layer\na832d0a0972a: Pulling fs layer\n5479aaef3d30: Waiting\n1d924ec3d520: Waiting\n1ab7ae63ac60: Waiting\n08aa5f3680e9: Waiting\na832d0a0972a: Waiting\n8f856c14f5af: Waiting\n9c4f38c23b6f: Waiting\n1b810e1751b3: Waiting\n864c283b3c4b: Verifying Checksum\n864c283b3c4b: Download complete\ncea281b2278b: Verifying Checksum\ncea281b2278b: Download complete\n8f856c14f5af: Verifying Checksum\n8f856c14f5af: Download complete\n9c4f38c23b6f: Download complete\n5479aaef3d30: Verifying Checksum\n5479aaef3d30: Download complete\n27833a3ba0a5: Download complete\n1d924ec3d520: Verifying Checksum\n1d924ec3d520: Download complete\n1b810e1751b3: Verifying Checksum\n1b810e1751b3: Download complete\n08aa5f3680e9: Verifying Checksum\n08aa5f3680e9: Download complete\na832d0a0972a: Verifying Checksum\na832d0a0972a: Download complete\n1ab7ae63ac60: Verifying Checksum\n1ab7ae63ac60: Download complete\n27833a3ba0a5: Pull complete\n864c283b3c4b: Pull complete\ncea281b2278b: Pull complete\n8f856c14f5af: Pull complete\n9c4f38c23b6f: Pull complete\n1b810e1751b3: Pull complete\n5479aaef3d30: Pull complete\n1d924ec3d520: Pull complete\n1ab7ae63ac60: Pull complete\n08aa5f3680e9: Pull complete\na832d0a0972a: Pull complete\nDigest: sha256:dba5fed182e64064b688ccd22b2f9cad4ee88608c82f8cff21e17bab8da72b81\nStatus: Downloaded newer image for mysql:5.7\n"
}
}