REST API call for a subclient with retention days

Last post 01-25-2019, 5:42 AM by Admin AT. 2 replies.
Sort Posts: Previous Next
  • REST API call for a subclient with retention days
    Posted: 01-14-2019, 9:59 AM

    Hi everyone,

     

    We are doing some testing through Python using the API to launch a backup (subclient). It is working but now we are trying to specify retention days (different from the storage policy) and we are not able to find the option to do that.

     

    We are using this kind of options:

    subclient = backupset.subclients.get('Tes01)

    job = subclient.backup('Full')

     

    Please, can you help us?

     

    Thanks in advance!

     

  • Re: REST API call for a subclient with retention days
    Posted: 01-23-2019, 6:54 AM

    Hi Admin AT,

     

    From checking documentation.commvault.com aswell as the complete list of Python SDK modules (https://commvaultengg.github.io/cvpysdk/developer_sdk.html) it seems that this is not supported at this time through the Python module.

    It is however doable using XML and the tags "numberofdays" and "retentionjobtype" (documentation.commvault.com/commvault/v11/article?p=45783.htm

     

    Regards,

    Andrew

  • Re: REST API call for a subclient with retention days
    Posted: 01-25-2019, 5:42 AM

    Hi Andrew,

     

    Thank you for your answer. That makes perfect sense why we could not find the option... We'll check the xml option.

     

    Regards,

     

    AdminAT.

The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2019 Commvault | All Rights Reserved. | Legal | Privacy Policy