[comment]: # translation:outdated

[comment]: # ({de01ad95-f9e8f670})
# hostgroup.propagate


[comment]: # ({/de01ad95-f9e8f670})



[comment]: # ({new-b5ff62ed})
### Description

`object hostgroup.propagate(object parameters)`

This method allows to apply permissions and tag filters to all hosts groups' subgroups.

::: noteclassic
This method is only available to *Super admin* user types. 
Permissions to call the method can be revoked in user role settings. 
See [User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::


[comment]: # ({/new-b5ff62ed})



[comment]: # ({new-6102edd8})
### Parameters

`(object)` Parameters defining the desired output.

The method supports the following parameters.

| Parameter            | [Type](/manual/api/reference_commentary#data_types) | Description                                                                             |
|----------------------|---------------------------------------------------|-----------------------------------------------------------------------------------------|
|**groups**<br>(required)|object/array| Host groups to propagate.<br><br>The host groups must have the `groupid` property defined. |
|permissions|boolean|Set `true` if need to propagate permissions.|
|tag_filters|boolean|Set `true` if need to propagate tag filters.|

At least one parameter `permissions` or `tag_filters` is required.


[comment]: # ({/new-6102edd8})



[comment]: # ({new-42ead635})
### Return values

`(object)` Returns an object containing the IDs of the propagated host
groups under the `groupids` property.


[comment]: # ({/new-42ead635})



[comment]: # ({b41637d2-018502e3})
### 例

[comment]: # ({/b41637d2-018502e3})



[comment]: # ({bd95271f-8ec85132})
#### ホストグループの権限とタグフィルターをそのサブグループに伝達します。

ホストグループの権限とタグフィルターをそのサブグループに伝達します。

[リクエスト](/manual/api#performing-requests) :

```json
{
    "jsonrpc": "2.0",
    "method": "hostgroup.propagate",
    "params": {
        "groups": [
            {
                "groupid": "6"
            }
        ],
        "permissions": true,
        "tag_filters": true
    },
    "id": 1
}
```

レスポンス :

```json
{
    "jsonrpc": "2.0",
    "result": {
        "groupids": [
            "6",
        ]
    },
    "id": 1
}
```

[comment]: # ({/bd95271f-8ec85132})



[comment]: # ({5e0375b3-10bafee5})
### 参照

-   [hostgroup.update](update)
-   [hostgroup.massadd](massadd)
-   [Host](/manual/api/reference/host/object#host)

[comment]: # ({/5e0375b3-10bafee5})



[comment]: # ({fb50ec6c-a745b72a})
### ソース

CHostGroup::propagate() in
*ui/include/classes/api/services/CHostGroup.php*.

[comment]: # ({/fb50ec6c-a745b72a})
