> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/security/network-security-groups/how-tos.md).

# 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="/cloud/security/network-security-groups/how-tos/set-user-privileges.md">Set User Privileges for Network Security Groups</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="/cloud/security/network-security-groups/how-tos/create-nsg.md">Create Default or Custom Network Security Groups</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="/cloud/security/network-security-groups/how-tos/create-rules.md">Create Rules</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="/cloud/security/network-security-groups/how-tos/view-rules.md">View Rules</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="/cloud/security/network-security-groups/how-tos/modify-rules.md">Modify Rules</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="/cloud/security/network-security-groups/how-tos/delete-rules.md">Delete Rules</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="/cloud/security/network-security-groups/how-tos/convert-custom-nsg.md">Convert Custom Network Security Group to Default</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="/cloud/security/network-security-groups/how-tos/attach-nsgs.md">Attach a Server or NIC to a Network Security Group</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="/cloud/security/network-security-groups/how-tos/detach-nsgs.md">Detach a Server or NIC from a Network Security Group</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="/cloud/security/network-security-groups/how-tos/view-nsgs.md">View Network Security Groups</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="/cloud/security/network-security-groups/how-tos/update-nsg.md">Update Network Security Groups</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="/cloud/security/network-security-groups/how-tos/delete-nsgs.md">Delete Network Security Groups</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
