Skip to main content

Create

Create a peering connection between two VPCs of your tenant.

Usage:

mgc network vpcs peerings create [flags]

Examples:

mgc network vpcs peerings create --description="Connection between the production VPC and the database VPC" --name="peering-prod-to-db" --vpcs.accepter-vpc-id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" --vpcs.requester-vpc-id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Flags:

--cli.list-links enum[=table] List all available links for this command (one of "json", "table" or "yaml")
--cli.watch Wait until the operation is completed by calling the 'get' link and waiting until termination. Akin to '! get -w'
--description string Optional description of the peering.
-h, --help help for create
--name string Name of the peering. Use only letters, numbers and hyphens, up to 50 characters. (required)
--vpcs object VPCs to connect (properties: accepter_vpc_id and requester_vpc_id)
Use --vpcs=help for more details (required)
--vpcs.accepter-vpc-id string VPCs: Accepter VPC ID, the VPC that receives the peering request.
This is the same as '--vpcs=accepter_vpc_id:string'.
--vpcs.requester-vpc-id string VPCs: Requester VPC ID, the VPC that requests the peering.
This is the same as '--vpcs=requester_vpc_id:string'.

Global Flags:

--api-key string Use your API key to authenticate with the API
-U, --cli.retry-until string Retry the action with the same parameters until the given condition is met. The flag parameters
use the format: 'retries,interval,condition', where 'retries' is a positive integer, 'interval' is
a duration (ex: 2s) and 'condition' is a 'engine=value' pair such as "jsonpath=expression"
-t, --cli.timeout duration If > 0, it's the timeout for the action execution. It's specified as numbers and unit suffix.
Valid unit suffixes: ns, us, ms, s, m and h. Examples: 300ms, 1m30s
--debug Display detailed log information at the debug level
--no-confirm Bypasses confirmation step for commands that ask a confirmation from the user
-o, --output string Change the output format. You can use 'yaml', 'json' or 'table'.
-r, --raw Output raw data, without any formatting or coloring
--region enum Region to reach the service (one of "br-mgl1", "br-ne1" or "br-se1") (default "br-se1")
--server-url uri Manually specify the server to use