-
Notifications
You must be signed in to change notification settings - Fork 50
CLI Command Specs
ByoungSeob Kim edited this page Jul 5, 2021
·
5 revisions
global flags:
-c, --config string config file (default "./grpc_conf.yaml")
-h, --help help for spctl
-i, --input string input format (json/yaml) (default "yaml")
-o, --output string output format (json/yaml) (default "yaml")
resource flags:
-h, --help help for resource
command flags: create
-h, --help help for command
-d, --indata string input string data
-f, --infile string input file path
command flags: list
--cname string connection name
-h, --help help for command
command flags: get
--cname string connection name
-h, --help help for command
-n, --name string resource name
command flags: delete
--cname string connection name
--force string force flag (true/false) (default "false")
-h, --help help for command
-n, --name string resource name
| Resource | Command |
|---|---|
| version | |
| [resource] | help |
| os | list |
| image | list / get |
| vmspec | list / get |
| driver | create / list / get / delete |
| credential | create / list / get / delete |
| region | create / list / get / delete |
| connection | create / list / get / delete |
| vpc | create / list / listall / get / delete / deletecsp / add-subnet / remove-subnet / removecsp-subnet |
| security | create / list / listall / get / delete / deletecsp |
| keypair | create / list / listall / get / delete / deletecsp |
| vm | start / list / listall / liststatus / get / getstatus / terminate / terminatecsp |
$ spctl vpc help
This is a manageable command for vpc
Usage:
spider vpc [command]
Available Commands:
add-subnet This is add command for vpc subnet
create This is create command for vpc
delete This is delete command for vpc
deletecsp This is delete csp command for vpc
get This is get command for vpc
list This is list command for vpc
listall This is list all command for vpc
remove-subnet This is remove command for vpc subnet
removecsp-subnet This is remove csp command for vpc subnet
Flags:
-h, --help help for vpc
Global Flags:
-c, --config string config file (default "./grpc_conf.yaml")
-i, --input string input format (json/yaml) (default "yaml")
-o, --output string output format (json/yaml) (default "yaml")
$ spctl vpc create -i json -d \
'{
"ConnectionName":"aws-ohio-config",
"ReqInfo": {
"Name": "sp-vpc-1",
"IPv4_CIDR": "192.168.0.0/16",
"SubnetInfoList": [
{
"Name": "sp-subnet-1",
"IPv4_CIDR": "192.168.1.0/24"
}
]
}
}'
IId:
NameId: sp-vpc-1
SystemId: vpc-023d97bad7a337359
IPv4_CIDR: 192.168.0.0/16
SubnetInfoList:
- IId:
NameId: sp-subnet-1
SystemId: subnet-05759dc1f7d2ce245
IPv4_CIDR: 192.168.1.0/24
KeyValueList:
- Key: VpcId
Value: vpc-023d97bad7a337359
- Key: MapPublicIpOnLaunch
Value: "false"
- Key: AvailableIpAddressCount
Value: "251"
- Key: AvailabilityZone
Value: us-east-2a
- Key: Status
Value: available
KeyValueList: null
$ spctl vpc list --cname aws-ohio-config
vpc:
- IId:
NameId: sp-vpc-1
SystemId: vpc-02b24d29e0c903ffd
IPv4_CIDR: 192.168.0.0/16
SubnetInfoList:
- IId:
NameId: sp-subnet-1
SystemId: subnet-0c3e63ee6b62bf510
IPv4_CIDR: 192.168.1.0/24
KeyValueList:
- Key: VpcId
Value: vpc-02b24d29e0c903ffd
- Key: MapPublicIpOnLaunch
Value: "false"
- Key: AvailableIpAddressCount
Value: "251"
- Key: AvailabilityZone
Value: us-east-2a
- Key: Status
Value: available
KeyValueList: null
$ spctl vpc get --cname aws-ohio-config -n sp-vpc-1
IId:
NameId: sp-vpc-1
SystemId: vpc-02b24d29e0c903ffd
IPv4_CIDR: 192.168.0.0/16
SubnetInfoList:
- IId:
NameId: sp-subnet-1
SystemId: subnet-0c3e63ee6b62bf510
IPv4_CIDR: 192.168.1.0/24
KeyValueList:
- Key: VpcId
Value: vpc-02b24d29e0c903ffd
- Key: MapPublicIpOnLaunch
Value: "false"
- Key: AvailableIpAddressCount
Value: "251"
- Key: AvailabilityZone
Value: us-east-2a
- Key: Status
Value: available
KeyValueList: null
$ spctl vpc delete --cname aws-ohio-config -n sp-vpc-1
Result: true
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API Guide
- NLI Guide
-
Design
-
Developer Guide
-
Cloud Driver Developer Guide
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
-
Test Reports
- v0.2.8-for-espresso-release
- v0.3.0-espresso-release
- Azure:Terminating VM
- cb-user@VM: ssh login, sudo run
- v0.3.14 test for SG Source
- v0.4.0-cafemocha-release
- Test via REST API Gateway
- Test Reports of v0.4.11 (IID2 initial Version)
- Test Reports of v0.4.12 (Register & Unregister existing Resources)
- Test Reports for v0.6.0 Release
- How to ...
- How to Use AWS S3 with Credentials
- How to Use Alibaba ECS i1.* Instance Types
- How to provision GPU VMs
- How to Resolve the 'Failed to Connect to Database' Error
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to install OpenStack on a VM for CB Spider Testing
- How to get Azure available Regions
- How to profile memory usage in Golang
- Deprecated:How to install protoc and plugins
- [For Cloud-Migrator]