Interface DataCentersService

    • 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 ---- Note the `id` code of your `Default` data center. This code identifies this data center in relation to other resources of your virtual environment. The data center also contains a link to the storage domains collection. The data center uses this collection to attach storage domains from the storage domains main collection. The order of the returned list of data centers is guaranteed only if the `sortby` clause is included in the `search` parameter.
      • dataCenterService

        DataCenterService dataCenterService​(String id)
        Reference to the service that manages a specific data center.
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.