Specifying a cloud network in which to run a workflow
Written by
Updated at April 24, 2025
You can specify a cloud network in which to run a workflow.
A cloud network must meet the following conditions:
- Has subnets in all availability zones.
- Has at least one resource with an IP address in the specified cloud network.
Note
If the network does not meet the conditions above, the service does not guarantee its operation.
Management console
CLI
API
- In the management console
, select the folder containing the workflow. - Select Serverless Integrations.
- In the left-hand panel, click
Workflows. - Click
in the workflow row and select Edit. - Expand the Additional parameters section and specify the network in the Network field.
- Click Save.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can also specify a different folder for any command using the --folder-name
or --folder-id
parameter.
To specify a cloud network, run the command:
yc serverless workflow update <workflow_name_or_ID> \
--yaml-spec <specification_file> \
--network-id <network_ID>
Where:
--yaml-spec
: Path to the YaWL specification file for the workflow, e.g.,./yawl-spec.json
.--network-id
: ID of the cloud network the workflow will run in.
Result:
id: dfqjl5hh5p90********
folder_id: b1g681qpemb4********
specification:
spec_yaml: "yawl: ..."
created_at: "2025-03-11T09:27:51.691990Z"
name: my-workflow
description: created via cli
labels:
owner: "admin"
version: "alpha"
status: ACTIVE
log_options: {}
service_account_id: aje4tpd9coa********
network_id: enpm8v48ehcl********
To specify a cloud network, use the Update REST API method for the Workflows resource or the workflow/Update gRPC API call.