02-22-2023 12:55 AM
Hello everyone,
I want to take backup selections of a server via netbackup api. Anyone know how I can do it?
Thanks.
Solved! Go to Solution.
02-22-2023 03:29 AM
@ef_akyazan I dont think there is a separate API just to fetch the backup selections. You can still do GET method to display a policy and filter the backup selection
you can use GET /config/policies/{policyName} API
02-22-2023 01:10 AM
Hi @ef_akyazan
I don't mean to be rude - but have you looked at the API documentation (available on the master https://<master>/api-docs)?
The API call would be /config/policies/{policy name}/backupselections. You need to assemble the data payload for what you want to back up. If there is a selection you don't require (such as NAS, or cloudObjects) simply remove the section or leave it blank.
Cheers
David
02-22-2023 02:33 AM
Hello @davidmoline ,
I have already reviewed the api document you mentioned.
The put method is used in /config/policies/{policy name}/backupselections and it is used to change a policy ("Replaces the existing backup selections with the specified list of backup selections."). I just want to display with get method.
Thanks.
02-22-2023 03:29 AM
@ef_akyazan I dont think there is a separate API just to fetch the backup selections. You can still do GET method to display a policy and filter the backup selection
you can use GET /config/policies/{policyName} API
02-22-2023 04:58 AM