---
title: Vmware Category Info
slug: homologacao-atmosphere/vmware-category-info
description: Learn how to gather information about tag categories in VMware with this module synopsis. Discover how to use the module, including examples and returned values, which provide valuable metadata about the tag categories. Please note that API write access i
docTags: 
createdAt: 2021-11-24T12:57:44.000Z
---

## Sinopse

- O mṕdulo pode ser udado para coletar informações sobre as tag categories do VMware.
- O recurso Tag foi introduzido na versão 6 do Vsphere, então esse módulo não é suportado pelas versões mais velhas do Vsphere.
- Todas as variaves e nomes dos objetos VMware estão são case sensitive.

## Parâmetros

Parâmetros do Vmware Options.

## Notas

Observação

- Testado em ESXi 7.0.2
- Todos os módulos requerem acesso de gravação API e, portanto, não são suportados em uma licença ESXi gratuita.

## Exemplos

```yaml
- name: Gather info about tag categories
  community.vmware.vmware_category_info:
    hostname: "{{ vcenter_hostname }}"
    username: "{{ vcenter_username }}"
    password: "{{ vcenter_password }}"
  delegate_to: localhost
  register: all_tag_category_info

- name: Gather category id from given tag category
  community.vmware.vmware_category_info:
    hostname: "{{ vcenter_hostname }}"
    username: "{{ vcenter_username }}"
    password: "{{ vcenter_password }}"
  delegate_to: localhost
  register: tag_category_results

- set_fact:
    category_id: "{{ item.category_id }}"
  loop: "{{ tag_category_results.tag_category_info|json_query(query) }}"
  vars:
    query: "[?category_name==`Category0001`]"
- debug: var=category_id
```

## Valores Retornados

| **Chave**            | **Tipo**               | **Retornado quando** | **Descrição**               |
| -------------------- | ---------------------- | -------------------- | --------------------------- |
| tag\_category\_info  | list / elements=string | sempre               | Metadata das tag categories |

