Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

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

webhook
required

Validations:

  • Must be a Hash

webhook[name]
optional

Validations:

  • Must be a String

webhook[target_url]
optional

Validations:

  • Must be a String

webhook[http_method]
optional , nil allowed

Validations:

  • Must be one of: POST, GET, PUT, DELETE, PATCH.

webhook[http_content_type]
optional , nil allowed

Validations:

  • Must be a String

webhook[event]
optional

Validations:

  • Must be one of: domain_created, domain_destroyed, domain_updated, hostgroup_created, hostgroup_destroyed, hostgroup_updated, subnet_created, subnet_destroyed, subnet_updated, user_created, user_destroyed, user_updated.

webhook[webhook_template_id]
optional , nil allowed

Validations:

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

webhook[enabled]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

webhook[verify_ssl]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

webhook[ssl_ca_certs]
optional , nil allowed

X509 Certification Authorities concatenated in PEM format

Validations:

  • Must be a String

webhook[user]
optional , nil allowed

Validations:

  • Must be a String

webhook[password]
optional , nil allowed

Validations:

  • Must be a String

webhook[http_headers]
optional , nil allowed

Validations:

  • Must be a String

webhook[proxy_authorization]
optional , nil allowed

Authorize with Foreman client certificate and validate smart-proxy CA from Settings

Validations:

  • Must be one of: true, false, 1, 0.