Viewing operations with the service's resources
All actions with Application Load Balancer resources are logged as a list of operations. Each operation is assigned a unique ID.
Getting a list of operations
You can get a list of operations for a specific resource. The steps below describe how you can do this for an L7 load balancer. The same steps apply to other service resources.
-
In the management console
, open the folder the load balancer is in. -
Select Application Load Balancer.
-
In the left-hand panel, select
Load balancers. -
Select the appropriate load balancer.
-
Go to
Operations for the selected load balancer.You will see a list of operations with the selected load balancer.
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 operations for an Application Load Balancer resource, run this command:
yc alb <resource_type> list-operations <resource_name_or_ID>
Example
Getting a list of operations for a load balancer:
yc alb load-balancer list-operations ds7857cmjtuv********
Result:
+----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
| ID | CREATED AT | CREATED BY | MODIFIED AT | STATUS | DESCRIPTION |
+----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
| ds71vdf0jqut******** | 2024-05-14 14:36:06 | aje9k8luj4qf******** | 2024-05-14 14:36:06 | DONE | update loadbalancer |
| | | | | | 'ds7857cmjtuv********' |
| ds7nspb18tkg******** | 2024-05-14 12:29:53 | aje9k8luj4qf******** | 2024-05-14 12:34:46 | DONE | create loadbalancer |
| | | | | | 'ds7857cmjtuv********' |
+----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
By default, information about operations is provided as text. To get detailed information, specify the yaml
or json
output data format using the --format
flag:
yc alb load-balancer list-operations ds7857cmjtuv******** --format yaml
Result:
- id: ds71vdf0jqut********
description: update loadbalancer 'ds7857cmjtuv********'
created_at: "2024-05-14T14:36:06.637766633Z"
created_by: aje9k8luj4qf********
modified_at: "2024-05-14T14:36:06.666429213Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.apploadbalancer.v1.UpdateLoadBalancerMetadata
load_balancer_id: ds7857cmjtuv********
response:
'@type': type.googleapis.com/yandex.cloud.apploadbalancer.v1.LoadBalancer
id: ds7857cmjtuv********
name: my-alb
folder_id: b1g681qpemb4********
status: ACTIVE
...
created_at: "2024-05-14T12:29:53.571411960Z"
log_options: {}
- id: ds7nspb18tkg********
description: create loadbalancer 'ds7857cmjtuv********'
created_at: "2024-05-14T12:29:53.571411960Z"
created_by: aje9k8luj4qf********
modified_at: "2024-05-14T12:34:46.963930680Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.apploadbalancer.v1.CreateLoadBalancerMetadata
load_balancer_id: ds7857cmjtuv********
response:
'@type': type.googleapis.com/yandex.cloud.apploadbalancer.v1.LoadBalancer
id: ds7857cmjtuv********
name: my-alb
folder_id: b1g681qpemb4********
status: ACTIVE
...
created_at: "2024-05-14T12:29:53.571411960Z"
log_options: {}
Use the listOperations
REST API method for the relevant resource or the <service>/ListOperations
gRPC API call.
For example, for a load balancer, use either the listOperations REST API method for the LoadBalancer resource or the LoadBalancerService/ListOperations gRPC API call.
Getting detailed information about an operation
-
Get a list of operations for the resource.
-
Copy the ID of the operation.
-
Get detailed information about the operation:
CLIAPIIf 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.Run this command:
yc operation get <operation_ID>
id: ds7nspb18tkg******** description: create loadbalancer 'ds7857cmjtuv********' created_at: "2024-05-14T12:29:53.571411960Z" created_by: aje9k8luj4qf******** modified_at: "2024-05-14T12:34:46.963930680Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.apploadbalancer.v1.CreateLoadBalancerMetadata load_balancer_id: ds7857cmjtuv******** response: '@type': type.googleapis.com/yandex.cloud.apploadbalancer.v1.LoadBalancer id: ds7857cmjtuv******** name: my-alb folder_id: b1g681qpemb4******** status: ACTIVE region_id: ru-central1 network_id: enp3srbi9u49******** allocation_policy: locations: - zone_id: ru-central1-a subnet_id: e9bpric55er9******** - zone_id: ru-central1-b subnet_id: e2l15qssjar5******** - zone_id: ru-central1-d subnet_id: fl85ebb396ub******** created_at: "2024-05-14T12:29:53.571411960Z" log_options: {}
Use the OperationService/Get gRPC API call.