Package org.ovirt.engine.sdk4.services
Interface DataCentersService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
DataCentersServiceImpl
public interface DataCentersService extends Service
A service to manage data centers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DataCentersService.AddRequest
Creates a new data center.static interface
DataCentersService.AddResponse
Creates a new data center.static interface
DataCentersService.ListRequest
Lists the data centers.static interface
DataCentersService.ListResponse
Lists the data centers.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataCentersService.AddRequest
add()
Creates a new data center.DataCenterService
dataCenterService(String id)
Reference to the service that manages a specific data center.DataCentersService.ListRequest
list()
Lists the data centers.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
-
-
-
Method Detail
-
add
DataCentersService.AddRequest add()
Creates a new data center. Creation of a new data center requires the `name` and `local` elements. For example, to create a data center named `mydc` that uses shared storage (NFS, iSCSI or fibre channel) send a request like this: [source] ---- POST /ovirt-engine/api/datacenters ---- With a request body like this: [source,xml] ----mydc false
-
list
DataCentersService.ListRequest list()
Lists the data centers. The following request retrieves a representation of the data centers: [source] ---- GET /ovirt-engine/api/datacenters ---- The above request performed with `curl`: [source,bash] ---- curl \ --request GET \ --cacert /etc/pki/ovirt-engine/ca.pem \ --header "Version: 4" \ --header "Accept: application/xml" \ --user "admin@internal:mypassword" \ https://myengine.example.com/ovirt-engine/api/datacenters ---- This is what an example response could look like: [source,xml] ----Default The default Data Center false disabled up 4 0 4 0
-
dataCenterService
DataCenterService dataCenterService(String id)
Reference to the service that manages a specific data center.
-
-