Skip to content
Connect an agent

Organisations

Read one Azure DevOps pipeline

One pipeline with its repository and default branch, for the trusted publisher form's Branch suggestion.

GET/orgs/{org}/connectors/azure-devops/pipeline

TL;DR

QuestionAnswer
What does it do?Read one Azure DevOps pipeline.
What does it take?org in the path, and organization, project, id in the query string.
What does it return?Status 200 with a body of type OrgAzureDevopsPipeline.
What can go wrong?400 a name or id is not one Azure DevOps could have; 401 not signed in; 403 not the owner or an admin, the plan has no trusted publishers, the tenant needs an administrator to consent (azure_devops.consent_required), or the connected account cannot read that organisation or project (azure_devops.no_access); 404 no such organisation here, or Azure DevOps has no such organisation, project or pipeline (azure_devops.not_found); 409 azure DevOps is not connected (azure_devops.not_connected), or its sign-in expired or was revoked (azure_devops.reconnect); 429 too many requests; 502 microsoft or Azure DevOps could not be reached (azure_devops.unavailable); 503 this server has no Microsoft Entra app for the connector (azure_devops.not_configured), or cannot keep a token (connectors.unavailable). Every failure uses the one error envelope.

What it does

One pipeline with its repository and default branch, for the trusted publisher form's Branch suggestion.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
organizationstringyesThe Azure DevOps organisation, by name.
projectstringyesThe project, by name.
idstringyesThe pipeline's definition id.

Responses

StatusMeaningBody
200The pipeline.OrgAzureDevopsPipeline
400A name or id is not one Azure DevOps could have.ErrorResponse
401Not signed in.ErrorResponse
403Not the owner or an admin, the plan has no trusted publishers, the tenant needs an administrator to consent (azure_devops.consent_required), or the connected account cannot read that organisation or project (azure_devops.no_access).ErrorResponse
404No such organisation here, or Azure DevOps has no such organisation, project or pipeline (azure_devops.not_found).ErrorResponse
409Azure DevOps is not connected (azure_devops.not_connected), or its sign-in expired or was revoked (azure_devops.reconnect).ErrorResponse
429Too many requests.ErrorResponse
502Microsoft or Azure DevOps could not be reached (azure_devops.unavailable).ErrorResponse
503This server has no Microsoft Entra app for the connector (azure_devops.not_configured), or cannot keep a token (connectors.unavailable).ErrorResponse

Response body

A 200 answer has the type OrgAzureDevopsPipeline.

FieldTypeRequiredDescription
idstringyesThe pipeline's definition id, the definitionId of its address.
namestringyes
folderstringyesThe folder it is in, \ for the top.
repositoryobject | nullyesThe repository the pipeline builds, by name, and its kind (such as TfsGit or GitHub).
repository.namestringyes
repository.typestringyes
defaultBranchstring | nullyesThe repository's default branch for the pipeline, such as refs/heads/main.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools