twccli mk¶
mk¶
Create (allocate) your TWCC resources.
mk [OPTIONS] COMMAND [ARGS]...
ccs¶
‘Create’ your CCS (Container Computer Service) containers.
mk ccs [OPTIONS]
Options
- -n, --name <name>¶
Name of the container.
- -s, --site-id <site_id>¶
The source container ID to create the duplicate from.
- -dup, --request-duplication¶
Request duplicating a container.
- -gpu, --gpu-number <gpu>¶
Required number of GPU.
- -cmd, --command <cmd>¶
The command for the container.
- -img, --image-name <img_name>¶
Name of the image.
- -envk, --environment-keys <env_keys>¶
The keys of the environment parameters of instances.
- -envv, --environment-values <env_values>¶
The values of the environment parameters of instances.
- -itype, --image-type-name <sol>¶
Name of the image type.
- -ptype, --product-type <flavor>¶
The product types (hardware configuration).
- -apikey, --pass-apikey, -nokey, --no-pass-apikey¶
Transfer TWCC API Key to new environment.
- Default:
True
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -tag, --duplication-tag <dup_tag>¶
Create a tag to the duplicate.
- -wait, --wait-ready¶
Wait until your container to be provisioned.
cos¶
Create your COS (Cloud Object Storage) buckets.
mk cos [OPTIONS]
Options
- -bkt, --bucket_name <name>¶
Name of the bucket.
eip¶
Create your fixed ips.
mk eip [OPTIONS]
Options
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -d, --IP-description <desc>¶
Description of the private-net.
key¶
Create your key pairs.
mk key [OPTIONS]
Options
- -n, --name <name>¶
Name of your instance.
- -pub, --public-key <public_key>¶
Public key for your new key.
secg¶
Create your security group.
mk secg [OPTIONS]
Options
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -n, --name <name>¶
Description of the security group.
- -d, --secg-description <desc>¶
Description of the security group.
secg-rule¶
Create security group rules into security group.
mk secg-rule [OPTIONS] [SECG_IDS]...
Options
- -p, --port <port>¶
Port number.
- -id, --secg-id <secg_id>¶
Required ID of the container.
- -cidr, --cidr-network <cidr>¶
Network range for security group.
- -in, --ingress, -out, --egress¶
Applying security group directions.
- Default:
True
- -prange, --port-range <portrange>¶
Port number from min-port to max-port, use “-” as delimiter, ie: 3000-3010. Only supported for TCP, UDP, UDPLITE, SCTP and DCCP
- -proto, --protocol <protocol>¶
Manage VCS security groups protocol.
- Default:
tcp
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
Arguments
- SECG_IDS¶
Optional argument(s)
ssl¶
Create your SSL certificates.
mk ssl [OPTIONS]
Options
- -d, --SSL-description <desc>¶
Description of the SSL certificate.
- -n, --name <name>¶
Name of your SSL.
- -p, --payload <payload>¶
Base64 encoding of your SSL.
- -sca, --sercer-certfile <sercer_certfile>¶
Server certfile for your openssl.
- -inkey, --inkey <inkey>¶
Server key for your openssl.
- -ica, --intermediate-CA <intermediate_ca>¶
Intermediate CA for your openssl.
- -pf, --payload-file <payload_file>¶
Base64 file path of your SSL.
- -et, --expire-time <expire_time>¶
Expire-time of your SSL.
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
vcs¶
Create your VCS (Virtual Compute Service) instances.
mk vcs [OPTIONS] [IDS_OR_NAMES]...
Options
- -n, --name <name>¶
Name of the instance.
- -s, --site-id <site_id>¶
ID of the instance.
- -eip, --eip <eip>¶
Assign a EIP to the instance.
- -fip, --need-floating-ip¶
Assign a floating IP to the instance.
- -img, --image-name <img_name>¶
Name of the image.
- -key, --keypair <keypair>¶
Name of the key pair for access your instance.
- -net, --network <network>¶
Name of the network.
- -pwd, --password <password>¶
Password of the win images.
- -envk, --environment-keys <env_keys>¶
The keys of the environment parameters of instances.
- -envv, --environment-values <env_values>¶
The values of the environment parameters of instances.
- -secg, --security-group-names <secg>¶
Names of the security group. ex: clisg or clisg,sg1
- -itype, --image-type-name <sol>¶
Name of the image type.
- -ptype, --product-type <flavor>¶
The product types (hardware configuration).
- Default:
v.super
- -apikey, --pass-apikey, -nokey, --no-pass-apikey¶
Transfer TWCC API Key to new environment.
- Default:
True
- -cus-img, --custom-image¶
Create a custom image for an instance. -s is required!
- -sys-vol, --system-volume-type <sys_vol>¶
Disk type of the BOOTABLE disk.
- Default:
HDD
- -sys-size, --system-disk-size <sys_vol_size>¶
Size of the system disk in (GB).
- Default:
100
- -dd-type, --data-disk-type <data_vol>¶
Disk type of the DATA disk.
- Default:
HDD
- -dd-size, --data-disk-size <data_vol_size>¶
Size of the data disk in (GB).
- Default:
0
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -wait, --wait-ready¶
Wait until your instance to be provisioned.
Arguments
- IDS_OR_NAMES¶
Optional argument(s)
vds¶
Create your VDS (Virtual Disk Service).
mk vds [OPTIONS]
Options
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -sn, --snapshot¶
Create a snapshot for Volume. -id is required!
- -sz, --disk-size <disk_size>¶
Size of the disk.
- Default:
100
- -id, --vds-id <vds_id>¶
Index of the volume.
- -d, --vds-description <desc>¶
Description of the Volume snapshot.
- -t, --disk-type <disk_type>¶
Disk type: SSD or HDD
- Default:
HDD
- -n, --disk-name <name>¶
Name of the disk.
vlb¶
Create your Load Balancer.
mk vlb [OPTIONS]
Options
- -byjson, --byjson <json_file>¶
Create load balance by json file.
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -wait, --wait-ready¶
Wait until your container to be provisioned.
- -temp, --template¶
Create template vlb json file.
- -vnn, --virtual_network_name <vnet_name>¶
Required Virtual Network id
- Default:
default_network
- -ms, --members <members>¶
The members for each listener, using ‘,’ to seperate. ex: 192.168.1.1:80,192.168.1.2:80
- -lp, --listener_port <listener_ports>¶
The port of the listener of balancer.
- Default:
80
- -lt, --listener_type <listener_types>¶
The type of the listener of balancer.
- Default:
APP_LB
- Options:
APP_LB | NETWORK_LB
- -lm, --lb_method <lb_methods>¶
Required Method of the load balancer.
- Options:
SOURCE_IP | LEAST_CONNECTIONS | ROUND_ROBIN
- -ip, --eip <eip>¶
Index of the EIP.
- -id, --vlb-id <vlb_id>¶
Index of the volume.
- -n, --load_balance_name <vlb_name>¶
Name of the load balance.
- -d, --load_balance_description <vlb_desc>¶
Description of the load balance.
- Default:
vnet¶
Create your Virtual Network.
mk vnet [OPTIONS]
Options
- -table, --table-view, -json, --json-view¶
Show information in Table view or JSON view.
- Default:
True
- -wait, --wait-ready¶
Wait until your virtual network to be builded.
- -cidr, --cidr <cidr>¶
Classless Inter-Domain Routing
- -gw, --getway <getway>¶
Virtual Network Getway
- -n, --vnet_name <name>¶
Name of the virtual network.