Getting service statuses
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 you can manage:
If you do not have the Yandex Cloud CLI yet, install and initialize it.
By default, the CLI uses the cloud specified in the CLI profile. If no cloud is specified in the CLI profile or you want to specify a different one, provide the ID of the cloud in the command using the --cloud-id property.
-
View the description of the CLI command for getting 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 to list. This is an optional setting.Result:
+--------------------+----------+ | SERVICE ID | STATUS | +--------------------+----------+ | asset-manager | DEFAULT | | backup | DEFAULT | | cloud-registry | ENABLED | | connection-manager | ENABLED | | data-catalog | DEFAULT | | datasphere | DISABLED | | disk-encryption | DEFAULT | | dspm | ENABLED | | security-deck | ENABLED | | src-integration | DISABLED | | 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 cloud service:
If you do not have the Yandex Cloud CLI yet, install and initialize it.
By default, the CLI uses the cloud specified in the CLI profile. If no cloud is specified in the CLI profile or you want to specify a different one, provide the ID of the cloud in the command using the --cloud-id property.
-
See the description of the CLI command for getting information about a cloud service status:
yc iam service-control get --help -
Get a list of services whose access you can manage.
-
Run the following command, specifying the ID of the service whose status in the 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.