Getting information about a bus
- In the management console
, go to the folder containing the bus. - Select Serverless Integrations.
- In the left-hand panel, click
EventRouter. - Select a bus. The Overview page will display detailed information about the bus.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
-
See the description of the CLI command to view information about a bus:
yc serverless eventrouter bus get --help -
Get a list of buses:
yc serverless eventrouter bus listResult:
+----------------------+------------------+----------------------+--------+---------------------+ | ID | NAME | FOLDER ID | STATUS | DELETION PROTECTION | +----------------------+------------------+----------------------+--------+---------------------+ | f6676a9ti657******** | my-new-bus-17 | b1g681qpemb4******** | ACTIVE | false | | f66aevm4ithv******** | my-favourite-bus | b1g681qpemb4******** | ACTIVE | true | | f66m2q222n92******** | my-bus-42 | b1g681qpemb4******** | ACTIVE | false | +----------------------+------------------+----------------------+--------+---------------------+ -
Get detailed information about a bus by specifying its name or ID:
yc serverless eventrouter bus get <bus_ID>Result:
id: f66ngs9760f1******** folder_id: b1go3el0d8fs******** cloud_id: b1gia87mbaom******** created_at: "2025-02-18T13:23:45.126870Z" name: my-bus status: ACTIVE
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
-
Add the
dataandoutputsections to the Terraform configuration file:data "yandex_serverless_eventrouter_bus" "my-bus" { bus_id = "<bus_ID>" } output "bus-folder" { value = data.yandex_serverless_eventrouter_bus.my-bus.folder_id }Where:
data "yandex_serverless_eventrouter_bus": Description of the bus as a data source:resource_id: Bus ID.
output "bus-folder": Output variable with information about the folder housing the bus (folder_id):value: Returned value.
You can replace
folder_idwith any other parameter to get the information you need. For more information about theyandex_serverless_eventrouter_busdata source parameters, see the relevant provider documentation. -
Create the resources:
-
In the terminal, go to the directory where you edited the configuration file.
-
Make sure the configuration file is correct using this command:
terraform validateIf the configuration is correct, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.
-
Apply the changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will create all the required resources and display the output variable values in the terminal. To check the results, run this command:
terraform outputResult:
bus-folder = "b1geoelk7fld********" -
To get detailed information about a bus, use the get REST API method for the Bus resource or the BusService/Get gRPC API call.