Getting information about service accesses
Note
This feature is in the Preview stage.
In Yandex Identity and Access Management, you can manage service access to resources in the 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 to cloud resources can be managed:
yc iam service-control list --help
-
Run this command:
yc iam service-control list \ --limit <number_of_services>
--limit
: Number of services you want listed. This is an optional parameter.Result:
+--------------------+----------+ | SERVICE ID | STATUS | +--------------------+----------+ | connection-manager | DISABLED | | mdb | DISABLED | +--------------------+----------+
Use the list REST API method for the ServiceControl resource or the ServiceControlService/List gRPC API call.
Getting information about service access
To get information about a service's access to cloud resources:
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 information about a service's access to cloud resources:
yc iam service-control get --help
-
Get a list of services whose access can be managed.
-
Run the command by providing the ID of the service for which you want the information on access to cloud resources:
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.