Package org.jclouds.cloudstack.features
Interface GlobalDomainApi
- All Superinterfaces:
DomainDomainApi
Provides synchronous access to CloudStack Domain features available to Global
Admin users.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateDomain
(String name, CreateDomainOptions... options) Create new Domainvoid
Delete domain and cleanup all attached resourcesvoid
Delete domain (without deleting attached resources)updateDomain
(String domainId, UpdateDomainOptions... options) Update a domainMethods inherited from interface org.jclouds.cloudstack.features.DomainDomainApi
getDomainById, listDomainChildren, listDomains
-
Method Details
-
createDomain
@Named("createDomain") @GET @Consumes("application/json") Domain createDomain(@QueryParam("name") String name, CreateDomainOptions... options) Create new Domain- Parameters:
name
- domain nameoptions
- optional arguments- Returns:
- domain instance
-
updateDomain
@Named("updateDomain") @GET @Consumes("application/json") Domain updateDomain(@QueryParam("id") String domainId, UpdateDomainOptions... options) Update a domain- Parameters:
domainId
- the ID of the domainoptions
- optional arguments- Returns:
- domain instance
-
deleteOnlyDomain
Delete domain (without deleting attached resources)- Parameters:
id
- the domain ID
-
deleteDomainAndAttachedResources
Delete domain and cleanup all attached resources- Parameters:
id
- the domain ID
-