# How to change the security group of an instance?

Follow the steps below to know how to change the security group of an instance:

**Step 1:** [Login](https://customer.acecloudhosting.com/index.php?m=ace_product_register_addon\&action=login) to your account.

**Step 2:** Navigate to **Compute** and then click on **Instances**.

<figure><img src="/files/0vGVgajPqMjQvUdu77iL" alt=""><figcaption></figcaption></figure>

**Step 3:** Choose your instance, click **Actions,** and choose **Edit Security Group** from the drop-down menu.

<figure><img src="/files/mfzUmjSsHRaQBi0ZZkd9" alt=""><figcaption></figcaption></figure>

**Step 4:** Add or remove Security groups according to your needs and click **Submit**.

<figure><img src="/files/gpX12b7j6zz8Da6UkMyb" alt=""><figcaption></figcaption></figure>


---

# 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.acecloud.ai/knowledge-base/compute/how-to-change-the-security-group-of-an-instance.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.
