org.jclouds.cloudstack.options
Class ListHostsOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.cloudstack.options.AccountInDomainOptions
org.jclouds.cloudstack.options.ListHostsOptions
- All Implemented Interfaces:
- HttpRequestOptions
public class ListHostsOptions
- extends AccountInDomainOptions
Options used to control what hosts information is returned
- Author:
- Andrei Savu
- See Also:
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions |
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString |
NONE
public static final ListHostsOptions NONE
ListHostsOptions
public ListHostsOptions()
id
public ListHostsOptions id(long id)
- Parameters:
id
- the id of the host
allocationState
public ListHostsOptions allocationState(AllocationState allocationState)
- Parameters:
allocationState
- list hosts by allocation state
clusterId
public ListHostsOptions clusterId(long clusterId)
- Parameters:
clusterId
- lists hosts existing in particular cluster
keyword
public ListHostsOptions keyword(String keyword)
- Parameters:
keyword
- List by keyword
name
public ListHostsOptions name(String name)
- Parameters:
name
- List by name
page
public ListHostsOptions page(long page)
- Parameters:
page
-
pageSize
public ListHostsOptions pageSize(long pageSize)
- Parameters:
pageSize
- the page size
podId
public ListHostsOptions podId(long podId)
- Parameters:
podId
- the Pod ID for the host
state
public ListHostsOptions state(String state)
- Parameters:
state
- the state of the host
type
public ListHostsOptions type(Host.Type type)
- Parameters:
type
- the type of the host
virtualMachineId
public ListHostsOptions virtualMachineId(long virtualMachineId)
- Parameters:
virtualMachineId
- lists hosts in the same cluster as this VM and flag hosts with
enough CPU/RAm to host this VM
zoneId
public ListHostsOptions zoneId(long zoneId)
- Parameters:
zoneId
- the Zone ID for the host
accountInDomain
public ListHostsOptions accountInDomain(String account,
long domain)
-
- Overrides:
accountInDomain
in class AccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
domainId
public ListHostsOptions domainId(long domainId)
-
- Overrides:
domainId
in class AccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
Copyright © 2009-2012 jclouds. All Rights Reserved.