Class

# VMware_VCloud_SDK_Extension_Host

class VMware_VCloud_SDK_Extension_Host extends VMware_VCloud_SDK_Abstract

## Methods

string | getEntityId() Get vCloud ID of the vCloud resource entity from its data object. | from VMware_VCloud_SDK_Abstract
VMware_VCloud_API_ReferenceType | getHostRef() Get a reference to a host entity. |
VMware_VCloud_API_Extension_HostType | getHost() Get a host object. |
string | getId() Constructs vCloud ID of the host from its UUID. |
VMware_VCloud_API_TaskType | prepare(string $username, string $password) Prepare a host. |
VMware_VCloud_API_TaskType | unprepare() Unprepare a host. |
VMware_VCloud_API_TaskType | enable() Enable a host. |
VMware_VCloud_API_TaskType | disable() Disable a host. |
boolean | isEnabled() Check whether the host is enabled or not. |
boolean | isReady() Check whether the host is ready or not. |
VMware_VCloud_API_TaskType | repair() Repair a host. |
VMware_VCloud_API_TaskType | upgrade() Upgrade a host agent to the current version. |

## Details

###
in VMware_VCloud_SDK_Abstract at line 85
`public string getEntityId()`

Get vCloud ID of the vCloud resource entity from its data object.

#### Return Value

string |

###
at line 10
`public VMware_VCloud_API_ReferenceType getHostRef()`

Get a reference to a host entity.

#### Return Value

VMware_VCloud_API_ReferenceType |

###
at line 21
`public VMware_VCloud_API_Extension_HostType getHost()`

Get a host object.

#### Return Value

VMware_VCloud_API_Extension_HostType |

###
at line 32
`public string getId()`

Constructs vCloud ID of the host from its UUID.

#### Return Value

string |

###
at line 60
`public VMware_VCloud_API_TaskType prepare(string $username, string $password)`

Prepare a host.

#### Parameters

string | $username | Username of the host.
string | $password | Password of the host.

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 75
`public VMware_VCloud_API_TaskType unprepare()`

Unprepare a host.

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 86
`public VMware_VCloud_API_TaskType enable()`

Enable a host.

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 97
`public VMware_VCloud_API_TaskType disable()`

Disable a host.

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 108
`public boolean isEnabled()`

Check whether the host is enabled or not.

#### Return Value

boolean |

###
at line 119
`public boolean isReady()`

Check whether the host is ready or not.

#### Return Value

boolean |

###
at line 130
`public VMware_VCloud_API_TaskType repair()`

Repair a host.

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 142
`public VMware_VCloud_API_TaskType upgrade()`

Upgrade a host agent to the current version.

If the version of the host is current, no action will be performed.

#### Return Value

VMware_VCloud_API_TaskType |