VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE Uživatelská příručka

Procházejte online nebo si stáhněte Uživatelská příručka pro Software VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE. VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE User`s guide Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 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

Strany 2 - 2 VMware, Inc

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

Strany 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

Strany 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

Strany 5 - Intended Audience

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

Strany 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

Strany 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

Strany 8 - Object Taxonomy

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

Strany 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

Strany 10 - Links and Link Relations

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 17 - About the Schema Reference

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

Strany 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

Strany 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:

Strany 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

Strany 21 - VMware, Inc. 21

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 26 - For example

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

Strany 27 - About the Example Programs 4

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

Strany 28 - 28 VMware, Inc

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

Strany 29 - Example: Running HellovCloud

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

Strany 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

Strany 31 - VMware, Inc. 31

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

Strany 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

Strany 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

Strany 34 - 34 VMware, Inc

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

Komentáře k této Příručce

Žádné komentáře