class VMware_VCloud_SDK_Service extends VMware_VCloud_SDK_Service_Abstract
| null |
setHttpClient(VMware_VCloud_SDK_Http_Client $httpClient)
Set the HTTP client object to use for retrieving the feeds. |
from VMware_VCloud_SDK_Service_Abstract |
| VMware_VCloud_SDK_Http_Client |
getHttpClient()
Gets the HTTP client object. |
from VMware_VCloud_SDK_Service_Abstract |
| String |
getToken()
Gets the vcloud token |
from VMware_VCloud_SDK_Service_Abstract |
|
setToken(string $vcloudToken)
Sets the vcloud token |
from VMware_VCloud_SDK_Service_Abstract | |
| mixed |
get(string $url, string $type = '', boolean $reObj = true, string $return = null)
Sets HTTP configuration |
from VMware_VCloud_SDK_Service_Abstract |
| mixed |
post(string $url, int $expect = null, string $type = null, mixed $data = null, string $return = null, string $auth = null)
Send an HTTP POST request. |
from VMware_VCloud_SDK_Service_Abstract |
| mixed |
put(string $url, int $expect = null, string $type = null, mixed $data = null)
Send an HTTP PUT request. |
from VMware_VCloud_SDK_Service_Abstract |
| VMware_VCloud_API_TaskType|null |
delete(string $url, int $expect = null)
Send an HTTP DELETE request. |
from VMware_VCloud_SDK_Service_Abstract |
| mixed |
refetch(mixed $obj)
Refetch the given VMware vCloud data object from vCloud. |
from VMware_VCloud_SDK_Service_Abstract |
| null |
download(string $url, string $dest, string $type = 'application/octet-stream')
Download a file and dump to specified location. |
from VMware_VCloud_SDK_Service_Abstract |
| null |
upload(string $url, string $file, string $type = 'application/octet-stream', function $onProgress = false)
Upload a file. |
from VMware_VCloud_SDK_Service_Abstract |
| static VMware_VCloud_SDK_Service |
getService(VMware_VCloud_SDK_Http_Client_Interface $client = null)
Get a VMwareVCloudSDK_Server object |
|
| null |
setLoginUrl(string $url)
Set login URL. |
|
| VMware_VCloud_API_OrgListType |
login(string $server, array $auth, array $config, string $apiVersion)
Login to VMware vCloud Director. |
|
| VMware_VCloud_API_SessionType |
SSOLogin(string $server, string $samlAssertionXML, string $org, array $config, string $apiVersion = '5.1')
Login to VMware vCloud Director using the SAML Assertion XML from vSphere SSO/SAML IDP's. |
|
| VMware_VCloud_API_SessionType |
HOKSSOLogin(string $server, string $samlAssertionXML, string $org, array $config, string $apiVersion, string $signature, string $signature_alg)
Login to VMware vCloud Director using the SAML Assertion XML from vSphere SSO/SAML IDP's. |
|
|
SetVcloudToken(string $server, string $vcloudtoken, array $config, string $apiVersion)
Set vcloud token for login. |
||
| string |
getBaseUrl()
Get base URL of the VMware vCloud Director. |
|
| string |
getAdminUrl()
Get admin URL of the VMware vCloud Director. |
|
| string |
getAdminExtensionUrl()
Get administrative extension URL of the VMware vCloud Director. |
|
| mixed |
createSDKObj(mixed $obj)
A wrapper class to create a VMware vCloud SDK object. |
|
| VMware_VCloud_SDK_Admin |
createSDKAdminObj()
Create a VMwareVCloudSDK_Admin object. |
|
| VMware_VCloud_SDK_Extension |
createSDKExtensionObj()
Create a VMwareVCloudSDK_Extension object. |
|
| list |
getUserServiceRefs()
Get a list of user services. |
|
| VMware_VCloud_API_SupportedOperatingSystemsInfoType |
supportedSystemsInfo()
Get Supported OperatingSystems Info. |
|
| VMware_VCloud_API_ContainerType |
getFileDescriptor()
Retrieve a file descriptor. |
|
| xml |
getSchemaFileName($schemaFileName)
Retrieve the specified schema definition file from the server. |
|
| array |
getOrgRefs(string $name = null)
Get references of all organization data objects or an organization data object by its name in VMware vCloud Director. |
|
| array |
getOrgs(string $name = null)
Get all organization data objects or an organization data object by its name in VMware vCloud Director. |
|
| VMware_VCloud_API_VCloudType |
getAdmin()
Get a VMware vCloud Director administrative object. |
|
| VMware_VCloud_API_Extension_VMWExtensionType |
getAdminExtension()
Get an Extension object which contains various links to access extension API. |
|
| VMware_VCloud_API_SessionType |
getSession()
Get current session. |
|
| null |
deleteSession()
Delete current session. |
|
| null |
logout()
Log out to VMware vCloud Director. |
|
| VMware_VCloud_SDK_Query |
getQueryService()
Get a vCloud Director query service entry point. |
|
| array|null |
queryReferencesByName(string $type, string $name, array $filter = null)
Get a reference of the specified entity type by its name attribute. |
|
| array|null |
queryReferencesByType(string $type)
Get a reference of the specified entity type by its type attribute. |
|
| array|null |
queryRecordsByType(string $type)
Get a record of the specified entity type by its type attribute. |
|
| mixed |
wait(mixed $obj, string $method, array $cond, int $iteration = 200, int $interval = 20)
A helper function to wait for a vCloud resource entity (represented by a vCloud data object) to meet a specified condition in a waiting period. |
|
| VMware_VCloud_API_TaskType |
waitForTask(VMware_VCloud_API_TaskType $task, int $iteration = 200, int $interval = 20)
Wait for a task to finish. |
final public null
setHttpClient(VMware_VCloud_SDK_Http_Client $httpClient)
Set the HTTP client object to use for retrieving the feeds.
If null, use the default client, the VMwareVCloudSDKHttpClient object.
final public VMware_VCloud_SDK_Http_Client
getHttpClient()
Gets the HTTP client object.
final public String
getToken()
Gets the vcloud token
final public
setToken(string $vcloudToken)
Sets the vcloud token
public mixed
get(string $url, string $type = '', boolean $reObj = true, string $return = null)
Sets HTTP configuration
public mixed
post(string $url, int $expect = null, string $type = null, mixed $data = null, string $return = null, string $auth = null)
Send an HTTP POST request.
public mixed
put(string $url, int $expect = null, string $type = null, mixed $data = null)
Send an HTTP PUT request.
public VMware_VCloud_API_TaskType|null
delete(string $url, int $expect = null)
Send an HTTP DELETE request.
public mixed
refetch(mixed $obj)
Refetch the given VMware vCloud data object from vCloud.
public null
download(string $url, string $dest, string $type = 'application/octet-stream')
Download a file and dump to specified location.
public null
upload(string $url, string $file, string $type = 'application/octet-stream', function $onProgress = false)
Upload a file.
static public VMware_VCloud_SDK_Service
getService(VMware_VCloud_SDK_Http_Client_Interface $client = null)
Get a VMwareVCloudSDK_Server object
public null
setLoginUrl(string $url)
Set login URL.
public VMware_VCloud_API_OrgListType
login(string $server, array $auth, array $config, string $apiVersion)
Login to VMware vCloud Director.
public VMware_VCloud_API_SessionType
SSOLogin(string $server, string $samlAssertionXML, string $org, array $config, string $apiVersion = '5.1')
Login to VMware vCloud Director using the SAML Assertion XML from vSphere SSO/SAML IDP's.
This method can be used in performing: SSO login with Bearer/HOK tokens in both Org/System scope. No signature verification is done when using this method.
public VMware_VCloud_API_SessionType
HOKSSOLogin(string $server, string $samlAssertionXML, string $org, array $config, string $apiVersion, string $signature, string $signature_alg)
Login to VMware vCloud Director using the SAML Assertion XML from vSphere SSO/SAML IDP's.
This method can be used in performing: SSO login with HOK tokens and the signature attributes in Org/System scope. vCD also does the signature verification of the provided HOK token. Note: For Bearer tokens there is no signature verification done.
public
SetVcloudToken(string $server, string $vcloudtoken, array $config, string $apiVersion)
Set vcloud token for login.
public string
getBaseUrl()
Get base URL of the VMware vCloud Director.
public string
getAdminUrl()
Get admin URL of the VMware vCloud Director.
public string
getAdminExtensionUrl()
Get administrative extension URL of the VMware vCloud Director.
public mixed
createSDKObj(mixed $obj)
A wrapper class to create a VMware vCloud SDK object.
public VMware_VCloud_SDK_Admin
createSDKAdminObj()
Create a VMwareVCloudSDK_Admin object.
public VMware_VCloud_SDK_Extension
createSDKExtensionObj()
Create a VMwareVCloudSDK_Extension object.
public list
getUserServiceRefs()
Get a list of user services.
public VMware_VCloud_API_SupportedOperatingSystemsInfoType
supportedSystemsInfo()
Get Supported OperatingSystems Info.
public VMware_VCloud_API_ContainerType
getFileDescriptor()
Retrieve a file descriptor.
public xml
getSchemaFileName($schemaFileName)
Retrieve the specified schema definition file from the server.
public array
getOrgRefs(string $name = null)
Get references of all organization data objects or an organization data object by its name in VMware vCloud Director.
This function retrieves organization references from server. User can also use the response of the login() function call to get a list of the organization references.
public array
getOrgs(string $name = null)
Get all organization data objects or an organization data object by its name in VMware vCloud Director.
public VMware_VCloud_API_VCloudType
getAdmin()
Get a VMware vCloud Director administrative object.
public VMware_VCloud_API_Extension_VMWExtensionType
getAdminExtension()
Get an Extension object which contains various links to access extension API.
public VMware_VCloud_API_SessionType
getSession()
Get current session.
public null
deleteSession()
Delete current session.
public null
logout()
Log out to VMware vCloud Director.
public VMware_VCloud_SDK_Query
getQueryService()
Get a vCloud Director query service entry point.
public array|null
queryReferencesByName(string $type, string $name, array $filter = null)
Get a reference of the specified entity type by its name attribute.
It uses query service of vCloud Director, filters the query results in reference format by the name attribute.
public array|null
queryReferencesByType(string $type)
Get a reference of the specified entity type by its type attribute.
It uses query service of vCloud Director, filters the query results in reference format by the type attribute.
public array|null
queryRecordsByType(string $type)
Get a record of the specified entity type by its type attribute.
It uses query service of vCloud Director, filters the query results in record format by the type attribute.
public mixed
wait(mixed $obj, string $method, array $cond, int $iteration = 200, int $interval = 20)
A helper function to wait for a vCloud resource entity (represented by a vCloud data object) to meet a specified condition in a waiting period.
public VMware_VCloud_API_TaskType
waitForTask(VMware_VCloud_API_TaskType $task, int $iteration = 200, int $interval = 20)
Wait for a task to finish.