-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enabled virtual-circuit subcomands in metal-cli
- Loading branch information
1 parent
cd40bb0
commit d4b5946
Showing
12 changed files
with
678 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## metal virtual-circuit | ||
|
||
virtual-circuit operations: create, get, update, delete | ||
|
||
### Synopsis | ||
|
||
For more information on https://deploy.equinix.com/developers/docs/metal/interconnections. | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for virtual-circuit | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string Path to JSON or YAML configuration file | ||
--exclude strings Comma separated Href references to collapse in results, may be dotted three levels deep | ||
--filter stringArray Filter 'get' actions with name value pairs. Filter is not supported by all resources and is implemented as request query parameters. | ||
--http-header strings Headers to add to requests (in format key=value) | ||
--include strings Comma separated Href references to expand in results, may be dotted three levels deep | ||
-o, --output string Output format (*table, json, yaml). env output formats are (*sh, terraform, capp). | ||
--search string Search keyword for use in 'get' actions. Search is not supported by all resources. | ||
--sort-by string Sort fields for use in 'get' actions. Sort is not supported by all resources. | ||
--sort-dir string Sort field direction for use in 'get' actions. Sort is not supported by all resources. | ||
--token string Metal API Token (METAL_AUTH_TOKEN) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [metal](metal.md) - Command line interface for Equinix Metal | ||
* [metal virtual-circuit create](metal_virtual-circuit_create.md) - Creates an create-virtual-circuit for specific interconnection. | ||
* [metal virtual-circuit delete](metal_virtual-circuit_delete.md) - Deletes a virtual-circuit. | ||
* [metal virtual-circuit get](metal_virtual-circuit_get.md) - Retrieves virtual circuit for a specific circuit Id. | ||
* [metal virtual-circuit update](metal_virtual-circuit_update.md) - Updates a virtualcircuit. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## metal virtual-circuit create | ||
|
||
Creates an create-virtual-circuit for specific interconnection. | ||
|
||
### Synopsis | ||
|
||
Creates an create-virtual-circuit for specific interconnection | ||
|
||
``` | ||
metal virtual-circuit create [-i connection_id] [-p port_id] [-P <project_id> ] -n <name> [-d <description>] [-v <vnid> ] [-t <tags> ] [-V <vlan> ] [-s <speed> ] [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Creates a new virtual-circuit named "interconnection": | ||
metal virtual-circuit create [-i connection_id] [-p port_id] [-P <project_id> ] -n <name> [-d <description>] [-v <vnid> ] [-t <tags> ] [-V <vlan> ] [-s <speed> ] | ||
metal virtual-circuit create [-i connection_id] [-p port_id] [-P <project_id> ] -n <name> [-m <metro>] [-r <redundancy>] [-t "shared" ] -T <service_token_type> -v <vrfs> | ||
metal virtual-circuit create [-i connection_id] [-p port_id] [-P <project_id> ] -n <name> [-m <metro>] [-r <redundancy>] [-t "shared" ] -T <service_token_type> -v <vrfs> | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-c, --customerIP string An IP address from the subnet that will be used on the Customer side | ||
-d, --description string Adds or updates the description for the interconnection. | ||
-h, --help help for create | ||
-i, --id string The UUID of the interconnection. | ||
-M, --md5 string The plaintext BGP peering password shared by neighbors as an MD5 checksum | ||
-m, --metalIP string An IP address from the subnet that will be used on the Metal side. | ||
-n, --name string Name of the interconnection | ||
-a, --peerAsn int The peer ASN that will be used with the VRF on the Virtual Circuit. | ||
-p, --port string The UUID of the port. | ||
-P, --projectId string The UUID of the projectID. | ||
-s, --speed int bps speed or string (e.g. 52 - '52m' or '100g' or '4 gbps') | ||
-S, --subnet string adds or updates the Email | ||
-t, --tags strings Return only the specified tags. | ||
-V, --vlan int Adds or updates vlan Must be between 2 and 4094 | ||
-v, --vnid string The UUID of the VLAN. | ||
-R, --vrf string The UUID of the VRF that will be associated with the Virtual Circuit. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string Path to JSON or YAML configuration file | ||
--exclude strings Comma separated Href references to collapse in results, may be dotted three levels deep | ||
--filter stringArray Filter 'get' actions with name value pairs. Filter is not supported by all resources and is implemented as request query parameters. | ||
--http-header strings Headers to add to requests (in format key=value) | ||
--include strings Comma separated Href references to expand in results, may be dotted three levels deep | ||
-o, --output string Output format (*table, json, yaml). env output formats are (*sh, terraform, capp). | ||
--search string Search keyword for use in 'get' actions. Search is not supported by all resources. | ||
--sort-by string Sort fields for use in 'get' actions. Sort is not supported by all resources. | ||
--sort-dir string Sort field direction for use in 'get' actions. Sort is not supported by all resources. | ||
--token string Metal API Token (METAL_AUTH_TOKEN) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [metal virtual-circuit](metal_virtual-circuit.md) - virtual-circuit operations: create, get, update, delete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## metal virtual-circuit delete | ||
|
||
Deletes a virtual-circuit. | ||
|
||
### Synopsis | ||
|
||
Deletes the specified virtual-circuit. | ||
|
||
``` | ||
metal virtual-circuit delete -i <virtual-circuit_id> [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Deletes the specified virtual-circuit: | ||
metal virtua-circuit delete -i 7ec86e23-8dcf-48ed-bd9b-c25c20958277 | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for delete | ||
-i, --id string The UUID of the virtual-circuit. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string Path to JSON or YAML configuration file | ||
--exclude strings Comma separated Href references to collapse in results, may be dotted three levels deep | ||
--filter stringArray Filter 'get' actions with name value pairs. Filter is not supported by all resources and is implemented as request query parameters. | ||
--http-header strings Headers to add to requests (in format key=value) | ||
--include strings Comma separated Href references to expand in results, may be dotted three levels deep | ||
-o, --output string Output format (*table, json, yaml). env output formats are (*sh, terraform, capp). | ||
--search string Search keyword for use in 'get' actions. Search is not supported by all resources. | ||
--sort-by string Sort fields for use in 'get' actions. Sort is not supported by all resources. | ||
--sort-dir string Sort field direction for use in 'get' actions. Sort is not supported by all resources. | ||
--token string Metal API Token (METAL_AUTH_TOKEN) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [metal virtual-circuit](metal_virtual-circuit.md) - virtual-circuit operations: create, get, update, delete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## metal virtual-circuit get | ||
|
||
Retrieves virtual circuit for a specific circuit Id. | ||
|
||
### Synopsis | ||
|
||
Retrieves virtual circuit for a specific circuit Id. | ||
|
||
``` | ||
metal virtual-circuit get -i <VcId> [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Retrieve virtual circuit for a specific circuit:: | ||
# Retrieve the details of a specific virtual-circuit: | ||
metal interconnections get -i e9a969b3-8911-4667-9d99-57cd3dd4ef6f | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for get | ||
-i, --vcID string UUID of the virtual-circuit | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string Path to JSON or YAML configuration file | ||
--exclude strings Comma separated Href references to collapse in results, may be dotted three levels deep | ||
--filter stringArray Filter 'get' actions with name value pairs. Filter is not supported by all resources and is implemented as request query parameters. | ||
--http-header strings Headers to add to requests (in format key=value) | ||
--include strings Comma separated Href references to expand in results, may be dotted three levels deep | ||
-o, --output string Output format (*table, json, yaml). env output formats are (*sh, terraform, capp). | ||
--search string Search keyword for use in 'get' actions. Search is not supported by all resources. | ||
--sort-by string Sort fields for use in 'get' actions. Sort is not supported by all resources. | ||
--sort-dir string Sort field direction for use in 'get' actions. Sort is not supported by all resources. | ||
--token string Metal API Token (METAL_AUTH_TOKEN) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [metal virtual-circuit](metal_virtual-circuit.md) - virtual-circuit operations: create, get, update, delete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
## metal virtual-circuit update | ||
|
||
Updates a virtualcircuit. | ||
|
||
### Synopsis | ||
|
||
Updates a specified virtualcircuit. | ||
|
||
``` | ||
metal virtual-circuit update -i <virtualcircuit_id> [-v <vn UUID>] [-d <description>] [-n <name>] [-s <speed>] [-t <tags>] [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Updates a specified virtualcircuit.: | ||
metal virtual-circuit update --id 30c15082-a06e-4c43-bfc3-252616b46eba | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-c, --customerIP string An IP address from the subnet that will be used on the Customer side | ||
-d, --description string Adds or updates the description for the interconnection. | ||
-h, --help help for update | ||
-i, --id string The UUID of the virtual-circuit. | ||
-M, --md5 string The plaintext BGP peering password shared by neighbors as an MD5 checksum | ||
-m, --metalIP string An IP address from the subnet that will be used on the Metal side. | ||
-n, --name string The new name of the interconnection. | ||
-a, --peerAsn int The peer ASN that will be used with the VRF on the Virtual Circuit. | ||
-s, --speed string Adds or updates Speed can be changed only if it is an interconnection on a Dedicated Port | ||
--subnet string adds or updates the Email | ||
-t, --tags strings Adds or updates the tags for the connection --tags="tag1,tag2". | ||
-v, --vnid string A Virtual Network record UUID or the VNID of a Metro Virtual Network in your project. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string Path to JSON or YAML configuration file | ||
--exclude strings Comma separated Href references to collapse in results, may be dotted three levels deep | ||
--filter stringArray Filter 'get' actions with name value pairs. Filter is not supported by all resources and is implemented as request query parameters. | ||
--http-header strings Headers to add to requests (in format key=value) | ||
--include strings Comma separated Href references to expand in results, may be dotted three levels deep | ||
-o, --output string Output format (*table, json, yaml). env output formats are (*sh, terraform, capp). | ||
--search string Search keyword for use in 'get' actions. Search is not supported by all resources. | ||
--sort-by string Sort fields for use in 'get' actions. Sort is not supported by all resources. | ||
--sort-dir string Sort field direction for use in 'get' actions. Sort is not supported by all resources. | ||
--token string Metal API Token (METAL_AUTH_TOKEN) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [metal virtual-circuit](metal_virtual-circuit.md) - virtual-circuit operations: create, get, update, delete | ||
|
Oops, something went wrong.