diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
commit | 536aa3a1f4b96abc4ca34489bf2cbe503afcded7 (patch) | |
tree | 88d08f7dfa29a32d6526773c4fe0fefd9f2bc7d1 /doc/api/project_clusters.md | |
parent | 50ae4065530c4eafbeb7c5ff2c462c48c02947ca (diff) | |
download | gitlab-ce-536aa3a1f4b96abc4ca34489bf2cbe503afcded7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/project_clusters.md')
-rw-r--r-- | doc/api/project_clusters.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/project_clusters.md b/doc/api/project_clusters.md index 1aa225d30ab..b52f96d0f2e 100644 --- a/doc/api/project_clusters.md +++ b/doc/api/project_clusters.md @@ -21,7 +21,7 @@ Parameters: Example request: -```bash +```shell curl --header 'Private-Token: <your_access_token>' https://gitlab.example.com/api/v4/projects/26/clusters ``` @@ -77,7 +77,7 @@ Example response: Gets a single project cluster. -```bash +```shell GET /projects/:id/clusters/:cluster_id ``` @@ -90,7 +90,7 @@ Parameters: Example request: -```bash +```shell curl --header 'Private-Token: <your_access_token>' https://gitlab.example.com/api/v4/projects/26/clusters/18 ``` @@ -168,7 +168,7 @@ Example response: Adds an existing Kubernetes cluster to the project. -```bash +```shell POST /projects/:id/clusters/user ``` @@ -190,7 +190,7 @@ Parameters: Example request: -```bash +```shell 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" \ @@ -261,7 +261,7 @@ Example response: Updates an existing project cluster. -```bash +```shell PUT /projects/:id/clusters/:cluster_id ``` @@ -287,7 +287,7 @@ through the ["Add existing cluster to project"](#add-existing-cluster-to-project Example request: -```bash +```shell 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"}' @@ -381,6 +381,6 @@ Parameters: Example request: -```bash +```shell curl --request DELETE --header 'Private-Token: <your_access_token>' https://gitlab.example.com/api/v4/projects/26/clusters/23 ``` |