Viewing operations with zones
All Cloud DNS zone activities are logged as a list of operations. Each operation gets its own unique ID.
Getting a list of operations
-
In the management console
, select the folder containing your DNS zone. -
Select Cloud DNS.
-
Select the zone you need.
-
Navigate to the Operations panel for the selected zone.
You will see a list of operations performed on the selected zone and its DNS records.
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.
To get a DNS zone operation list, run this command:
yc dns zone list-operations <zone_name_or_ID>
By default, information about operations is displayed as text. To get more detailed information, specify the yaml or json output data format using the --format parameter:
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 DNS zone operation list, use the listOperations REST API method for the DnsZone resource or the DnsZoneService/ListOperations gRPC API call.
Getting operation details
-
Copy the ID of the operation you need.
-
Get operation details:
CLIAPIIf 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-nameor--folder-idparameter.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.