VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE Guia do Utilizador

Consulte online ou descarregue Guia do Utilizador para Software VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE. VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE User`s guide Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 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

Página 2 - 2 VMware, Inc

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

Página 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

Página 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

Página 5 - Intended Audience

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

Página 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

Página 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

Página 8 - Object Taxonomy

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

Página 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

Página 10 - Links and Link Relations

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 17 - About the Schema Reference

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

Página 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

Página 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:

Página 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

Página 21 - VMware, Inc. 21

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

Página 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

Página 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

Página 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

Página 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

Página 26 - For example

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

Página 27 - About the Example Programs 4

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

Página 28 - 28 VMware, Inc

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

Página 29 - Example: Running HellovCloud

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

Página 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

Página 31 - VMware, Inc. 31

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

Página 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

Página 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

Página 34 - 34 VMware, Inc

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

Comentários a estes Manuais

Sem comentários