Getting a list of sinks
Written by
Updated at October 17, 2024
Management console
CLI
API
- In the management console
, go to the folder where you want to view a list of sinks. - Select Cloud Logging.
- In the left-hand panel, select
Sinks.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To get a list of sinks in the folder, run this command:
yc logging sink list
Result:
+----------------------+-----------+----------------------+----------------------+------------------+
| ID | NAME | FOLDER ID | SERVICE ACCOUNT ID | SINK |
+----------------------+-----------+----------------------+----------------------+------------------+
| e23e73lehbfv******** | test-sink | b1gmit33ngp3******** | ajejeis235ma******** | S3: test-bucket/ |
+----------------------+-----------+----------------------+----------------------+------------------+
To get a list of sinks, use the list REST API method for the Sink resource or the SinkService/List gRPC API call.