action digitalocean_domains_create { label: "Create a New Domain" description: "To create a new domain, send a POST request to `/v2/domains`. Set the \"name\"\nattribute to the domain name you are adding. Optionally, you may set the\n\"ip_address\" attribute, and an A record will be automatically created pointing\nto the apex domain.\n" provider: digitalocean method: POST path: "/v2/domains" encoding: json input: { type: "object" properties: { ip_address: { type: "string" description: "This optional attribute may contain an IP address. When provided, an A record will be automatically created pointing to the apex domain." } name: { type: "string" description: "The name of the domain itself. This should follow the standard domain format of domain.TLD. For instance, `example.com` is a valid domain name." } ttl: { type: "integer" description: "This value is the time to live for the records on this domain, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested." } zone_file: { type: "string" description: "This attribute contains the complete contents of the zone file for the selected domain. Individual domain record resources should be used to get more granular control over records. However, this attribute can also be used to get information about the SOA record, which is created automatically and is not accessible as an individual record resource." } } } output: { properties: { domain: { type: "object" properties: { ip_address: { type: "string" description: "This optional attribute may contain an IP address. When provided, an A record will be automatically created pointing to the apex domain." } name: { type: "string" description: "The name of the domain itself. This should follow the standard domain format of domain.TLD. For instance, `example.com` is a valid domain name." } ttl: { type: "integer" description: "This value is the time to live for the records on this domain, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested." } zone_file: { type: "string" description: "This attribute contains the complete contents of the zone file for the selected domain. Individual domain record resources should be used to get more granular control over records. However, this attribute can also be used to get information about the SOA record, which is created automatically and is not accessible as an individual record resource." } } } } } }