Skip to main content
Solved

Not enough details in Storage Policy Copy Details API :(


Forum|alt.badge.img+2

Hi folks,

I need to amend storage policy copy details (using API), particularly this block:

I need to change the value of streams number..

The GET request I use to obtain storage policy copy details:
<webservice>/V2/StoragePolicy/{storagePolicyId}/Copy/{copyId}

However, looks like this parameter is missing in the response 😒

Best answer by Alex T

Oki folks, as usual, this info is not available in official API manual, however this parameter is perfectly described in XML manual:

Updating Media Configurations of a Copy

element: numberOfStreamsToCombine

with JSON structure:

{
    "storagePolicyCopyInfo": {
        "numberOfStreamsToCombine": 20,
        "copyFlags": {
            "multiplexSourceStreams": 0,
            "combineStreams": 1
        }
    }

Guys, I am new here, on forum, is there any way to tag someone from CV so they can fix their API manual, or it is not going to work like this? 😊

View original
Did this answer your question?

4 replies

Forum|alt.badge.img+3

Hi ​@Alex T,


Could you please try to fetch the "combineStreams" for SP copy using the API to Get Storage Policy Copy Details- API

url = "https://CommandCenterHostName/commandcenter/api/V2/StoragePolicy/:storagePolicyId/Copy/:copyId"

Response like:
==
"copyFlags": {
    "roundRobbinDataPath": 1,
    "combineStreams": 1,
    "storePlainText": 1,
    "multiplexSourceStreams": 0,
    "autoAddDataPaths": 1


And then try updating the combineStreams for SP Copy referring to the Update Storage Policy Copy Details -API

Regards,
Dheeraj Shetty


Forum|alt.badge.img+2
  • Author
  • Bit
  • 3 replies
  • April 17, 2025

Hi ​@Dheeraj Shetty 

that is how my copyFlags looks like:

        "copyFlags": {
            "roundRobbinDataPath": 1,
            "combineStreams": 1,
            "preserveEncryptionModeAsInSource": 1,
            "storeKeyOnMedia": 1,
            "multiplexSourceStreams": 1,
            "autoAddDataPaths": 1,
            "lastFull": 1
        }

So is you can see number 8 (see my screenshot) is missing..

And doing some experiments i found that combineStreams is responsible for that flag:

 

However, looks like there is parameter “combineStreams” but only in PUT method 🙄 (Update Storage Policy Copy Details):

 

so basically you can modify it, but can not get it... I will test “combineStreams” today 


Forum|alt.badge.img+2
  • Author
  • Bit
  • 3 replies
  • April 17, 2025

Oh , i posted the same parameter, my bad…

And yes i just tested it, it recognizes only 1 or 0 in this parameter, so combineStreams is definitely not the “Combine source data streams to”


Forum|alt.badge.img+2
  • Author
  • Bit
  • 3 replies
  • Answer
  • April 17, 2025

Oki folks, as usual, this info is not available in official API manual, however this parameter is perfectly described in XML manual:

Updating Media Configurations of a Copy

element: numberOfStreamsToCombine

with JSON structure:

{
    "storagePolicyCopyInfo": {
        "numberOfStreamsToCombine": 20,
        "copyFlags": {
            "multiplexSourceStreams": 0,
            "combineStreams": 1
        }
    }

Guys, I am new here, on forum, is there any way to tag someone from CV so they can fix their API manual, or it is not going to work like this? 😊


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings