vpc
Manage VPC (Virtual Private Cloud) networks.
Commands
| Command | Description |
|---|---|
| list | List all VPCs |
| get | Get details of a VPC |
| create | Create a new VPC |
| delete | Delete a VPC |
list
List all VPCs in your project.
Synopsis
Options
--page (integer)
: Page number, 1-based. Default: 1.
--page-size (integer)
: Number of items per page. Default: 50.
--name (string)
: Filter by VPC name (substring match).
Examples
get
Get details of a VPC.
Synopsis
Options
--vpc-id (required)
: VPC (network) ID.
Examples
create
Create a new VPC network.
Synopsis
grn vserver vpc create
--name <value>
--cidr <value>
[--description <value>]
[--is-default]
[--dry-run]
Options
--name (required)
: VPC name.
--cidr (required)
: CIDR block for the VPC, e.g. 10.0.0.0/16. The CIDR must not overlap with other VPCs in the same project.
--description (string)
: VPC description.
--is-default (boolean)
: Mark this VPC as the default network.
--dry-run (boolean)
: Validate parameters without creating the VPC.
Examples
grn vserver vpc create --name prod-vpc --cidr 10.0.0.0/16
grn vserver vpc create \
--name staging-vpc \
--cidr 10.1.0.0/16 \
--description "Staging environment VPC"
# Validate first
grn vserver vpc create --name prod-vpc --cidr 10.0.0.0/16 --dry-run
delete
Delete a VPC. Shows a confirmation prompt unless --force is used.
Synopsis
Options
--vpc-id (required)
: VPC (network) ID.
--force (boolean)
: Skip the confirmation prompt.