Foreman considers a domain and a DNS zone as the same thing. That is, if you are planning to manage a site where all the machines are or the form hostname.somewhere.com then the domain is somewhere.com. This allows Foreman to associate a puppet variable with a domain/site and automatically append this variable to all external node requests made by machines at that site.


GET /api/domains
Lista de dominios

GET /api/subnets/:subnet_id/domains
Enumerar dominios por subred

GET /api/locations/:location_id/domains
Enumerar dominios por ubicación

GET /api/organizations/:organization_id/domains
Enumerar dominios por organización

Params

Param Name Description
subnet_id
Optional

ID de la subred


Value: Must be String
search
Optional

filtrar resultados


Value: Must be String
order
Optional

ordenar resultados


Value: Must be String
page
Optional

paginar resultados


Value: Must be String
per_page
Optional

número de entradas por petición


Value: Must be String

GET /api/domains/:id
Mostrar un dominio

Params

Param Name Description
id
Required

ID numérico o nombre de dominio


Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

POST /api/domains
Crear un dominio

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

Params

Param Name Description
domain
Required

Value: Must be a Hash
domain[name]
Required

Nombre completo del dominio de DNS


Value: Must be String
domain[fullname]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Descripción del dominio


Value: Must be String
domain[dns_id]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Proxy DNS a usar en este dominio


Value: Must be a number.
domain[domain_parameters_attributes]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Matriz de parámetros (nombre, valor)


Value: Must be an array of any type

PUT /api/domains/:id
Actualizar un dominio

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
domain
Required

Value: Must be a Hash
domain[name]
Optional

Nombre completo del dominio de DNS


Value: Must be String
domain[fullname]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Descripción del dominio


Value: Must be String
domain[dns_id]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Proxy DNS a usar en este dominio


Value: Must be a number.
domain[domain_parameters_attributes]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Matriz de parámetros (nombre, valor)


Value: Must be an array of any type

DELETE /api/domains/:id
Borrar un dominio

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.