1 2 | C:\cloudburst\cloudburst.cli\bin>cloudburst -h mycloudburst.com -u cloudburstUser -p password |
1 | >>> cloudburst.users |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [ { "currentmessage": "RM02011", "currentmessage_text": "Active in the last five minutes", "currentstatus": "RM01061", "currentstatus_text": "Logged in and active", "email": "", "fullname": "Administrator", "groups": (nested object), "id": 1, "parts": (nested object), "password": (write-only), "patterns": (nested object), "roles": (nested object), "scripts": (nested object), "username": "cbadmin", "virtualimages": (nested object), "virtualsystems": (nested object) } ] |
1 | >>> cloudburst.users.create(cloudburst.wizard) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | Enter ?? for help using the wizard. username: newuser fullname: Pattern Deployer password: password email: newuser@mycompany.com { "currentmessage": "RM02013", "currentmessage_text": "User has not logged in yet", "currentstatus": "RM01062", "currentstatus_text": "Inactive", "email": "newuser@mycompany.com", "fullname": "Pattern Creator", "groups": (nested object), "id": 2, "parts": (nested object), "password": (write-only), "patterns": (nested object), "roles": (nested object), "scripts": (nested object), "username": "newuser", "virtualimages": (nested object), "virtualsystems": (nested object) } |
1 2 | >>> cloudburst.users << {"username":"newuser", "fullname":"Pattern Deployer", ... "password":"password", "email":"newuser@mycompany.com"} |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | { "currentmessage": "RM02013", "currentmessage_text": "User has not logged in yet", "currentstatus": "RM01062", "currentstatus_text": "Inactive", "email": "newuser@mycompany.com", "fullname": "Pattern Deployer", "groups": (nested object), "id": 3, "parts": (nested object), "password": (write-only), "patterns": (nested object), "roles": (nested object), "scripts": (nested object), "username": "newuser", "virtualimages": (nested object), "virtualsystems": (nested object) } |
1 | >>> help(cloudburst.hypervisors[0]) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | A Hypervisor object represents a particular hypervisor defined on the CloudBurst appliance. Use the Hypervisor object to query and manipulate the hypervisor definition on the appliance. Attributes of the hypervisor and relationships between the hypervisor and other resources on the CloudBurst appliance are represented as Jython attributes on the Hypervisor object. Manipulate these Jython attributes using standard Jython mechanisms to make changes to the corresponding data on the CloudBurst appliance. Additional help is available for the following methods: acceptCertificate, __contains__, __delattr__, delete, discover, __eq__, __hash__, isMaintenance, isStarted, isStatusTransient, maintenance, __nonzero__, refresh, __repr__, start, __str__, __unicode__, waitFor Additional help is available for the following properties: address, certificate, certified, cloud, created, currentmessage, currentmessage_text, currentstatus, currentstatus_text, desiredstatus, desiredstatus_text, id, name, networks, password, storage, type, updated, userid Remember to append an underscore to the property name when asking for help using a specific instance of a resource rather than the class. For example, "help(cloudburst.pattern.name)" or "help(mypattern.name_)" will work, but "help(mypattern.name)" will resolve the name of the pattern referenced by mypattern and attempt to provide help for the resulting string rather than the property itself. |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |