Skip to content

Commit

Permalink
doc: how to get id for record import (#1004)
Browse files Browse the repository at this point in the history
* doc: how to get id for record import

* Use note and add API docs link.

---------

Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
Co-authored-by: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
  • Loading branch information
3 people committed Jul 17, 2023
1 parent 46918a6 commit 2669476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/resources/record.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <domain.name>`

0 comments on commit 2669476

Please sign in to comment.