> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-flexi/network/floatingip/reassign.md).

# reassign

Reassign a specific floating ip network in your project. This command allows you to reassign a floating ip by providing its unique identifier (port ID).

## Usage

```
cldkctl flexi network floatingip reassign [flags]
```

## Aliases

```
reassign, reas
```

## Steps

Follow the steps below to run and view the result of this command:

#### Interactive Mode

1. Run the following command in your terminal:

```
cldkctl flexi network floatingip reassign -i 
```

2. The terminal displays a list of available **Floating IPs**. Select the floating IP that you want to reassign.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-a49833d5f6bed17d4791e1e2e5c9b426ab727fd9%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Select the **Resource Type** where the floating IP will be reassigned.
4. Select the resource from the **Resource** list.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-352580a93f233198798b57782c50087cb3aad522%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Select the **VPC Port** associated with the selected instance.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-2757f41e445fd96ade6c237e841fa69096606494%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

6. Confirm the creation by selecting **Confirm**, or cancel the process by selecting **Cancel**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-57f91456a73b28ccfa0a0f36c6641cbe2f86039f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

7. Once completed successfully, the terminal displays the success message.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-02d1818c07bb382bc68f4cc80d7789551553836a%2Fimage%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm` or `-y` to skip confirmation prompts in non-interactive mode.
3. Run the command in your terminal.
4. Once completed successfully, the terminal displays the success message.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-831087511e2309a8da475f23536840bbd05630b1%2Fimage%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/cloudeka-api-list/global-flags.md). Refer to the Global Flags section for details
{% endhint %}

| Flag             | Shorthand | Default | Description                                               |
| ---------------- | --------- | ------- | --------------------------------------------------------- |
| --auto-confirm   | -y        | false   | Skip confirmation prompt in non-interactive mode          |
| --floating-ip-id |           |         | Floating IP ID (required in non-interactive mode)         |
| --help           | -h        |         | Help for the reassign command                             |
| --interactive    | -i        | false   | Force interactive TUI mode                                |
| --port-id        |           |         | VPC Port ID (required in non-interactive mode)            |
| --resource-id    |           |         | Resource (instance) ID (required in non-interactive mode) |
| --resource-type  |           |         | Resource type: Instance                                   |
