Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ DataStore SDK Programmer's Guide for XBSA 1.1.0
  3. Using the NetBackup XBSA interface
  4. XBSA sessions and transactions
  5. Transactions
  6. Media IDs transaction
Veritas NetBackup™ DataStore SDK Programmer's Guide for XBSA 1.1.0

Media IDs transaction

An XBSA application can obtain the media IDs of a NetBackup image that contains one or more objects using the NBBSAGetMediaIds() call. NBBSAGetMediaIds() takes a copyId of any one of the objects in the image as a parameter. NBBSAGetMediaIds() returns a null character delimited text string that contains the media IDs associated with a NetBackup image in the buffer supplied as a parameter. The list of media IDs is terminated with an empty string. This is called a double null terminated string.

Examples are as follows:

  • Image with two media IDs: MediaId1\0MediaId2\0\0

  • Image with one media ID: MediaId3\0\0

Within a media ID transaction, you can embed BSAQueryObject() and BSAGetNextQueryObject() calls. This lets the XBSA application intermix the media ID operations with BSAQueryObject() and BSAGetNextQueryObject() calls to obtain the media IDs for multiple images within one transaction. Backup and restore operations are not allowed within a media ID transaction.

Feedback

Was this page helpful?
Previous

Query transaction

Next

Creating a NetBackup XBSA application

Feedback

Was this page helpful?