doctl , command-line interface (CLI) for the DigitalOcean API



doctl auth init --context blablabla@gmail.com
doctl account get
doctl compute droplet list
doctl compute ssh-key list
doctl compute image list --public flag | grep rocky
doctl compute size list | grep 4vcpu
doctl compute droplet create  --image rockylinux-9-x64 --enable-monitoring   --enable-private-networking  --region sgp1 --size s-1vcpu-512mb-10gb   --vpc-uuid 281fdcd2-dc83-11e8-beb4-3cfdfea9fb81  --ssh-keys 999239 test-rocky
doctl compute droplet delete [id]


doctl compute droplet list
ID           Name               Public IPv4        Private IPv4     Public IPv6    Memory    VCPUs    Disk    Region    Image                     VPC UUID                                Status    Tags    Features                                       Volumes
1234456      doctl.abimayu.com  xxx.xxx.240.138    10.xxx.xxx.250                   1024      1        25      sgp1      CentOS 7 x64              281fdcd2-dc84-11e8-beb4-3cfdfgedfb81    active            virtio,private_networking                      
5555345      test               xxx.xxx.31.133     10.xxx.xxx.251                   512       1        10      sgp1      Ubuntu 22.04 (LTS) x64    281fdcd2-dc84-11e8-beb4-3cfdfgedfb81    active            monitoring,droplet_agent,private_networking



doctl compute droplet create  --image rockylinux-9-x64 --enable-monitoring   --enable-private-networking  --region sgp1 --size s-1vcpu-512mb-10gb   --vpc-uuid 281fdcd2-dc83-11e8-beb4-3cfdfea9fb81 test-rocky


No comments:

Post a Comment

div>