---
title: "Network View"
canonical: "https://docs.infoblox.com/space/niosmodulesansible/45875369/Network%20View"
format: markdown
---
<span style="color: #000000">Use the </span>`nios_network_view`<span style="color: #000000"> module to create, update, or remove a network view object from a NIOS Grid.</span>

<span style="color: #000000">The following table describes the parameters you can define in the </span>`nios_network_view`<span style="color: #000000"> module:</span>

| <span style="color: #000000">**Parameter**</span> | <span style="color: #000000">**Required/Optional**</span> | <span style="color: #000000">**Description**</span> |
| --- | --- | --- |
| `name/`  
`network_view` | <span style="color: #000000">Required</span> | <span style="color: #000000">Specifies the name of the network view.</span>  
<span style="color: #000000">To update the name, include a dictionary object that contains the </span>`new_name`<span style="color: #000000"> and </span>`old_name` parameters<span style="color: #000000">.</span> |
| `extattrs` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Specifies extensible attributes for the network view object.</span> |
| `state` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Specifies the state of the network view instance on the NIOS server.</span>  
<span style="color: #000000">Set one of the following values:</span><br>- `present`<span style="color: #000000"> (default): Configures the record.</span>
- `absent`<span style="color: #000000">: Removes the record.</span> |
| `comment` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Describes the network view object.</span> |
| `provider` | <span style="color: #000000">Required</span> | <span style="color: #000000">Defines the details of the connection:</span><br>- `host`<span style="color: #000000">: The DNS host name or IP address to connect to the remote instance of NIOS.</span>
- `username`<span style="color: #000000">: The user name to use for authenticating the connection to the remote instance.</span>
- `password`<span style="color: #000000">: The password to use for authenticating the connection to the remote instance.</span><br><span style="color: #000000">For information on additional fields you can define, see </span><span style="color: #172b4d">the list of subparameters in the </span><span style="color: #172b4d">*[NIOS Modules for Ansible Collections](https://infoblox-docs.atlassian.net/wiki/spaces/niosmodulesansible/pages/44525470)*</span><span style="color: #172b4d"> topic.</span> |
| `connection` | <span style="color: #000000">Required</span> | <span style="color: #000000">The </span>`nios_network_view`<span style="color: #000000"> module must be run locally.</span> |

## <span style="color: #000000">Examples</span>

`name: Configure a new network view`  
`infoblox.nios_modules.nios_network_view:`  
`  name: ansible`  
`  state: present`  
`  provider:`  
`    host: <nios_hostname_or_hostip>`  
`    username: <nios_username>`  
`    password: <nios_password>`  
`connection: local`  


`name: Update an existing network view`  
`infoblox.nios_modules.nios_network_view:`  
`  name: {new_name: ansible-new, old_name: ansible}`  
`  state: present`  
`  provider:`  
`    host: <nios_hostname_or_hostip>`  
`    username: <nios_username>`  
`    password: <nios_password>`  
`connection: local`