2.84. Hammer Webhook

管理 Webhook

Usage:
    hammer webhook [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 create                        Create a Webhook
 delete, destroy               Delete a Webhook
 info, show                    Show Webhook details
 list, index                   List Webhooks
 update                        Update a Webhook

Options:
 -h, --help                    Print help

2.84.1. Hammer Webhook 创建

创建 Webhook

Usage:
    hammer webhook create [OPTIONS]

Options:
 --enabled BOOLEAN
 --event ENUM                  Possible value(s): 'actions.katello.content_view.promote_succeeded',
                               'actions.katello.content_view.publish_succeeded',
                               'actions.katello.repository.sync_succeeded',
                               'actions.remote_execution.run_host_job_ansible_configure_cloud_connector_succeeded',
                               'actions.remote_execution.run_host_job_ansible_enable_web_console_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_capsule_upgrade_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_host_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_insights_plan_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_playbook_succeeded',
                               'actions.remote_execution.run_host_job_foreman_openscap_run_oval_scans_succeeded',
                               'actions.remote_execution.run_host_job_foreman_openscap_run_scans_succeeded',
                               'actions.remote_execution.run_host_job_katello_errata_install_by_search_succeeded',
                               'actions.remote_execution.run_host_job_katello_errata_install_succeeded',
                               'actions.remote_execution.run_host_job_katello_group_install_succeeded',
                               'actions.remote_execution.run_host_job_katello_group_remove_succeeded',
                               'actions.remote_execution.run_host_job_katello_group_update_succeeded',
                               'actions.remote_execution.run_host_job_katello_host_tracer_resolve_succeeded',
                               'actions.remote_execution.run_host_job_katello_module_stream_action_succeeded',
                               'actions.remote_execution.run_host_job_katello_package_install_succeeded',
                               'actions.remote_execution.run_host_job_katello_package_remove_succeeded',
                               'actions.remote_execution.run_host_job_katello_package_update_succeeded',
                               'actions.remote_execution.run_host_job_katello_service_restart_succeeded',
                               'actions.remote_execution.run_host_job_leapp_preupgrade_succeeded',
                               'actions.remote_execution.run_host_job_leapp_remediation_plan_succeeded',
                               'actions.remote_execution.run_host_job_leapp_upgrade_succeeded',
                               'actions.remote_execution.run_host_job_puppet_run_host_succeeded',
                               'actions.remote_execution.run_host_job_rh_cloud_connector_run_playbook_succeeded',
                               'actions.remote_execution.run_host_job_rh_cloud_remediate_hosts_succeeded',
                               'actions.remote_execution.run_host_job_succeeded', 'build_entered',
                               'build_exited', 'content_view_created', 'content_view_destroyed',
                               'content_view_updated', 'domain_created', 'domain_destroyed', 'domain_updated',
                               'host_created', 'host_destroyed', 'host_updated', 'hostgroup_created',
                               'hostgroup_destroyed', 'hostgroup_updated', 'model_created', 'model_destroyed',
                               'model_updated', 'status_changed', 'subnet_created', 'subnet_destroyed',
                               'subnet_updated', 'user_created', 'user_destroyed', 'user_updated'
 --http-content-type VALUE
 --http-method ENUM            Possible value(s): 'POST', 'GET', 'PUT', 'DELETE', 'PATCH'
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-title VALUE        Set the current location context for the request
 --name VALUE
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-title VALUE    Set the current organization context for the request
 --password VALUE
 --proxy-authorization BOOLEAN Authorize with Satellite client certificate and validate capsule CA from
                               Settings
 --target-url VALUE
 --user VALUE
 --verify-ssl BOOLEAN
 --webhook-template VALUE      Name to search by
 --webhook-template-id VALUE
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.84.2. Hammer Webhook 删除

删除 Webhook

Usage:
    hammer webhook <delete|destroy> [OPTIONS]

Options:
 --id VALUE
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-title VALUE        Set the current location context for the request
 --name VALUE                  Name to search by
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-title VALUE    Set the current organization context for the request
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.84.3. Hammer Webhook 信息

显示 Webhook 详情

Usage:
    hammer webhook <info|show> [OPTIONS]

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --id VALUE
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-title VALUE        Set the current location context for the request
 --name VALUE                  Name to search by
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-title VALUE    Set the current organization context for the request
 -h, --help                    Print help

Predefined field sets:
  -------------------------------|------------|-----|---------|-----
  FIELDS                         | ADDITIONAL | ALL | DEFAULT | THIN
  -------------------------------|------------|-----|---------|-----
  Id                             |            | x   | x       | x
  Name                           |            | x   | x       | x
  Target url                     |            | x   | x       |
  Enabled                        |            | x   | x       |
  Event                          |            | x   | x       |
  Http method                    |            | x   | x       |
  Http content type              |            | x   | x       |
  Webhook template               |            | x   | x       |
  User                           | x          | x   |         |
  Verify ssl                     | x          | x   |         |
  X509 certification authorities | x          | x   |         |
  Http headers/                  | x          | x   |         |
  Created at                     |            | x   | x       |
  Updated at                     |            | x   | x       |
  -------------------------------|------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.84.4. Hammer Webhook 列表

列出 Webhook

Usage:
    hammer webhook <list|index> [OPTIONS]

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-title VALUE        Set the current location context for the request
 --order VALUE                 Sort and order by a searchable field, e.g. '<field> DESC'
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-title VALUE    Set the current organization context for the request
 --page NUMBER                 Page number, starting at 1
 --per-page VALUE              Number of results per page to return, 'all' to return all results
 --search VALUE                Filter results
 -h, --help                    Print help

Predefined field sets:
  -----------|-----|---------|-----
  FIELDS     | ALL | DEFAULT | THIN
  -----------|-----|---------|-----
  Id         | x   | x       | x
  Name       | x   | x       | x
  Target url | x   | x       |
  Enabled    | x   | x       |
  -----------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

Search / Order fields:
  enabled             Values: true, false
  name                string
  target_url          string

2.84.5. Hammer Webhook 更新

更新 Webhook

Usage:
    hammer webhook update [OPTIONS]

Options:
 --enabled BOOLEAN
 --event ENUM                  Possible value(s): 'actions.katello.content_view.promote_succeeded',
                               'actions.katello.content_view.publish_succeeded',
                               'actions.katello.repository.sync_succeeded',
                               'actions.remote_execution.run_host_job_ansible_configure_cloud_connector_succeeded',
                               'actions.remote_execution.run_host_job_ansible_enable_web_console_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_capsule_upgrade_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_host_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_insights_plan_succeeded',
                               'actions.remote_execution.run_host_job_ansible_run_playbook_succeeded',
                               'actions.remote_execution.run_host_job_foreman_openscap_run_oval_scans_succeeded',
                               'actions.remote_execution.run_host_job_foreman_openscap_run_scans_succeeded',
                               'actions.remote_execution.run_host_job_katello_errata_install_by_search_succeeded',
                               'actions.remote_execution.run_host_job_katello_errata_install_succeeded',
                               'actions.remote_execution.run_host_job_katello_group_install_succeeded',
                               'actions.remote_execution.run_host_job_katello_group_remove_succeeded',
                               'actions.remote_execution.run_host_job_katello_group_update_succeeded',
                               'actions.remote_execution.run_host_job_katello_host_tracer_resolve_succeeded',
                               'actions.remote_execution.run_host_job_katello_module_stream_action_succeeded',
                               'actions.remote_execution.run_host_job_katello_package_install_succeeded',
                               'actions.remote_execution.run_host_job_katello_package_remove_succeeded',
                               'actions.remote_execution.run_host_job_katello_package_update_succeeded',
                               'actions.remote_execution.run_host_job_katello_service_restart_succeeded',
                               'actions.remote_execution.run_host_job_leapp_preupgrade_succeeded',
                               'actions.remote_execution.run_host_job_leapp_remediation_plan_succeeded',
                               'actions.remote_execution.run_host_job_leapp_upgrade_succeeded',
                               'actions.remote_execution.run_host_job_puppet_run_host_succeeded',
                               'actions.remote_execution.run_host_job_rh_cloud_connector_run_playbook_succeeded',
                               'actions.remote_execution.run_host_job_rh_cloud_remediate_hosts_succeeded',
                               'actions.remote_execution.run_host_job_succeeded', 'build_entered',
                               'build_exited', 'content_view_created', 'content_view_destroyed',
                               'content_view_updated', 'domain_created', 'domain_destroyed', 'domain_updated',
                               'host_created', 'host_destroyed', 'host_updated', 'hostgroup_created',
                               'hostgroup_destroyed', 'hostgroup_updated', 'model_created', 'model_destroyed',
                               'model_updated', 'status_changed', 'subnet_created', 'subnet_destroyed',
                               'subnet_updated', 'user_created', 'user_destroyed', 'user_updated'
 --http-content-type VALUE
 --http-method ENUM            Possible value(s): 'POST', 'GET', 'PUT', 'DELETE', 'PATCH'
 --id VALUE
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-title VALUE        Set the current location context for the request
 --name VALUE
 --new-name VALUE
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-title VALUE    Set the current organization context for the request
 --password VALUE
 --proxy-authorization BOOLEAN Authorize with Satellite client certificate and validate capsule CA from
                               Settings
 --target-url VALUE
 --user VALUE
 --verify-ssl BOOLEAN
 --webhook-template VALUE      Name to search by
 --webhook-template-id VALUE
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string