[Yandex Cloud documentation](../../../index.md) > [Yandex Data Streams](../../index.md) > [Step-by-step guides](../index.md) > Working with the AWS CLI > Getting stream info

# Getting stream information

{% list tabs group=instructions %}

- CLI {#cli}

  To get a description of the [stream](../../concepts/glossary.md#stream-concepts) you created, run this command:

  ```bash
  aws kinesis describe-stream \
    --endpoint <endpoint> \
    --stream-name <stream_ID>
  ```

  * `--endpoint`: Specify the `https://yds.serverless.yandexcloud.net` endpoint to get information about a stream that receives data over the AWS Kinesis Data Streams protocol.
  * `--stream-name`: Consists of the availability zone, cloud ID, Yandex Managed Service for YDB database ID, and stream name.

    >For example, your stream ID will appear as `/ru-central1/b1gvlrnlei4l********/etn780rpm7e5********/default` if:
     >* `ru-central1`: Region.
     >* `b1gvlrnlei4l********`: Cloud ID.
     >* `etn780rpm7e5********`: YDB database ID.
     >* `default`: Stream name.

  Command example:

   ```bash
   aws kinesis describe-stream \
     --endpoint https://yds.serverless.yandexcloud.net \
     --stream-name /ru-central1/b1gvlrnlei4l********/etn780rpm7e5********/default
   ```

  Result:

  ```json
  {
    "StreamDescription": {
      "Shards": [
      {
        "ShardId": "shard-000000",
        "ParentShardId": "",
        "AdjacentParentShardId": "",
        "HashKeyRange": {
          "StartingHashKey": "0",
          "EndingHashKey": "113427455640312821154458202477256070484"
        },
        "SequenceNumberRange": {
          "StartingSequenceNumber": "0",
          "EndingSequenceNumber": ""
        }
      }],
      "StreamARN": null,
      "StreamName": "aws_stream",
      "StreamStatus": "ACTIVE",
      "RetentionPeriodHours": 24,
      "EnhancedMonitoring": null,
      "EncryptionType": "ENCRYPTION_UNDEFINED",
      "KeyId": "",
      "StreamCreationTimestamp": ""
    }
  }
  ```

{% endlist %}