用terrform for ucloud:
https://www.terraform.io/docs/providers/ucloud/index.html
https://docs.ucloud.cn/compute/terraform/quickstart
With ucloud of py sdk:
Api specific configuration can refer here are some templates:
https://github.com/ucloud/ucloud-sdk-python
https://docs.ucloud.cn/api/uhost-api/create_uhost_instance