The fullname field is used for human readability in reports and other pages that refer to domains, and also available as an external node parameter
POST /api/domains
{
"organization_id": 447626448,
"domain": {
"name": "example243.com",
"organization_ids": [
447626448
],
"location_ids": [
447626450
]
}
}
201
{
"fullname": null,
"created_at": "2019-11-07 08:37:32 UTC",
"updated_at": "2019-11-07 08:37:32 UTC",
"id": 759776780,
"name": "example243.com",
"dns_id": null,
"dns": null,
"subnets": [],
"interfaces": [],
"parameters": [],
"locations": [
{
"id": 447626450,
"name": "loc67",
"title": "loc67",
"description": null
}
],
"organizations": [
{
"id": 447626448,
"name": "org79",
"title": "org79",
"description": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
domain required |
Validations:
|
|
domain[name] required |
The full DNS domain name Validations:
|
|
domain[fullname] optional , nil allowed |
Description of the domain Validations:
|
|
domain[dns_id] optional , nil allowed |
DNS proxy ID to use within this domain Validations:
|
|
domain[domain_parameters_attributes] optional , nil allowed |
Array of parameters (name, value) Validations:
|
|
domain[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
domain[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|