---
title: FortiOS Firewall Service Category
slug: homologacao-atmosphere/fortios-firewall-service-category
description: Learn how to configure service categories in FortiOS and FortiGate with this comprehensive document. It covers essential parameters like firewall_service_category and subfields such as comment, name, and state. Discover a step-by-step example of configuri
createdAt: 2021-07-16T13:06:54.000Z
---

## Resumo

- Configure as Categorias de Serviço no FortiOS e FortiGate.

## Parâmetros

| **Parâmetro**                                         | **Tipo**   | **Escolhas \| Valor Padrão**                          | **Comentários**                                                                             |
| ----------------------------------------------------- | ---------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| firewall\_service\_category<br />(Possíveis valores)  | dictionary | - null<br />(default)                                 | Configure categorias de serviço.                                                            |
| state                                                 | string     | Escolhas:<br />- present<br />(default)<br />- absent | Indica se deve criar ou remover o objeto. Use present para criar, ou absent para excluí-lo. |



### Subcampos da opção firewall\_service\_category

| **Parâmetro**                            | **Tipo** | **Escolhas \| Valor Padrão**                          | **Comentários**                                                                             |
| ---------------------------------------- | -------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| comment                                  | string   |                                                       | Comentário (opcional).                                                                      |
| name - *required*                        | string   |                                                       | Nome da categoria de serviço.                                                               |
| state                                    | string   | Escolhas:<br />- present<br />(default)<br />- absent | Indica se deve criar ou remover o objeto. Use present para criar, ou absent para excluí-lo. |

Extende fragmentos da documentação dos módulos fortios e fortios\_api.

## Exemplos

```yaml
# Exemplo: Configure categorias de serviço
- fortios_firewall_service_category:
    host: "192.168.122.40"
    username: "admin"
    password: ""
    vdom: "root"
    https: "False"
    ssl_verify: "False"
    state: "present"
    firewall_service_category:
      comment: "Comment."
      name: "default_name_4"
```



## Valores retornados

Este módulo extende os mesmos valores retornados do módulo base fortios.
