Getting the status of services
Note
This feature is at the Preview stage.
In Yandex Identity and Access Management, you can manage service access to user resources in a specific cloud.
Getting a list of services
To get a list of services whose access in the cloud can be managed:
- In the management console
, select the relevant cloud. - In the left-hand panel, click
and select Permissions.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the cloud specified in the CLI profile. You can set a different cloud in the --cloud-id parameter.
-
View the description of the CLI command to get a list of services whose access you can manage:
yc iam service-control list --help -
Run this command:
yc iam service-control list \ --limit <number_of_services>Where
--limitis the number of services you need to list. This is an optional parameter.Result:
+--------------------+----------+ | SERVICE ID | STATUS | +--------------------+----------+ | connection-manager | ENABLED | | datasphere | DISABLED | | disk-encryption | DEFAULT | | dspm | DEFAULT | | websql | ENABLED | +--------------------+----------+
Use the list REST API method for the ServiceControl resource or the ServiceControlService/List gRPC API call.
Getting information about a service status
To get information about the status of a service in a cloud:
- In the management console
, select the relevant cloud. - In the left-hand panel, click
and select Permissions. - Enter the service name in the Filter by service field.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the cloud specified in the CLI profile. You can set a different cloud in the --cloud-id parameter.
-
See the description of the CLI command to get information about the status of a service in a cloud:
yc iam service-control get --help -
Get a list of services whose access can be managed.
-
Run the command by specifying the ID of the service whose status in this cloud you want to get:
yc iam service-control get <service_ID>Result:
service_id: connection-manager resource: id: aoenvj7ssrvr******** type: resource-manager.cloud updated_at: "2024-03-13T07:21:00.808442047Z" status: DISABLED
Use the get REST API method for the ServiceControl resource or the ServiceControlService/Get gRPC API call.