Getting the status of services
Note
This feature is in 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:
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The cloud specified in the CLI profile is used by default. You can specify 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
--limit
is the number of services 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:
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The cloud specified in the CLI profile is used by default. You can specify 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.