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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
900c6f90
Commit
900c6f90
authored
Jul 09, 2020
by
Serena Fang
Committed by
serenafang
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change single quotes around private token to double quotes
parent
16296f3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/api/project_clusters.md
doc/api/project_clusters.md
+4
-4
No files found.
doc/api/project_clusters.md
View file @
900c6f90
...
...
@@ -22,7 +22,7 @@ Parameters:
Example request:
```
shell
curl
--header
'Private-Token: <your_access_token>'
"https://gitlab.example.com/api/v4/projects/26/clusters"
curl
--header
"Private-Token: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/26/clusters"
```
Example response:
...
...
@@ -192,7 +192,7 @@ Parameters:
Example request:
```
shell
curl
--header
'Private-Token: <your_access_token>'
"https://gitlab.example.com/api/v4/projects/26/clusters/user"
\
curl
--header
"Private-Token: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/26/clusters/user"
\
-H
"Accept: application/json"
\
-H
"Content-Type:application/json"
\
-X
POST
--data
'{"name":"cluster-5", "platform_kubernetes_attributes":{"api_url":"https://35.111.51.20","token":"12345","namespace":"cluster-5-namespace","ca_cert":"-----BEGIN CERTIFICATE-----\r\nhFiK1L61owwDQYJKoZIhvcNAQELBQAw\r\nLzEtMCsGA1UEAxMkZDA1YzQ1YjctNzdiMS00NDY0LThjNmEtMTQ0ZDJkZjM4ZDBj\r\nMB4XDTE4MTIyNzIwMDM1MVoXDTIzMTIyNjIxMDM1MVowLzEtMCsGA1UEAxMkZDA1\r\nYzQ1YjctNzdiMS00NDY0LThjNmEtMTQ0ZDJkZjM.......-----END CERTIFICATE-----"}}'
...
...
@@ -289,7 +289,7 @@ through the ["Add existing cluster to project"](#add-existing-cluster-to-project
Example request:
```
shell
curl
--header
'Private-Token: <your_access_token>'
"https://gitlab.example.com/api/v4/projects/26/clusters/24"
\
curl
--header
"Private-Token: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/26/clusters/24"
\
-H
"Content-Type:application/json"
\
-X
PUT
--data
'{"name":"new-cluster-name","domain":"new-domain.com","api_url":"https://new-api-url.com"}'
```
...
...
@@ -383,5 +383,5 @@ Parameters:
Example request:
```
shell
curl
--request
DELETE
--header
'Private-Token: <your_access_token>'
"https://gitlab.example.com/api/v4/projects/26/clusters/23"
curl
--request
DELETE
--header
"Private-Token: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/26/clusters/23"
```
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