From 2669476ce107e177c930fe7b2c79b0bcba1b8e78 Mon Sep 17 00:00:00 2001 From: Ewere Diagboya Date: Mon, 17 Jul 2023 15:48:25 +0100 Subject: [PATCH] doc: how to get id for record import (#1004) * doc: how to get id for record import * Use note and add API docs link. --------- Co-authored-by: Andrew Starr-Bochicchio Co-authored-by: Andrew Starr-Bochicchio --- docs/resources/record.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/resources/record.md b/docs/resources/record.md index 211f83607..e6f8e1b55 100644 --- a/docs/resources/record.md +++ b/docs/resources/record.md @@ -70,3 +70,5 @@ Records can be imported using the domain name and record `id` when joined with a ``` terraform import digitalocean_record.example_record example.com,12345678 ``` + +~> You find the `id` of the records [using the DigitalOcean API](https://docs.digitalocean.com/reference/api/api-reference/#operation/domains_list_records) or CLI. Run the follow command to list the IDs for all DNS records on a domain: `doctl compute domain records list `