Spec-Zone.ru › Ansible

Модуль vmware.vmware_rest.appliance_vmon_service_info — Возвращает состояние службы.

Примечание

Этот модуль является частью коллекции vmware.vmware_rest (версия 3.2.0).

Возможно, эта коллекция уже установлена, если вы используете пакет ansible. Она не включена в ansible-core. Чтобы проверить, установлена ли она, выполните ansible-galaxy collection list.

Чтобы установить её, используйте: ansible-galaxy collection install vmware.vmware_rest. Для использования этого модуля потребуются дополнительные требования. Подробности см. в разделе Требования.

Для использования в плейбуке укажите: vmware.vmware_rest.appliance_vmon_service_info.

Добавлен в vmware.vmware_rest 2.0.0

  • Описание
  • Требования
  • Параметры
  • Примечания
  • Примеры
  • Значения возврата

Описание

  • Возвращает состояние службы.

Требования

Ниже перечислены требования к хосту, на котором будет выполняться этот модуль.

  • vSphere 7.0.3 или более поздней версии
  • python >= 3.6
  • aiohttp

Параметры

Параметр

Комментарии

service

строка

Идентификатор службы, состояние которой требуется получить.

Параметр должен содержать идентификатор ресурса, возвращаемый модулем vmware.vmware_rest.appliance_vmon_service. Требуется при state=[‘get’]

session_timeout

число с плавающей точкой

Добавлен в vmware.vmware_rest 2.1.0

Настройки таймаута сеанса клиента.

Максимальное время в секундах для всей операции, включая установление соединения, отправку запроса и получение ответа.

Значение по умолчанию — 300 с.

vcenter_hostname

строка / обязательный

Имя хоста или IP-адрес vCenter vSphere.

Если значение не указано в задаче, будет использовано значение переменной среды VMWARE_HOST.

vcenter_password

строка / обязательный

Пароль vCenter vSphere.

Если значение не указано в задаче, будет использовано значение переменной среды VMWARE_PASSWORD.

… (остальные строки таблицы) … (остальные строки таблицы)

Примечания

Примечание

  • Тестировалось на vSphere 7.0.3

Примеры

- name: Get information about a VMON service
  vmware.vmware_rest.appliance_vmon_service_info:
    service: vpxd
  register: result

Значения возврата

Общие значения возврата документированы здесь, следующие поля уникальны для данного модуля:

Ключ

Описание

value

список / элементы=строка

Получение информации о службе VMON

Возвращаемое значение: При успехе

Пример: [{"key": "analytics", "value": {"description_key": "cis.analytics.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.analytics.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "applmgmt", "value": {"description_key": "cis.applmgmt.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.applmgmt.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "certificateauthority", "value": {"description_key": "cis.certificateauthority.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "certificateathority.health.statuscode"}], "name_key": "cis.certificateauthority.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "certificatemanagement", "value": {"description_key": "cis.certificatemanagement.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "certificatemanagement.health.statuscode"}], "name_key": "cis.certificatemanagement.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "cis-license", "value": {"description_key": "cis.cis-license.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "The License Service is operational.", "id": "cis.license.health.ok"}], "name_key": "cis.cis-license.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "content-library", "value": {"description_key": "cis.content-library.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "Database server connection is GREEN.", "id": "com.vmware.vdcs.vsphere-cs-lib.db_health_green"}], "name_key": "cis.content-library.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "eam", "value": {"description_key": "cis.eam.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "", "id": "cis.eam.statusOK"}], "name_key": "cis.eam.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "envoy", "value": {"description_key": "cis.envoy.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.envoy.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "hvc", "value": {"description_key": "cis.hvc.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "hvc.health.statuscode"}], "name_key": "cis.hvc.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "imagebuilder", "value": {"description_key": "cis.imagebuilder.ServiceDescription", "name_key": "cis.imagebuilder.ServiceName", "startup_type": "MANUAL", "state": "STOPPED"}}, {"key": "infraprofile", "value": {"description_key": "cis.infraprofile.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "infraprofile.health.statuscode"}], "name_key": "cis.infraprofile.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "lookupsvc", "value": {"description_key": "cis.lookupsvc.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.lookupsvc.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "netdumper", "value": {"description_key": "cis.netdumper.ServiceDescription", "name_key": "cis.netdumper.ServiceName", "startup_type": "MANUAL", "state": "STOPPED"}}, {"key": "observability-vapi", "value": {"description_key": "cis.observability-vapi.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "observability.health.statuscode"}], "name_key": "cis.observability-vapi.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "perfcharts", "value": {"description_key": "cis.perfcharts.ServiceDescription", "health": "HEALTHY_WITH_WARNINGS", "health_messages": [{"args": [], "default_message": "health.statsReoptInitalizer.illegalStateEx", "id": "health.statsReoptInitalizer.illegalStateEx"}], "name_key": "cis.perfcharts.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "pschealth", "value": {"description_key": "cis.pschealth.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.pschealth.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "rbd", "value": {"description_key": "cis.rbd.ServiceDescription", "name_key": "cis.rbd.ServiceName", "startup_type": "MANUAL", "state": "STOPPED"}}, {"key": "rhttpproxy", "value": {"description_key": "cis.rhttpproxy.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.rhttpproxy.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "sca", "value": {"description_key": "cis.sca.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.sca.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "sps", "value": {"description_key": "cis.sps.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.sps.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "statsmonitor", "value": {"description_key": "cis.statsmonitor.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "Appliance monitoring service is healthy.", "id": "com.vmware.applmgmt.mon.health.healthy"}], "name_key": "cis.statsmonitor.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "sts", "value": {"description_key": "cis.sts.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.sts.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "topologysvc", "value": {"description_key": "cis.topologysvc.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "topologysvc.health.statuscode"}], "name_key": "cis.topologysvc.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "trustmanagement", "value": {"description_key": "cis.trustmanagement.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["GREEN"], "default_message": "Health is GREEN", "id": "trustmanagement.health.statuscode"}], "name_key": "cis.trustmanagement.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "updatemgr", "value": {"description_key": "cis.updatemgr.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.updatemgr.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vapi-endpoint", "value": {"description_key": "cis.vapi-endpoint.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["2022-11-23T20:10:44UTC", "2022-11-23T20:10:46UTC"], "default_message": "Configuration health status is created between 2022-11-23T20:10:44UTC and 2022-11-23T20:10:46UTC.", "id": "com.vmware.vapi.endpoint.healthStatusProducedTimes"}], "name_key": "cis.vapi-endpoint.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vcha", "value": {"description_key": "cis.vcha.ServiceDescription", "name_key": "cis.vcha.ServiceName", "startup_type": "DISABLED", "state": "STOPPED"}}, {"key": "vlcm", "value": {"description_key": "cis.vlcm.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.vlcm.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vmcam", "value": {"description_key": "cis.vmcam.ServiceDescription", "name_key": "cis.vmcam.ServiceName", "startup_type": "MANUAL", "state": "STOPPED"}}, {"key": "vmonapi", "value": {"description_key": "cis.vmonapi.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.vmonapi.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vmware-postgres-archiver", "value": {"description_key": "cis.vmware-postgres-archiver.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "VMware Archiver service is healthy.", "id": "cis.vmware-postgres-archiver.health.healthy"}], "name_key": "cis.vmware-postgres-archiver.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vmware-vpostgres", "value": {"description_key": "cis.vmware-vpostgres.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "Service vmware-vpostgres is healthy.", "id": "cis.vmware-vpostgres.health.healthy"}], "name_key": "cis.vmware-vpostgres.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vpxd", "value": {"description_key": "cis.vpxd.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": ["vCenter Server", "GREEN"], "default_message": "{0} health is {1}", "id": "vc.health.statuscode"}, {"args": ["VirtualCenter Database", "GREEN"], "default_message": "{0} health is {1}", "id": "vc.health.statuscode"}], "name_key": "cis.vpxd.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vpxd-svcs", "value": {"description_key": "cis.vpxd-svcs.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "Tagging service is in a healthy state", "id": "cis.tagging.health.status"}], "name_key": "cis.vpxd-svcs.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vsan-health", "value": {"description_key": "cis.vsan-health.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.vsan-health.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vsm", "value": {"description_key": "cis.vsm.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.vsm.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vsphere-ui", "value": {"description_key": "cis.vsphere-ui.ServiceDescription", "name_key": "cis.vsphere-ui.ServiceName", "startup_type": "AUTOMATIC", "state": "STOPPED"}}, {"key": "vstats", "value": {"description_key": "cis.vstats.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.vstats.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "vtsdb", "value": {"description_key": "cis.vtsdb.ServiceDescription", "health": "HEALTHY", "health_messages": [{"args": [], "default_message": "Service vtsdb is healthy.", "id": "cis.vtsdb.health.healthy"}], "name_key": "cis.vtsdb.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}, {"key": "wcp", "value": {"description_key": "cis.wcp.ServiceDescription", "health": "HEALTHY", "health_messages": [], "name_key": "cis.wcp.ServiceName", "startup_type": "AUTOMATIC", "state": "STARTED"}}]

Авторы

  • Команда Ansible Cloud (@ansible-collections)

Ссылки на коллекцию

  • Система отслеживания ошибок
  • Главная страница
  • Репозиторий (исходные коды)

© 2012–2018 Michael DeHaan
© 2018–2024 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/vmware/vmware_rest/appliance_vmon_service_info_module.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API