Interoute VDC API 101. Hello Cloud Computing: 10 steps to cloud automation throughout Europe! Jonathan.graham@interoute.com

Similar documents
User and Programmer Guide for the FI- STAR Monitoring Service SE

Interoute Virtual Data Centre. Hands on cloud control.

SOA Software API Gateway Appliance 7.1.x Administration Guide

Cloudera Manager Training: Hands-On Exercises

Using Public IP Settings

How to configure the TopCloudXL WHMCS plugin (version 2+) Update: Version: 2.2

Connecting your Virtual Machine to the Internet. BT Cloud Compute. The power to build your own cloud solutions to serve your specific business needs

XMS FULLY AUTOMATED PROVISIONING: SERVER CONFIGURATION AND QUICK START GUIDE

Configuring Keystone in OpenStack (Essex)

EMC ViPR Controller. ViPR Controller REST API Virtual Data Center Configuration Guide. Version

WHMCS LUXCLOUD MODULE

Application Security Testing. Generic Test Strategy

vcloud Air Platform Programmer's Guide

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

Cloud Provision Widget 1.41

Sentinel Cloud V.3.6 Quick Start Guide

Introduction to Virtual Datacenter

Biznet GIO Cloud Connecting VM via Windows Remote Desktop

Cloud Elements! Marketing Hub Provisioning and Usage Guide!

VMUnify EC2 Gateway Guide

FortyCloud Installation Guide. Installing FortyCloud Gateways Using AMIs (AWS Billing)

Building a Microsoft SQL Server Failover Cluster on the Interoute Virtual Data Centre

Virtualization and Cloud: Orchestration, Automation, and Security Gaps

Arctur Enterprise+ Cloud Services

Quick Start Guide. Citrix XenServer Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS

Extending Remote Desktop for Large Installations. Distributed Package Installs

Cloud Elements ecommerce Hub Provisioning Guide API Version 2.0 BETA

VELOCITY. Quick Start Guide. Citrix XenServer Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS

Cloud Cruiser and Azure Public Rate Card API Integration

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

CTERA Cloud Onramp for IBM Tivoli Storage Manager

Building a Private Cloud Cloud Infrastructure Using Opensource

Qualys API Release Notes

LifeSize Transit Virtual Appliance Installation Guide June 2011

BLACK BOX. Quick Start Guide. Virtual Central Management System (VCMS) Works with LES Series Console Servers. LES-VCMS. Customer Support Information

Salesforce Integration

Installing and Configuring vcloud Connector

Virtual Data Centre Public Cloud Simplicity Private Cloud Security

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Creating Custom Nameservers Contents

Backup of ESXi Virtual Machines using Affa

M&M MORTGAGE SERVICES INTEGRATION

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Pasquale Vitale Engineering Ingegneria Informatica. FIWARE LAB Cloud Portal

2013 ovh.com. All rights reserved

ESX System Analyzer Version 1.0 Installation Guide

1 Recommended Readings. 2 Resources Required. 3 Compiling and Running on Linux

CloudOYE CDN USER MANUAL

Virtual Code Authentication User s Guide. June 25, 2015

Deployment Guide A10 Networks/Infoblox Joint DNS64 and NAT64 Solution

Building Clouds with OpenNebula 3.2

UNIFIED COMPUTING TECHNICAL DATA SHEET Interoute Virtual Data Centre 2.0

SAS Visual Analytics 7.2 for SAS Cloud: Quick-Start Guide

Tutorial: Using HortonWorks Sandbox 2.3 on Amazon Web Services

Cloud Storage Quick Start Guide

CommandCenter Secure Gateway

1. Cloud Data Center Login to ICT Marketplace Portal Dashboard Data center management New data center...

MacroLan Azure cloud tutorial.

VMTurbo Operations Manager 4.5 Installing and Updating Operations Manager

WEB BASED Access Control/Time Attendance Software Manual V 1.0

UFTP AUTHENTICATION SERVICE

SSL VPN. Virtual Appliance Installation Guide. Virtual Private Networks

SolarWinds Log & Event Manager

Eucalyptus Tutorial HPC and Cloud Computing Workshop

ICE Futures Europe. MFT Technical Guide for Position Reporting V1.2

AdRadionet to IBM Bluemix Connectivity Quickstart User Guide

How To Set Up Egnyte For Netapp Sync For Netapp

Web Authentication Application Note

Quick Instructions Installing on a VPS (Virtual Private Server)

DATA SHEET Setup Tutorial

Sample HP OO Web Application

The VHD is separated into a series of WinRar files; they can be downloaded from the following page:

vcloud Application Director Troubleshooting

Advanced HTTP API Documentation

SUREedge Software Appliance (vmware) Installation Guide

APS PACKAGE LISTEQ CLOUD DESKTOP Specification

Contents UNIFIED COMPUTING DATA SHEET. Virtual Data Centre Support.

Interoute Virtual Data Centre. Hands on cloud control.

Data Center Automation with the VM-Series


AT&T Synaptic Compute as a Service SM

Thinspace deskcloud. Quick Start Guide

Deploy the client as an Azure RemoteApp program

Red Hat Enterprise Virtualization Disaster Recovery

Single Sign On. SSO & ID Management for Web and Mobile Applications

EMC ViPR Controller. Backup and Restore Guide. Version Darth 302-XXX-XXX 01

Quickstart guide to Authentication

Copyright Pivotal Software Inc, of 10

Oracle Discoverer EUL Command Line for Java Open Platform EUL Creation and Maintenance. An Oracle White Paper August 2003

Matrix Logic WirelessDMS Service 2.0

EM Single Sign On 1.2 (1018)

Deployment Guide. VMware: Enabling vcenter Dynamic Provisioning with the AX Series

Transcription:

Interoute VDC API 101 Hello Cloud Computing: 10 steps to cloud automation throughout Europe! Jonathan.graham@interoute.com

API 101 Interoute VDC API RESTful (jclouds compliant) web service. 10 steps to cloud automation throughout Europe (London, Amsterdam, Berlin, Geneva, Paris._! 1. [ Steps 1-6] Determine resource IDs for VDC, Template Repositories and Templates 2. [Steps 7-10] Create Appliances; create VMs inside the VApps and deploy them. d 1

1] API Username, Password & Enterprise Ensure that your VDC account has been enabled (by your VDC Administrator) with API access From the Hub you will need to know the Enterprise ID and login credentials Write these down they will be needed later 2

2] Get VirtualDatacenters API command to query the VDCs provisioned and available to create cloud environments in. USE API credentials Output includes virtualdatacenters id curl --verbose -X GET -u username:password\ -H 'Accept: application/vnd.abiquo.virtualdatacenters+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualdatacenters+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters' 3

3] Get VirtualDatacenter API Command to query an individual virtualdatacenter Specify virtualdatacenters ID curl --verbose -X GET -u username:password\ -H 'Accept: application/vnd.abiquo.virtualdatacenter+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualdatacenter+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters/205' 4

4] Get Virtual Data Center Repositories API Command to determine an enterprises repository (where VM templates are stored) Specify enterprises ID (determined from Hub and recorded from earlier) Output includes datacenterrepositories ID on a per geography basis (e.g. 6 for London, 12 for Amsterdam) curl --verbose -X GET -u username:password\ -H 'Accept: application/vnd.abiquo.datacenterrepositories+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.datacenterrepositories+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/admin/enterprises/137/datacenterreposito ries' 5

5] Get Virtual Machine Templates API Command to determine VM templates available in an enterprises repository Specify enterprises ID and datacenterrepositories ID Output includes virtualmachinetemplatesid (e.g. UBUNTU-10.04-LTS_LAMP is 231) curl --verbose -X GET -u username:password\ -H 'Accept: application/vnd.abiquo.virtualmachinetemplates+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualmachinetemplates+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/admin/enterprises/137/datacenterreposito ries/6/virtualmachinetemplates' 6

6] Get Virtual Machine Template API Command to determine specific VM template properties Specify enterprises ID, datacenterrepositories ID and virtualmachinetemplatesid curl --verbose -X GET -u username:password\ -H 'Accept: application/vnd.abiquo.virtualmachinetemplate+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualmachinetemplate+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/admin/enterprises/137/datacenterreposito ries/6/virtualmachinetemplates/318' 7

7] Post Virtual Appliance API Command to create VDC Virtual Appliance Specify virtualdatacenters ID and virtualappliance name curl --verbose -X POST -u username:password\ -H 'Accept: application/vnd.abiquo.virtualappliance+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualappliance+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters/200/virtualappl iances' \ -d '<virtualappliance><name>jgmagic</name></virtualappliance>' -H 'Content-Length: 999' 8

D dd kj a; dj ka sd j 8] Post Virtual Machine API Command to create VDC Virtual Machine (as part of Virtual Appliance) Specify virtualdatacenters ID, virtualappliance ID, virtualmachinetemplates ID and VM name Output includes virtualmachine ID (e.g. 1189) curl --verbose -X POST -u username:password\ -H 'Accept: application/vnd.abiquo.virtualmachine+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualmachine+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters/200/virtualappl iances/1643/virtualmachines' \ -d '<virtualmachine><link href="http://vdcmgmt.interoute,com/api/admin/enterprises/137/datacenterrepositories/6/virtualmachine templates/318" rel="virtualmachinetemplate" title="interoute_centos_6.0_web_server_(sparse)"/><name>hellocloudcomputing</name></ virtualmachine>' -H 'Content-Length: 999' 9

9] Post Virtual Machine Action Deploy API Command to deploy VDC Virtual Machine Specify virtualdatacenters ID, virtualappliance ID, virtualmachinetemplates ID and virtualmachines ID curl -X POST -u username:password\ -H 'Accept: application/vnd.abiquo.acceptedrequest+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.acceptedrequest+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters/200/virtualappl iances/1643/virtualmachines/1189/action/deploy' \ -H 'Content-Length: 0' 10

Beyond the basics Geo aware Auto Scaling echo -e "\n Determining External [FW] IP address" MYIP=$(curl ifconfig.me) echo "$MYIP" echo -e "\n Determining GEO location from IP \n" MYLOC=$(curl -D - "http://freegeoip.net/xml/"$myip"" grep -E -m 1 -o "<CountryCode>(.*)</CountryCode>" sed -e 's,.*<countrycode>\([^<]*\)</countrycode>.*,\1,g') echo "$MYLOC" if [ $MYLOC == "GB" ] then echo -e "\n" "Your IP address is $MYIP. Your location is $MYLOC." "\n echo -e "\n" "London VDC is closest." "\n JGVM1=$(curl -X POST -u username:password \ -H 'Accept: application/vnd.abiquo.virtualmachine+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.virtualmachine+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters/200/virtualappliances/1643/virtualmachines' \ -d '<virtualmachine><link href="http://vdc-mgmt.interoute.com/api/admin/enterprises/137/datacenterrepositories/6/virtualmachinetemplates/108" rel="virtualmachinetemplate" title="ubuntu 10.04 LTS LAMP"/><name>Hello</name></virtualMachine>') JGIDVM1=$(echo $JGVM1 grep -E -m 1 -o "<id>(.*)</id>") JGIDVM1RAW=$(echo $JGIDVM1 sed -e 's,.*<id>\([^<]*\)</id>.*,\1,g') curl -X POST -u username:password \ -H 'Accept: application/vnd.abiquo.acceptedrequest+xml;version=2.0' \ -H 'Content-Type: application/vnd.abiquo.acceptedrequest+xml;version=2.0' \ 'http://vdcbridge.interoute.com/jclouds/api/cloud/virtualdatacenters/200/virtualappliances/1643/virtualmachines/'$jgidvm1raw'/action/deploy' \ -H 'Content-Length: 0' 11

Further information Free VDC trial http://interoute.com/vdc Online wiki and tutorials including API detail http://kc.interoute.com http://kc.interoute.com/library/articles/help-topics/vdc-apis Contact: vdcsales@interoute.com 12