I'm evaluating the REST API of "Veeam Backup & Replication for VMware and Hyper-V" (version 7.0.0.690).
I have add one backup server in "Backup Enterpise Manager".
I have perform a restart after adding the backup server.
The "Backup Enterpise Manager" web UI (https://my-host:9443) displays the specified jobs and I can start/stop these.
Now I'm try to get this job list with the API, but I have no success.
I use the same user/pw for REST and web-UI.
GET 'http://my-host:9399/api/backupServers' looks correct:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<EntityReferences xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Ref Href="http://the-host:9399/api/backupServers/f7488e56-45c3-4007-b1b4-3740bfad97c8" Name="the-host" Type="BackupServerReference" UID="urn:veeam:BackupServer:f7488e56-45c3-4007-b1b4-3740bfad97c8">
<Links>
<Link Href="http://the-host:9399/api/backupServers/f7488e56-45c3-4007-b1b4-3740bfad97c8/jobs" Rel="Down" Type="JobReferenceList"/>
<Link Href="http://the-host:9399/api/backupServers/f7488e56-45c3-4007-b1b4-3740bfad97c8/repositories" Rel="Down" Type="RepositoryReferenceList"/>
<Link Href="http://the-host:9399/api/backupServers/f7488e56-45c3-4007-b1b4-3740bfad97c8/credentials" Rel="Down" Type="CredentialsList"/>
<Link Href="http://the-host:9399/api/backupServers/f7488e56-45c3-4007-b1b4-3740bfad97c8?format=Entity" Name="the-backup-host" Rel="Alternate" Type="BackupServer"/>
</Links>
</Ref>
</EntityReferences>
GET 'http://the-host:9399/api/backupServers/ ... d97c8/jobs' returns no jobs:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<EntityReferences xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
GET 'http://the-host:9399/api/backupServers/ ... mat=Entity' returns no jobs:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Jobs xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
GET 'http://the-host:9399/api/jobs?format=Entity' returns no jobs:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Jobs xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
GET 'http://the-host:9399/api/query?type=job ... rtAsc=name' returns:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<QueryResult xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entities>
<Jobs/>
</Entities>
<PagingInfo PageNum="1" PageSize="100" PagesCount="1">
<Links>
<Link Href="http://the-host:9399/api/query?type=job&format=entities&sortAsc=name&pageSize=100&page=1" Rel="First"/>
<Link Href="http://the-host:9399/api/query?type=job&format=entities&sortAsc=name&pageSize=100&page=1" Rel="Last"/>
</Links>
</PagingInfo>
</QueryResult>
GET 'http://the-host:9399/api/query?type=job ... 100&page=1' return no jobs:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<QueryResult xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entities>
<Jobs/>
</Entities>
</QueryResult>
Thanks