Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions en/managed-gitlab/operations/approval-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ To create a token:
The default value is one month from the token creation date, and the maximum is one year. The token expires at 00:00 UTC on the specified date.

1. Under **Select scopes**, select **api**.

{% note info %}

If Admin Mode is enabled on your {{ GL }} instance, also select **admin_mode**. The account this token is created for has the **Administrator** access level (see [creating a service account](create-user.md#create)), and without the `admin_mode` scope, a token for such an account cannot perform API actions that require administrator privileges: the requests will fail with a 403 error.

{% endnote %}

1. Click **Create personal access token**.

This will generate a new token.
Expand Down
7 changes: 7 additions & 0 deletions ru/managed-gitlab/operations/approval-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ description: Следуя данной инструкции, вы сможете
Значение по умолчанию — срок истекает через месяц от даты создания токена, максимальное значение — через год. Срок жизни токена истекает в полночь UTC в указанный день.

1. В блоке **Select scopes** выберите опцию **api**.

{% note info %}

Если на инстансе {{ GL }} включен режим Admin Mode, дополнительно выберите опцию **admin_mode**. Аккаунт, для которого создается токен, имеет уровень доступа **Administrator** (см. [создание служебного аккаунта](create-user.md#create)), а без scope `admin_mode` токен такого аккаунта не сможет выполнять через API действия, требующие прав администратора: запросы будут завершаться ошибкой 403.

{% endnote %}

1. Нажмите кнопку **Create personal access token**.

Появится новый токен.
Expand Down