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
Jérome Perrin
gitlab-ce
Commits
ea109704
Commit
ea109704
authored
May 19, 2014
by
Job van der Voort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
everything in header
parent
23665d25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
doc/api/deploy_key_multiple_projects.md
doc/api/deploy_key_multiple_projects.md
+4
-3
No files found.
doc/api/deploy_key_multiple_projects.md
View file @
ea109704
...
@@ -5,15 +5,16 @@ If you want to easily add the same deploy key to multiple projects in the same g
...
@@ -5,15 +5,16 @@ If you want to easily add the same deploy key to multiple projects in the same g
First, find the ID of the projects you're interested in, by either listing all projects:
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
curl
--header 'PRIVATE-TOKEN: abcdef' https://gitlab.com/api/v3/projects
```
```
Or finding the id of a group and then listing all projects in that group:
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
--header 'PRIVATE-TOKEN: abcdef' https://gitlab.com/api/v3/groups
curl https://gitlab.com/api/v3/groups/1234?private_token=abcdef # where the id of the group is 1234
# For group 1234:
curl --header 'PRIVATE-TOKEN: abcdef' https://gitlab.com/api/v3/groups/1234
```
```
With those IDs, add the same deploy key to all:
With those IDs, add the same deploy key to all:
...
...
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