Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Library asset reference

Azure DevOps Get Git Repository

Get Git Repository in the explicitly selected organization/project. Existing trigger/workflow pins and service hooks are unaffected. Actions require confirmWrites and no automatic retries.

23 Oct 2026 · 3 min read
Markdown ↗JSON ↗

Get Git Repository in the explicitly selected organization/project. Existing trigger/workflow pins and service hooks are unaffected. Actions require confirmWrites and no automatic retries.

GET /{organization}/{project}/_apis/git/repositories/{repositoryId}. Read operation.

Inputs: organization (optional), project (optional), repositoryId (optional). Missing inputs may come from the selected connection profile config or explicit node defaults. Outputs: status, request_id, operation_url, item. Optional outputs are absent when the provider omits them. HTTP202 is acceptance, not completed work; operation_url exposes a same-origin asynchronous status URL when supplied.

Setup: configure baseUrl (https://dev.azure.com), basic credentials through encrypted secret names or Connections. Default secret name: AZURE_DEVOPS_ACCESS_TOKEN. Connection credentials accessToken/apiKey or username/password are resolved at execution. Never put credentials in literal inputs, baseUrl or logs. Required access: Project-scoped Azure DevOps PAT/OAuth permission for the selected API. Basic PAT authentication; never logs credentials.

Bounds: requestTimeoutMs=15000 (100..120000), maxBytes=1048576 (1024..3000000), maxItems=1000 (1..5000), maxPages=1 (1..20). One bounded request; use the provider-specific explicit paging inputs where offered. HTTPS is required; private HTTP needs allowHttp=true. TLS validation remains enabled. Redirects, cross-origin/escaped continuation URLs and repeated continuations fail. No implicit retries. Error text contains provider/status only, never raw response bodies or credentials. Reconcile an uncertain external action before another attempt.

Synthetic example inputs:

json
{
  "organization": "sample-org",
  "project": "Synthetic Project",
  "repositoryId": "sample"
}

This example is documentation, not a run.

Source: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/get-repository?view=azure-devops-rest-7.1

Operation arguments#

Required operation arguments must resolve before a provider request is sent. An input socket can be optional to allow configuration, a connection profile or a documented default to supply the value. Optional socket wiring does not make a required operation target optional.

ArgumentRequired at runtimeTypeDefaultConstraints
organizationYesstring—See operation contract
projectYesstring—See operation contract
repositoryIdYesstring—See operation contract

Catalog identity#

FieldValue
Source keydev.azure-devops.repository-get
Kindnode
Familyazure-devops
Packpack_azure_devops

Integration guide · Browse the catalog

Inputs#

Socket IDLabelTypeRequiredMeaning
execExecutecontrolNo
organizationOrganizationstringNo
projectProjectstringNo
repositoryIdRepositoryIdstringNo

Outputs#

Socket IDLabelTypeRequiredMeaning
nextNextcontrolNo
statusStatusnumberYes
request_idRequest IdstringNo
operation_urlOperation UrlstringNo
itemItemdef_690ea53cafe0 v1Yes
errorOn errorcontrolNo

Configuration schema#

json
{
  "type": "object",
  "properties": {
    "baseUrl": {
      "type": "string",
      "maxLength": 2000
    },
    "allowHttp": {
      "type": "boolean",
      "default": false
    },
    "tokenSecret": {
      "type": "string",
      "maxLength": 120
    },
    "username": {
      "type": "string",
      "maxLength": 160
    },
    "usernameSecret": {
      "type": "string",
      "maxLength": 120
    },
    "passwordSecret": {
      "type": "string",
      "maxLength": 120
    },
    "requestTimeoutMs": {
      "type": "integer",
      "minimum": 100,
      "maximum": 120000,
      "default": 15000
    },
    "maxBytes": {
      "type": "integer",
      "minimum": 1024,
      "maximum": 3000000,
      "default": 1048576
    },
    "maxPages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 1
    },
    "maxItems": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "default": 1000
    },
    "confirmWrites": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": true
}

Provider operation contract#

This source metadata records the exact request method/path, effects, scopes, argument contracts and synthetic examples. It does not establish account permission or provider execution.

json
{
  "key": "repository-get",
  "method": "GET",
  "path": "/{organization}/{project}/_apis/git/repositories/{repositoryId}",
  "effect": "read",
  "description": "Get Git Repository in the explicitly selected organization/project. Existing trigger/workflow pins and service hooks are unaffected. Actions require confirmWrites and no automatic retries.",
  "scopes": "Project-scoped Azure DevOps PAT/OAuth permission for the selected API. Basic PAT authentication; never logs credentials.",
  "arguments": {
    "organization": {
      "type": "string",
      "required": true,
      "description": ""
    },
    "project": {
      "type": "string",
      "required": true,
      "description": ""
    },
    "repositoryId": {
      "type": "string",
      "required": true,
      "description": ""
    }
  },
  "response": {
    "kind": "item",
    "type": "@id:def_690ea53cafe0:1"
  },
  "sampleInputs": {
    "organization": "sample-org",
    "project": "Synthetic Project",
    "repositoryId": "sample"
  },
  "sampleResponse": {
    "id": "00000000-0000-4000-8000-000000000001",
    "name": "Synthetic Repository",
    "url": "https://dev.azure.com/sample-org/_apis/git/repositories/00000000-0000-4000-8000-000000000001",
    "project": {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "Synthetic Project",
      "state": "wellFormed",
      "visibility": "private",
      "url": "https://dev.azure.com/sample-org/_apis/projects/00000000-0000-4000-8000-000000000001"
    },
    "defaultBranch": "refs/heads/main"
  },
  "sources": [
    "https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/get-repository?view=azure-devops-rest-7.1"
  ]
}

Source and installed versions#

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See versioning, connections and integration setup.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • ../OpenNodeFlow-Library/work/catalog-all.mjs
  • ../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs
  • ../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs
  • shared/seed.ts
  • shared/storage-library.ts
  • shared/variable-library.ts
  • shared/control-flow.ts
  • shared/remote-routes.ts
  • server/runtime-library.ts
  • shared/error-library.ts
  • shared/storage-model.ts
  • shared/builtin-documentation.ts
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗