Skip to main content

Hello guys.

I'm trying to find an API to create a secondary copy of an existing Storage Policy.

I need to create this copy as a Global Secondary Copy Policy to use a Storage Poll that already exists.

When I call the '/V2/StoragePolicy/35/Copy' API with the parameters

       $data = '{
         "copyName": "2-CP-TAPE",
         "useGlobalPolicy": {
           "storagePolicyName":"SPOOL-TAPE-1WEEK"
         },
         "storagePolicyCopyInfo": {
           "active": 1,
           "isDefault": 0,
           "extendedFlags": {
             "useGlobalAuxCopyPolicy":1,
             "chunkLevelAuxCopy":1
           },
           "library": {
             "libraryName":"TAPE-VIRTUAL1",
             "libraryId":3
           },
           "mediaAgent": {
             "mediaAgentId":2,
             "mediaAgentName":"wzsp2-csnfr"
           },
           "storagePool": {
             "storagePoolName":"SPOOL-TAPE-1WEEK",
             "storagePoolId":18
           }
         }
       }';

I get the following message
{ "processinginstructioninfo":{ "attributes":d { "name":"WebServer","value":"WZSP2-CSNFR" } ] },"error":{ "errorMessage":"'Pick data from running jobs' feature is not supported for selective copy or Inline copy.","errorCode":1 } }

 

Could you help me?

I solved the problem running this API

 

$data = '{

        "copyName": "2-CP-TAPE",

        "storagePolicyCopyInfo": {

          "active": 1,

          "isDefault": 0,

          "copyType": "SYNCHRONOUS",

          "extendedFlags": {

            "useGlobalAuxCopyPolicy": 1,

            "overRideGACPRetention": 0

          },

          "retentionRules": {

            "retainArchiverDataForDays": -1

          },

          "globalAuxCopy": {

            "storagePolicyId": 18,

            "storagePolicyName": "SPOOL-TAPE-1WEEK"

          },

          "dedupeFlags": {

            "enableDeduplication": 0

          }

        }

      }';

 

Thaks


Great news.  Thank you for the update!


Reply