VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE Guide de l'utilisateur

Naviguer en ligne ou télécharger Guide de l'utilisateur pour Logiciel VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE. VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE User`s guide Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - EN-000824-00

vCloud SDK for PHP Developer's GuidevCloud Director 5.1This document supports the version of each product listed andsupports all subsequent versi

Page 2 - 2 VMware, Inc

Objects, References, and RepresentationsThe vCloud API represents objects as XML documents in which object properties are encoded as elements andattri

Page 3 - Contents

Attribute values in a Link element supply the following information:relDefines the relationship of the link to the object that contains it. A relation

Page 4 - 4 VMware, Inc

Table 1-1. Link Relationships and HTTP Request Types (Continued)rel Attribute Value Action or Relationship Description Implied HTTP Verbdown:aclRules

Page 5 - Intended Audience

Table 1-1. Link Relationships and HTTP Request Types (Continued)rel Attribute Value Action or Relationship Description Implied HTTP VerbinstallVmware

Page 6 - 6 VMware, Inc

Table 1-1. Link Relationships and HTTP Request Types (Continued)rel Attribute Value Action or Relationship Description Implied HTTP Verbrights:cleanu

Page 7 - About the VMware vCloud API 1

If a URL of such an object is known to a client, the client can use an HTTP GET request to retrieve therepresentation of the object. In the vCloud API

Page 8 - Object Taxonomy

vCloud API REST RequestsTo retrieve object representations, clients make HTTP requests to object references. The server supplies thesereferences as hr

Page 9 - VMware, Inc. 9

Table 1-3. HTTP Status Codes that the vCloud API Returns (Continued)Status Code Status Description400 Bad Request The request body is malformed, inco

Page 10 - Links and Link Relations

vCloud SDK for PHP Developer's Guide18 VMware, Inc.

Page 11 - VMware, Inc. 11

Setting Up for PHP Development 2To use the vCloud SDK for PHP, you need PHP 5.3.2 or later and the PEAR HTTP_Request2 package or asimilar HTTP client

Page 12 - 12 VMware, Inc

vCloud SDK for PHP Developer's Guide2 VMware, Inc.You can find the most up-to-date technical documentation on the VMware Web site at:http://www

Page 13 - VMware, Inc. 13

5 On the Download page, choose a download option and click the file format to download.Option DescriptionvcloudPHP_5.1.0.build.tar.gzA compressed arch

Page 14 - Client Workflow Overview

Working with the vCloud SDK for PHP 3The vCloud SDK for PHP provides a PHP class library and a set of example applications. The classes andfunctions i

Page 15 - RESTful Workflow Patterns

Table 3-2. VMware_VCloud_SDK PackagesPackage Name Package ContentsVMware_VCloud_SDK Classes that implement operationsdefined in the vCloud user API a

Page 16 - HTTP Response Codes

Table 3-3. Summary of SDK Objects, Containers, and Methods (Continued)SDK Object Container MethodExtension None See “Create a Root Object,” onpage 25

Page 17 - About the Schema Reference

Table 3-3. Summary of SDK Objects, Containers, and Methods (Continued)SDK Object Container MethodExtension_ResourceClass Extension_Service getResourc

Page 18 - 18 VMware, Inc

Create a Data ObjectTo create a data object, you can either invoke an empty constructor and then call the setters for the object orinvoke the construc

Page 19 - VMware, Inc

2 Call the VMware_VCloud_SDK_Service::getService() method that specifies the client that you created.For example,$service = VMware_VCloud_SDK_Service:

Page 20 - 20 VMware, Inc

About the Example Programs 4The vCloud SDK for PHP includes example programs that demonstrate how to use the SDK to develop clientapplications. The ex

Page 21 - VMware, Inc. 21

Table 4-1. Summary of Example Programs and Required Permissions (Continued)Example Name Description Required Permissionscreateprovidervdc.phpCreates

Page 22 - 22 VMware, Inc

2 Run php hellovcloud.php, as show in “Example: Running HellovCloud,” on page 29.Example: Running HellovCloudYou must supply runtime options on the co

Page 23 - VMware, Inc. 23

ContentsvCloud SDK for PHP Developer's Guide 5 1About the VMware vCloud API 7Object Taxonomy 8Objects, References, and Representations 10Links an

Page 24 - Create an SDK Object

Logging In and Getting an Organization ListMost vCloud API requests must be authenticated by a login request that supplies user credentials in the for

Page 25 - Use a Different HTTP Library

Procedure1 (Optional) Edit the config.php file to provide common parameter values.When you run any example program, you can override its use of these

Page 26 - For example

vCloud SDK for PHP Developer's Guide32 VMware, Inc.

Page 27 - About the Example Programs 4

IndexCcontainers, SDK 22Ddata object, to create 25EEntity, object representation in 10example programsHello vCloud 28to run 30using 27HHellovClo

Page 28 - 28 VMware, Inc

vCloud SDK for PHP Developer's Guide34 VMware, Inc.

Page 29 - Example: Running HellovCloud

vCloud SDK for PHP Developer's Guide4 VMware, Inc.

Page 30 - Operating the vApp

vCloud SDK for PHP Developer's GuideThe vCloud SDK for PHP Developer's Guide provides information about the PHP SDK for version 5.1 of thevC

Page 31 - VMware, Inc. 31

vCloud SDK for PHP Developer's Guide6 VMware, Inc.

Page 32 - 32 VMware, Inc

About the VMware vCloud API 1The VMware vCloud API provides support for developers who are building interactive clients ofVMware vCloud Director using

Page 33 - VMware, Inc. 33

Object TaxonomyThe vCloud API defines a set of objects common to cloud computing environments. An understanding of theseobjects, their properties, and

Page 34 - 34 VMware, Inc

Organization vDCsAn organization virtual datacenter (organization vDC) is a deploymentenvironment for virtual systems owned by the containing organiza

Commentaires sur ces manuels

Pas de commentaire