Using OpenStack Client Tool
ใช้งาน Python SDK สำหรับ OpenStack เพื่อใช้งาน NCS Public API
Last updated
Was this helpful?
ใช้งาน Python SDK สำหรับ OpenStack เพื่อใช้งาน NCS Public API
Last updated
Was this helpful?
มี account ใช้งานบน NIPA Cloud Space
มี access เข้า project ที่มี wallet status เป็น Normal
ดาวน์โหลด RC file ()
update package cache
ติดตั้ง Python3
ติดตั้ง OpenStack Client
ตรวจสอบความพร้อม
ผลที่ควรจะเป็น
ตั้งค่า RC file โดยใช้ command source
ผลที่ควรจะเป็น
กรอก password ที่ใช้ในการ login เข้า NIPA Cloud Space
ดูรายการ command ที่ใช้งานได้ โดยการใช้ command ดังนี้
ผลที่ควรจะได้รับ
หรือสามารถ filter command ที่ต้องการได้ โดยการระบุ group
ผลที่ควรจะได้รับ
หรือใช้ help เพื่อดู command เพิ่มเติม เช่น
สร้าง Compute Instance ที่มี specification ดังนี้
Name: Instance-2001
Machine Type: csa.large.v2
Volume: Standard-SSD 40 GB
VPC : default
list รายการ Machine Type (Flavor) โดยใช้ command
ผลที่ได้ควรจะเป็น
list รายการ VPC Network (Network) โดยใช้ command
ผลที่ได้ควรจะเป็น
list รายการ Subnet โดยใช้ command
ผลที่ได้ควรจะเป็น
list รายการ Security Group โดยใช้ command
ผลที่ได้ควรจะเป็น
สั่ง launch Compute Instance (Server) โดยใช้ข้อมูลที่ list ไว้ก่อนหน้า
ตัวอย่าง
ผลที่ได้ควรจะเป็น
ตรวจสอบ Compute Instance ที่ถูกสร้างผ่าน command
ผลที่ได้ควรจะเป็น