Solved

API to create Global Secondary Copy Policy

  • 29 December 2022
  • 2 replies
  • 66 views

Badge +1

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":[ { "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?

icon

Best answer by Winov 29 December 2022, 16:55

View original

2 replies

Userlevel 6
Badge +15

Great news.  Thank you for the update!

Badge +1

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

Reply