Skip to content

List all remotes

Request

Plans:ScaleEnterprise

Lists the remote content of the project. A Git remote includes the credentialId of the credential that Redocly uses to access its repository. Use it to rotate the access token of the credential.

Requires project.remotes.read permission.

Security
ApiKey
Path
orgIdstring^org_[0-9abcdefghjkmnpqrstvwxyz]{26}$required
Organization ID.
Example:org_01h1s5z6vf2mm1mz3hevnn9va7
projectIdstring^prj_[0-9abcdefghjkmnpqrstvwxyz]{26}$required
Project ID.
Example:prj_01hh1t9sa6gwfv5naz04gr7ehm
Query
afterstring

Cursor of the next page. page.nextPage contains it as the after query parameter, so you can also request page.nextPage directly. The cursor is opaque, and its internal structure is subject to change.

Example:after=a25fgaksjf23la==
beforestring

Cursor of the previous page. page.previousPage contains it as the before query parameter, so you can also request page.previousPage directly. The cursor is opaque, and its internal structure is subject to change.

Example:before=bfg23aksjf23zb1==
sortstring
Remote list can be sorted by `id` and `createdAt`. To sort in descending order, prefix the field with `-`, for example `-createdAt`. To sort in ascending order, use the field name, for example `createdAt`. By default, remote list is sorted by `id` in descending order, which corresponds to the newest remotes first.
Default:"-id"
Example:sort=-id
filterstring
Filter remotes by: - `id` - `mountBranchName` - `type`, one of `GIT`, `URL`, or `CICD` This field requires a special format. For more information, see [Filter results](#section/filter-results).
Example:filter=status:approved createdAt:30d
limitinteger, [ 1 .. 100 ]

Use to return a number of results per page. If there is more data, use in combination with after to page through the data.

Default:10
Example:limit=10
searchstring
Search remotes by query string. Remotes are searched by: - `id` - `mountPath` - `mountBranchName`
Example:search=text-to-search
Headers
x-redocly-clientstring^[a-z0-9-]{1,64}/[\w.+-]{1,32}$

Identifies the calling client as <name>/<version>, for example reunite-ui/0.92.1. Used for API consumer observability. Requests without it are attributed as unknown.

Example:reunite-ui/0.92.1
curl -i -X GET \
  'https://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/org_01h1s5z6vf2mm1mz3hevnn9va7/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/remotes?after=a25fgaksjf23la%3D%3D&before=bfg23aksjf23zb1%3D%3D&sort=-id&filter=status%3Aapproved%20createdAt%3A30d&limit=10&search=text-to-search' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'x-redocly-client: reunite-ui/0.92.1'

Responses

OK.
Bodyapplication/json
objectstringrequired
Value:"list"
pageobject(Page)required
dataArray of any, >= 0 items(Remote)required
Response
{ "object": "list", "page": { "nextPage": "/orgs/org_123/projects?limit=10&after=a25fgaksjf23la==", "previousPage": "/orgs/org_123/projects?limit=10&before=bfg23aksjf23zb1==", "limit": 10 }, "data": [ { … } ] }