Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
f0a4f62c
Commit
f0a4f62c
authored
Apr 15, 2014
by
Job van der Voort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start writing deploy key to multiple projects
parent
2bfd95d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
doc/api/deploy_key_multiple_projects.md
doc/api/deploy_key_multiple_projects.md
+22
-0
No files found.
doc/api/deploy_key_multiple_projects.md
0 → 100644
View file @
f0a4f62c
# Adding deploy keys to multiple projects
If you want to easily add the same deploy key to multiple projects in the same group, this can be achieved quite easily with the API.
First, find the ID of the projects you're interested in, by either listing all projects:
```
curl https://gitlab.com/api/v3/projects?private_token=abcdef
```
Or finding the id of a group and then listing all projects in that group:
```
curl https://gitlab.com/api/v3/groups?private_token=abcdef
curl https://gitlab.com/api/v3/groups/1234?private_token=abcdef # where the id of the group is 1234
```
With those IDs, add the same deploy key to all:
```
curl -X POST curl https://gitlab.com/api/v3/projects/321/deploy_key_here?private_token=abcdef
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment