This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vCAC_Machine = Server.findAllForType("vCAC:VirtualMachine","VMUniqueID eq '" + vm.config.instanceUuid + "'"); | |
var virtualMachineEntity = vCAC_Machine[0].getEntity(); //to get entity | |
var vmEntityProps = virtualMachineEntity.getProperties(); //to get Entity properties for the next step | |
vmEntityProps.remove('VMDNSName'); | |
vmEntityProps.put('VMDNSName', newName); | |
vmEntityProps.put("VirtualMachineName", newName); | |
var hostId = virtualMachineEntity.hostId; | |
var modelName = virtualMachineEntity.modelName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get all your blueprints | |
curl -X GET \ | |
https://$VRAURL/composition-service/api/blueprintdocuments/ \ | |
-H 'Accept: application/json' \ | |
-H 'Authorization: Bearer $TOKEN' \ | |
-H 'Content-Type: application/json' \ | |
# Get a blueprint | |
curl -X GET \ | |
https://$VRAURL/composition-service/api/blueprintdocuments/MyDevBlueprint \ |