VMware VCloud Suite SDK For Programming Guide - VCloud Suite SDK .

Transcription

VMware vCloud Suite SDK for .NETProgramming GuideUpdate 1vCloud Suite SDK for .NET 6.0vCenter Server 6.0VMware ESXi 6.0This document supports the version of each product listed andsupports all subsequent versions until the document isreplaced by a new edition. To check for more recent editionsof this document, see http://www.vmware.com/support/pubs.EN-001849-02

VMware vCloud Suite SDK for .NET Programming GuideYou can find the most up-to-date technical documentation on the VMware Web site at:http://www.vmware.com/support/The VMware Web site also provides the latest product updates.If you have comments about this documentation, submit your feedback to:docfeedback@vmware.comCopyright 2015, 2016 VMware, Inc. All rights reserved. Copyright and trademark information.VMware, Inc.3401 Hillview Ave.Palo Alto, CA 94304www.vmware.com2VMware, Inc.

ContentsAbout vCloud Suite SDK for .NET Programming Guide5Updated Information 71 Introduction to the vCloud Suite SDKs 9vCloud Suite SDKs Overview 9Supported Programming Languages112 Components of the vCloud Suite Virtualization Layer 13Components and Services of a Virtual Environment 13vSphere Deployment Configurations 143 Retrieving Service Endpoints 17Filtering for Predefined Service Endpoints 18Filter Parameters for Predefined Service Endpoints 18Connect to the Lookup Service and Retrieve the Service Registration Object 19.NET Example of Connecting to the Lookup Service and Retrieving a Service RegistrationObject 20Retrieve Service Endpoints on vCenter Server Instances 20.NET Example of Retrieving a Service Endpoint on a vCenter Server Instance 21Retrieve a vCenter Server ID by Using the Lookup Service 22.NET Example of Retrieving a vCenter Server ID by Using the Lookup Service 22Retrieve a vCloud Suite Endpoint on a vCenter Server Instance 23.NET Example of Retrieving a vCloud Suite Endpoint on a vCenter Server Instance 234 Authentication Mechanisms 25Retrieve a SAML Token 26.NET Example of Retrieving a SAML Token 26Create a vCloud Suite Session with a SAML Token 27.NET Example of Creating a vCloud Session with a SAML Token 27Create a vCloud Suite Session with User Credentials 28Create a Web Services Session 29.NET Example of Creating a Web Services Session 295 Accessing vCloud Suite Services 31Access a vCloud Suite Service316 Content Library Service 33Content Library Overview 33Content Library Types 34Content Library Items 34VMware, Inc.3

VMware vCloud Suite SDK for .NET Programming GuideContent Library Storage34Querying Content Libraries 35Listing All Content Libraries 35Listing Content Libraries of a Specific Type 35List Content Libraries by Using Specific Search CriteriaContent Libraries 36Create a Local Content Library 37Publish an Existing Content Library 38Publish a Library at the Time of Creation 3936Subscribe to a Content Library 39Synchronize a Subscribed Content Library 41Editing the Settings of a Content Library 42Removing the Content of a Subscribed Library 42Delete a Content Library 43Library Items 43Create an Empty Library Item 44Querying Library Items 44Edit the Settings of a Library Item 45Upload a File from a Local System to a Library Item 46Upload a File from a URL to a Library Item 48Download Files to a Local System from a Library Item 49Synchronizing a Library Item in a Subscribed Content LibraryRemoving the Content of a Library Item 51Deleting a Library Item 51517 Content Library Support for OVF Packages 53Using the Content Library Service to Handle OVF Packages 53Upload an OVF Package from a URL to a Library Item 53Upload an OVF Package from a Local File System to a Library Item 54Using the LibraryItem Service to Execute OVF-Specific Tasks 54Deploy a Virtual Machine or Virtual Appliance from an OVF Package in a Content LibraryCreate an OVF Package in a Content Library from a Virtual Machine 55548 Tagging Service 57Creating Tags 57Creating a Tag Category 58Creating a Tag 58Creating Tag Associations 59Assign the Tag to a Content Library 59Assign a Tag to a Cluster 60Updating a Tag 60.NET Example of Updating a Tag Description 60Index 634VMware, Inc.

About vCloud Suite SDK for .NET ProgrammingGuideVMware vCloud Suite SDK for .NET Programming Guide describes how to use the vCloud Suite SDK for .NET.VMware provides different APIs and SDKs for different applications and goals. ThevCloud Suite SDK for .NET supports the development of clients that use the vCloud Suite SDK forinfrastructure support tasks .Intended AudienceThis information is intended for anyone who will develop applications by using thevCloud Suite SDK for .NET. Some programming background in C# and .NET is requiredVMware, Inc.5

VMware vCloud Suite SDK for .NET Programming Guide6VMware, Inc.

Updated InformationThis VMware vCloud Suite SDK for .NET Programming Guide is updated with each release of the product orwhen necessary.This table provides the update history of the VMware vCloud Suite SDK for .NET Programming Guide.RevisionDescriptionEN-001849-02Removed incorrect references to authenticating individual operations with a token. See, for example,Chapter 4, “Authentication Mechanisms,” on page 25EN-001849-01Restructured initial chapters for clarity.EN-001849-00Initial release.VMware, Inc.7

VMware vCloud Suite SDK for .NET Programming Guide8VMware, Inc.

Introduction to the vCloud SuiteSDKs1The vCloud Suite SDKs bundle client libraries for accessing new vCloud Suite features like Content Libraryand existing features like Tagging. The vCloud Suite SDKs contain sample applications and API referencedocumentation for the Content Library and Tagging services. The vCloud Suite SDKs also provide samplecode that retrieves the endpoints of vCloud Suite and vSphere services and establishes a secure connectionwith the vCloud Suite endpoint.vCloud Suite supports six languages for accessing the vCloud Suite API services and provides six SDKs fordeveloping client applications for managing components in your virtual environment.This chapter includes the following topics:n“vCloud Suite SDKs Overview,” on page 9n“Supported Programming Languages,” on page 11vCloud Suite SDKs OverviewThe vCloud Suite API provides a unified programming interface to vCloud Suite services that you can usethrough SDKs provided in six programming languages. The vCloud Suite API provides a service-orientedarchitecture for accessing resources in the virtual environment by issuing requests to the vCloud SuiteEndpoint.vCloud Suite API client applications communicate with services on the Platform Services Controller andvCenter Server.VMware, Inc.9

VMware vCloud Suite SDK for .NET Programming GuideFigure 1‑1. Communication Model of vCloud Suite API Client ApplicationsRetrieve serviceendpointsPlatform Services ControllerLookup ServiceEstablishauthenticatedsessionvCenter Single Sign-OnClientApplicationCommunicatewith servicesvCenter ServervCloud Suite EndpointContentLibraryТaggingServicevSphere API ServicesvCloud Suite API client applications use the Lookup Service to retrieve the vCenter Single Sign-Onendpoint, the vCloud Suite Endpoint, and the endpoints of services that are exposed through the vSphereAPI. To access vCloud Suite services such as Content Library and Tagging, client applications issue requeststo the vCloud Suite Endpoint. By using the vCenter Single Sign-On service, client applications can eitherestablish an authenticated vCloud Suite session, or authenticate individual requests to the vCloud SuiteEndpoint.Client applications can access services that are exposed through the vSphere API by using the vSphereManagement SDK.Depending on the vSphere deployment model, client applications can communicate with vCloud Suiteservices on a single vCenter Server instance or multiple vCenter Server instances. For more informationabout the vSphere deployment models, see Chapter 2, “Components of the vCloud Suite VirtualizationLayer,” on page 13SDK Developer SetupTo start developing a vCloud Suite API client application, you must download the software and set up adevelopment environment. You can find instructions for setting up a development environment in theREADME for each vCloud Suite SDK.SDK SamplesThe vCloud Suite SDKs provide sample applications that you can extend to implement client applicationsthat serve your needs. The code examples in the vCloud Suite SDKs documentation are based on thesesample applications.10VMware, Inc.

Chapter 1 Introduction to the vCloud Suite SDKsSupported Programming LanguagesThe vCloud Suite SDKs are packed in six different programming languages that let you build clientapplications on your preferred programming language.nvCloud Suite SDK for JavanvCloud Suite SDK for PythonnvCloud Suite SDK for .NETnvCloud Suite SDK for PerlnvCloud Suite SDK for RubynvCloud Suite SDK for RESTVMware, Inc.11

VMware vCloud Suite SDK for .NET Programming Guide12VMware, Inc.

Components of the vCloud SuiteVirtualization Layer2At the core of vCloud Suite is vSphere, which provides the virtualization layer of the software-defined datacenter. You can use vSphere deployment options for vCenter Server and ESXi hosts to build virtualenvironments of different scales.This chapter includes the following topics:n“Components and Services of a Virtual Environment,” on page 13n“vSphere Deployment Configurations,” on page 14Components and Services of a Virtual EnvironmentStarting with vSphere 6.0, the deployment of the virtual environment consists of two major components thatprovide different sets of services, the VMware Platform Services Controller and vCenter Server. You candeploy vCenter Server with an embedded or external Platform Services Controller.Services Installed with Platform Services ControllerThe Platform Services Controller group of infrastructure services contains vCenter Single Sign-On, LicenseService, Lookup Service, and VMware Certificate Authority. The services installed with thePlatform Services Controller are common to the entire virtual environment. A Platform Services Controllercan be connected to one or more vCenter Server instances. In a deployment that consists of more than onePlatform Services Controller, the data of each service is replicated across all Platform Services Controllerinstances.In vCloud Suite API client applications, you use the vCenter Single Sign-On and the Lookup Service on thePlatform Services Controller to provide a range of functionality.nAuthentication and session management. You use the vCenter Single Sign-On service to establish anauthenticated session with the vCloud Suite Endpoint. You send credentials to the vCenter Single SignOn service and receive a SAML token that you use to obtain a session ID from the vCloud SuiteEndpoint. Alternatively, you can access the vCloud Suite APIs in a sessionless manner by including theSAML token in every request that you issue to the vCloud Suite Endpoint.nService discovery. You use the Lookup Service to discover the endpoint URL for the vCenter SingleSign-On service on the Platform Services Controller, the location of the vCenter Server instances, andthe vCloud Suite Endpoint.Services Installed with vCenter ServervCenter Server is a central administration point for ESXi hosts. The vCenter Server group of services contains vCenter Server, vSphere Web Client, Inventory Service, vSphere Auto Deploy , vSphere ESXi Dump Collector, VMware vSphere Syslog Collector on Windows and VMware vSphere Syslog Service forthe VMware vCenter Server Appliance .VMware, Inc.13

VMware vCloud Suite SDK for .NET Programming GuidevCenter Server also provides services that you can access through the vCloud Suite Endpoint.Content Library ServiceYou can use the Content Library Service to share VM templates, vApptemplates, and other files across the software-defined data center. You cancreate, share, and subscribe to content libraries on the same vCenter Serverinstance or on a remote instance. This promotes consistency, compliance,efficiency, and automation in deploying workloads at scale. By using contentlibraries, you can also create OVF packages from virtual machines andvirtual appliances in hosts, resource pools, and clusters. You can then use theOVF packages to provision new virtual machines in hosts, resource pools,and clusters.Tagging ServiceThis service supports the definition of tags that you can associate withvSphere objects or vCloud Suite resources. The vCloud Suite SDKs providethe capability to manage tags programmatically.vSphere Deployment ConfigurationsvCloud Suite client applications communicate with services on the Platform Services Controller andvCenter Server components of the virtual environment. vCenter Server can be deployed with an embeddedor external Platform Services Controller.vCenter Server with an Embedded Platform Services ControllervCenter Server and Platform Services Controller reside on the same virtual machine or physical server. Thisdeployment is most suitable for small environments such as development or test beds.A client application must first connect to the Lookup Service on the Platform Services Controller andretrieve the vCenter Single Sign-On Service endpoint and the vCloud Suite Endpoint. The application canaccess services on the vCenter Server instance through the vCloud Suite Endpoint in an authenticatedsession or by providing as SAML token in each request.14VMware, Inc.

Chapter 2 Components of the vCloud Suite Virtualization LayerFigure 2‑1. vCenter Server with Embedded Platform Services ControllerVM or Physical ServerPlatform Services ControllerSingle Sign-OnService URLvCloud SuiteEndpoint URLvCenter ServerURLOther ServicesURLsLookupServiceSingleSign-ONServiceSAML TokenVMVMware ESXivCenter ServervCloud SuiteEndpointContent LibraryServiceТaggingServiceOther ServicesVMVMware ESXivCenter Server with an External Platform Services ControllervCenter Server and Platform Services Controller are deployed on separate virtual machines or physicalservers. The Platform Services Controller can be shared across several vCenter Server instances. For largerdeployments, more than one Platform Services Controller can exist as infrastructure data is replicated acrossall Platform Services Controller instances.A client application functions in a similar way as in a Platform Services Controller with embeddedvCenter Server deployment. The only difference is that the client application can access services on multiplevCenter Server instances, or services only on a particular vCenter Server instance.VMware, Inc.15

VMware vCloud Suite SDK for .NET Programming GuideFigure 2‑2. vCenter Server with External Platform Services ControllerVM or Physical ServerPlatform Services ControllerLookupServiceSingleSign-ONServiceSAML TokenVM or Physical ServerVM or Physical ServervCenter ServervCenter ServervCloud SuiteEndpointVMVMware ESXi16Single Sign-OnService URLvCloud SuiteEndpoint URLvCenter ServerURLOther ServicesURLsContent LibraryServiceТaggingServiceOther ServicesvCloud SuiteEndpointVMVMware ESXiVMVMware ESXiContent LibraryServiceТaggingServiceOther ServicesVMVMware ESXiVMware, Inc.

Retrieving Service Endpoints3To access services and resources in the virtual environment, vCloud Suite API client applications mustretrieve endpoints of vCloud Suite and vSphere services. Client applications retrieve service endpoints fromthe Lookup Service that runs on the Platform Services Controller.The Lookup Service provides service registration and discovery by using the vSphere Web services API. Byusing the Lookup Service, you can retrieve endpoints of services on the Platform Services Controller andvCenter Server.nThe vCenter Single Sign-On endpoint on the Platform Services Controller. You use the vCenter SingleSign-On service to get a SAML token and establish an authenticated session with the vCloud SuiteEndpoint. You can also use the token in a sessionless manner by including it in every request that youissue to the vCloud Suite Endpoint. For more information, see Chapter 4, “AuthenticationMechanisms,” on page 25.nThe vCloud Suite Endpoint on vCenter Server. Through the vCloud Suite Endpoint, you can makerequests to vCloud Suite API services such as Content Library and Tagging.nThe vCenter Server endpoint. In an environment with external Platform Services Controller instances,you can use the vCenter Server endpoint to get the node ID of a particular vCenter Server instance. Byusing the node ID , you can retrieve service endpoints on that vCenter Server instance.nThe vSphere API endpoint and endpoints of other vSphere services that run on vCenter Server.Workflow for Retrieving Service EndpointsThe workflow that you use to retrieve service endpoints from the Lookup Service might vary depending onthe endpoints that you need and their number. Follow a general workflow for retrieving service endpoints.1Connect to the Lookup Service on the Platform Services Controller and service registration object sothat you can query for registered services.2Create a service registration filter for the endpoints that you want to retrieve.3Use the filter to retrieve registration information for services from the Lookup Service.4Extract one or more endpoint URLs from the array of registration information that you receive from theLookup Service.This chapter includes the following topics:n“Filtering for Predefined Service Endpoints,” on page 18n“Filter Parameters for Predefined Service Endpoints,” on page 18n“Connect to the Lookup Service and Retrieve the Service Registration Object,” on page 19n“Retrieve Service Endpoints on vCenter Server Instances,” on page 20VMware, Inc.17

VMware vCloud Suite SDK for .NET Programming Guiden“Retrieve a vCenter Server ID by Using the Lookup Service,” on page 22n“Retrieve a vCloud Suite Endpoint on a vCenter Server Instance,” on page 23Filtering for Predefined Service EndpointsThe Lookup Service maintains a registration list of all services in the virtual environment. You can use theLookup Service to retrieve registration information for every service by setting a registration filter that youpass to the List() function on the Lookup Service. The functions and objects that you can use with theLookup Service are defined in the lookup.wsdl file that is part of the SDK.Lookup Service Registration FiltersYou can query for service endpoints through a service registration object that you obtain from the LookupService. You invoke theList() function on the Lookup Service to list the endpoints that you need by passingLookupServiceRegistrationFilter . LookupServiceRegistrationFilter identifies the service and theendpoint type that you can retrieve.Optionally, you can include the node ID parameter in the filter that identifies the vCenter Server instancewhere the endpoint is hosted. When the node ID is omitted, the List() function returns the endpoint URLsof the service that are hosted on all vCenter Server instances in the environment.For example, a LookupServiceRegistrationFilter for queering the vCloud Suite service has these serviceendpoint elements.Table 3‑1. Service Registration Filter ParametersFilter iceTypeproduct "com.vmware.cis"vCloud Suite namespace.type "cs.vapi"Identifies the vCloud Suiteservice.type "com.vmware.vapi.endpoint"Specifies the endpoint path forthe service.protocol "vapi.json.https.public"Identifies the protocol that willbe used for communication withthe endpoint .LookupServiceRegistrationEndpointTypeFor information about the filter parameter of the available predefined service endpoints, see “FilterParameters for Predefined Service Endpoints,” on page 18.Filter Parameters for Predefined Service EndpointsDepending on the service endpoint that you want to retrieve, you provide different parameters to theLookupServiceRegistrationFilter that you pass to the List() function on the Lookup Service. To search forservices on a particular vCenter Server instance, set the node ID parameter to the filter.Table 3‑2. Input Data for URL Retrieval for the Lookup Service Registration Filter18ServiceInput DataValuevCenter Single Sign-Onproduct namespacecom.vmware.cisservice typecs.identityprotocolwsTrustendpoint typecom.vmware.cis.cs.identity.ssoVMware, Inc.

Chapter 3 Retrieving Service EndpointsTable 3‑2. Input Data for URL Retrieval for the Lookup Service Registration Filter (Continued)ServiceInput DataValuevCloud Suite Endpointproduct namespacecom.vmware.cisservice typecs.vapiprotocolvapi.json.https.publicendpoint typecom.vmware.vapi.endpointproduct namespacecom.vmware.cisservice typevcenterserverprotocolvmomiendpoint typecom.vmware.vimproduct namespacecom.vmware.vim.smsservice typesmsprotocolhttpsendpoint typecom.vmware.vim.smsproduct namespacecom.vmware.vim.smsservice typesmsprotocolhttpsendpoint typecom.vmware.vim.pbmproduct namespacecom.vmware.vim.smsservice typecs.eamprotocolvmomiendpoint typecom.vmware.cis.cs.eam.sdkvCenter ServervCenter Storage MonitoringServicevCenter Storage Policy-BasedManagementvSphere ESX Agent ManagerConnect to the Lookup Service and Retrieve the Service RegistrationObjectYou must connect to the Lookup Service to gain access to its operations. After you connect to the LookupService, you must retrieve the service registration object to make registration queries.Procedure12Connect to the Lookup Service.aConfigure a connection stub for the Lookup Service endpoint, which uses SOAP bindings, by usingthe HTTPS protocol.bCreate a connection object to communicate with the Lookup Service.Retrieve the Service Registration Object.aCreate a managed object reference.bRetrieve the ServiceContent managed object.cRetrieve the service registration object.With the service registration object, you can make registration queries.VMware, Inc.19

VMware vCloud Suite SDK for .NET Programming Guide.NET Example of Connecting to the Lookup Service and Retrieving a ServiceRegistration ObjectThe example is based on the code from the LsConnection.cs sample file. The source file is located in thefollowing vCloud Suite SDK for .NET ware.lookupservice;// 1 - Create a custom binding for SOAP messages.var customBinding new CustomBinding();var textMessageEncoding new oding.MessageVersion MessageVersion.Soap11;var transport new edMessageSize ncoding);customBinding.Elements.Add(transport);// 2 - Create an object that encapsulates the Lookup Service URL.var address new EndpointAddress(lsUrl);// 3 - Create a connection object to communicate with the Lookup Service.lsPort new LsPortTypeClient(customBinding, address);// 4 - Manufacture a managed object reference.var serviceInstanceRef new ManagedObjectReference();serviceInstanceRef.type "LookupServiceInstance";serviceInstanceRef.Value "ServiceInstance";// 5 - Retrieve the ServiceContent managed object.serviceContent // 6 - Retrieve the service registration object.serviceRegistration serviceContent.serviceRegistration;Retrieve Service Endpoints on vCenter Server InstancesYou can create a function that obtains the endpoint URLs of a service on all vCenter Server instances in theenvironment. You can modify that function to obtain the endpoint URL of a service on a particularvCenter Server instance.See “Connect to the Lookup Service and Retrieve the Service Registration Object,” on page 19.PrerequisitesnEstablish a connection with the Lookup Service.nRetrieve a service registration object.Procedure201Create a filter criterion for service information.2Create a filter criterion for endpoint information.VMware, Inc.

Chapter 3 Retrieving Service Endpoints34Create the registration filter object.OptionDescriptionOmit the node ID parameterRetrieves the endpoint URLs of the service on all vCenter Server instances.Include the node ID parameterRetrieves the endpoint URL of the service on a particular vCenter Serverinstance.Retrieve the specified service information by using the List() function.Depending on whether you included the node ID parameter, the List() function returns different results.nA list of endpoint URLs for a service that are is hosted on all vCenter Server instances in theenvironment.nAn endpoint URL of a service that runs on a particular vCenter Server.What to do nextCall the function that you implemented to retrieve service endpoints. You can pass different filterparameters depending on the service endpoints that you need. For more information, see “Filter Parametersfor Predefined Service Endpoints,” on page 18.To retrieve a service endpoint on a particular vCenter Server instance, you must retrieve the node ID of thatinstance and pass it to the function. For information about how to retrieve the ID of a vCenter Serverinstance, see “Retrieve a vCenter Server ID by Using the Lookup Service,” on page 22.NET Example of Retrieving a Service Endpoint on a vCenter Server InstanceThis example provides a common pattern for filtering Lookup Service registration data. This example isbased on the code in the LsConnection.cs sample file. The file is located in the followingvCloud Suite SDK for .NET directory: pservice;public LookupServiceRegistrationInfo[] LookupSingleServiceUrl(string prod,string sType,string proto,string eType,string nodeId){// 1 - Create a filter criterion for service info.var filterServiceType new ceType.product prod;filterServiceType.type sType;// 2 - Create a filter criterion for endpoint info.var filterEndpointType new ointType.protocol proto;filterEndpointType.type eType;// 3 - Create the registration filter object.var filterCriteria new erviceType filterServiceType;filterCriteria.endpointType filterEndpointType;filterCriteria.nodeId nodeId;VMware, Inc.21

VMware vCloud Suite SDK for .NET Programming Guide// 4 - Retrieve specified service info with the List() method.return lsPort.List(serviceRegistration, filterCriteria);}Retrieve a vCenter Server ID by Using the Lookup ServiceYou use the node ID of a vCenter Server instance to retrieve the endpoint URL of a service on thatvCenter Server instance. You specify the node ID in the service registration filter that you pass to the List()function on the Lookup Service.Managed services are registered with the instance name of the vCenter Server instance where they run. Theinstance name maps to a unique vCenter Server ID. The instance name of a vCenter Server system isspecified during installation and might be an FQDN or an IP address.NOTE Use the URL that you retrieve from the Lookup Service to access a service. Avoid using the instancename to construct the URL of the service.PrerequisitesnEstablish a connection with the Lookup Service.nRetrieve a service registration object.Procedure1List the vCenter Server instances.2Find the matching node name of the vCenter Server instance and save the ID.Use the node ID of the vCenter Server instance to filter subsequent endpoint requests. You can use the nodeID in a function that retrieves the endpoint URL of a service on a vCenter Server instance. For informationabout implementing such a function, see “Retrieve Service Endpoints on vCenter Server Instances,” onpage 20.NET Example of Retrieving a vCenter Server ID by Using the Lookup ServiceThis example provides a common pattern for filtering Lookup Service registration data. This example isbased on the code in the LsConnection.cs sample file. The file is located in the followingvCloud Suite SDK for .NET directory: ples/common/using System;using System.Linq;using vmware.vapi.util.security;public String getMgmtNodeId(String nodeInstanceName){// 1 - List the vCenter Server instances.var services ,"vmomi","com.vmware.vim");// 2 - Find the matching node name and save the ID.foreach (var service in services){foreach (var serviceAttribute in service.serviceAttributes{if er.instanceName",22VMware, Inc.

Chapter 3 Retrieving Service ) tringComparison.CurrentCultureIgnoreCase)){return service.nodeId;}}}}Retrieve a vCloud Suite Endpoint on a vCenter Server InstanceThrough the vCloud Suite Endpoint, you can access other vCloud Suite services that run on vCenter Server,such as Content Library and Tagging. To use a vCloud Suite service, you must retrieve the vCloud SuiteEndpoint.PrerequisitesnEstablish a connection with the Lookup Service.nRetrieve a service registration object.nDetermine the node ID of the vCenter Server instance where the vCloud Suite service runs.nImplement a function that retrieves the endpoint URL of a service on a vCenter Server instance.Procedure1Invoke the function for retrieving the endpoint URL of a service on a vCenter Server instance bypassing filter strings that are specific to the vCloud Suite endpoint.2Save the URL from the resulting single-element list.NET Example of Retrieving a vCloud Suite Endpoint on a vCenter ServerInstanceThis example provides a common pattern for filtering Lookup Service registration data. This example isbased on the code in the LsConnection.cs sample file. The file is located in the followingvCloud Suite SDK for .NET directory: ples/common/targetNodeId getMgmtNodeId(target node fqdn)var serviceInfo Lookup

Components of the vCloud Suite Virtualization Layer 2 At the core of vCloud Suite is vSphere, which provides the virtualization layer of the software-defined data center. You can use vSphere deployment options for vCenter Server and ESXi hosts to build virtual environments of different scales. This chapter includes the following topics: