Logs - Get

Get a specific log from a pipeline run

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

URI Parameters

Name In Required Type Description
logId
path True

integer

int32

ID of the log.

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

Log

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.

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

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.