Logs - List

Get a list of logs from a pipeline run.

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs?api-version=7.0
GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs?$expand={$expand}&api-version=7.0

URI Parameters

Name In Required Type Description
organization
path True

string

The name of the Azure DevOps organization.

pipelineId
path True

integer

int32

ID of the pipeline.

project
path True

string

Project ID or project name

runId
path True

integer

int32

ID of the run of that pipeline.

api-version
query True

string

Version of the API to use. This should be set to '7.0' to use this version of the api.

$expand
query

GetLogExpandOptions

Expand options. Default is None.

Responses

Name Type Description
200 OK

LogCollection

successful operation

Security

accessToken

Personal access token. Use any value for the user name and the token as the password.

Type: basic

Definitions

Name Description
GetLogExpandOptions

Expand options. Default is None.

Log

Log for a pipeline.

LogCollection

A collection of logs.

SignedUrl

A signed url allowing limited-time anonymous access to private resources.

GetLogExpandOptions

Expand options. Default is None.

Name Type Description
none

string

signedContent

string

Log

Log for a pipeline.

Name Type Description
createdOn

string

The date and time the log was created.

id

integer

The ID of the log.

lastChangedOn

string

The date and time the log was last changed.

lineCount

integer

The number of lines in the log.

signedContent

SignedUrl

A signed url allowing limited-time anonymous access to private resources.

url

string

LogCollection

A collection of logs.

Name Type Description
logs

Log[]

The list of logs.

signedContent

SignedUrl

A signed url allowing limited-time anonymous access to private resources.

url

string

URL of the log.

SignedUrl

A signed url allowing limited-time anonymous access to private resources.

Name Type Description
signatureExpires

string

Timestamp when access expires.

url

string

The URL to allow access to.