Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-01 21:09:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-01 21:09:29 +0300
commit3011f8b297a5b71cd505a672b59cc8d3e0aa9f65 (patch)
tree99bf3a2d875f92f7d77a8302911b1ff3ce2a19be /doc/api
parent06f736847bb6a7f577a8f121f94e4cc7ddb51856 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/cluster_agents.md4
-rw-r--r--doc/api/graphql/reference/index.md19
2 files changed, 4 insertions, 19 deletions
diff --git a/doc/api/cluster_agents.md b/doc/api/cluster_agents.md
index 69cbbb9b964..4bd16b88d92 100644
--- a/doc/api/cluster_agents.md
+++ b/doc/api/cluster_agents.md
@@ -242,7 +242,7 @@ curl --request DELETE --header "Private-Token: <your_access_token>" "https://git
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/347046) in GitLab 15.0.
-Returns a list of tokens for an agent.
+Returns a list of active tokens for an agent.
You must have at least the Developer role to use this endpoint.
@@ -313,6 +313,8 @@ Gets a single agent token.
You must have at least the Developer role to use this endpoint.
+Returns a `404` if the agent token has been revoked.
+
```plaintext
GET /projects/:id/cluster_agents/:agent_id/tokens/:token_id
```
diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md
index 8b8ac8a3d44..3c9e837930b 100644
--- a/doc/api/graphql/reference/index.md
+++ b/doc/api/graphql/reference/index.md
@@ -12343,28 +12343,11 @@ GitLab CI/CD configuration template.
| <a id="clusteragentid"></a>`id` | [`ID!`](#id) | ID of the cluster agent. |
| <a id="clusteragentname"></a>`name` | [`String`](#string) | Name of the cluster agent. |
| <a id="clusteragentproject"></a>`project` | [`Project`](#project) | Project this cluster agent is associated with. |
+| <a id="clusteragenttokens"></a>`tokens` | [`ClusterAgentTokenConnection`](#clusteragenttokenconnection) | Tokens associated with the cluster agent. (see [Connections](#connections)) |
| <a id="clusteragentupdatedat"></a>`updatedAt` | [`Time`](#time) | Timestamp the cluster agent was updated. |
| <a id="clusteragentvulnerabilityimages"></a>`vulnerabilityImages` | [`VulnerabilityContainerImageConnection`](#vulnerabilitycontainerimageconnection) | Container images reported on the agent vulnerabilities. (see [Connections](#connections)) |
| <a id="clusteragentwebpath"></a>`webPath` | [`String`](#string) | Web path of the cluster agent. |
-#### Fields with arguments
-
-##### `ClusterAgent.tokens`
-
-Tokens associated with the cluster agent.
-
-Returns [`ClusterAgentTokenConnection`](#clusteragenttokenconnection).
-
-This field returns a [connection](#connections). It accepts the
-four standard [pagination arguments](#connection-pagination-arguments):
-`before: String`, `after: String`, `first: Int`, `last: Int`.
-
-###### Arguments
-
-| Name | Type | Description |
-| ---- | ---- | ----------- |
-| <a id="clusteragenttokensstatus"></a>`status` | [`AgentTokenStatus`](#agenttokenstatus) | Status of the token. |
-
### `ClusterAgentActivityEvent`
#### Fields