Log
An individual log.
Attributes
Minimal Representation
Included when the resource is returned as part of another resource.
Name | Type | Description |
---|---|---|
id | Integer | The log's id. |
Standard Representation
Included when the resource is the main response of a request, or is eager loaded.
Name | Type | Description |
---|---|---|
id | Integer | The log's id. |
content | String | The content of the log. |
log_parts | Array | The log parts that form the log. |
Actions
Find
This returns a single log.
It's possible to specify the accept format of the request as text/plain
if required. This will return the content of the log as a single blob of text.
curl -H "Travis-API-Version: 3" \ -H "Accept: text/plain" \ -H "Authorization: token xxxxxxxxxxxx" \ https://api.travis-ci.com/job/{job.id}/log
The default response type is application/json
, and will include additional meta data such as @type, @representation etc. (see https://developer.travis-ci.com/format).
GET
/job/{job.id}/log
Template Variable | Type | Description |
---|---|---|
job.id | Integer | Value uniquely identifying the job. |
Query Parameter | Type | Description |
---|---|---|
include | [String] | List of attributes to eager load. |
log.token | Unknown | Documentation missing. |
Example:GET /job/86601347/log
GET
/job/{job.id}/log.txt
Template Variable | Type | Description |
---|---|---|
job.id | Integer | Value uniquely identifying the job. |
Query Parameter | Type | Description |
---|---|---|
include | [String] | List of attributes to eager load. |
log.token | Unknown | Documentation missing. |
Example:GET /job/86601347/log.txt
Delete
This removes the contents of a log. It gets replace with the message: Log removed by XXX at 2017-02-13 16:00:00 UTC
.
curl -X DELETE \ -H "Travis-API-Version: 3" \ -H "Authorization: token xxxxxxxxxxxx" \ https://api.travis-ci.com/job/{job.id}/log
DELETE
/job/{job.id}/log
Template Variable | Type | Description |
---|---|---|
job.id | Integer | Value uniquely identifying the job. |
Example:DELETE /job/86601347/log