PUT /api/domains/22495316-mydomain-net { "domain": { "name": "domain.new" } } 200 { "fullname": null, "created_at": "2019-09-11 14:45:07 UTC", "updated_at": "2019-09-11 14:45:08 UTC", "id": 22495316, "name": "domain.new", "dns_id": 113629430, "dns": { "name": "DNS Proxy", "id": 113629430, "url": "http://else.where:45671" }, "subnets": [ { "id": 980190962, "name": "one", "description": null, "network_address": "2.3.4.0/24" } ], "interfaces": [], "parameters": [ { "priority": null, "created_at": "2019-09-11 14:45:07 UTC", "updated_at": "2019-09-11 14:45:07 UTC", "id": 665394701, "name": "parameter", "parameter_type": null, "value": "value1" } ], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
domain required |
Validations:
|
domain[name] optional |
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:
|