| 
 | 1 | +---  | 
 | 2 | +page_title: "Resource: auth0_organization_discovery_domains"  | 
 | 3 | +description: |-  | 
 | 4 | +  With this resource, you can manage discovery domains on an organization.  | 
 | 5 | +---  | 
 | 6 | + | 
 | 7 | +# Resource: auth0_organization_discovery_domains  | 
 | 8 | + | 
 | 9 | +With this resource, you can manage discovery domains on an organization.  | 
 | 10 | + | 
 | 11 | +## Example Usage  | 
 | 12 | + | 
 | 13 | +```terraform  | 
 | 14 | +resource "auth0_organization" "my_organization" {  | 
 | 15 | +  name         = "my-organization"  | 
 | 16 | +  display_name = "My Organization"  | 
 | 17 | +}  | 
 | 18 | +
  | 
 | 19 | +resource "auth0_organization_discovery_domains" "my_org_discovery_domains" {  | 
 | 20 | +  organization_id = auth0_organization.my_organization.id  | 
 | 21 | +
  | 
 | 22 | +  discovery_domains {  | 
 | 23 | +    domain = "example.com"  | 
 | 24 | +    status = "pending"  | 
 | 25 | +  }  | 
 | 26 | +
  | 
 | 27 | +  discovery_domains {  | 
 | 28 | +    domain = "test.com"  | 
 | 29 | +    status = "verified"  | 
 | 30 | +  }  | 
 | 31 | +}  | 
 | 32 | +```  | 
 | 33 | + | 
 | 34 | +<!-- schema generated by tfplugindocs -->  | 
 | 35 | +## Schema  | 
 | 36 | + | 
 | 37 | +### Required  | 
 | 38 | + | 
 | 39 | +- `discovery_domains` (Set of Object) Discovery domains that are configured for the organization. (see [below for nested schema](#nestedatt--discovery_domains))  | 
 | 40 | +- `organization_id` (String) ID of the organization on which to manage the discovery domains.  | 
 | 41 | + | 
 | 42 | +### Read-Only  | 
 | 43 | + | 
 | 44 | +- `id` (String) The ID of this resource.  | 
 | 45 | + | 
 | 46 | +<a id="nestedatt--discovery_domains"></a>  | 
 | 47 | +### Nested Schema for `discovery_domains`  | 
 | 48 | + | 
 | 49 | +Required:  | 
 | 50 | + | 
 | 51 | +- `domain` (String) The domain name for organization discovery.  | 
 | 52 | +- `status` (String) Verification status. Must be either 'pending' or 'verified'.  | 
 | 53 | + | 
 | 54 | +Read-Only:  | 
 | 55 | + | 
 | 56 | +- `id` (String) The ID of the discovery domain.  | 
 | 57 | +- `verification_host` (String) The full domain where the TXT record should be added.  | 
 | 58 | +- `verification_txt` (String) TXT record value for domain verification.  | 
 | 59 | + | 
 | 60 | +## Import  | 
 | 61 | + | 
 | 62 | +Import is supported using the following syntax:  | 
 | 63 | + | 
 | 64 | +```shell  | 
 | 65 | +# Organization discovery domains can be imported using the organization ID.  | 
 | 66 | +terraform import auth0_organization_discovery_domains.my_org_discovery_domains "org_XXXXXXXXXXXXXXXX"  | 
 | 67 | +```  | 
0 commit comments