# DCD How-Tos

You can configure Network Security Groups (NSGs) via the DCD and associate it with [<mark style="color:blue;">Network Interface Cards (NICs)</mark>](https://docs.ionos.com/cloud/support/general-information/glossary-of-terms#network-interface-card-nic) or [<mark style="color:blue;">Virtual Machine (VM)</mark>](https://docs.ionos.com/cloud/support/general-information/glossary-of-terms#virtual-machine-vm) resources.

{% hint style="info" %}
**Prerequisites:** Contract administrators and owners can create, access, manage, and use NSGs without additional permissions. For more information, see [<mark style="color:blue;">Set User Privileges for Network Security Groups</mark>](/cloud/security/network-security-groups/how-tos/set-user-privileges.md).
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Set User Privileges for Network Security Groups</strong></mark></td><td>Learn how to set User privileges for security groups.</td><td><a href="/pages/NalBpAuRpDBphjJ4kyVS">/pages/NalBpAuRpDBphjJ4kyVS</a></td></tr><tr><td><mark style="color:blue;"><strong>Create Default or Custom Network Security Groups</strong></mark></td><td>Learn how to create a Default or Custom NSG.</td><td><a href="/pages/em2qmA3FFauUvET8kkBx">/pages/em2qmA3FFauUvET8kkBx</a></td></tr><tr><td><mark style="color:blue;"><strong>Create Rules</strong></mark></td><td>Learn how to define rules.</td><td><a href="/pages/oLOBZNShMmM9Slbynto9">/pages/oLOBZNShMmM9Slbynto9</a></td></tr><tr><td><mark style="color:blue;"><strong>View Rules</strong></mark></td><td>Learn how to view rules associated with an NSG.</td><td><a href="/pages/d354dD71qmzbLa4hILAn">/pages/d354dD71qmzbLa4hILAn</a></td></tr><tr><td><mark style="color:blue;"><strong>Modify Rules</strong></mark></td><td>Learn how to modify associated rules.</td><td><a href="/pages/8Vx9eDun1U5i4F4Wf4D7">/pages/8Vx9eDun1U5i4F4Wf4D7</a></td></tr><tr><td><mark style="color:blue;"><strong>Delete Rules</strong></mark></td><td>Learn how to delete associated rules.</td><td><a href="/pages/5P6dh095MO5Rf40aPXvY">/pages/5P6dh095MO5Rf40aPXvY</a></td></tr><tr><td><mark style="color:blue;"><strong>Convert Custom Network Security Group to Default</strong></mark></td><td>Learn how to convert a Custom NSG to a Default NSG and vice versa.</td><td><a href="/pages/zrhHG4NiLX7S2P6cmyZl">/pages/zrhHG4NiLX7S2P6cmyZl</a></td></tr><tr><td><mark style="color:blue;"><strong>Attach a Server or NIC to a Network Security Group</strong></mark></td><td>Learn how to attach an NSG to a server or an NIC.</td><td><a href="/pages/agDCRgGz8OKf4Oj4JmwK">/pages/agDCRgGz8OKf4Oj4JmwK</a></td></tr><tr><td><mark style="color:blue;"><strong>Detach a Server or NIC from a Network Security Group</strong></mark></td><td>Learn how to detach an NSG from a server or NIC.</td><td><a href="/pages/solmImYkUVthjYWv4Cbf">/pages/solmImYkUVthjYWv4Cbf</a></td></tr><tr><td><mark style="color:blue;"><strong>View Network Security Groups</strong></mark></td><td>Learn how to retrieve a list of all the NSGs that are associated with a data center.</td><td><a href="/pages/ny4Yz5OpMUA0lm9YuToP">/pages/ny4Yz5OpMUA0lm9YuToP</a></td></tr><tr><td><mark style="color:blue;"><strong>Update Network Security Groups</strong></mark></td><td>Learn how to update an NSG.</td><td><a href="/pages/uD9rSy2MMR8pe1TJP50s">/pages/uD9rSy2MMR8pe1TJP50s</a></td></tr><tr><td><mark style="color:blue;"><strong>Delete Network Security Groups</strong></mark></td><td>Learn how to delete your NSGs.</td><td><a href="/pages/oDMndbwf8XYFIF5aUKla">/pages/oDMndbwf8XYFIF5aUKla</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/security/network-security-groups/how-tos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
