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. -
Go to 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 yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. 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 --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
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 output as text. To get more details, specify the yaml or json output data format using --format:
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 the operation details:
CLIAPIIf you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. 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--folder-nameor--folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.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.