Getting information about instances
You can get detailed information about each GitLab instance you created in Yandex Cloud.
Getting a list of instances in a folder
Navigate to the folder dashboard and select Managed Service for GitLab.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get a list of available GitLab instances in the default folder, run this command:
yc managed-gitlab instance list
Result:
+----------------------+-------+-------------------------------+---------------------+---------------------+----------------+---------+
| ID | NAME | DOMAIN | CREATED AT | UPDATED AT | GITLAB VERSION | STATUS |
+----------------------+-------+-------------------------------+---------------------+---------------------+----------------+---------+
| c17gehgsk7gq******** | my-gl | domain.gitlab.yandexcloud.net | 2025-06-10 12:10:55 | 2025-06-10 12:10:55 | 17.11.2 | RUNNING |
+----------------------+-------+-------------------------------+---------------------+---------------------+----------------+---------+
Where:
ID: Instance ID.NAME: Instance name.DOMAIN: Instance address on the internet.CREATED AT: Date and time when the instance was created.UPDATED AT: Date and time when the instance was updated.GITLAB VERSION: GitLab version.STATUS: Instance status. Learn more about possible statuses here.
For more information about this command, see the CLI reference.
Use the List REST API method for the Instance resource or the InstanceService/List gRPC API call.
Getting instance details
Instance details include:
- Domain.
- Status.
- Resources: RAM, vCPU, and disk size.
- Admin's username and email address.
- In the management console, select the folder where the GitLab instance is located.
- Select Managed Service for GitLab.
- Click the instance name.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get details for a GitLab instance, run this command:
yc managed-gitlab instance get <instance_name_or_ID>
Result:
id: c17gehgsk7gq********
folder_id: b1gutjgdvq50********
created_at: "2025-06-10T12:10:55.902Z"
updated_at: "2025-06-10T12:10:55.902Z"
name: my-gl
resource_preset_id: s2.micro
disk_size: "32212254720"
status: RUNNING
admin_login: my-login
admin_email: admin@mail.ru
domain: domain.gitlab.yandexcloud.net
subnet_id: e9bk8uu1lv1sg********
backup_retain_period_days: "7"
maintenance_delete_untagged: true
deletion_protection: true
approval_rules_id: NONE
gitlab_version: 17.11.2
Where:
id: Instance ID.folder_id: ID of the folder containing the instance.created_at: Date and time when the instance was created.updated_at: Date and time when the instance was updated.name: Instance name.resource_preset_id: Instance type ID.disk_size: Disk size.status: Instance status. Learn more about possible statuses here.admin_login: Administrator login.admin_email: Administrator email.domain: Instance address on the internet.subnet_id: Subnet ID.backup_retain_period_days: Backup retention in days.maintenance_delete_untagged: Enables deletion of untagged images during maintenance. The possible values aretrueorfalse.deletion_protection: Instance protection from accidental deletion by a user. The possible values aretrueorfalse.approval_rules_id: Approval rules. Learn more about supported rule configurations.gitlab_version: GitLab version.
You can request the instance name and ID with the list of instances in the folder.
For more information about this command, see the CLI reference.
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To get information about a GitLab instance using Terraform:
-
Add the
dataandoutputsections to the Terraform configuration file:data "yandex_gitlab_instance" "gitlab_instance_by_id" { id = "<instance_ID>" } output "instance_domain" { value = data.yandex_gitlab_instance.gitlab_instance_by_id.domain }Where:
data "yandex_gitlab_instance": GitLab instance description as a data source:id: GitLab instance ID.
output "instance_domain": Output variable that contains information about the domain:value: Return value.
You can replace
domainwith any other parameter to get the information you need. For more information about thegitlab_instancedata source properties, see this Terraform provider article. -
Apply the configuration:
-
In the terminal, go to the directory where you edited the configuration file.
-
Make sure the configuration file is correct using this command:
terraform validateIf the configuration is correct, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.
-
Apply the changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will apply the configuration and display output variables in the terminal. To check the results, run this command:
terraform outputResult:
instance_domain = example.gitlab.yandexcloud.net -
Use the Get REST API method for the Instance resource or the InstanceService/Get gRPC API call.
Viewing a list of operations in an instance
The list shows operations with instances and resources linked to them.
All actions with Managed Service for GitLab instances are logged as a list of operations. Each operation gets its own unique ID.
To get a list of operations for a specific instance:
-
In the management console
, open the folder with the cluster. -
Select Managed Service for GitLab.
-
In the left-hand panel, select
Instances. -
Select the instance you need.
-
Go to the
Operations panel for the selected cluster.You will see the list of operations with the selected instance.
Getting operation details
-
Get a list of operations for an instance.
-
Copy the operation ID.
-
Get operation details:
CLIAPIIf you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the
yc config set folder-id <folder_ID>command. You can also set a different folder for any specific command using the--folder-nameor--folder-idparameter.Run this command:
yc operation get <operation_ID>Result:
id: c17de7epmui******** description: Create automatic GitLab backup created_at: "2025-07-24T22:01:24.352Z" created_by: yc.managed-gitlab.serviceAccount modified_at: "2025-07-25T03:07:17.092Z" done: true metadata: '@type': type.googleapis.com/google.protobuf.Empty value: {} response: '@type': type.googleapis.com/yandex.cloud.gitlab.v1.Instance ...Use the Get REST API method for the Operation resource or the OperationService/Get gRPC API call.