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

Ejemplos

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
    }
  ]
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

domain
requerido

Validations:

  • Must be a Hash

domain[name]
requerido

Nombre completo del dominio DNS

Validations:

  • Must be a String

domain[fullname]
opcional , nil permitido

Descripción del dominio

Validations:

  • Must be a String

domain[dns_id]
opcional , nil permitido

ID de proxy DNS a utilizar dentro de este dominio

Validations:

  • Must be a number.

domain[domain_parameters_attributes]
opcional , nil permitido

Array de parámetros (nombre, valor)

Validations:

  • Must be an array of any type

domain[location_ids]
opcional , nil permitido

REMPLAZAR ubicaciones con ID dadas

Validations:

  • Must be an array of any type

domain[organization_ids]
opcional , nil permitido

REMPLAZAR organizaciones con ID dadas.

Validations:

  • Must be an array of any type