Skip to content

Commit df0a770

Browse files
feat(flexibleip): add support for v1alpha1 (#1984)
Co-authored-by: Rémy Léone <[email protected]>
1 parent acd6e77 commit df0a770

19 files changed

+812
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Attach a Flexible IP to a server.
4+
5+
USAGE:
6+
scw fip ip attach [arg=value ...]
7+
8+
ARGS:
9+
fips-ids.{index} A list of Flexible IP IDs to attach
10+
server-id A server ID on which to attach the Flexible IPs
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
12+
13+
FLAGS:
14+
-h, --help help for attach
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a Flexible IP.
4+
5+
USAGE:
6+
scw fip ip create [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
[description] Description to associate with the Flexible IP, max 255 characters
11+
[tags.{index}] Tags to associate to the Flexible IP
12+
[server-id] Server ID on which to attach the created Flexible IP
13+
[reverse] Reverse DNS value
14+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
15+
16+
FLAGS:
17+
-h, --help help for create
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete a Flexible IP.
4+
5+
USAGE:
6+
scw fip ip delete [arg=value ...]
7+
8+
ARGS:
9+
fip-id ID of the Flexible IP to delete
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
11+
12+
FLAGS:
13+
-h, --help help for delete
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Detach a Flexible IP from a server.
4+
5+
USAGE:
6+
scw fip ip detach [arg=value ...]
7+
8+
ARGS:
9+
fips-ids.{index} A list of Flexible IP IDs to detach
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
11+
12+
FLAGS:
13+
-h, --help help for detach
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get a Flexible IP.
4+
5+
USAGE:
6+
scw fip ip get <fip-id ...> [arg=value ...]
7+
8+
ARGS:
9+
fip-id Flexible IP ID
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
11+
12+
FLAGS:
13+
-h, --help help for get
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List Flexible IPs.
4+
5+
USAGE:
6+
scw fip ip list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] The sort order of the returned Flexible IPs (created_at_asc | created_at_desc)
10+
[tags.{index}] Filter Flexible IPs with one or more matching tags
11+
[status.{index}] Filter Flexible IPs by status (unknown | ready | updating | attached | error | detaching | locked)
12+
[server-ids.{index}] Filter Flexible IPs by server IDs
13+
[project-id] Filter Flexible IPs by project ID
14+
[organization-id] Filter Flexible IPs by organization ID
15+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
16+
17+
FLAGS:
18+
-h, --help help for list
19+
20+
GLOBAL FLAGS:
21+
-c, --config string The path to the config file
22+
-D, --debug Enable debug mode
23+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
24+
-p, --profile string The config profile to use
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update a Flexible IP.
4+
5+
USAGE:
6+
scw fip ip update [arg=value ...]
7+
8+
ARGS:
9+
fip-id ID of the Flexible IP to update
10+
[description] Description to associate with the Flexible IP, max 255 characters
11+
[tags.{index}] Tags to associate with the Flexible IP
12+
[reverse] Reverse DNS value
13+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
14+
15+
FLAGS:
16+
-h, --help help for update
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
A Flexible IP can be attached to any server in the same zone.
4+
A server can be linked with multiple Flexible IPs attached to it.
5+
6+
USAGE:
7+
scw fip ip <command>
8+
9+
AVAILABLE COMMANDS:
10+
attach Attach a Flexible IP to a server
11+
create Create a Flexible IP
12+
delete Delete a Flexible IP
13+
detach Detach a Flexible IP from a server
14+
get Get a Flexible IP
15+
list List Flexible IPs
16+
update Update a Flexible IP
17+
18+
FLAGS:
19+
-h, --help help for ip
20+
21+
GLOBAL FLAGS:
22+
-c, --config string The path to the config file
23+
-D, --debug Enable debug mode
24+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
25+
-p, --profile string The config profile to use
26+
27+
Use "scw fip ip [command] --help" for more information about a command.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Generate a virtual MAC on a given Flexible IP.
4+
5+
USAGE:
6+
scw fip mac create [arg=value ...]
7+
8+
ARGS:
9+
fip-id Flexible IP ID on which to generate a Virtual MAC
10+
mac-type TODO (unknown_type | vmware | xen | kvm)
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
12+
13+
FLAGS:
14+
-h, --help help for create
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Remove a virtual MAC from a Flexible IP.
4+
5+
USAGE:
6+
scw fip mac delete [arg=value ...]
7+
8+
ARGS:
9+
fip-id Flexible IP ID from which to delete the Virtual MAC
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-2)
11+
12+
FLAGS:
13+
-h, --help help for delete
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)