# API How-Tos

[<mark style="color:blue;">Cloud API</mark>](https://api.ionos.com/docs/cloud/v6/) allows contract administrators, owners, and authenticated users with the required permissions to create a NSG 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.

<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>Create a Default Network Security Group</strong></mark></td><td>Learn how to create a Default NSG.</td><td><a href="api-how-tos/create-default-nsg">create-default-nsg</a></td></tr><tr><td><mark style="color:blue;"><strong>Create a Custom Network Security Group</strong></mark></td><td>Learn how to create a Custom NSG.</td><td><a href="api-how-tos/create-custom-nsg">create-custom-nsg</a></td></tr><tr><td><mark style="color:blue;"><strong>Convert a Custom Network Security Group to Default</strong></mark></td><td>Learn how to convert a Custom NSG to a Default NSG.</td><td><a href="api-how-tos/convert-custom-nsg">convert-custom-nsg</a></td></tr><tr><td><mark style="color:blue;"><strong>Retrieve Network Security Groups by Group ID</strong></mark></td><td>Learn how to retrieve a NSG by Group ID.</td><td><a href="api-how-tos/get-nsg-by-group">get-nsg-by-group</a></td></tr><tr><td><mark style="color:blue;"><strong>Retrieve all Network Security Groups</strong></mark></td><td>Learn how to retrieve your NSGs.</td><td><a href="api-how-tos/get-nsg">get-nsg</a></td></tr><tr><td><mark style="color:blue;"><strong>Update a Network Security Group</strong></mark></td><td>Learn how to update a NSG.</td><td><a href="api-how-tos/update-security-group">update-security-group</a></td></tr><tr><td><mark style="color:blue;"><strong>Delete a Network Security Group</strong></mark></td><td>Learn how to delete your NSGs.</td><td><a href="api-how-tos/delete-nsg">delete-nsg</a></td></tr><tr><td><mark style="color:blue;"><strong>Create Firewall rule for a Network Security Group</strong></mark></td><td>Learn how to create a Firewall rule for the specified NSG.</td><td><a href="api-how-tos/create-rules">create-rules</a></td></tr><tr><td><mark style="color:blue;"><strong>Retrieve Firewall rules by Network Security Group ID</strong></mark></td><td>Learn how to retrieve all Firewall rules for the specified NSG.</td><td><a href="api-how-tos/get-rules">get-rules</a></td></tr><tr><td><mark style="color:blue;"><strong>Update Firewall rules of a Network Security Group</strong></mark></td><td>Learn how to update Firewall rule of the specified NSG.</td><td><a href="api-how-tos/update-rules">update-rules</a></td></tr><tr><td><mark style="color:blue;"><strong>Delete Firewall rule from a Network Security Group</strong></mark></td><td>Learn how to delete a firewall rule from a NSG.</td><td><a href="api-how-tos/delete-rule">delete-rule</a></td></tr><tr><td><mark style="color:blue;"><strong>Attach a List of Security Groups to a Server or NIC</strong></mark></td><td>Learn how to attach a list of NSGs to a server or NIC.</td><td><a href="api-how-tos/attach-server-to-nsg">attach-server-to-nsg</a></td></tr></tbody></table>
