> 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/guideline-for-enterprise/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 true
```

2. The terminal displays a list of available **Floating IP addresses**. Select the Floating IP address 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%2FuIlf16i20zyG3QJf4VKK%2Fimage.png?alt=media&amp;token=5634f8ef-798b-4b19-9b1f-501c850453e8" 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%2FIOeeSDOOBRyiw22GB1Pf%2Fimage.png?alt=media&amp;token=985eaee8-e0d2-4225-9123-49c3408a5c58" 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%2FoDsZqC4AQgyGS7fRZIZj%2Fimage.png?alt=media&amp;token=fa9a876b-c993-4bf5-91d9-b75d8f1e75cb" alt=""><figcaption></figcaption></figure>

6. Confirm the reassignment 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%2FDTAzerWOp4SjiSOBvPiR%2F4.png?alt=media&amp;token=4a53b87a-13a1-49c1-9f5b-72448ab88e15" 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%2FT32dPPK9lX43SMADb283%2Fimage.png?alt=media&amp;token=7119f888-a6b9-405a-b74e-833416fdac44" 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%2FBwSnSqhX8b73eMnU0TSv%2Fimage.png?alt=media&amp;token=08447531-501a-46da-b89e-c0aadd61de46" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/guideline-for-enterprise/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 (true/false)     |
| --floating-ip-id |           |         | Floating IP ID or name (required in non-interactive mode)         |
| --help           | -h        |         | Help for the reassign command                                     |
| --interactive    | -i        | false   | Run in interactive/TUI mode (true/false)                          |
| --port-id        |           |         | VPC Port ID or name (required in non-interactive mode)            |
| --resource-id    |           |         | Resource (instance) ID or name (required in non-interactive mode) |
| --resource-type  |           |         | Resource type: Instance                                           |
