[Yandex Cloud documentation](../../../index.md) > [Yandex Identity and Access Management](../../index.md) > [Step-by-step guides](../index.md) > Service access to user resources > Viewing the status of services

# Getting the status of services


In Yandex Identity and Access Management, you can manage [service access](../../concepts/service-control.md) to user resources in a specific cloud.

## Getting a list of services {#list}

To get a list of services whose access in the cloud can be managed:

{% list tabs group=instructions %}


- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  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.

  1. View the description of the CLI command to get a list of services whose access you can manage:

      ```bash
      yc iam service-control list --help
      ``` 

  1. Run this command:

      ```bash
      yc iam service-control list \
        --limit <number_of_services>
      ```

      Where `--limit` is the number of services you need to list. This is an optional setting.

      Result:

      ```text
      +--------------------+----------+
      |     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  |
      +--------------------+----------+
      ```

- API {#api}

  Use the [list](../../api-ref/ServiceControl/list.md) REST API method for the [ServiceControl](../../api-ref/ServiceControl/index.md) resource or the [ServiceControlService/List](../../api-ref/grpc/ServiceControl/list.md) gRPC API call.

{% endlist %}

## Getting information about a service status {#get}

To get information about the [status](../../concepts/service-control.md#access-status) of a service in a cloud:

{% list tabs group=instructions %}


- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  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.

  1. See the description of the CLI command to get information about the status of a service in a cloud:

      ```bash
      yc iam service-control get --help
      ``` 

  1. [Get](#list) a list of services whose access can be managed.

  1. Run the command by specifying the ID of the service whose status in this cloud you want to get:

      ```bash
      yc iam service-control get <service_ID>
      ```

      Result:

      ```text
      service_id: connection-manager
      resource:
        id: aoenvj7ssrvr********
        type: resource-manager.cloud
      updated_at: "2024-03-13T07:21:00.808442047Z"
      status: DISABLED
      ```

- API {#api}

  Use the [get](../../api-ref/ServiceControl/get.md) REST API method for the [ServiceControl](../../api-ref/ServiceControl/index.md) resource or the [ServiceControlService/Get](../../api-ref/grpc/ServiceControl/get.md) gRPC API call.

{% endlist %}

#### Useful links {#see-also}

* [Enabling and disabling a service](enable-disable.md)
* [Service access to user resources](../../concepts/service-control.md)