---
title: "List VCS Providers"
method: GET
path: "/vcs-providers"
tags: ["vcs-providers"]
---

# List VCS Providers

`GET /vcs-providers`

This endpoint returns a list of VCS providers by various filters.

To list VCS providers accessible from a specific environment - `filter[environment]`,
or when from a specific account - `filter[account]` has to be specified.

For self-hosted Scalr there's also an option to list all VCS providers created globally
- both `filter[account]=null` and `filter[environment]=null` has to be specified.

If no `environment` or `account` filters were specified, all VCS providers to which a
current user has read access will be returned.

## Query parameters

- `query` string
- `page[number]` string
- `page[size]` string
- `filter[vcs-provider]` string
- `filter[vcs-type]` string
- `filter[name]` string
- `filter[environment]` string
- `filter[account]` string
- `filter[agent-pool]` string
- `sort` string[]
- `include` string[]
- `fields` object
  - `agent-pools` string — The comma-separated list of fields to return in response for AgentPool resource.
  - `vcs-providers` string — The comma-separated list of fields to return in response for VcsProvider resource.

## Response `200`

Success.

## Other responses

- `403` — User unauthorized to perform action.
- `404` — Account or environment not found.
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
