-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support domain contact change (#155)
This PR reintroduces the domain contact management with a new interface. Users can now change a domain's contact via the dnsimple_registered_resource.contact_id attribute. Once a change of contact ID is detected for a registered domain we will attempt to change the contact. Extended attributes for dnsimple_registered_resource can now be edited at any time after the domain has been registered. The attributes are also used for contact change requests. This PR also re-introduces the dnsimple_registrant_change_check data source, which can be used to see what would be the consequences and requirements of changing a domain's contact. This PR also comes with some fixes for boolean value comparisons in the dnsimple_registered_domain resource. In addition the sweeper utility has been updated to carry out sweeps for registrant changes and also allow for registered domain cleanups.
- Loading branch information
Showing
21 changed files
with
1,184 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
page_title: "DNSimple: dnsimple_registrant_change_check" | ||
--- | ||
|
||
# dnsimple\_registrant_change_check | ||
|
||
Get information on the requirements of a registrant change. | ||
|
||
-> **Note:** The registrant change API is currently in developer preview and is subject to change. | ||
|
||
# Example Usage | ||
|
||
Get registrant change requirements for the `dnsimple.com` domain and the contact with ID `1234`: | ||
|
||
```hcl | ||
data "dnsimple_registrant_change_check" "example" { | ||
domain_id = "dnsimple.com" | ||
contact_id = "1234" | ||
} | ||
``` | ||
|
||
# Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `domain_id` - (Required) The name or ID of the domain. | ||
* `contact_id` - (Required) The ID of the contact you are planning to change to. | ||
|
||
# Attributes Reference | ||
|
||
The following additional attributes are exported: | ||
|
||
* `contact_id` - The ID of the contact you are planning to change to. | ||
* `domain_id` - The name or ID of the domain. | ||
* `extended_attributes` - (List) A list of extended attributes that are required for the registrant change. (see [below for nested schema](#nestedblock--extended_attributes)) | ||
* `registry_owner_change` - (Boolean) Whether the registrant change is going to result in an owner change at the registry. | ||
|
||
<a id="nestedblock--extended_attributes"></a> | ||
|
||
### Nested Schema for `extended_attributes` | ||
|
||
Attributes Reference: | ||
|
||
- `name` (String) - The name of the extended attribute. e.g. `x-au-registrant-id-type` | ||
- `description` (String) - The description of the extended attribute. | ||
- `required` (Boolean) - Whether the extended attribute is required. | ||
- `options` (List) - A list of options for the extended attribute. (see [below for nested schema](#nestedblock--options)) | ||
|
||
<a id="nestedblock--options"></a> | ||
|
||
### Nested Schema for `extended_attributes.options` | ||
|
||
Attributes Reference: | ||
|
||
- `title` (String) - The human readable title of the option. e.g. `Australian Company Number (ACN)` | ||
- `value` (String) - The value of the option. | ||
- `description` (String) - The description of the option. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.