Skip to main content
Solved

API to create Global Secondary Copy Policy

  • December 29, 2022
  • 2 replies
  • 74 views

Winov
Byte
Forum|alt.badge.img+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?

Best answer by Winov

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

View original
Did this answer your question?

2 replies

Winov
Byte
Forum|alt.badge.img+1
  • Author
  • Byte
  • 1 reply
  • Answer
  • December 29, 2022

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


Forum|alt.badge.img+15
  • Vaulter
  • 630 replies
  • December 29, 2022

Great news.  Thank you for the update!


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