Skip to content
代码片段 群组 项目
未验证 提交 cb276609 编辑于 作者: Suzanne Selhorn's avatar Suzanne Selhorn 提交者: GitLab
浏览文件

Merge branch 'id/updateTokenInformationAPI' into 'master'

Update Token information API

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/175758



Merged-by: default avatarSuzanne Selhorn <sselhorn@gitlab.com>
Co-authored-by: default avatarIsaac Durham <idurham@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -32,7 +32,7 @@ The availability of this feature is controlled by a feature flag. ...@@ -32,7 +32,7 @@ The availability of this feature is controlled by a feature flag.
For more information, see the history. For more information, see the history.
This feature is available for testing, but not ready for production use. This feature is available for testing, but not ready for production use.
Gets information for a given token. This endpoint supports the following tokens: Gets information for a given token. This endpoint supports the following token types:
- [Personal access tokens](../../user/profile/personal_access_tokens.md) - [Personal access tokens](../../user/profile/personal_access_tokens.md)
- [Impersonation tokens](../../api/rest/authentication.md#impersonation-tokens) - [Impersonation tokens](../../api/rest/authentication.md#impersonation-tokens)
...@@ -49,9 +49,9 @@ POST /api/v4/admin/token ...@@ -49,9 +49,9 @@ POST /api/v4/admin/token
Supported attributes: Supported attributes:
| Attribute | Type | Required | Description | | Attribute | Type | Required | Description |
|--------------|---------|----------|-----------------------------| |--------------|---------|----------|----------------------------|
| `token` | string | Yes | Existing token to identify. | | `token` | string | Yes | Existing token to identify |
If successful, returns [`200`](../rest/troubleshooting.md#status-codes) and information about the token. If successful, returns [`200`](../rest/troubleshooting.md#status-codes) and information about the token.
...@@ -98,7 +98,7 @@ Example response: ...@@ -98,7 +98,7 @@ Example response:
} }
``` ```
## Revoke token ## Revoke a token
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/170421) in GitLab 17.7 [with a flag](../../administration/feature_flags.md) named `api_admin_token_revoke`. Disabled by default. > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/170421) in GitLab 17.7 [with a flag](../../administration/feature_flags.md) named `api_admin_token_revoke`. Disabled by default.
...@@ -107,9 +107,7 @@ The availability of this feature is controlled by a feature flag. ...@@ -107,9 +107,7 @@ The availability of this feature is controlled by a feature flag.
For more information, see the history. For more information, see the history.
This feature is available for testing, but not ready for production use. This feature is available for testing, but not ready for production use.
Revokes a token. Revokes a given token. This endpoint supports the following token types:
Supported tokens:
- [Personal access tokens](../../user/profile/personal_access_tokens.md) - [Personal access tokens](../../user/profile/personal_access_tokens.md)
- [Project access tokens](../../security/tokens/index.md#project-access-tokens) - [Project access tokens](../../security/tokens/index.md#project-access-tokens)
...@@ -123,9 +121,9 @@ DELETE /api/v4/admin/token ...@@ -123,9 +121,9 @@ DELETE /api/v4/admin/token
Supported attributes: Supported attributes:
| Attribute | Type | Required | Description | | Attribute | Type | Required | Description |
|--------------|---------|----------|----------------------------------| |--------------|---------|----------|--------------------------|
| `token` | string | Yes | Token that should be revoked. | | `token` | string | Yes | Existing token to revoke |
If successful, returns [`204`](../rest/troubleshooting.md#status-codes) without content. If successful, returns [`204`](../rest/troubleshooting.md#status-codes) without content.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册