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

Exemples

POST /api/domains
{
  "organization_id": null,
  "domain": {
    "name": "example686.com"
  }
}
201
{
  "fullname": null,
  "created_at": "2019-09-11 14:45:08 UTC",
  "updated_at": "2019-09-11 14:45:08 UTC",
  "id": 759776766,
  "name": "example686.com",
  "dns_id": null,
  "dns": null,
  "subnets": [],
  "interfaces": [],
  "parameters": [],
  "locations": [],
  "organizations": []
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

domain
requis

Validations:

  • Must be a Hash

domain[name]
requis

Le nom DNS complet

Validations:

  • Must be a String

domain[fullname]
optionel , nil autorisé

Description du domaine

Validations:

  • Must be a String

domain[dns_id]
optionel , nil autorisé

ID proxy DNS à utiliser dans ce domaine

Validations:

  • Must be a number.

domain[domain_parameters_attributes]
optionel , nil autorisé

Tableau de paramètres (nom, valeur)

Validations:

  • Must be an array of any type

domain[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

domain[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type