Param | Required | Cloudstack Param | Other Info |
---|---|---|---|
Image Id | Yes | TemplateId | N/A |
MinCount | Yes | N/A | Must be greater than 0 |
MaxCount | Yes | N/A | Must be greater than 0 |
Instanc |
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
{ | |
"Reservations": [ | |
{ | |
"OwnerId": "402918372480", | |
"ReservationId": "r-6bd24463", | |
"Groups": [], | |
"Instances": [ | |
{ | |
"Monitoring": { | |
"State": "disabled" |
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
private void handleException( Exception e) { | |
String[] error = e.getMessage().split("Error Code - "); | |
String errorMessage = error[0]; | |
if (error.length == 2) { // error code has been supplied | |
int errorCode = Integer.parseInt(error[1]); | |
if (errorCode == 431) { | |
if ( errorMessage.contains("Object vm_instance(uuid:") && errorMessage.contains(") does not exist") ) { | |
throw new EC2ServiceException( ClientError.InvalidInstanceID_NotFound, | |
"Specified Instance ID does not exist"); | |
} else if ( errorMessage.contains("Unable to find security group by name") || |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
import hmac | |
import hashlib | |
from uuid import uuid1 as uuid | |
from base64 import b64encode | |
from urllib import urlencode | |
from functools import wraps |
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
{ "queryasyncjobresultresponse" : { "accountid" : "a5fa2942-a2d5-11e3-8f5e-e2e3ca4a127e", | |
"cmd" : "org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd", | |
"created" : "2014-03-03T14:37:54+0000", | |
"jobid" : "9274d862-c377-468e-8be9-df7163286af5", | |
"jobprocstatus" : 0, | |
"jobresult" : { "volume" : { "account" : "admin", | |
"attached" : "2014-03-03T14:37:57+0000", | |
"created" : "2014-03-03T14:37:47+0000", | |
"destroyed" : false, | |
"deviceid" : 1, |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
config.vm.provider :aws do |aws, override| | |
aws.access_key_id = <cloudstack-api-key> | |
aws.secret_access_key = <cloudstack-secret-key> | |
aws.keypair_name = <name-of-keypair-on-cloudstack> | |
aws.endpoint = <address-of-ec2stack> example: http://localhost:5000/ |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.provider :aws do |aws, override| | |
aws.access_key_id = "api-key" | |
aws.secret_access_key = "secret-key" | |
aws.keypair_name = "demo" | |
aws.endpoint = "http://localhost:5000/" | |
aws.ami = "c34bf3f0-318b-4d77-b0ca-f20585d05d32" | |
aws.user_data = "#!/bin/bash\nsed -i -e 's/Defaults requiretty/#Defaults requiretty/g' /etc/sudoers" |
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
/* | |
* rwdImageMaps AngularJS Directive v1.0 | |
* | |
* Allows image maps to be used in a responsive design by recalculating the area coordinates to match the actual image size on load and window.resize | |
* | |
* Original Copyright (c) 2013 Matt Stow | |
* https://github.com/stowball/jQuery-rwdImageMaps | |
* http://mattstow.com | |
* Licensed under the MIT license | |
* |
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
sudo scutil --set ComputerName "thunder" | |
sudo scutil --set HostName "thunder" | |
sudo scutil --set LocalHostName "thunder" | |
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "thunder" | |
# Disable the sound effects on boot | |
sudo nvram SystemAudioVolume=" " | |
# Menu bar: disable transparency | |
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool true |
OlderNewer