-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
API add to job
Hello everyone,
I have look the API of veeam but i have not found a API for my request.
It's possible in last version to add Linux machine (Agent) in a backup Job ?
Regards.
I have look the API of veeam but i have not found a API for my request.
It's possible in last version to add Linux machine (Agent) in a backup Job ?
Regards.
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: API add to job
Hi,
Not, it's not possible at the moment neither via VBR REST, nor via EM REST API.
Best regards,
Oleg
Not, it's not possible at the moment neither via VBR REST, nor via EM REST API.
Best regards,
Oleg
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
Re: API add to job
thanks Oleg
What a pity !
With other, is possible to automate the installation and the configuration of Veeam Linux Agent in the machine ?
Powershell console , veemconfig, protection group with preinstalled Agent ?
My goal is to automate the installation and the configuration and manage the agent by the veeam server .
What is the best solution?
What a pity !
With other, is possible to automate the installation and the configuration of Veeam Linux Agent in the machine ?
Powershell console , veemconfig, protection group with preinstalled Agent ?
My goal is to automate the installation and the configuration and manage the agent by the veeam server .
What is the best solution?
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: API add to job
Hi,
Yes, Powershell would be the best way to automate it. Have a look at Veeam Agent Management section of VBR Powershell reference. You are after cmdlets to manage protection groups and individual computers.
Let me know if you have any further questions on particular cmdlets or features.
Thanks,
Oleg
Yes, Powershell would be the best way to automate it. Have a look at Veeam Agent Management section of VBR Powershell reference. You are after cmdlets to manage protection groups and individual computers.
Let me know if you have any further questions on particular cmdlets or features.
Thanks,
Oleg
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
Re: API add to job
Thanks
i have found a way
but It's possible to remove with powershell the last individual computers of a protection groups.
I have test add and remove but the last i can not remove-it
for remove it, i used:
Set-VBRProtectionGroup -ProtectionGroup $group -Container
the command require a "Container" it can not be empty
existing a solution ?
i have found a way
but It's possible to remove with powershell the last individual computers of a protection groups.
I have test add and remove but the last i can not remove-it
for remove it, i used:
Set-VBRProtectionGroup -ProtectionGroup $group -Container
the command require a "Container" it can not be empty
existing a solution ?
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
Re: API add to job
In graphic interface you can remove a agent of the configuration
https://helpcenter.veeam.com/docs/backu ... ml?ver=110
but i have not found the PowerShell command for that
https://helpcenter.veeam.com/docs/backu ... ml?ver=110
but i have not found the PowerShell command for that
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: API add to job
In Powershell it works a bit differently. You need to get a protection group, its container and custom creds, filter out computers you want to remove, create a new array of custom creds without these computers, create a new container and pass it to the existing protection group. For example:
And don't forget to rescan a protection group as the last step.
Best regards,
Oleg
Code: Select all
$pg = Get-VBRProtectionGroup -Name 'ProtectionGroupName'
$container = $pg.Container
$customCreds = $container.CustomCredentials
$newCustomCreds = @()
foreach ($creds in $customCreds) {
if ($creds.HostName -ne 'hostName') {
$newCustomCreds += $creds
}
}
$newContainer = New-VBRIndividualComputerContainer -CustomCredentials $newCustomCreds
Set-VBRProtectionGroup -ProtectionGroup $pg -Container $newContainer
Rescan-VBREntity -Entity $pg
Best regards,
Oleg
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
Re: API add to job
It's OK thanks a lot of Oleg for your help
Who is online
Users browsing this forum: No registered users and 1 guest