Viewing operations with zones
All actions with Cloud DNS zones are logged as a list of operations. Each operation is assigned a unique ID.
Getting a list of operations
-
In the management console
, select the folder that houses the DNS zone. -
Select Cloud DNS.
-
Select the zone you need.
-
Go to the
Operations panel for the selected zone.You will see a list of operations for the selected zone and the records made in it.
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 a DNS zone, run this command:
yc dns zone list-operations <zone_name_or_ID>
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 dns zone list-operations dns3fh7phb04******** --format yaml
Result:
- id: dnsi5gv00kas********
description: Update DNS RecordSets
created_at: "2024-02-01T08:46:21.554860158Z"
created_by: ajego134p5h1********
modified_at: "2024-02-01T08:46:21.554933861Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.dns.v1.UpdateRecordSetsMetadata
- id: dnssdag1giqk********
description: Create DNS Zone
created_at: "2024-02-01T08:45:40.481514713Z"
created_by: ajego134p5h1********
modified_at: "2024-02-01T08:45:40.481608241Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.dns.v1.CreateDnsZoneMetadata
dns_zone_id: dns3fh7phb04********
To get a list of operations for a zone, use the listOperations REST API method for the DnsZone resource or the DnsZoneService/ListOperations gRPC API call.
Getting detailed information about an operation
-
Get a list of operations for the zone.
-
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>
Result:
id: dnsi5gv00kas******** description: Create DNS Zone created_at: "2024-02-01T08:45:40.481Z" created_by: ajego134p5h1******** modified_at: "2024-02-01T08:45:40.481Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.dns.v1.CreateDnsZoneMetadata dns_zone_id: dns3fh7phb04******** response: '@type': type.googleapis.com/yandex.cloud.dns.v1.DnsZone id: dnssdag1giqk******** folder_id: b1gmit33ngp3******** created_at: "2024-02-01T08:45:40.416Z" zone: zonedone.com. public_visibility: {}
Use the get REST API method or the OperationService/Get gRPC API call.