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 of 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
Elenco dei domini

Parametri

Nome parametro Descrizione
search
opzionale

Filter results

Validations:

  • Must be a String

order
opzionale

Sort results

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


GET /api/domains/:id
Show a domain.

Parametri

Nome parametro Descrizione
id
richiesto

May be numerical id or domain name

Validations:

  • 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
Create a domain.

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

Parametri

Nome parametro Descrizione
domain
richiesto

Validations:

  • Must be a Hash

domain[name]
richiesto

The full DNS Domain name

Validations:

  • Must be a String

domain[fullname]
opzionale , consentito nil

Nome completo che descrive il dominio

Validations:

  • Must be a String

domain[dns_id]
opzionale , consentito nil

DNS Proxy to use within this domain

Validations:

  • Must be a number.

domain[domain_parameters_attributes]
opzionale

Insieme di parametri (nome, valore)

Validations:

  • Must be an array of any type


PUT /api/domains/:id
Update a domain.

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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

domain
richiesto

Validations:

  • Must be a Hash

domain[name]
opzionale , consentito nil

The full DNS Domain name

Validations:

  • Must be a String

domain[fullname]
opzionale , consentito nil

Nome completo che descrive il dominio

Validations:

  • Must be a String

domain[dns_id]
opzionale , consentito nil

DNS Proxy to use within this domain

Validations:

  • Must be a number.

domain[domain_parameters_attributes]
opzionale

Insieme di parametri (nome, valore)

Validations:

  • Must be an array of any type


DELETE /api/domains/:id
Delete a domain.

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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