{"info":{"_postman_id":"1da0ff9d-2469-4949-8d2f-9185db751346","name":"Cohesity-Cluster-OnPrem","description":"<html><head></head><body><h2 id=\"description\">Description</h2>\n<p>Cluster/On Prem based API collection. We have defined this collection per usecase in the following format:</p>\n<p><code>{Service}-{Adapter}-{API.version}</code></p>\n<blockquote>\n<p>NOTE: API.v2 are supported from cluster 6.5.1x onwards.</p>\n</blockquote>\n<h2 id=\"environment-variables\">Environment Variables</h2>\n<ul>\n<li>Choose the <code>ClusterOnPrem</code> Postman Environment for this collection. You need to set the following variables.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cluster</td>\n<td>Cluster ENDPOINT IP or FQDN</td>\n</tr>\n<tr>\n<td>clusterPassword</td>\n<td>Cluster Username</td>\n</tr>\n<tr>\n<td>clusterUser</td>\n<td>Cluster Password</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>There are other environment variables that will be set when you make API calls, like <code>token</code> when you run the <code>Generate Access Token</code> API call. This <code>token</code> is then referred by other APIs for Authentication.</li>\n<li>In order to use these APIs, you need to call these in sequence so that the variables set by a previous API call can be used later.</li>\n<li>If you want to run a particular API, you will have to set the required variables before hand under <code>ClusterOnPrem</code> Postman Environment</li>\n</ul>\n<blockquote>\n<p>NOTE: To find out what environment variable is being set in Postman, check the <code>Test</code> tab and look for <code>environment.set(\"VARIABLE_NAME\", VALUE)</code> in the code.</p>\n</blockquote>\n<h2 id=\"feedback\">Feedback</h2>\n<p>If you want to see more collections/use-cases reach out to: <a href=\"mailto:cohesity-api-sdks@cohesity.com\">cohesity-api-sdks@cohesity.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14330502","collectionId":"1da0ff9d-2469-4949-8d2f-9185db751346","publishedId":"2s93JoxkjG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-07T05:00:49.000Z"},"item":[{"name":"Getting Started  - Requested","item":[{"name":"Authentication/Authorization","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"27def145-8038-46c3-8da4-852905506458"}}],"id":"672dbe60-c934-4002-96d0-acebf23a7af4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{{clusterCredentials}}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"672dbe60-c934-4002-96d0-acebf23a7af4"},{"name":"Pause Protection Runs","id":"fbd0b7a5-911a-427b-9114-c44d70dd3e9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"kPause\",\n    \"ids\": [\n        \"{{ProtectionGroupId1}}\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-VIP}}/v2/data-protect/protection-groups/states","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","states"],"host":["{{cluster-VIP}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbd0b7a5-911a-427b-9114-c44d70dd3e9a"}],"id":"59bb85d2-bf59-4f95-9cb5-539e33779bf2","_postman_id":"59bb85d2-bf59-4f95-9cb5-539e33779bf2","description":""},{"name":"DataProtect-AIX","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"0a9bd658-c085-437f-beab-3c9cb5a6e0df"}}],"id":"6cd25b5e-c1f7-439e-976f-f032662c9b17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cd25b5e-c1f7-439e-976f-f032662c9b17"},{"name":"Get Protection Sources","event":[{"listen":"test","script":{"id":"5473a82f-74c3-4d99-a89b-9f5574053d7e","exec":["pm.test(\"Register VCenter Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch the Server id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get(\"aix\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kPhysical\") {","            if (jsonData.registrations[i].physicalParams.endpoint === source) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript"}}],"id":"b4089fc2-c393-4903-a44f-12b46a86dbde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations?environments=kPhysical","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[{"key":"environments","value":"kPhysical"}],"variable":[]}},"response":[],"_postman_id":"b4089fc2-c393-4903-a44f-12b46a86dbde"},{"name":"Register AIX Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Esxi Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.expect(jsonData.id).to.be.a('number');","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","id":"776db66e-8a5d-4520-bdf0-9102217db36b"}}],"id":"48c302b7-29df-4712-9311-56489ca44848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kPhysical\",\n    \"isInternalEncrypted\": false,\n    \"connectionId\": 0,\n    \"physicalParams\": {\n        \"endpoint\": \"{{aix}}\",\n        \"hostType\": \"kAix\",\n        \"physicalType\": \"kHost\"\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"48c302b7-29df-4712-9311-56489ca44848"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains using v1-TODO\");","    }","});"],"type":"text/javascript","id":"071fb0b9-e55e-479f-8b22-21a067375ecb"}}],"id":"e29e999a-2628-4b71-a010-84fa2a25d424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e29e999a-2628-4b71-a010-84fa2a25d424"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"27e5c586-3dc0-4ebd-9c1f-49e67a5572e9"}}],"id":"6ca1d787-6cd1-4a83-856b-e71c30d43721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ca1d787-6cd1-4a83-856b-e71c30d43721"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","for (var i=0; i< jsonData.length; i++){","    postman.setEnvirontests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}mentVariable(\"viewBoxId\", jsonData[i].id);","    pm.expect(jsonData[i].id).to.be.a(\"number\");","    pm.expect(jsonData[i].name).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy).to.be.an(\"object\");","    pm.expect(jsonData[i].storagePolicy.deduplicationEnabled).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.inlineDeduplicate).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.compressionPolicy).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy.inlineCompress).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.deduplicateCompressDelaySecs).to.be.a(\"number\");","    pm.expect(jsonData[i].storagePolicy.encryptionPolicy).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy.numFailuresTolerated).to.be.a(\"number\");","    pm.expect(jsonData[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","    pm.expect(jsonData[i].clusterPartitionId).to.be.a(\"number\");","    pm.expect(jsonData[i].clusterPartitionName).to.be.a(\"string\");","    pm.expect(jsonData[i].s3BucketsAllowed).to.be.a(\"boolean\");","    pm.expect(jsonData[i].removalState).to.be.a(\"string\");","}"],"type":"text/javascript","id":"d0f7ee5c-7681-44b9-a355-097787f0ff3e"}}],"id":"f25a0dd2-57a6-4953-aae1-cb961d08ef05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f25a0dd2-57a6-4953-aae1-cb961d08ef05"},{"name":"Get Source Id","event":[{"listen":"test","script":{"exec":["tests[\"Getting virtual machines, Status code is 200\"] = responseCode.code === 200;","var jsonData = JSON.parse(responseBody);","vm_name = pm.environment.get(\"vmName\");","for (var i = 0; i < jsonData.objects.length; i++) {","    if (jsonData.objects[i].objectType === \"kVirtualMachine\" && jsonData.objects[i].name === vm_name) {","        pm.environment.set(\"objectId\", jsonData.objects[i].id)","    }","}"],"type":"text/javascript","id":"71e16f82-7773-460c-88d7-1b2874029f3a"}}],"id":"820d3f62-26d1-4dba-ad59-c0707c0727f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/objects?parentId={{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","objects"],"host":["{{cluster}}"],"query":[{"key":"parentId","value":"{{sourceId}}"}],"variable":[]}},"response":[],"_postman_id":"820d3f62-26d1-4dba-ad59-c0707c0727f9"},{"name":"Create Protection Job","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","});"],"type":"text/javascript","id":"17226f4d-7b77-4426-a0b5-061b7980875b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d8fcd5c7-13f8-4f51-96bf-afb7c3ad9233"}}],"id":"93d592aa-97a0-4dd7-98a9-912642b11be5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{protectionJobName}}_890\",\n    \"policyId\": \"{{policyId}}\",\n    \"storageDomainId\": {{viewBoxId}},\n    \"environment\": \"kPhysical\",\n    \"isPaused\": true,\n    \"priority\": \"kMedium\",\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 14,\n        \"minute\": 51,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{sourceId}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"{{filePath}}\",\n                            \"excludedPaths\": [\"/home/cohesity/software/toolchain\"]\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"93d592aa-97a0-4dd7-98a9-912642b11be5"},{"name":"Run Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"2d1a2995-3291-4225-b635-5a39bc2986c9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"729d0195-9e39-4cae-b9d6-5731110a7fd5"}}],"id":"6ea7a93d-b34a-4f96-a34f-ec65f1fa1c27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ea7a93d-b34a-4f96-a34f-ec65f1fa1c27"},{"name":"Get Job Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.isSlaViolated).to.be.a('boolean')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].isReplicationRun).to.be.a('boolean')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].hasLocalSnapshot).to.be.a('boolean')","            pm.expect(jsonData[i].onLegalHold).to.be.a('boolean')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"4f76e123-28d2-40ff-b44b-fc70b42bed6d"}}],"id":"f7b0dc07-309d-47b4-8659-033a9e3617c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7b0dc07-309d-47b4-8659-033a9e3617c7"},{"name":"Get Indexed objects","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    console.log(jsonData.files === null || jsonData.files === undefined)","    if (jsonData.files === null || jsonData.files === undefined){","        sleep(10000);","        postman.setNextRequest(\"Get indexed objects\");","    }","    else {","        if (jsonData.files[0].type === \"File\"){","            pm.environment.set(\"filePath\", (jsonData.files[0].path + \"/\" + jsonData.files[0].name))","        }","        for (var i=0; i< jsonData.files.length; i++){","            pm.expect(jsonData.files).to.be.a('array')","            pm.expect(jsonData.files[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData.files[i].type).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo).to.be.an('object')","            pm.expect(jsonData.files[i].sourceInfo.osType).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.sourceId).to.be.a('number')","            pm.expect(jsonData.files[i].sourceInfo.objectType).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.name).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.environment).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.id).to.be.a('number')","            pm.expect(jsonData.files[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData.files[i].name).to.be.a('string')","            pm.expect(jsonData.files[i].storageDomainId).to.be.a('number')","            pm.expect(jsonData.files[i].path).to.be.a('string')","            pm.expect(jsonData.objectType).to.be.a('string')","            console.log(jsonData.files[i].path + \"/\" + jsonData.files[i].name)","        }","    }","});"],"type":"text/javascript","id":"1c42b0c2-35e3-4c72-8680-cbee9b050ea3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"469035a2-b7ac-441e-968a-840fde778296"}}],"id":"1043c0ca-0610-49d2-a8ac-524fbd8e6f6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\" : [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\": \"Files\",\n\t\"fileParams\": {\n\t\t\"searchString\" : \"{{filePath}}\"\n\t}\n}"},"url":"https://{{cluster}}/v2/data-protect/search/indexed-objects","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1043c0ca-0610-49d2-a8ac-524fbd8e6f6a"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData.objects !== null) {","        pm.environment.set(\"objectSnapshotid\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId)","    }","    else {","        postman.setNextRequest(\"Remove Job and objects\");","    }","});"],"type":"text/javascript","id":"912143ed-9367-4eb0-9fa4-d085841bc7b1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"36ce0b97-8453-47c3-aeae-b5a83ab1128e"}}],"id":"1f9921ec-0c2a-4173-a36c-18f03b194256","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverFiles&searchString=*&environments=kPhysical,kPhysicalFiles&protectionGroupIds={{protectionJobId}}","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverFiles"},{"key":"searchString","value":"*"},{"key":"environments","value":"kPhysical,kPhysicalFiles"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"1f9921ec-0c2a-4173-a36c-18f03b194256"},{"name":"Create Recovery","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"2f4a7a82-c0d5-4583-a841-785b66ffa06e"}}],"id":"28a0531f-9528-4b06-8cab-17d87c84cce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"snapshotEnvironment\": \"kPhysical\",\n  \"name\": \"Recovery_{{protectionJobName}}\",\n  \"physicalParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{objectSnapshotid}}\"\n      }\n    ],\n    \"recoveryAction\": \"RecoverFiles\",\n    \"recoverFileAndFolderParams\": {\n      \"filesAndFolders\": [\n        {\n          \"absolutePath\": \"{{restoreFilePath}}\",\n          \"isDirectory\": true\n        }\n      ],\n      \"targetEnvironment\": \"kPhysical\",\n      \"physicalTargetParams\": {\n        \"recoverTarget\": {\n          \"id\": 676\n        },\n        \"restoreToOriginalPaths\": true,\n        \"overwriteExisting\": false,\n        \"preserveAttributes\": true,\n        \"continueOnError\": true,\n        \"saveSuccessFiles\": false\n      }\n    }\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28a0531f-9528-4b06-8cab-17d87c84cce4"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.vmwareParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoveryAction).to.be.a('string')","    for (var i=0; i<jsonData.vmwareParams.objects.length; i++) {","        pm.expect(jsonData.vmwareParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.osType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects).to.be.an('array')","    }","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.recoverToOriginalTarget).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.preserveAttributes).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig.recoverMethod).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","","    if (jsonData.status === \"Running\"){","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"0a5c7fd7-2fb1-4297-95bb-8c7c276c524c"}}],"id":"44cbc023-8687-45ca-beda-bf732d81dc82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"44cbc023-8687-45ca-beda-bf732d81dc82"},{"name":"Remove Job and Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"7bb821a4-1931-48a6-b588-e30a8a0345b0"}}],"id":"3338313b-e8b9-42ea-92e0-b1ca8a239053","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"3338313b-e8b9-42ea-92e0-b1ca8a239053"},{"name":"Unregister AIX Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"e11df1f1-ca4d-4172-be9d-c5434725ee41"}}],"id":"23ac20c0-4ca0-441d-a45f-505ebdfd137b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"23ac20c0-4ca0-441d-a45f-505ebdfd137b"}],"id":"aa4ba726-29ac-48e6-9d41-b2ff8c69bfb0","description":"<p>Operations on AIX server with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get all the protection sources</li>\n<li>Register the AIX server as protection source</li>\n<li>Get all protection policies</li>\n<li>Create a custom protection policy</li>\n<li>Get all the storage domains available</li>\n<li>Find the source id to protect</li>\n<li>Now you have all necessary information to create an AIX protection job.</li>\n<li>Run the protection job</li>\n<li>Get the protection job run detail</li>\n<li>Get all the indexed objects (backed up files)</li>\n<li>Get all the snapshots for the source</li>\n<li>You have all the necessary information to start a recovery task.</li>\n<li>Get the recovery task status.</li>\n<li>Remove the protection job and all the associated snapshots.</li>\n<li>Remove the AIX server from the cluster.</li>\n</ol>\n","_postman_id":"aa4ba726-29ac-48e6-9d41-b2ff8c69bfb0"},{"name":"DataProtect-Cassandra","item":[{"name":"Generate Aceess Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"dad03102-4666-4aee-98da-76111bbb175c"}}],"id":"021810ca-9a61-4e0e-89ae-b740b2fd4ff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"aa2fb324-0258-4eb5-aa59-96c697efa6b5","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\": \"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/access-tokens"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"021810ca-9a61-4e0e-89ae-b740b2fd4ff5"},{"name":"Register Cassandra Source","id":"88d24694-5e0b-4077-8177-5e7b5724e650","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"environment\": \"kCassandra\",\r\n      \"connections\": null,\r\n      \"cassandraParams\": {\r\n        \"seedNode\": \"{{cassandra_source_2}}\",\r\n        \"configDirectory\": \"{{cassandra_config}}\",\r\n        \"isDseTieredStorage\": false,\r\n        \"isDseAuthenticator\": false,\r\n        \"sshPasswordCredentials\": {{cassandra_ssh_credentials}},\r\n        \"dataCenterNames\": [\r\n          \"datacenter1\"\r\n        ],\r\n        \"cassandraCredentials\": {{cassandra_credentials}},\r\n        \"jmxCredentials\": {{cassandra_credentials}}\r\n      }\r\n    }\r\n  ","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations","description":"<p>Registers the Cassandra source with the Cohesity cluster.</p>\n<p>Ensure you provide the following details in the request body:</p>\n<ul>\n<li>A seed node (<code>seedNode</code>) of the Cassandra cluster.</li>\n<li>Directory path (<code>confiDirectory</code>) for the Cassandra configuration YAML file.</li>\n<li>Cassandra source credentials (<code>cassandraCredentials</code>).</li>\n<li>Cassandra SSH credentials (<code>sshPasswordCredentials</code>)</li>\n<li>JMX credentials (<code>jmxCredentials</code>)</li>\n</ul>\n<p>The source ID from the response is required for creating the Protection Group.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"a78a20bd-2d82-476f-83a0-db2b11ec9611","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n      \"environment\": \"kCassandra\",\n      \"connections\": null,\n      \"cassandraParams\": {\n        \"seedNode\": \"{{cassandra_source_2}}\",\n        \"configDirectory\": \"{{cassandra_config}}\",\n        \"isDseTieredStorage\": false,\n        \"isDseAuthenticator\": false,\n        \"sshPasswordCredentials\": {{cassandra_ssh_credentials}},\n        \"dataCenterNames\": [\n          \"datacenter1\"\n        ],\n        \"cassandraCredentials\": {{cassandra_credentials}},\n        \"jmxCredentials\": {{cassandra_credentials}}\n      }\n    }\n  "},"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679553994"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 23 Mar 2023 06:46:38 GMT"},{"key":"Content-Length","value":"340"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11746,\n    \"sourceId\": 11746,\n    \"sourceInfo\": {\n        \"id\": 11746,\n        \"name\": \"{{Cassandra_name}}\",\n        \"sourceId\": 11746,\n        \"environment\": \"kCassandra\",\n        \"objectType\": \"kCluster\",\n        \"uuid\": \"{{uuid}}\",\n        \"protectionStats\": null\n    },\n    \"environment\": \"kCassandra\",\n    \"name\": \"\",\n    \"connections\": [],\n    \"authenticationStatus\": \"Scheduled\",\n    \"registrationTimeMsecs\": 1679553996967,\n    \"lastRefreshedTimeMsecs\": 1679553996967,\n    \"cassandraParams\": {\n        \"seedNode\": \"{{seed_node}}\",\n        \"configDirectory\": \"/cassetup1/apache-cassandra-3.11.12/conf\",\n        \"isDseTieredStorage\": false,\n        \"isDseAuthenticator\": false,\n        \"dataCenterNames\": [\n            \"dc1\",\n            \"dc2\"\n        ],\n        \"dseSolrInfo\": {\n            \"solrNodes\": null,\n            \"solrPort\": null\n        }\n    }\n}"}],"_postman_id":"88d24694-5e0b-4077-8177-5e7b5724e650"},{"name":"Register External Target","event":[{"listen":"test","script":{"id":"10a2ae24-9313-467b-a4d0-ea03b5958087","exec":["pm.test(\"Register Isilon Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","var response = pm.response.json()\r","pm.test(\"verify response is not null\", function () {\r","    pm.expect(response).to.not.equal(null);\r","});\r","\r","if(responseCode.code !== 201) {\r","    postman.setNextRequest(null);\r","}\r","\r","//Add not null\r","\r","else {\r","    pm.test(\"Validating response and fetch registration id\", function () {\r","        var jsonData = pm.response.json();\r","        pm.environment.set(\"ExternalTargetID\", jsonData.id);\r","    });\r","}\r","\r","\r","jsonSchema={\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"title\": \"Root Schema\",\r","    \"required\": [\r","        \"id\",\r","        \"name\",\r","        \"externalTargetType\",\r","        \"config\",\r","        \"compressionPolicy\",\r","        \"encryptionPolicy\",\r","        \"usageType\",\r","        \"dedupEnabled\",\r","        \"incrementalArchivesEnabled\",\r","        \"fullArchiveIntervalDays\",\r","        \"customerManagingEncryptionKeys\",\r","        \"desiredWalLocation\",\r","        \"removalState\",\r","        \"kmsServerId\"\r","    ],\r","    \"properties\": {\r","        \"id\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The id Schema\",\r","            \"examples\": [\r","                75716\r","            ]\r","        },\r","        \"name\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The name Schema\",\r","            \"examples\": [\r","                \"patch_auto_aws_s3_standard_target_2\"\r","            ]\r","        },\r","        \"externalTargetType\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The externalTargetType Schema\",\r","            \"examples\": [\r","                \"kAmazon\"\r","            ]\r","        },\r","        \"config\": {\r","            \"type\": \"object\",\r","            \"default\": {},\r","            \"title\": \"The config Schema\",\r","            \"required\": [\r","                \"bucketName\",\r","                \"amazon\"\r","            ],\r","            \"properties\": {\r","                \"bucketName\": {\r","                    \"type\": \"string\",\r","                    \"default\": \"\",\r","                    \"title\": \"The bucketName Schema\",\r","                    \"examples\": [\r","                        \"auto-s3-nightly-fi\"\r","                    ]\r","                },\r","                \"amazon\": {\r","                    \"type\": \"object\",\r","                    \"default\": {},\r","                    \"title\": \"The amazon Schema\",\r","                    \"required\": [\r","                        \"accessKeyId\",\r","                        \"credentialBlob\",\r","                        \"region\",\r","                        \"tierType\",\r","                        \"tiers\"\r","                    ],\r","                    \"properties\": {\r","                        \"accessKeyId\": {\r","                            \"type\": \"string\",\r","                            \"default\": \"\",\r","                            \"title\": \"The accessKeyId Schema\",\r","                            \"examples\": [\r","                                \"exampleKey\"\r","                            ]\r","                        },\r","                        \"credentialBlob\": {\r","                            \"type\": \"null\",\r","                            \"default\": null,\r","                            \"title\": \"The credentialBlob Schema\",\r","                            \"examples\": [\r","                                null\r","                            ]\r","                        },\r","                        \"region\": {\r","                            \"type\": \"string\",\r","                            \"default\": \"\",\r","                            \"title\": \"The region Schema\",\r","                            \"examples\": [\r","                                \"us-east-1\"\r","                            ]\r","                        },\r","                        \"tierType\": {\r","                            \"type\": \"string\",\r","                            \"default\": \"\",\r","                            \"title\": \"The tierType Schema\",\r","                            \"examples\": [\r","                                \"kAmazonS3Standard\"\r","                            ]\r","                        },\r","                        \"tiers\": {\r","                            \"type\": \"array\",\r","                            \"default\": [],\r","                            \"title\": \"The tiers Schema\",\r","                            \"items\": {\r","                                \"type\": \"string\",\r","                                \"title\": \"A Schema\",\r","                                \"examples\": [\r","                                    \"kAmazonS3StandardIA\",\r","                                    \"kAmazonS3OneZoneIA\",\r","                                    \"kAmazonS3IntelligentTiering\",\r","                                    \"kAmazonS3Glacier\",\r","                                    \"kAmazonS3GlacierDeepArchive\",\r","                                    \"kAmazonS3Standard\"\r","                                ]\r","                            },\r","                            \"examples\": [\r","                                [\"kAmazonS3StandardIA\",\r","                                    \"kAmazonS3OneZoneIA\",\r","                                    \"kAmazonS3IntelligentTiering\",\r","                                    \"kAmazonS3Glacier\",\r","                                    \"kAmazonS3GlacierDeepArchive\",\r","                                    \"kAmazonS3Standard\"\r","                                ]\r","                            ]\r","                        }\r","                    },\r","                    \"examples\": [{\r","                        \"accessKeyId\": \"testKey\",\r","                        \"credentialBlob\": null,\r","                        \"region\": \"us-east-1\",\r","                        \"tierType\": \"kAmazonS3Standard\",\r","                        \"tiers\": [\r","                            \"kAmazonS3StandardIA\",\r","                            \"kAmazonS3OneZoneIA\",\r","                            \"kAmazonS3IntelligentTiering\",\r","                            \"kAmazonS3Glacier\",\r","                            \"kAmazonS3GlacierDeepArchive\",\r","                            \"kAmazonS3Standard\"\r","                        ]\r","                    }]\r","                }\r","            },\r","            \"examples\": [{\r","                \"bucketName\": \"auto-s3-nightly-fi\",\r","                \"amazon\": {\r","                    \"accessKeyId\": \"testKey\",\r","                    \"credentialBlob\": null,\r","                    \"region\": \"us-east-1\",\r","                    \"tierType\": \"kAmazonS3Standard\",\r","                    \"tiers\": [\r","                        \"kAmazonS3StandardIA\",\r","                        \"kAmazonS3OneZoneIA\",\r","                        \"kAmazonS3IntelligentTiering\",\r","                        \"kAmazonS3Glacier\",\r","                        \"kAmazonS3GlacierDeepArchive\",\r","                        \"kAmazonS3Standard\"\r","                    ]\r","                }\r","            }]\r","        },\r","        \"compressionPolicy\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The compressionPolicy Schema\",\r","            \"examples\": [\r","                \"kCompressionLow\"\r","            ]\r","        },\r","        \"encryptionPolicy\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The encryptionPolicy Schema\",\r","            \"examples\": [\r","                \"kEncryptionStrong\"\r","            ]\r","        },\r","        \"usageType\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The usageType Schema\",\r","            \"examples\": [\r","                \"kArchival\"\r","            ]\r","        },\r","        \"dedupEnabled\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The dedupEnabled Schema\",\r","            \"examples\": [\r","                true\r","            ]\r","        },\r","        \"incrementalArchivesEnabled\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The incrementalArchivesEnabled Schema\",\r","            \"examples\": [\r","                true\r","            ]\r","        },\r","        \"fullArchiveIntervalDays\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The fullArchiveIntervalDays Schema\",\r","            \"examples\": [\r","                90\r","            ]\r","        },\r","        \"customerManagingEncryptionKeys\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The customerManagingEncryptionKeys Schema\",\r","            \"examples\": [\r","                false\r","            ]\r","        },\r","        \"desiredWalLocation\": {\r","            \"type\": \"null\",\r","            \"default\": null,\r","            \"title\": \"The desiredWalLocation Schema\",\r","            \"examples\": [\r","                null\r","            ]\r","        },\r","        \"removalState\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The removalState Schema\",\r","            \"examples\": [\r","                \"kDontRemove\"\r","            ]\r","        },\r","        \"kmsServerId\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The kmsServerId Schema\",\r","            \"examples\": [\r","                0\r","            ]\r","        }\r","    },\r","    \"examples\": [{\r","        \"id\": 75716,\r","        \"name\": \"patch_auto_aws_s3_standard_target_2\",\r","        \"externalTargetType\": \"kAmazon\",\r","        \"config\": {\r","            \"bucketName\": \"auto-s3-nightly-fi\",\r","            \"amazon\": {\r","                \"accessKeyId\": \"testKey\",\r","                \"credentialBlob\": null,\r","                \"region\": \"us-east-1\",\r","                \"tierType\": \"kAmazonS3Standard\",\r","                \"tiers\": [\r","                    \"kAmazonS3StandardIA\",\r","                    \"kAmazonS3OneZoneIA\",\r","                    \"kAmazonS3IntelligentTiering\",\r","                    \"kAmazonS3Glacier\",\r","                    \"kAmazonS3GlacierDeepArchive\",\r","                    \"kAmazonS3Standard\"\r","                ]\r","            }\r","        },\r","        \"compressionPolicy\": \"kCompressionLow\",\r","        \"encryptionPolicy\": \"kEncryptionStrong\",\r","        \"usageType\": \"kArchival\",\r","        \"dedupEnabled\": true,\r","        \"incrementalArchivesEnabled\": true,\r","        \"fullArchiveIntervalDays\": 90,\r","        \"customerManagingEncryptionKeys\": false,\r","        \"desiredWalLocation\": null,\r","        \"removalState\": \"kDontRemove\",\r","        \"kmsServerId\": 0\r","    }]\r","}\r","\r","pm.test(\"Validate Response Body schema\",()=>{\r","    pm.response.to.have.jsonSchema(jsonSchema)\r","});"],"type":"text/javascript"}}],"id":"e113b546-59f5-445e-8462-6cb5763ab9e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n      \"name\": \"aws_s3_standard_target\",\n      \"externalTargetType\": \"kAmazon\",\n      \"config\": {\n        \"bucketName\": \"s3-bucket\",\n        \"amazon\": {\n          \"accessKeyId\": \"{{accessKeyID}}\",\n          \"secretAccessKey\": \"{{secretAccessKey}}\",\n          \"credentialBlob\": null,\n          \"region\": \"us-east-1\",\n          \"tierType\": \"kAmazonS3Standard\"\n        }\n      },\n      \"compressionPolicy\": \"kCompressionLow\",\n      \"encryptionPolicy\": \"kEncryptionStrong\",\n      \"usageType\": \"kArchival\",\n      \"dedupEnabled\": true,\n      \"incrementalArchivesEnabled\": true,\n      \"customerManagingEncryptionKeys\": false,\n      \"desiredWalLocation\": null\n    },"},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/vaults","description":"<p>Registers an external target with the Cohesity cluster for archival.</p>\n<p>The external target ID from the response is required to create the policy with archival enabled.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","vaults"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"7516c30c-37c5-45cf-bb8a-1a00dcf04adf","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n      \"name\": \"patch_auto_aws_s3_standard_target_test8\",\n      \"externalTargetType\": \"kAmazon\",\n      \"config\": {\n        \"bucketName\": \"auto-s3-nightly-fi\",\n        \"amazon\": {\n          \"accessKeyId\": \"testkey\",\n          \"secretAccessKey\": \"testSecretAccessKey\",\n          \"credentialBlob\": null,\n          \"region\": \"us-east-1\",\n          \"tierType\": \"kAmazonS3Standard\"\n        }\n      },\n      \"compressionPolicy\": \"kCompressionLow\",\n      \"encryptionPolicy\": \"kEncryptionStrong\",\n      \"usageType\": \"kArchival\",\n      \"dedupEnabled\": true,\n      \"incrementalArchivesEnabled\": true,\n      \"customerManagingEncryptionKeys\": false,\n      \"desiredWalLocation\": null\n    },"},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/public/vaults"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679378261"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 21 Mar 2023 05:57:41 GMT"},{"key":"Content-Length","value":"449"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6999187,\n    \"name\": \"aws_s3_standard_target\",\n    \"externalTargetType\": \"kAmazon\",\n    \"config\": {\n        \"bucketName\": \"s3-bucket\",\n        \"amazon\": {\n            \"accessKeyId\": \"{{accessKeyId}}\",\n            \"credentialBlob\": null,\n            \"region\": \"us-east-1\",\n            \"tierType\": \"kAmazonS3Standard\",\n            \"tiers\": [\n                \"kAmazonS3Glacier\",\n                \"kAmazonS3GlacierDeepArchive\",\n                \"kAmazonS3Standard\",\n                \"kAmazonS3StandardIA\",\n                \"kAmazonS3OneZoneIA\",\n                \"kAmazonS3IntelligentTiering\"\n            ]\n        }\n    },\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"encryptionPolicy\": \"kEncryptionStrong\",\n    \"usageType\": \"kArchival\",\n    \"dedupEnabled\": true,\n    \"incrementalArchivesEnabled\": true,\n    \"fullArchiveIntervalDays\": 90,\n    \"customerManagingEncryptionKeys\": false,\n    \"desiredWalLocation\": null,\n    \"removalState\": \"kDontRemove\",\n    \"kmsServerId\": 0,\n    \"vaultOwnership\": \"kOwnershipContextLocal\"\n}"}],"_postman_id":"e113b546-59f5-445e-8462-6cb5763ab9e1"},{"name":"Get Storage Domains List","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i=0; i< jsonData.storageDomains.length; i++){","","    console.log(jsonData.storageDomains[i]);","if (jsonData.storageDomains[i].name=== \"DefaultStorageDomain\") {","    pm.environment.set(\"viewBoxId\", jsonData.storageDomains[i].id);","}","}","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"storageDomains\": {","            \"title\": \"The storageDomains Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            5","                        ]","                    },","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"DefaultStorageDomain\"","                        ]","                    },","                    \"clusterPartitionId\": {","                        \"title\": \"The clusterPartitionId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            3","                        ]","                    },","                    \"clusterPartitionName\": {","                        \"title\": \"The clusterPartitionName Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"DefaultPartition\"","                        ]","                    },","                    \"subnetWhitelist\": {","                        \"title\": \"The subnetWhitelist Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"nisDomainNames\": {","                        \"title\": \"The nisDomainNames Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"tenantIds\": {","                        \"title\": \"The tenantIds Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"schemas\": {","                        \"title\": \"The schemas Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"fileCountBySize\": {","                        \"title\": \"The fileCountBySize Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"storagePolicy\": {","                        \"title\": \"The storagePolicy Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"title\": \"The deduplicationCompressionDelaySecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"numDiskFailuresTolerated\": {","                                \"title\": \"The numDiskFailuresTolerated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"numNodeFailuresTolerated\": {","                                \"title\": \"The numNodeFailuresTolerated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"compressionParams\": {","                                \"title\": \"The compressionParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"type\": {","                                        \"title\": \"The type Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"Low\"","                                        ]","                                    },","                                    \"inlineEnabled\": {","                                        \"title\": \"The inlineEnabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"type\": \"Low\",","                                    \"inlineEnabled\": true","                                }]","                            },","                            \"deduplicationParams\": {","                                \"title\": \"The deduplicationParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"enabled\": {","                                        \"title\": \"The enabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    },","                                    \"inlineEnabled\": {","                                        \"title\": \"The inlineEnabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"enabled\": true,","                                    \"inlineEnabled\": true","                                }]","                            }","                        },","                        \"examples\": [{","                            \"deduplicationCompressionDelaySecs\": 0,","                            \"numDiskFailuresTolerated\": 0,","                            \"numNodeFailuresTolerated\": 0,","                            \"compressionParams\": {","                                \"type\": \"Low\",","                                \"inlineEnabled\": true","                            },","                            \"deduplicationParams\": {","                                \"enabled\": true,","                                \"inlineEnabled\": true","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 5,","                    \"name\": \"DefaultStorageDomain\",","                    \"clusterPartitionId\": 3,","                    \"clusterPartitionName\": \"DefaultPartition\",","                    \"subnetWhitelist\": null,","                    \"nisDomainNames\": null,","                    \"tenantIds\": null,","                    \"schemas\": null,","                    \"fileCountBySize\": null,","                    \"storagePolicy\": {","                        \"deduplicationCompressionDelaySecs\": 0,","                        \"numDiskFailuresTolerated\": 0,","                        \"numNodeFailuresTolerated\": 0,","                        \"compressionParams\": {","                            \"type\": \"Low\",","                            \"inlineEnabled\": true","                        },","                        \"deduplicationParams\": {","                            \"enabled\": true,","                            \"inlineEnabled\": true","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 5,","                    \"name\": \"DefaultStorageDomain\",","                    \"clusterPartitionId\": 3,","                    \"clusterPartitionName\": \"DefaultPartition\",","                    \"subnetWhitelist\": null,","                    \"nisDomainNames\": null,","                    \"tenantIds\": null,","                    \"schemas\": null,","                    \"fileCountBySize\": null,","                    \"storagePolicy\": {","                        \"deduplicationCompressionDelaySecs\": 0,","                        \"numDiskFailuresTolerated\": 0,","                        \"numNodeFailuresTolerated\": 0,","                        \"compressionParams\": {","                            \"type\": \"Low\",","                            \"inlineEnabled\": true","                        },","                        \"deduplicationParams\": {","                            \"enabled\": true,","                            \"inlineEnabled\": true","                        }","                    }","                }]","            ]","        }","    },","    \"examples\": [{","        \"storageDomains\": [{","            \"id\": 5,","            \"name\": \"DefaultStorageDomain\",","            \"clusterPartitionId\": 3,","            \"clusterPartitionName\": \"DefaultPartition\",","            \"subnetWhitelist\": null,","            \"nisDomainNames\": null,","            \"tenantIds\": null,","            \"schemas\": null,","            \"fileCountBySize\": null,","            \"storagePolicy\": {","                \"deduplicationCompressionDelaySecs\": 0,","                \"numDiskFailuresTolerated\": 0,","                \"numNodeFailuresTolerated\": 0,","                \"compressionParams\": {","                    \"type\": \"Low\",","                    \"inlineEnabled\": true","                },","                \"deduplicationParams\": {","                    \"enabled\": true,","                    \"inlineEnabled\": true","                }","            }","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"bacef20b-e3a3-4551-bc70-2db1f83e611c"}}],"id":"61440c69-13c8-442f-9b80-ad25bc0e3363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>The Storage Domain ID is required when you are creating the Protection Group for protecting the Cassandra source.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"e8c0948d-c4ee-4e38-bc0b-3d8d5692fd39","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679384822"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 21 Mar 2023 07:47:01 GMT"},{"key":"Content-Length","value":"404"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 27,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 25,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"numDiskFailuresTolerated\": 1,\n                \"numNodeFailuresTolerated\": 1,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        },\n        {\n            \"id\": 16144,\n            \"name\": \"StroageDomain-1\",\n            \"clusterPartitionId\": 25,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": false,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"cloudDownWaterFallParams\": {\n                \"thresholdSecs\": 5184000\n            },\n            \"defaultViewQuota\": {},\n            \"physicalQuota\": {},\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 1,\n                \"numNodeFailuresTolerated\": 1,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        },\n        {\n            \"id\": 952378,\n            \"name\": \"StorageDomain-2\",\n            \"clusterPartitionId\": 25,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": false,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 1,\n                \"numNodeFailuresTolerated\": 1,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"61440c69-13c8-442f-9b80-ad25bc0e3363"},{"name":"Register Remote Cluster","event":[{"listen":"test","script":{"id":"5a25b7cb-722d-4f49-9c61-e6f4cb605b93","exec":["pm.test(\"Register Isilon Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","var response = pm.response.json()\r","pm.test(\"verify response is not null\", function () {\r","    pm.expect(response).to.not.equal(null);\r","});\r","\r","if(responseCode.code !== 201) {\r","    postman.setNextRequest(null);\r","}\r","\r","//Add not null\r","\r","else {\r","    pm.test(\"Validating response and fetch registration id\", function () {\r","        var jsonData = pm.response.json();\r","        pm.environment.set(\"ExternalTargetID\", jsonData.id);\r","    });\r","}\r","\r","\r","jsonSchema={\r","    \"type\": \"object\",\r","    \"default\": {},\r","    \"title\": \"Root Schema\",\r","    \"required\": [\r","        \"id\",\r","        \"name\",\r","        \"externalTargetType\",\r","        \"config\",\r","        \"compressionPolicy\",\r","        \"encryptionPolicy\",\r","        \"usageType\",\r","        \"dedupEnabled\",\r","        \"incrementalArchivesEnabled\",\r","        \"fullArchiveIntervalDays\",\r","        \"customerManagingEncryptionKeys\",\r","        \"desiredWalLocation\",\r","        \"removalState\",\r","        \"kmsServerId\"\r","    ],\r","    \"properties\": {\r","        \"id\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The id Schema\",\r","            \"examples\": [\r","                75716\r","            ]\r","        },\r","        \"name\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The name Schema\",\r","            \"examples\": [\r","                \"patch_auto_aws_s3_standard_target_2\"\r","            ]\r","        },\r","        \"externalTargetType\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The externalTargetType Schema\",\r","            \"examples\": [\r","                \"kAmazon\"\r","            ]\r","        },\r","        \"config\": {\r","            \"type\": \"object\",\r","            \"default\": {},\r","            \"title\": \"The config Schema\",\r","            \"required\": [\r","                \"bucketName\",\r","                \"amazon\"\r","            ],\r","            \"properties\": {\r","                \"bucketName\": {\r","                    \"type\": \"string\",\r","                    \"default\": \"\",\r","                    \"title\": \"The bucketName Schema\",\r","                    \"examples\": [\r","                        \"auto-s3-nightly-fi\"\r","                    ]\r","                },\r","                \"amazon\": {\r","                    \"type\": \"object\",\r","                    \"default\": {},\r","                    \"title\": \"The amazon Schema\",\r","                    \"required\": [\r","                        \"accessKeyId\",\r","                        \"credentialBlob\",\r","                        \"region\",\r","                        \"tierType\",\r","                        \"tiers\"\r","                    ],\r","                    \"properties\": {\r","                        \"accessKeyId\": {\r","                            \"type\": \"string\",\r","                            \"default\": \"\",\r","                            \"title\": \"The accessKeyId Schema\",\r","                            \"examples\": [\r","                                \"TestAccessKey\"\r","                            ]\r","                        },\r","                        \"credentialBlob\": {\r","                            \"type\": \"null\",\r","                            \"default\": null,\r","                            \"title\": \"The credentialBlob Schema\",\r","                            \"examples\": [\r","                                null\r","                            ]\r","                        },\r","                        \"region\": {\r","                            \"type\": \"string\",\r","                            \"default\": \"\",\r","                            \"title\": \"The region Schema\",\r","                            \"examples\": [\r","                                \"us-east-1\"\r","                            ]\r","                        },\r","                        \"tierType\": {\r","                            \"type\": \"string\",\r","                            \"default\": \"\",\r","                            \"title\": \"The tierType Schema\",\r","                            \"examples\": [\r","                                \"kAmazonS3Standard\"\r","                            ]\r","                        },\r","                        \"tiers\": {\r","                            \"type\": \"array\",\r","                            \"default\": [],\r","                            \"title\": \"The tiers Schema\",\r","                            \"items\": {\r","                                \"type\": \"string\",\r","                                \"title\": \"A Schema\",\r","                                \"examples\": [\r","                                    \"kAmazonS3StandardIA\",\r","                                    \"kAmazonS3OneZoneIA\",\r","                                    \"kAmazonS3IntelligentTiering\",\r","                                    \"kAmazonS3Glacier\",\r","                                    \"kAmazonS3GlacierDeepArchive\",\r","                                    \"kAmazonS3Standard\"\r","                                ]\r","                            },\r","                            \"examples\": [\r","                                [\"kAmazonS3StandardIA\",\r","                                    \"kAmazonS3OneZoneIA\",\r","                                    \"kAmazonS3IntelligentTiering\",\r","                                    \"kAmazonS3Glacier\",\r","                                    \"kAmazonS3GlacierDeepArchive\",\r","                                    \"kAmazonS3Standard\"\r","                                ]\r","                            ]\r","                        }\r","                    },\r","                    \"examples\": [{\r","                        \"accessKeyId\": \"TestAccessKey\",\r","                        \"credentialBlob\": null,\r","                        \"region\": \"us-east-1\",\r","                        \"tierType\": \"kAmazonS3Standard\",\r","                        \"tiers\": [\r","                            \"kAmazonS3StandardIA\",\r","                            \"kAmazonS3OneZoneIA\",\r","                            \"kAmazonS3IntelligentTiering\",\r","                            \"kAmazonS3Glacier\",\r","                            \"kAmazonS3GlacierDeepArchive\",\r","                            \"kAmazonS3Standard\"\r","                        ]\r","                    }]\r","                }\r","            },\r","            \"examples\": [{\r","                \"bucketName\": \"auto-s3-nightly-fi\",\r","                \"amazon\": {\r","                    \"accessKeyId\": \"TestAccessKey\",\r","                    \"credentialBlob\": null,\r","                    \"region\": \"us-east-1\",\r","                    \"tierType\": \"kAmazonS3Standard\",\r","                    \"tiers\": [\r","                        \"kAmazonS3StandardIA\",\r","                        \"kAmazonS3OneZoneIA\",\r","                        \"kAmazonS3IntelligentTiering\",\r","                        \"kAmazonS3Glacier\",\r","                        \"kAmazonS3GlacierDeepArchive\",\r","                        \"kAmazonS3Standard\"\r","                    ]\r","                }\r","            }]\r","        },\r","        \"compressionPolicy\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The compressionPolicy Schema\",\r","            \"examples\": [\r","                \"kCompressionLow\"\r","            ]\r","        },\r","        \"encryptionPolicy\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The encryptionPolicy Schema\",\r","            \"examples\": [\r","                \"kEncryptionStrong\"\r","            ]\r","        },\r","        \"usageType\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The usageType Schema\",\r","            \"examples\": [\r","                \"kArchival\"\r","            ]\r","        },\r","        \"dedupEnabled\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The dedupEnabled Schema\",\r","            \"examples\": [\r","                true\r","            ]\r","        },\r","        \"incrementalArchivesEnabled\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The incrementalArchivesEnabled Schema\",\r","            \"examples\": [\r","                true\r","            ]\r","        },\r","        \"fullArchiveIntervalDays\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The fullArchiveIntervalDays Schema\",\r","            \"examples\": [\r","                90\r","            ]\r","        },\r","        \"customerManagingEncryptionKeys\": {\r","            \"type\": \"boolean\",\r","            \"default\": false,\r","            \"title\": \"The customerManagingEncryptionKeys Schema\",\r","            \"examples\": [\r","                false\r","            ]\r","        },\r","        \"desiredWalLocation\": {\r","            \"type\": \"null\",\r","            \"default\": null,\r","            \"title\": \"The desiredWalLocation Schema\",\r","            \"examples\": [\r","                null\r","            ]\r","        },\r","        \"removalState\": {\r","            \"type\": \"string\",\r","            \"default\": \"\",\r","            \"title\": \"The removalState Schema\",\r","            \"examples\": [\r","                \"kDontRemove\"\r","            ]\r","        },\r","        \"kmsServerId\": {\r","            \"type\": \"integer\",\r","            \"default\": 0,\r","            \"title\": \"The kmsServerId Schema\",\r","            \"examples\": [\r","                0\r","            ]\r","        }\r","    },\r","    \"examples\": [{\r","        \"id\": 75716,\r","        \"name\": \"patch_auto_aws_s3_standard_target_2\",\r","        \"externalTargetType\": \"kAmazon\",\r","        \"config\": {\r","            \"bucketName\": \"auto-s3-nightly-fi\",\r","            \"amazon\": {\r","                \"accessKeyId\": \"TestAccessKey\",\r","                \"credentialBlob\": null,\r","                \"region\": \"us-east-1\",\r","                \"tierType\": \"kAmazonS3Standard\",\r","                \"tiers\": [\r","                    \"kAmazonS3StandardIA\",\r","                    \"kAmazonS3OneZoneIA\",\r","                    \"kAmazonS3IntelligentTiering\",\r","                    \"kAmazonS3Glacier\",\r","                    \"kAmazonS3GlacierDeepArchive\",\r","                    \"kAmazonS3Standard\"\r","                ]\r","            }\r","        },\r","        \"compressionPolicy\": \"kCompressionLow\",\r","        \"encryptionPolicy\": \"kEncryptionStrong\",\r","        \"usageType\": \"kArchival\",\r","        \"dedupEnabled\": true,\r","        \"incrementalArchivesEnabled\": true,\r","        \"fullArchiveIntervalDays\": 90,\r","        \"customerManagingEncryptionKeys\": false,\r","        \"desiredWalLocation\": null,\r","        \"removalState\": \"kDontRemove\",\r","        \"kmsServerId\": 0\r","    }]\r","}\r","\r","pm.test(\"Validate Response Body schema\",()=>{\r","    pm.response.to.have.jsonSchema(jsonSchema)\r","});"],"type":"text/javascript"}}],"id":"d4502b2a-5f49-4e84-9e46-023e8498b22b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"remoteIps\": [\n    \"{{remote_cluster_IP}}\"\n  ],\n  \"userName\": \"{{remote_cluster_user_name}}\",\n  \"password\": \"{{remote_cluster_password}}\",\n  \"networkInterface\": null,\n  \"multiTenancyEnabled\": false,\n  \"purposeRemoteAccess\": true,\n  \"purposeReplication\": true,\n  \"allEndpointsReachable\": false,\n  \"autoRegisterTarget\": false,\n  \"compressionEnabled\": true,\n  \"encryptionKey\": null,\n  \"bandwidthLimit\": {\n    \"rateLimitBytesPerSec\": null,\n    \"bandwidthLimitOverrides\": null,\n    \"timezone\": null\n  },\n  \"viewBoxPairInfo\": [\n    {\n      \"localViewBoxId\": {{StorageDomainId}},\n      \"remoteViewBoxId\": {{RemoteStorageDomainId}}\n    }\n  ]\n}"},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/remoteClusters","description":"<p>Registers a remote Cohesity cluster (secondary) with the Cohesity cluster (capturing/primary) for replication.</p>\n<p>For replicating the data to the remote cluster, you must create a connection back to the primary Cohesity cluster from the secondary cluster.</p>\n<p>For creating a connection from the secondary cluster to the primary Cohesity cluster, register the primary cluster as a remote cluster on the secondary cluster by running this API on the secondary cluster.</p>\n<p>The remote cluster ID (<code>clusterId</code>) from the API response is required for creating a policy with replication enabled.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","remoteClusters"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"c869367a-9ea4-48f1-9a9b-84d00bed2168","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n      \"name\": \"patch_auto_aws_s3_standard_target_test8\",\n      \"externalTargetType\": \"kAmazon\",\n      \"config\": {\n        \"bucketName\": \"auto-s3-nightly-fi\",\n        \"amazon\": {\n          \"accessKeyId\": \"testAccessKey\",\n          \"secretAccessKey\": \"testSecretAccessKey\",\n          \"credentialBlob\": null,\n          \"region\": \"us-east-1\",\n          \"tierType\": \"kAmazonS3Standard\"\n        }\n      },\n      \"compressionPolicy\": \"kCompressionLow\",\n      \"encryptionPolicy\": \"kEncryptionStrong\",\n      \"usageType\": \"kArchival\",\n      \"dedupEnabled\": true,\n      \"incrementalArchivesEnabled\": true,\n      \"customerManagingEncryptionKeys\": false,\n      \"desiredWalLocation\": null\n    },"},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/public/vaults"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679378261"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 21 Mar 2023 05:57:41 GMT"},{"key":"Content-Length","value":"449"}],"cookie":[],"responseTime":null,"body":"{\n  \"localIps\": [\n    \"{{IP1}}\",\n    \"{{IP2}}\",\n    \"{{IP3}}\",\n    \"{{IP4}}\"\n  ],\n  \"multiTenancyEnabled\": false,\n  \"tenantViewBoxSharingEnabled\": false,\n  \"clusterId\": {{cluster_Id}},\n  \"clusterIncarnationId\": {{incarnation_id}},\n  \"name\": \"{{cluster_name}}\",\n  \"remoteIps\": [\n    \"{{cluster_IP}}\"\n  ],\n  \"bandwidthLimit\": {},\n  \"allEndpointsReachable\": false,\n  \"viewBoxPairInfo\": [\n    {\n      \"localViewBoxId\": 27,\n      \"localViewBoxName\": \"DefaultStorageDomain\",\n      \"remoteViewBoxId\": 27,\n      \"remoteViewBoxName\": \"DefaultStorageDomain\"\n    }\n  ],\n  \"userName\": \"{{user_name}}\",\n  \"compressionEnabled\": true,\n  \"networkInterface\": \"intf_group1\",\n  \"purposeReplication\": true,\n  \"purposeRemoteAccess\": true,\n  \"autoRegisterTarget\": false\n}"}],"_postman_id":"d4502b2a-5f49-4e84-9e46-023e8498b22b"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"remoteTargetPolicy\",","        \"cascadedTargetsConfig\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The name Schema\",","            \"examples\": [","                \"Archival_Policy\"","            ]","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The backupPolicy Schema\",","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The regular Schema\",","                    \"required\": [","                        \"full\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"full\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"title\": \"The full Schema\",","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"title\": \"The schedule Schema\",","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\",","                                            \"title\": \"The unit Schema\",","                                            \"examples\": [","                                                \"Days\"","                                            ]","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"title\": \"The daySchedule Schema\",","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0,","                                                    \"title\": \"The frequency Schema\",","                                                    \"examples\": [","                                                        1","                                                    ]","                                                }","                                            },","                                            \"examples\": [{","                                                \"frequency\": 1","                                            }]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"daySchedule\": {","                                            \"frequency\": 1","                                        }","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"daySchedule\": {","                                        \"frequency\": 1","                                    }","                                }","                            }]","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"title\": \"The retention Schema\",","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"title\": \"The unit Schema\",","                                    \"examples\": [","                                        \"Weeks\"","                                    ]","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"title\": \"The duration Schema\",","                                    \"examples\": [","                                        2","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"unit\": \"Weeks\",","                                \"duration\": 2","                            }]","                        }","                    },","                    \"examples\": [{","                        \"full\": {","                            \"schedule\": {","                                \"unit\": \"Days\",","                                \"daySchedule\": {","                                    \"frequency\": 1","                                }","                            }","                        },","                        \"retention\": {","                            \"unit\": \"Weeks\",","                            \"duration\": 2","                        }","                    }]","                }","            },","            \"examples\": [{","                \"regular\": {","                    \"full\": {","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"daySchedule\": {","                                \"frequency\": 1","                            }","                        }","                    },","                    \"retention\": {","                        \"unit\": \"Weeks\",","                        \"duration\": 2","                    }","                }","            }]","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The description Schema\",","            \"examples\": [","                \"Policy for newman automation\"","            ]","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null,","            \"title\": \"The blackoutWindow Schema\",","            \"examples\": [","                null","            ]","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null,","            \"title\": \"The extendedRetention Schema\",","            \"examples\": [","                null","            ]","        },","        \"remoteTargetPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The remoteTargetPolicy Schema\",","            \"required\": [","                \"replicationTargets\",","                \"archivalTargets\",","                \"cloudSpinTargets\"","            ],","            \"properties\": {","                \"replicationTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"title\": \"The replicationTargets Schema\",","                    \"items\": {},","                    \"examples\": [","                        []","                    ]","                },","                \"archivalTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"title\": \"The archivalTargets Schema\",","                    \"items\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"title\": \"A Schema\",","                        \"required\": [","                            \"schedule\",","                            \"retention\",","                            \"copyOnRunSuccess\",","                            \"configId\",","                            \"backupRunType\",","                            \"targetId\",","                            \"targetName\",","                            \"targetType\",","                            \"extendedRetention\"","                        ],","                        \"properties\": {","                            \"schedule\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The schedule Schema\",","                                \"required\": [","                                    \"unit\",","                                    \"frequency\"","                                ],","                                \"properties\": {","                                    \"unit\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The unit Schema\",","                                        \"examples\": [","                                            \"Runs\"","                                        ]","                                    },","                                    \"frequency\": {","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"title\": \"The frequency Schema\",","                                        \"examples\": [","                                            1","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"unit\": \"Runs\",","                                    \"frequency\": 1","                                }]","                            },","                            \"retention\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The retention Schema\",","                                \"required\": [","                                    \"unit\",","                                    \"duration\"","                                ],","                                \"properties\": {","                                    \"unit\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The unit Schema\",","                                        \"examples\": [","                                            \"Days\"","                                        ]","                                    },","                                    \"duration\": {","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"title\": \"The duration Schema\",","                                        \"examples\": [","                                            1","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"unit\": \"Days\",","                                    \"duration\": 1","                                }]","                            },","                            \"copyOnRunSuccess\": {","                                \"type\": \"boolean\",","                                \"default\": false,","                                \"title\": \"The copyOnRunSuccess Schema\",","                                \"examples\": [","                                    true","                                ]","                            },","                            \"configId\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The configId Schema\",","                                \"examples\": [","                                    \"a58ef03f-4bfd-46b5-6fc8-1b5f27fb3b7b\"","                                ]","                            },","                            \"backupRunType\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The backupRunType Schema\",","                                \"examples\": [","                                    \"Full\"","                                ]","                            },","                            \"targetId\": {","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"title\": \"The targetId Schema\",","                                \"examples\": [","                                    79832","                                ]","                            },","                            \"targetName\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The targetName Schema\",","                                \"examples\": [","                                    \"patch_auto_aws_s3_standard_target_1\"","                                ]","                            },","                            \"targetType\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The targetType Schema\",","                                \"examples\": [","                                    \"Cloud\"","                                ]","                            },","                            \"extendedRetention\": {","                                \"type\": \"null\",","                                \"default\": null,","                                \"title\": \"The extendedRetention Schema\",","                                \"examples\": [","                                    null","                                ]","                            }","                        },","                        \"examples\": [{","                            \"schedule\": {","                                \"unit\": \"Runs\",","                                \"frequency\": 1","                            },","                            \"retention\": {","                                \"unit\": \"Days\",","                                \"duration\": 1","                            },","                            \"copyOnRunSuccess\": true,","                            \"configId\": \"a58ef03f-4bfd-46b5-6fc8-1b5f27fb3b7b\",","                            \"backupRunType\": \"Full\",","                            \"targetId\": 79832,","                            \"targetName\": \"patch_auto_aws_s3_standard_target_1\",","                            \"targetType\": \"Cloud\",","                            \"extendedRetention\": null","                        }]","                    },","                    \"examples\": [","                        [{","                            \"schedule\": {","                                \"unit\": \"Runs\",","                                \"frequency\": 1","                            },","                            \"retention\": {","                                \"unit\": \"Days\",","                                \"duration\": 1","                            },","                            \"copyOnRunSuccess\": true,","                            \"configId\": \"a58ef03f-4bfd-46b5-6fc8-1b5f27fb3b7b\",","                            \"backupRunType\": \"Full\",","                            \"targetId\": 79832,","                            \"targetName\": \"patch_auto_aws_s3_standard_target_1\",","                            \"targetType\": \"Cloud\",","                            \"extendedRetention\": null","                        }]","                    ]","                },","                \"cloudSpinTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"title\": \"The cloudSpinTargets Schema\",","                    \"items\": {},","                    \"examples\": [","                        []","                    ]","                }","            },","            \"examples\": [{","                \"replicationTargets\": [],","                \"archivalTargets\": [{","                    \"schedule\": {","                        \"unit\": \"Runs\",","                        \"frequency\": 1","                    },","                    \"retention\": {","                        \"unit\": \"Days\",","                        \"duration\": 1","                    },","                    \"copyOnRunSuccess\": true,","                    \"configId\": \"a58ef03f-4bfd-46b5-6fc8-1b5f27fb3b7b\",","                    \"backupRunType\": \"Full\",","                    \"targetId\": 79832,","                    \"targetName\": \"patch_auto_aws_s3_standard_target_1\",","                    \"targetType\": \"Cloud\",","                    \"extendedRetention\": null","                }],","                \"cloudSpinTargets\": []","            }]","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null,","            \"title\": \"The cascadedTargetsConfig Schema\",","            \"examples\": [","                null","            ]","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The id Schema\",","            \"examples\": [","                \"669349885059858:1675235006323:76\"","            ]","        }","    },","    \"examples\": [{","        \"name\": \"Archival_Policy\",","        \"backupPolicy\": {","            \"regular\": {","                \"full\": {","                    \"schedule\": {","                        \"unit\": \"Days\",","                        \"daySchedule\": {","                            \"frequency\": 1","                        }","                    }","                },","                \"retention\": {","                    \"unit\": \"Weeks\",","                    \"duration\": 2","                }","            }","        },","        \"description\": \"Policy for newman automation\",","        \"blackoutWindow\": null,","        \"extendedRetention\": null,","        \"remoteTargetPolicy\": {","            \"replicationTargets\": [],","            \"archivalTargets\": [{","                \"schedule\": {","                    \"unit\": \"Runs\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Days\",","                    \"duration\": 1","                },","                \"copyOnRunSuccess\": true,","                \"configId\": \"a58ef03f-4bfd-46b5-6fc8-1b5f27fb3b7b\",","                \"backupRunType\": \"Full\",","                \"targetId\": 79832,","                \"targetName\": \"patch_auto_aws_s3_standard_target_1\",","                \"targetType\": \"Cloud\",","                \"extendedRetention\": null","            }],","            \"cloudSpinTargets\": []","        },","        \"cascadedTargetsConfig\": null,","        \"id\": \"669349885059858:1675235006323:76\"","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"f5bdcc59-7e2e-4cb3-a7dd-7f0b9a95d9b6"}}],"id":"0a2e4645-0934-4682-9cff-4470ff59b9ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      },\n      \"primaryBackupTarget\": {\n        \"targetType\": \"Local\"\n      },\n      \"full\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      }\n    }\n  },\n  \"name\": \"archival_replication_policy\",\n  \"description\": null,\n  \"remoteTargetPolicy\": {\n    \"replicationTargets\": [\n      {\n        \"copyOnRunSuccess\": false,\n        \"retention\": {\n          \"unit\": \"Days\",\n          \"duration\": 1\n        },\n        \"schedule\": {\n          \"unit\": \"Runs\"\n        },\n        \"targetType\": \"RemoteCluster\",\n        \"remoteTargetConfig\": {\n          \"clusterId\": {{remote_clusterID}},\n          \"clusterName\": \"Cohesity cluster\"\n        }\n      }\n    ],\n    \"archivalTargets\": [\n      {\n        \"copyOnRunSuccess\": true,\n        \"retention\": {\n          \"unit\": \"Days\",\n          \"duration\": 1\n        },\n        \"schedule\": {\n          \"unit\": \"Runs\"\n        },\n        \"targetId\": {{ExternalTargetID}},\n        \"targetName\": \"aws_s3_standard_target\",\n        \"targetType\": \"Cloud\"\n      }\n    ]\n  },\n  \"isCBSEnabled\": false,\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the response is required to create the Protection Group for protecting the Cassandra source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"f0d0381d-1367-4653-9a3c-273df80df061","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      },\n      \"primaryBackupTarget\": {\n        \"targetType\": \"Local\"\n      },\n      \"full\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      }\n    }\n  },\n  \"name\": \"archival_replication_policy\",\n  \"description\": null,\n  \"remoteTargetPolicy\": {\n    \"replicationTargets\": [\n      {\n        \"copyOnRunSuccess\": false,\n        \"retention\": {\n          \"unit\": \"Days\",\n          \"duration\": 1\n        },\n        \"schedule\": {\n          \"unit\": \"Runs\"\n        },\n        \"targetType\": \"RemoteCluster\",\n        \"remoteTargetConfig\": {\n          \"clusterId\": 7859931928593988,\n          \"clusterName\": \"patchCohesity\"\n        }\n      }\n    ],\n    \"archivalTargets\": [\n      {\n        \"copyOnRunSuccess\": true,\n        \"retention\": {\n          \"unit\": \"Days\",\n          \"duration\": 1\n        },\n        \"schedule\": {\n          \"unit\": \"Runs\"\n        },\n        \"targetId\": 6999187,\n        \"targetName\": \"patch_auto_aws_s3_standard_target_test8\",\n        \"targetType\": \"Cloud\"\n      }\n    ]\n  },\n  \"isCBSEnabled\": false,\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679383594"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 21 Mar 2023 07:26:33 GMT"},{"key":"Content-Length","value":"519"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"880:1680005024062490\",\n            \"protectionGroupInstanceId\": 881,\n            \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"{{ProtectionGroupName}}\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kFull\",\n                \"isSlaViolated\": false,\n                \"startTimeUsecs\": 1680005024062490,\n                \"endTimeUsecs\": 1680005305103029,\n                \"status\": \"Succeeded\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 4,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 0,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 194503\n                },\n                \"indexingTaskId\": \"indexing_880_881\",\n                \"localTaskId\": \"4594155844987574:1679899218812:1438115\"\n            },\n            \"replicationInfo\": {\n                \"replicationTargetResults\": [\n                    {\n                        \"clusterId\": 1867183226494767,\n                        \"clusterName\": \"Cohesity cluster\",\n                        \"startTimeUsecs\": 1680005029069406,\n                        \"endTimeUsecs\": 1680005466128887,\n                        \"status\": \"Succeeded\",\n                        \"stats\": {},\n                        \"replicationTaskId\": \"4594155844987574:1679899218812:1438116\",\n                        \"entriesChanged\": 115,\n                        \"isInBound\": false\n                    }\n                ]\n            },\n            \"archivalInfo\": {\n                \"archivalTargetResults\": [\n                    {\n                        \"targetId\": 1276424,\n                        \"archivalTaskId\": \"4594155844987574:1679899218812:1438114\",\n                        \"targetName\": \"aws_s3_standard_target\",\n                        \"targetType\": \"Cloud\",\n                        \"usageType\": \"Archival\",\n                        \"ownershipContext\": \"Local\",\n                        \"tierSettings\": {\n                            \"cloudPlatform\": null\n                        },\n                        \"runType\": \"kFull\",\n                        \"startTimeUsecs\": 1680005307129287,\n                        \"endTimeUsecs\": 1680005335968165,\n                        \"queuedTimeUsecs\": 1680005029069406,\n                        \"isIncremental\": false,\n                        \"status\": \"Succeeded\",\n                        \"progressTaskId\": \"icebox_archive_4594155844987574_1679899218812_1438114\",\n                        \"stats\": {\n                            \"logicalSizeBytes\": 218353,\n                            \"logicalBytesTransferred\": 275222,\n                            \"physicalBytesTransferred\": 109051904,\n                            \"avgLogicalTransferRateBps\": 9829\n                        },\n                        \"isManuallyDeleted\": false,\n                        \"expiryTimeUsecs\": 1680091424062490\n                    }\n                ]\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kCassandra\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"0a2e4645-0934-4682-9cff-4470ff59b9ce"},{"name":"Get Objects List","event":[{"listen":"test","script":{"exec":["tests[\"Fetching objects, Status code is 200\"] = responseCode.code === 200;","var jsonData = JSON.parse(responseBody);","","pm.test(\"Status code is 200\", function () {","    var keyspace = pm.environment.get('cassandra_keyspace');","    var table = pm.environment.get('cassandra_table');","    var object = keyspace + \".\" + table","    pm.environment.set('object', object)","    if (jsonData !== undefined && jsonData.length > 0) {","        var nodes = jsonData[0].nodes;","        for (var i = 0; i < nodes.length; i++) {","            var nodes_1 = nodes[i].nodes","            if (nodes_1 !== undefined && nodes_1.length > 0) {","                for (var j = 0; j < nodes_1.length; j++) {","                    if (nodes_1[j].protectionSource.cassandraProtectionSource.uuid === object) {","                        pm.environment.set(\"objectId\", nodes_1[j].protectionSource.id);","                       ","","                    }","                }","            }","","","        }","    }","})"],"type":"text/javascript","id":"38b1ebe9-7ac0-415c-bea3-bde99641d798"}},{"listen":"prerequest","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","sleep(50000);"],"type":"text/javascript","id":"dd4d8268-0b51-4182-8530-74c08b8dff37"}}],"id":"0d6ee759-448c-46be-afc2-92ffec8e0187","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources?id={{sourceId}}","description":"<p>Returns information about the list objects available on the source specified in this API URL.</p>\n<p>The object ID from the response is required for protecting that object.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources"],"host":["{{cluster_vip}}"],"query":[{"key":"id","value":"{{sourceId}}"}],"variable":[]}},"response":[{"id":"59fd79b5-951c-4b61-bd33-66ce320bf1bd","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster_1-ip}}/irisservices/api/v1/public/protectionSources?id=11746","protocol":"https","host":["{{cluster_1-ip}}"],"path":["irisservices","api","v1","public","protectionSources"],"query":[{"key":"id","value":"11746"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1680007181"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 28 Mar 2023 12:39:40 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"nodes\": [\n      {\n        \"nodes\": [\n          {\n            \"protectionSource\": {\n              \"id\": 12054,\n              \"parentId\": 11746,\n              \"name\": \"tabd1\",\n              \"environment\": \"kCassandra\",\n              \"cassandraProtectionSource\": {\n                \"type\": \"kTable\",\n                \"name\": \"tabd1\",\n                \"uuid\": \"ATUsers_Roles_Permissions1.tabd1\"\n              }\n            },\n            \"protectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\"\n              }\n            ],\n            \"unprotectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\",\n                \"leavesCount\": 1,\n                \"totalLogicalSize\": 0\n              }\n            ]\n          }\n        ],\n        \"protectionSource\": {\n          \"id\": 11749,\n          \"parentId\": 11746,\n          \"name\": \"ATUsers_Roles_Permissions1\",\n          \"environment\": \"kCassandra\",\n          \"cassandraProtectionSource\": {\n            \"type\": \"kKeyspace\",\n            \"name\": \"ATUsers_Roles_Permissions1\",\n            \"uuid\": \"ATUsers_Roles_Permissions1\",\n            \"keyspaceInfo\": {\n              \"childrenCount\": 4,\n              \"replicationStrategy\": 0\n            }\n          }\n        },\n        \"protectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\"\n          }\n        ],\n        \"unprotectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\",\n            \"leavesCount\": 4,\n            \"totalLogicalSize\": 0\n          }\n        ]\n      },\n      {\n        \"nodes\": [\n          {\n            \"protectionSource\": {\n              \"id\": 12055,\n              \"parentId\": 11746,\n              \"name\": \"taba1\",\n              \"environment\": \"kCassandra\",\n              \"cassandraProtectionSource\": {\n                \"type\": \"kTable\",\n                \"name\": \"taba1\",\n                \"uuid\": \"ATUsers_Roles_Permissions_P11.taba1\"\n              }\n            },\n            \"protectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\",\n                \"leavesCount\": 1,\n                \"totalLogicalSize\": 0\n              }\n            ],\n            \"unprotectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\"\n              }\n            ]\n          },\n          {\n            \"protectionSource\": {\n              \"id\": 12056,\n              \"parentId\": 11746,\n              \"name\": \"tabb1\",\n              \"environment\": \"kCassandra\",\n              \"cassandraProtectionSource\": {\n                \"type\": \"kTable\",\n                \"name\": \"tabb1\",\n                \"uuid\": \"ATUsers_Roles_Permissions_P11.tabb1\"\n              }\n            },\n            \"protectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\",\n                \"leavesCount\": 1,\n                \"totalLogicalSize\": 0\n              }\n            ],\n            \"unprotectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\"\n              }\n            ]\n          },\n          {\n            \"protectionSource\": {\n              \"id\": 12057,\n              \"parentId\": 11746,\n              \"name\": \"tabc1\",\n              \"environment\": \"kCassandra\",\n              \"cassandraProtectionSource\": {\n                \"type\": \"kTable\",\n                \"name\": \"tabc1\",\n                \"uuid\": \"ATUsers_Roles_Permissions_P11.tabc1\"\n              }\n            },\n            \"protectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\",\n                \"leavesCount\": 1,\n                \"totalLogicalSize\": 0\n              }\n            ],\n            \"unprotectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\"\n              }\n            ]\n          },\n          {\n            \"protectionSource\": {\n              \"id\": 12058,\n              \"parentId\": 11746,\n              \"name\": \"tabd1\",\n              \"environment\": \"kCassandra\",\n              \"cassandraProtectionSource\": {\n                \"type\": \"kTable\",\n                \"name\": \"tabd1\",\n                \"uuid\": \"ATUsers_Roles_Permissions_P11.tabd1\"\n              }\n            },\n            \"protectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\",\n                \"leavesCount\": 1,\n                \"totalLogicalSize\": 0\n              }\n            ],\n            \"unprotectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\"\n              }\n            ]\n          }\n        ],\n        \"protectionSource\": {\n          \"id\": 11750,\n          \"parentId\": 11746,\n          \"name\": \"ATUsers_Roles_Permissions_P11\",\n          \"environment\": \"kCassandra\",\n          \"cassandraProtectionSource\": {\n            \"type\": \"kKeyspace\",\n            \"name\": \"ATUsers_Roles_Permissions_P11\",\n            \"uuid\": \"ATUsers_Roles_Permissions_P11\",\n            \"keyspaceInfo\": {\n              \"childrenCount\": 4,\n              \"replicationStrategy\": 1,\n              \"dcList\": [\n                \"DC with \\\" and space\",\n                \"dc1\"\n              ]\n            }\n          }\n        },\n        \"protectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\",\n            \"leavesCount\": 4,\n            \"totalLogicalSize\": 0\n          }\n        ],\n        \"unprotectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\"\n          }\n        ]\n      },\n      {\n        \"nodes\": [\n          {\n            \"protectionSource\": {\n              \"id\": 13185,\n              \"parentId\": 11746,\n              \"name\": \"tieredtable\",\n              \"environment\": \"kCassandra\",\n              \"cassandraProtectionSource\": {\n                \"type\": \"kTable\",\n                \"name\": \"tieredtable\",\n                \"uuid\": \"tieredtestspace2.tieredtable\"\n              }\n            },\n            \"protectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\"\n              }\n            ],\n            \"unprotectedSourcesSummary\": [\n              {\n                \"environment\": \"kCassandra\",\n                \"leavesCount\": 1,\n                \"totalLogicalSize\": 0\n              }\n            ]\n          }\n        ],\n        \"protectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\"\n          }\n        ],\n        \"unprotectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\",\n            \"leavesCount\": 1,\n            \"totalLogicalSize\": 0\n          }\n        ]\n      },\n      {\n        \"protectionSource\": {\n          \"id\": 12040,\n          \"parentId\": 11746,\n          \"name\": \"table2\",\n          \"environment\": \"kCassandra\",\n          \"cassandraProtectionSource\": {\n            \"type\": \"kKeyspace\",\n            \"name\": \"table2\",\n            \"uuid\": \"table2\",\n            \"keyspaceInfo\": {\n              \"childrenCount\": 0,\n              \"replicationStrategy\": 0\n            }\n          }\n        },\n        \"protectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\"\n          }\n        ],\n        \"unprotectedSourcesSummary\": [\n          {\n            \"environment\": \"kCassandra\",\n            \"leavesCount\": 1,\n            \"totalLogicalSize\": 0\n          }\n        ]\n      }\n    ],\n    \"protectionSource\": {\n      \"id\": 11746,\n      \"name\": \"table3\",\n      \"customName\": \"\",\n      \"environment\": \"kCassandra\",\n      \"cassandraProtectionSource\": {\n        \"type\": \"table3\",\n        \"name\": \"table3\",\n        \"uuid\": \"table3\",\n        \"clusterInfo\": {\n          \"primaryHost\": \"{{Cassandra_hostIp}}\",\n          \"seeds\": [\n            \"{{seed1_ip}}\",\n            \"{{seed2_ip}}\"\n          ]\n        }\n      }\n    },\n    \"protectedSourcesSummary\": [\n      {\n        \"environment\": \"kCassandra\",\n        \"leavesCount\": 9,\n        \"totalLogicalSize\": 0\n      }\n    ],\n    \"unprotectedSourcesSummary\": [\n      {\n        \"environment\": \"kCassandra\",\n        \"leavesCount\": 1160,\n        \"totalLogicalSize\": 0\n      }\n    ],\n    \"registrationInfo\": {\n      \"accessInfo\": {\n        \"id\": 869,\n        \"version\": 0,\n        \"environment\": \"kCassandra\",\n        \"endpoint\": \"{{endpoint}}\"\n      },\n      \"registrationTimeUsecs\": 1680004443991310,\n      \"refreshTimeUsecs\": 1680004492998176,\n      \"authenticationStatus\": \"kFinished\",\n      \"cassandraParams\": {\n        \"primaryHost\": \"{{Cassandra_hostIp}}\",\n        \"seeds\": [\n            \"{{seed1_ip}}\",\n            \"{{seed2_ip}}\"\n        ],\n        \"isJmxAuthEnable\": false,\n        \"configDirectory\": \"/etc/dse/cassandra\",\n        \"dseConfigDirectory\": \"/etc/dse\",\n        \"isDseTieredStorage\": false,\n        \"isDseAuthenticator\": true,\n        \"dataCenters\": [\n          \"dc2\",\n          \"dc1\"\n        ],\n        \"commitLogBackupLocation\": \"\",\n        \"cassandraPortsInfo\": {\n          \"nativeTransportPort\": {{portnumber}},\n          \"rpcPort\": {{portnumber}},\n          \"storagePort\": {{portnumber}},\n          \"sslStoragePort\": {{portnumber}},\n          \"jmxPort\": {{portnumber}}\n        },\n        \"cassandraSecurityInfo\": {\n          \"cassandraAuthorizer\": \"com.datastax.bdp.cassandra.auth.DseAuthorizer\",\n          \"cassandraAuthRequired\": true,\n          \"cassandraAuthType\": \"PASSWORD\",\n          \"dseAuthorization\": true,\n          \"clientEncryption\": false,\n          \"serverInternodeEncryptionType\": \"none\",\n          \"serverEncryptionReqClientAuth\": false\n        },\n        \"solrNodes\": null,\n        \"solrPort\": null,\n        \"cassandraVersion\": \"3.11.3.5117\"\n      }\n    }\n  }\n]"}],"_postman_id":"0d6ee759-448c-46be-afc2-92ffec8e0187"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.abortInBlackouts).to.be.a('boolean')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.sourceId).to.be.a('number')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].name).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.sourceName).to.be.a('string')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    for (var i = 0; i < jsonData.alertPolicy.alertTargets.length; i++) {","        pm.expect(jsonData.alertPolicy.alertTargets[i].emailAddress).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].recipientType).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].language).to.be.a('string')","    }","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:722\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"NAS_ProtectionJob\"","            ]","        },","        \"policyId\": {","            \"title\": \"The policyId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:721\"","            ]","        },","        \"priority\": {","            \"title\": \"The priority Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kLow\"","            ]","        },","        \"storageDomainId\": {","            \"title\": \"The storageDomainId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                5","            ]","        },","        \"description\": {","            \"title\": \"The description Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"string\"","            ]","        },","        \"startTime\": {","            \"title\": \"The startTime Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"hour\": {","                    \"title\": \"The hour Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        0","                    ]","                },","                \"minute\": {","                    \"title\": \"The minute Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        0","                    ]","                },","                \"timeZone\": {","                    \"title\": \"The timeZone Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"America/Los_Angeles\"","                    ]","                }","            },","            \"examples\": [{","                \"hour\": 0,","                \"minute\": 0,","                \"timeZone\": \"America/Los_Angeles\"","            }]","        },","        \"endTimeUsecs\": {","            \"title\": \"The endTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                0","            ]","        },","        \"alertPolicy\": {","            \"title\": \"The alertPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"backupRunStatus\": {","                    \"title\": \"The backupRunStatus Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kSuccess\"","                        ]","                    },","                    \"examples\": [","                        [","                            \"kSuccess\"]","                    ]","                },","                \"alertTargets\": {","                    \"title\": \"The alertTargets Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {},","                    \"examples\": [","                        []","                    ]","                }","            },","            \"examples\": [{","                \"backupRunStatus\": [","                    \"kSuccess\"","                ],","                \"alertTargets\": []","            }]","        },","        \"sla\": {","            \"title\": \"The sla Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"additionalProperties\": true,","                \"properties\": {","                    \"backupRunType\": {","                        \"title\": \"The backupRunType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"examples\": [","                            \"kIncremental\",","                            \"kFull\"","                        ]","                    },","                    \"slaMinutes\": {","                        \"title\": \"The slaMinutes Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"examples\": [","                            1,","                            120","                        ]","                    }","                },","                \"examples\": [{","                    \"backupRunType\": \"kIncremental\",","                    \"slaMinutes\": 1","                },","                {","                    \"backupRunType\": \"kFull\",","                    \"slaMinutes\": 120","                }]","            },","            \"examples\": [","                [{","                    \"backupRunType\": \"kIncremental\",","                    \"slaMinutes\": 1","                },","                {","                    \"backupRunType\": \"kFull\",","                    \"slaMinutes\": 120","                }]","            ]","        },","        \"qosPolicy\": {","            \"title\": \"The qosPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kBackupHDD\"","            ]","        },","        \"abortInBlackouts\": {","            \"title\": \"The abortInBlackouts Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"isActive\": {","            \"title\": \"The isActive Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"isPaused\": {","            \"title\": \"The isPaused Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"environment\": {","            \"title\": \"The environment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"missingEntities\": {","            \"title\": \"The missingEntities Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"id\": {","                                \"title\": \"The id Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    26","                                ]","                            },","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"/ifs/fileFolderRestoreTest\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"id\": 26,","                            \"name\": \"/ifs/fileFolderRestoreTest\"","                        }]","                    },","                    \"examples\": [","                        [{","                            \"id\": 26,","                            \"name\": \"/ifs/fileFolderRestoreTest\"","                        }]","                    ]","                },","                \"protocol\": {","                    \"title\": \"The protocol Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"kNfs3\"","                    ]","                },","                \"sourceId\": {","                    \"title\": \"The sourceId Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        1","                    ]","                },","                \"sourceName\": {","                    \"title\": \"The sourceName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\"","                }],","                \"protocol\": \"kNfs3\",","                \"sourceId\": 1,","                \"sourceName\": \"sv4-isilon1\"","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:722\",","        \"name\": \"NAS_ProtectionJob\",","        \"policyId\": \"6706421133980411:1668680031418:721\",","        \"priority\": \"kLow\",","        \"storageDomainId\": 5,","        \"description\": \"string\",","        \"startTime\": {","            \"hour\": 0,","            \"minute\": 0,","            \"timeZone\": \"America/Los_Angeles\"","        },","        \"endTimeUsecs\": 0,","        \"alertPolicy\": {","            \"backupRunStatus\": [","                \"kSuccess\"","            ],","            \"alertTargets\": []","        },","        \"sla\": [{","            \"backupRunType\": \"kIncremental\",","            \"slaMinutes\": 1","        },","        {","            \"backupRunType\": \"kFull\",","            \"slaMinutes\": 120","        }],","        \"qosPolicy\": \"kBackupHDD\",","        \"abortInBlackouts\": true,","        \"isActive\": true,","        \"isPaused\": true,","        \"environment\": \"kIsilon\",","        \"permissions\": null,","        \"missingEntities\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"id\": 26,","                \"name\": \"/ifs/fileFolderRestoreTest\"","            }],","            \"protocol\": \"kNfs3\",","            \"sourceId\": 1,","            \"sourceName\": \"sv4-isilon1\"","        }","    }]","}"," var response = pm.response.json()","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});"],"type":"text/javascript","id":"9f5a32ea-3ff4-43dd-a8ad-739e4c6ac430"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"94154ddf-bf18-4b8d-843f-b1a93ee993f3"}}],"id":"34f81fec-66a7-4143-a334-f1ef870a8ed6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"policyId\": \"{{policyId}}\",\n  \"startTime\": {\n    \"hour\": 17,\n    \"minute\": 33,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"priority\": \"kMedium\",\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 1440\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 1440\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"storageDomainId\": {{storageDomainId}},\n  \"name\": \"{{ProtectionGroupName}}\",\n  \"environment\": \"kCassandra\",\n  \"isPaused\": false,\n  \"description\": \"\",\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"cassandraParams\": {\n    \"objects\": [\n      {\n        \"id\": 12055\n      },\n      {\n        \"id\": 12056\n      },\n      {\n        \"id\": 12057\n      },\n      {\n        \"id\": 12058\n      }\n    ],\n    \"concurrency\": 16,\n    \"bandwidthMBPS\": null,\n    \"dataCenters\": [\n      \"dc2\",\n      \"dc1\"\n    ],\n    \"isLogBackup\": false,\n    \"excludeObjectIds\": []\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a Protection Group for protecting the Cassandra database.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><p><code>policyId</code> , <code>storageDomainId</code> and the ID of the Cassandra objects to be protected are required in the request body for running this API.</p>\n</li>\n<li><p>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the Cassandra objects.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"baa1a5b9-7185-4efe-a8ed-bf4481c0f4f7","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Cassandra_Backup\",\n  \"policyId\": \"2065802129908498:1679244773703:290\",\n  \"storageDomainId\": 27,\n  \"environment\": \"kCassandra\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"cassandraParams\": {\n    \"objects\": [\n      {\n        \"id\": 11181\n      },\n      {\n        \"id\": 11183\n      },\n      {\n        \"id\": 11173\n      }\n    ]\n  }\n}   "},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679560776"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 23 Mar 2023 08:39:40 GMT"},{"key":"Content-Length","value":"413"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"4594155844987574:1679899218812:880\",\n  \"name\": \"{{ProtectionGroupName}}\",\n  \"policyId\": \"4594155844987574:1679899218812:716\",\n  \"priority\": \"kMedium\",\n  \"storageDomainId\": 33,\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 17,\n    \"minute\": 33,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 1440\n    },\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 1440\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"isActive\": true,\n  \"isPaused\": false,\n  \"environment\": \"kCassandra\",\n  \"permissions\": null,\n  \"missingEntities\": null,\n  \"cassandraParams\": {\n    \"objects\": [\n      {\n        \"id\": 12055,\n        \"name\": \"taba1\"\n      },\n      {\n        \"id\": 12056,\n        \"name\": \"tabb1\"\n      },\n      {\n        \"id\": 12057,\n        \"name\": \"tabc1\"\n      },\n      {\n        \"id\": 12058,\n        \"name\": \"tabd1\"\n      }\n    ],\n    \"concurrency\": 16,\n    \"excludeObjectIds\": null,\n    \"sourceId\": 11746,\n    \"sourceName\": \"{{CassandraSourceName}}\",\n    \"customSourceName\": \"\",\n    \"dataCenters\": [\n      \"dc2\",\n      \"dc1\"\n    ],\n    \"isLogBackup\": false\n  }\n}"}],"_postman_id":"34f81fec-66a7-4143-a334-f1ef870a8ed6"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"9e91979c-2368-4a9c-8abd-d5ca49df1048"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"36d84585-cdd3-4401-8881-b4c3b1dda898"}}],"id":"706f6fd0-a43e-419c-b019-001d3cb51c38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting the Cassandra objects.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"699d318b-642f-4cb3-937f-c80c508c19ba","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1679561063"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 23 Mar 2023 08:44:22 GMT"},{"key":"Content-Length","value":"84"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"4594155844987574:1679899218812:880\"\n}"}],"_postman_id":"706f6fd0-a43e-419c-b019-001d3cb51c38"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function() {}, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","     var resp = pm.response.json();","     var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if((status==\"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","     setTimeout(function() {}, 10000);","     postman.setNextRequest(request.name)"," }    ","    else {","        // Sleep for 5 seconds.","     setTimeout(function() {}, 5000);","        jsonData = resp.runs;","        pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","        pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","        pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","","    jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"runs\": {","            \"title\": \"The runs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"726:1669113200103871\"","                        ]","                    },","                    \"protectionGroupInstanceId\": {","                        \"title\": \"The protectionGroupInstanceId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            729","                        ]","                    },","                    \"protectionGroupId\": {","                        \"title\": \"The protectionGroupId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"6706421133980411:1668680031418:726\"","                        ]","                    },","                    \"isReplicationRun\": {","                        \"title\": \"The isReplicationRun Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            false","                        ]","                    },","                    \"protectionGroupName\": {","                        \"title\": \"The protectionGroupName Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"NAS_ProtectionJob\"","                        ]","                    },","                    \"objects\": {","                        \"title\": \"The objects Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"localBackupInfo\": {","                        \"title\": \"The localBackupInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"runType\": {","                                \"title\": \"The runType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kRegular\"","                                ]","                            },","                            \"isSlaViolated\": {","                                \"title\": \"The isSlaViolated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"boolean\",","                                \"default\": false,","                                \"examples\": [","                                    false","                                ]","                            },","                            \"startTimeUsecs\": {","                                \"title\": \"The startTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"endTimeUsecs\": {","                                \"title\": \"The endTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113210105922","                                ]","                            },","                            \"status\": {","                                \"title\": \"The status Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Succeeded\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"successfulObjectsCount\": {","                                \"title\": \"The successfulObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1","                                ]","                            },","                            \"failedObjectsCount\": {","                                \"title\": \"The failedObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"cancelledObjectsCount\": {","                                \"title\": \"The cancelledObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"successfulAppObjectsCount\": {","                                \"title\": \"The successfulAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"failedAppObjectsCount\": {","                                \"title\": \"The failedAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"cancelledAppObjectsCount\": {","                                \"title\": \"The cancelledAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"localSnapshotStats\": {","                                \"title\": \"The localSnapshotStats Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"title\": \"The logicalSizeBytes Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    },","                                    \"bytesWritten\": {","                                        \"title\": \"The bytesWritten Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    },","                                    \"bytesRead\": {","                                        \"title\": \"The bytesRead Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"logicalSizeBytes\": 0,","                                    \"bytesWritten\": 0,","                                    \"bytesRead\": 0","                                }]","                            },","                            \"indexingTaskId\": {","                                \"title\": \"The indexingTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"indexing_726_729\"","                                ]","                            },","                            \"localTaskId\": {","                                \"title\": \"The localTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:27495\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"runType\": \"kRegular\",","                            \"isSlaViolated\": false,","                            \"startTimeUsecs\": 1669113200103871,","                            \"endTimeUsecs\": 1669113210105922,","                            \"status\": \"Succeeded\",","                            \"messages\": null,","                            \"successfulObjectsCount\": 1,","                            \"failedObjectsCount\": 0,","                            \"cancelledObjectsCount\": 0,","                            \"successfulAppObjectsCount\": 0,","                            \"failedAppObjectsCount\": 0,","                            \"cancelledAppObjectsCount\": 0,","                            \"localSnapshotStats\": {","                                \"logicalSizeBytes\": 0,","                                \"bytesWritten\": 0,","                                \"bytesRead\": 0","                            },","                            \"indexingTaskId\": \"indexing_726_729\",","                            \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                        }]","                    },","                    \"onLegalHold\": {","                        \"title\": \"The onLegalHold Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            false","                        ]","                    },","                    \"permissions\": {","                        \"title\": \"The permissions Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {},","                        \"examples\": [","                            []","                        ]","                    },","                    \"hasLocalSnapshot\": {","                        \"title\": \"The hasLocalSnapshot Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            true","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    }","                },","                \"examples\": [{","                    \"id\": \"726:1669113200103871\",","                    \"protectionGroupInstanceId\": 729,","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"isReplicationRun\": false,","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"objects\": null,","                    \"localBackupInfo\": {","                        \"runType\": \"kRegular\",","                        \"isSlaViolated\": false,","                        \"startTimeUsecs\": 1669113200103871,","                        \"endTimeUsecs\": 1669113210105922,","                        \"status\": \"Succeeded\",","                        \"messages\": null,","                        \"successfulObjectsCount\": 1,","                        \"failedObjectsCount\": 0,","                        \"cancelledObjectsCount\": 0,","                        \"successfulAppObjectsCount\": 0,","                        \"failedAppObjectsCount\": 0,","                        \"cancelledAppObjectsCount\": 0,","                        \"localSnapshotStats\": {","                            \"logicalSizeBytes\": 0,","                            \"bytesWritten\": 0,","                            \"bytesRead\": 0","                        },","                        \"indexingTaskId\": \"indexing_726_729\",","                        \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                    },","                    \"onLegalHold\": false,","                    \"permissions\": [],","                    \"hasLocalSnapshot\": true,","                    \"environment\": \"kIsilon\"","                }]","            },","            \"examples\": [","                [{","                    \"id\": \"726:1669113200103871\",","                    \"protectionGroupInstanceId\": 729,","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"isReplicationRun\": false,","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"objects\": null,","                    \"localBackupInfo\": {","                        \"runType\": \"kRegular\",","                        \"isSlaViolated\": false,","                        \"startTimeUsecs\": 1669113200103871,","                        \"endTimeUsecs\": 1669113210105922,","                        \"status\": \"Succeeded\",","                        \"messages\": null,","                        \"successfulObjectsCount\": 1,","                        \"failedObjectsCount\": 0,","                        \"cancelledObjectsCount\": 0,","                        \"successfulAppObjectsCount\": 0,","                        \"failedAppObjectsCount\": 0,","                        \"cancelledAppObjectsCount\": 0,","                        \"localSnapshotStats\": {","                            \"logicalSizeBytes\": 0,","                            \"bytesWritten\": 0,","                            \"bytesRead\": 0","                        },","                        \"indexingTaskId\": \"indexing_726_729\",","                        \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                    },","                    \"onLegalHold\": false,","                    \"permissions\": [],","                    \"hasLocalSnapshot\": true,","                    \"environment\": \"kIsilon\"","                }]","            ]","        },","        \"totalRuns\": {","            \"title\": \"The totalRuns Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1","            ]","        }","    },","    \"examples\": [{","        \"runs\": [{","            \"id\": \"726:1669113200103871\",","            \"protectionGroupInstanceId\": 729,","            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","            \"isReplicationRun\": false,","            \"protectionGroupName\": \"NAS_ProtectionJob\",","            \"objects\": null,","            \"localBackupInfo\": {","                \"runType\": \"kRegular\",","                \"isSlaViolated\": false,","                \"startTimeUsecs\": 1669113200103871,","                \"endTimeUsecs\": 1669113210105922,","                \"status\": \"Succeeded\",","                \"messages\": null,","                \"successfulObjectsCount\": 1,","                \"failedObjectsCount\": 0,","                \"cancelledObjectsCount\": 0,","                \"successfulAppObjectsCount\": 0,","                \"failedAppObjectsCount\": 0,","                \"cancelledAppObjectsCount\": 0,","                \"localSnapshotStats\": {","                    \"logicalSizeBytes\": 0,","                    \"bytesWritten\": 0,","                    \"bytesRead\": 0","                },","                \"indexingTaskId\": \"indexing_726_729\",","                \"localTaskId\": \"6706421133980411:1668680031418:27495\"","            },","            \"onLegalHold\": false,","            \"permissions\": [],","            \"hasLocalSnapshot\": true,","            \"environment\": \"kIsilon\"","        }],","        \"totalRuns\": 1","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"82e1b624-e046-46f1-99f7-78c416b713cd"}},{"listen":"prerequest","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","sleep(50000);"],"type":"text/javascript","id":"eee501d1-f9b4-43d6-962a-c9c066167da5"}}],"id":"fb99ccef-ad1a-4eff-aab0-af132fd61800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n<p>In the response, the <code>status</code> value of the Protection Group run can be <code>Accepted</code>, <code>Running</code>, <code>Succeeded</code>, or <code>Failed</code>. If the <code>status</code> value of the Protection Group run is <code>Succeeded</code>, you can recover the Cassandra objects.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"4c5482e5-01c6-482f-990c-b9b42aa3443d","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/4594155844987574:1679899218812:880/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1680006935"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 28 Mar 2023 12:35:34 GMT"},{"key":"Content-Length","value":"808"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"880:1680005024062490\",\n            \"protectionGroupInstanceId\": 881,\n            \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"cassandra_UInew\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kFull\",\n                \"isSlaViolated\": false,\n                \"startTimeUsecs\": 1680005024062490,\n                \"endTimeUsecs\": 1680005305103029,\n                \"status\": \"Succeeded\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 4,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 0,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 194503\n                },\n                \"indexingTaskId\": \"indexing_880_881\",\n                \"localTaskId\": \"4594155844987574:1679899218812:1438115\"\n            },\n            \"replicationInfo\": {\n                \"replicationTargetResults\": [\n                    {\n                        \"clusterId\": {{cluster_Id}},\n                        \"clusterName\": \"{{cluster_name}}\",\n                        \"startTimeUsecs\": 1680005029069406,\n                        \"endTimeUsecs\": 1680005466128887,\n                        \"status\": \"Succeeded\",\n                        \"stats\": {},\n                        \"replicationTaskId\": \"4594155844987574:1679899218812:1438116\",\n                        \"entriesChanged\": 115,\n                        \"isInBound\": false\n                    }\n                ]\n            },\n            \"archivalInfo\": {\n                \"archivalTargetResults\": [\n                    {\n                        \"targetId\": 1276424,\n                        \"archivalTaskId\": \"4594155844987574:1679899218812:1438114\",\n                        \"targetName\": \"aws_s3_standard_target\",\n                        \"targetType\": \"Cloud\",\n                        \"usageType\": \"Archival\",\n                        \"ownershipContext\": \"Local\",\n                        \"tierSettings\": {\n                            \"cloudPlatform\": null\n                        },\n                        \"runType\": \"kFull\",\n                        \"startTimeUsecs\": 1680005307129287,\n                        \"endTimeUsecs\": 1680005335968165,\n                        \"queuedTimeUsecs\": 1680005029069406,\n                        \"isIncremental\": false,\n                        \"status\": \"Succeeded\",\n                        \"progressTaskId\": \"icebox_archive_4594155844987574_1679899218812_1438114\",\n                        \"stats\": {\n                            \"logicalSizeBytes\": 218353,\n                            \"logicalBytesTransferred\": 275222,\n                            \"physicalBytesTransferred\": 109051904,\n                            \"avgLogicalTransferRateBps\": 9829\n                        },\n                        \"isManuallyDeleted\": false,\n                        \"expiryTimeUsecs\": 1680091424062490\n                    }\n                ]\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kCassandra\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"fb99ccef-ad1a-4eff-aab0-af132fd61800"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"objects\": {","            \"title\": \"The objects Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            26","                        ]","                    },","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"/ifs/fileFolderRestoreTest\"","                        ]","                    },","                    \"sourceId\": {","                        \"title\": \"The sourceId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            1","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"objectType\": {","                        \"title\": \"The objectType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kMountPoint\"","                        ]","                    },","                    \"osType\": {","                        \"title\": \"The osType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kOther\"","                        ]","                    },","                    \"protectionStats\": {","                        \"title\": \"The protectionStats Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"isilonParams\": {","                        \"title\": \"The isilonParams Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"title\": \"The supportedNasMountProtocols Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"array\",","                                \"default\": [],","                                \"additionalItems\": true,","                                \"items\": {","                                    \"title\": \"A Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"examples\": [","                                        \"kNfs\",","                                        \"kSmb\"","                                    ]","                                },","                                \"examples\": [","                                    [\"kNfs\",","                                        \"kSmb\"","                                    ]","                                ]","                            }","                        },","                        \"examples\": [{","                            \"supportedNasMountProtocols\": [","                                \"kNfs\",","                                \"kSmb\"","                            ]","                        }]","                    },","                    \"latestSnapshotsInfo\": {","                        \"title\": \"The latestSnapshotsInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"archivalSnapshotsInfo\": {","                                    \"title\": \"The archivalSnapshotsInfo Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"indexingStatus\": {","                                    \"title\": \"The indexingStatus Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"Done\"","                                    ]","                                },","                                \"protectionGroupId\": {","                                    \"title\": \"The protectionGroupId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"6706421133980411:1668680031418:726\"","                                    ]","                                },","                                \"protectionGroupName\": {","                                    \"title\": \"The protectionGroupName Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"NAS_ProtectionJob\"","                                    ]","                                },","                                \"runInstanceId\": {","                                    \"title\": \"The runInstanceId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        729","                                    ]","                                },","                                \"storageDomainId\": {","                                    \"title\": \"The storageDomainId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        5","                                    ]","                                },","                                \"protectionRunId\": {","                                    \"title\": \"The protectionRunId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"726:1669113200103871\"","                                    ]","                                },","                                \"runType\": {","                                    \"title\": \"The runType Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"kRegular\"","                                    ]","                                },","                                \"protectionRunStartTimeUsecs\": {","                                    \"title\": \"The protectionRunStartTimeUsecs Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1669113200103871","                                    ]","                                },","                                \"localSnapshotInfo\": {","                                    \"title\": \"The localSnapshotInfo Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"snapshotId\": {","                                            \"title\": \"The snapshotId Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"default\": \"\",","                                            \"examples\": [","                                                \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                            ]","                                        },","                                        \"logicalSizeBytes\": {","                                            \"title\": \"The logicalSizeBytes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"default\": 0,","                                            \"examples\": [","                                                456233279","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                        \"logicalSizeBytes\": 456233279","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"archivalSnapshotsInfo\": null,","                                \"indexingStatus\": \"Done\",","                                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                                \"protectionGroupName\": \"NAS_ProtectionJob\",","                                \"runInstanceId\": 729,","                                \"storageDomainId\": 5,","                                \"protectionRunId\": \"726:1669113200103871\",","                                \"runType\": \"kRegular\",","                                \"protectionRunStartTimeUsecs\": 1669113200103871,","                                \"localSnapshotInfo\": {","                                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                    \"logicalSizeBytes\": 456233279","                                }","                            }]","                        },","                        \"examples\": [","                            [{","                                \"archivalSnapshotsInfo\": null,","                                \"indexingStatus\": \"Done\",","                                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                                \"protectionGroupName\": \"NAS_ProtectionJob\",","                                \"runInstanceId\": 729,","                                \"storageDomainId\": 5,","                                \"protectionRunId\": \"726:1669113200103871\",","                                \"runType\": \"kRegular\",","                                \"protectionRunStartTimeUsecs\": 1669113200103871,","                                \"localSnapshotInfo\": {","                                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                    \"logicalSizeBytes\": 456233279","                                }","                            }]","                        ]","                    },","                    \"sourceInfo\": {","                        \"title\": \"The sourceInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"id\": {","                                \"title\": \"The id Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1","                                ]","                            },","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"title\": \"The environment Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"title\": \"The objectType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"id\": 1,","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\"","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"osType\": \"kOther\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": [","                            \"kNfs\",","                            \"kSmb\"","                        ]","                    },","                    \"latestSnapshotsInfo\": [{","                        \"archivalSnapshotsInfo\": null,","                        \"indexingStatus\": \"Done\",","                        \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                        \"protectionGroupName\": \"NAS_ProtectionJob\",","                        \"runInstanceId\": 729,","                        \"storageDomainId\": 5,","                        \"protectionRunId\": \"726:1669113200103871\",","                        \"runType\": \"kRegular\",","                        \"protectionRunStartTimeUsecs\": 1669113200103871,","                        \"localSnapshotInfo\": {","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"logicalSizeBytes\": 456233279","                        }","                    }],","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\"","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"osType\": \"kOther\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": [","                            \"kNfs\",","                            \"kSmb\"","                        ]","                    },","                    \"latestSnapshotsInfo\": [{","                        \"archivalSnapshotsInfo\": null,","                        \"indexingStatus\": \"Done\",","                        \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                        \"protectionGroupName\": \"NAS_ProtectionJob\",","                        \"runInstanceId\": 729,","                        \"storageDomainId\": 5,","                        \"protectionRunId\": \"726:1669113200103871\",","                        \"runType\": \"kRegular\",","                        \"protectionRunStartTimeUsecs\": 1669113200103871,","                        \"localSnapshotInfo\": {","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"logicalSizeBytes\": 456233279","                        }","                    }],","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\"","                    }","                }]","            ]","        },","        \"numResults\": {","            \"title\": \"The numResults Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1","            ]","        },","        \"metadata\": {","            \"title\": \"The metadata Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"uniqueProtectionGroupIdentifiers\": {","                    \"title\": \"The uniqueProtectionGroupIdentifiers Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"protectionGroupName\": {","                                \"title\": \"The protectionGroupName Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"NAS_ProtectionJob\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\"","                        }]","                    },","                    \"examples\": [","                        [{","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\"","                        }]","                    ]","                }","            },","            \"examples\": [{","                \"uniqueProtectionGroupIdentifiers\": [{","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"protectionGroupName\": \"NAS_ProtectionJob\"","                }]","            }]","        }","    },","    \"examples\": [{","        \"objects\": [{","            \"id\": 26,","            \"name\": \"/ifs/fileFolderRestoreTest\",","            \"sourceId\": 1,","            \"environment\": \"kIsilon\",","            \"objectType\": \"kMountPoint\",","            \"osType\": \"kOther\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": [","                    \"kNfs\",","                    \"kSmb\"","                ]","            },","            \"latestSnapshotsInfo\": [{","                \"archivalSnapshotsInfo\": null,","                \"indexingStatus\": \"Done\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\",","                \"runInstanceId\": 729,","                \"storageDomainId\": 5,","                \"protectionRunId\": \"726:1669113200103871\",","                \"runType\": \"kRegular\",","                \"protectionRunStartTimeUsecs\": 1669113200103871,","                \"localSnapshotInfo\": {","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"logicalSizeBytes\": 456233279","                }","            }],","            \"sourceInfo\": {","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\"","            }","        }],","        \"numResults\": 1,","        \"metadata\": {","            \"uniqueProtectionGroupIdentifiers\": [{","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\"","            }]","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"8229f725-1a3e-486d-aa98-edb40746fb22"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"af31d4aa-4ac3-4ca8-8fb2-4b6e083d1461"}}],"id":"2f16e4e9-e491-45c4-b16e-609a552b777e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionGroupId}}&environments=kCassandra","description":"<p>Returns information including the snapshot IDs of the Cassandra objects that are being protected in the Protection Group specified in the API URL.</p>\n<p>The Protection Group ID (<code>protectionGroupId</code>) of the protection Group to be specified in the API URL can be fetched from the <strong>Create Protection Group</strong> API response</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionGroupId}}"},{"key":"environments","value":"kCassandra"}],"variable":[]}},"response":[{"id":"8fa0bba0-626b-4ec6-aa22-3866630f94ed","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds=4594155844987574:1679899218812:880&environments=kCassandra","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","search","protected-objects"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"4594155844987574:1679899218812:880"},{"key":"environments","value":"kCassandra"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9998"},{"key":"X-Ratelimit-Reset","value":"1680006280"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 28 Mar 2023 12:24:39 GMT"},{"key":"Content-Length","value":"714"}],"cookie":[],"responseTime":null,"body":"{\n    \"objects\": [\n        {\n            \"id\": 11746,\n            \"name\": \"{{Cassandra_name}}\",\n            \"sourceId\": 11746,\n            \"environment\": \"kCassandra\",\n            \"objectType\": \"kCluster\",\n            \"uuid\": \"{{uuid}}\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": [\n                        {\n                            \"snapshotId\": \"{{snashotId}}\",\n                            \"logicalSizeBytes\": 0,\n                            \"targetId\": 1276424,\n                            \"archivalTaskId\": \"4594155844987574:1679899218812:1438114\",\n                            \"targetName\": \"aws_s3_standard_target\",\n                            \"targetType\": \"Cloud\",\n                            \"ownershipContext\": \"Local\",\n                            \"tierSettings\": {\n                                \"cloudPlatform\": null\n                            }\n                        }\n                    ],\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n                    \"protectionGroupName\": \"{{ProtectionGroupName}}\",\n                    \"runInstanceId\": 881,\n                    \"storageDomainId\": 33,\n                    \"protectionRunId\": \"880:1680005024062490\",\n                    \"runType\": \"kFull\",\n                    \"protectionRunStartTimeUsecs\": 1680005024062490,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snashotId}}\",\n                        \"logicalSizeBytes\": 0\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 11746,\n                \"Name\": \"{{Cassandra_name}}\",\n                \"sourceId\": 11746,\n                \"environment\": \"kCassandra\",\n                \"objectType\": \"kCluster\",\n                \"uuid\": \"{{uuid}}\"\n            }\n        }\n    ],\n    \"numResults\": 1,\n    \"metadata\": {\n        \"uniqueProtectionGroupIdentifiers\": [\n            {\n                \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n                \"protectionGroupName\": \"{{ProtectionGroupName}}\"\n            }\n        ]\n    }\n}\n\n"}],"_postman_id":"2f16e4e9-e491-45c4-b16e-609a552b777e"},{"name":"Get Indexed Objects","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    var object_name = pm.environment.get('object');","    for (var i = 0; i < jsonData.cassandraObjects.length; i++) {","        if (jsonData.cassandraObjects[i].name == object_name) {","            pm.environment.set(\"object_name\", jsonData.cassandraObjects[i].name);","        }","    }","});"],"type":"text/javascript","id":"575e3512-736f-4ded-9412-1c9e30258f9a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"25d2bebe-92cc-48e8-8edd-ffb4391ec844"}}],"id":"5b718ca1-abfd-41aa-a38a-2c0c42aa78d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"cassandraParams\": {\n    \"cassandraObjectTypes\": [\n      \"CassandraTables\"\n    ],\n    \"searchString\": \"*\",\n    \"sourceIds\": [11746]\n  },\n  \"objectType\": \"CassandraObjects\",\n  \"protectionGroupIds\": [\n    \"4594155844987574:1679899218812:880\"\n  ],\n  \"storageDomainIds\": [\n    33\n  ]\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/search/indexed-objects","description":"<p>Returns information on the objects that are available for recovery.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li>The source ID (<code>sourceIds</code>) to be specified in the request body can be fetched from the <strong>Register Cassandra Source</strong> API response.</li>\n<li>The Protection Group ID (protectionGroupIds) to be specified in the request body can be fetched from the <strong>Create Protection Group</strong> API response.</li>\n<li>The storage Domain ID (<code>storageDomainIds</code>) specified in the request body can be fetched from the <strong>Get Storage Domain List</strong> API response.</li>\n</ul>\n<p>From the API response, you can fetch the object name which is required for running the <strong>Recover Cassandra Objects</strong> API.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"004ca6d8-0f63-4e5d-a6a5-dbd84ae606dc","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"cassandraParams\": {\n    \"cassandraObjectTypes\": [\n      \"CassandraTables\"\n    ],\n    \"searchString\": \"*\",\n    \"sourceIds\": [11746]\n  },\n  \"objectType\": \"CassandraObjects\",\n  \"protectionGroupIds\": [\n    \"4594155844987574:1679899218812:880\"\n  ],\n  \"storageDomainIds\": [\n    33\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/data-protect/search/indexed-objects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1680007469"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 28 Mar 2023 12:44:28 GMT"},{"key":"Content-Length","value":"355"}],"cookie":[],"responseTime":null,"body":"{\n    \"objectType\": \"CassandraObjects\",\n    \"cassandraObjects\": [\n        {\n            \"name\": \"ATUsers_Roles_Permissions_P11.taba1\",\n            \"path\": \"ATUsers_Roles_Permissions_P11.taba1\",\n            \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n            \"storageDomainId\": 33,\n            \"sourceInfo\": {\n                \"id\": 11746,\n                \"name\": \"{{Cassandra_name}}\",\n                \"sourceId\": 11746,\n                \"environment\": \"kCassandra\",\n                \"objectType\": \"kCluster\"\n            },\n            \"tags\": null,\n            \"snapshotTags\": null,\n            \"type\": \"CassandraTables\",\n            \"id\": \"{{id}}\"\n        },\n        {\n            \"name\": \"ATUsers_Roles_Permissions_P11.tabd1\",\n            \"path\": \"ATUsers_Roles_Permissions_P11.tabd1\",\n            \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n            \"storageDomainId\": 33,\n            \"sourceInfo\": {\n                \"id\": 11746,\n                \"name\": \"{{Cassandra_name}}\",\n                \"sourceId\": 11746,\n                \"environment\": \"kCassandra\",\n                \"objectType\": \"kCluster\"\n            },\n            \"tags\": null,\n            \"snapshotTags\": null,\n            \"type\": \"CassandraTables\",\n            \"id\": \"{{Id}}\"\n        },\n        {\n            \"name\": \"ATUsers_Roles_Permissions_P11.tabc1\",\n            \"path\": \"ATUsers_Roles_Permissions_P11.tabc1\",\n            \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n            \"storageDomainId\": 33,\n            \"sourceInfo\": {\n                \"id\": 11746,\n                \"name\": \"{{Cassandra_name}}\",\n                \"sourceId\": 11746,\n                \"environment\": \"kCassandra\",\n                \"objectType\": \"kCluster\"\n            },\n            \"tags\": null,\n            \"snapshotTags\": null,\n            \"type\": \"CassandraTables\",\n            \"id\": \"{{Id}}\"\n        },\n        {\n            \"name\": \"ATUsers_Roles_Permissions_P11.tabb1\",\n            \"path\": \"ATUsers_Roles_Permissions_P11.tabb1\",\n            \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n            \"storageDomainId\": 33,\n            \"sourceInfo\": {\n                \"id\": 11746,\n                \"name\": \"{{Cassandra_name}}\",\n                \"sourceId\": 11746,\n                \"environment\": \"kCassandra\",\n                \"objectType\": \"kCluster\"\n            },\n            \"tags\": null,\n            \"snapshotTags\": null,\n            \"type\": \"CassandraTables\",\n            \"id\": \"/QVRVc2Vyc19Sb2xlc19QZXJtaXNzaW9uc19QMTE/dGFiYjE/0\"\n        }\n    ]\n}\n\n"}],"_postman_id":"5b718ca1-abfd-41aa-a38a-2c0c42aa78d7"},{"name":"Recover Cassandra Objects","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","     pm.environment.set(\"restoreId\", jsonData.id)","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.mongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots).to.be.an('array')","    for (var i=0; i<jsonData.mongodbParams.recoverMongodbParams.snapshots.length; i++) {","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects).to.be.an('array')","        for (var j=0; j<jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects.length; j++) {","            pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects[j].objectName).to.be.a('string')","        }","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotId).to.be.a('string')","    }","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.overwrite).to.be.a('boolean')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.recoverTo).to.be.a('number')","","","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"86f6a25d-e744-4e7b-890f-f5f279c04e7a"}}],"id":"235abce5-29e6-4381-8a25-022c77f98d5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"{{Recover_task_name}}\",\n  \"snapshotEnvironment\": \"kCassandra\",\n  \"cassandraParams\": {\n    \"recoveryAction\": \"RecoverObjects\",\n    \"recoverCassandraParams\": {\n      \"overwrite\": true,\n      \"concurrency\": null,\n      \"bandwidthMBPS\": null,\n      \"snapshots\": [\n        {\n          \"snapshotId\": \"{{snapshotId}}\",\n          \"objects\": [\n            {\n              \"objectName\": \"{{object_name}}\",\n              \"objectProperties\": []\n            }\n          ]\n        }\n      ],\n      \"recoverTo\": {{targetId}},\n      \"suffix\": null\n    }\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries","description":"<p>Recover the objects specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID (<code>snapshotId</code>) from which you want to recover the specified object.</li>\n<li>The name of the objects (<code>objectName</code>) you want to recover.</li>\n<li>The ID of the target to which the object will be recovered.</li>\n</ul>\n<p>The restore ID from the response is required to check the status of the recovery task.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"a62f30be-2f3f-4335-b2b4-4862b8f6440c","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"Recovery_{{protectionJobName}}\",\n  \"snapshotEnvironment\": \"kCassandra\",\n  \"cassandraParams\": {\n    \"recoveryAction\": \"RecoverObjects\",\n    \"recoverCassandraParams\": {\n      \"overwrite\": true,\n      \"concurrency\": null,\n      \"bandwidthMBPS\": null,\n      \"snapshots\": [\n        {\n          \"snapshotId\": \"{{snapshotId}}\",\n          \"objects\": [\n            {\n              \"objectName\": \"{{object_name}}\",\n              \"objectProperties\": []\n            }\n          ]\n        }\n      ],\n      \"recoverTo\": {{sourceId1}},\n      \"suffix\": null\n    }\n  }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/recoveries"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"4594155844987574:1679899218812:938\",\n  \"name\": \"{{Recover_task_name}}\",\n  \"startTimeUsecs\": 1680007847448843,\n  \"status\": \"Accepted\",\n  \"snapshotEnvironment\": \"kCassandra\",\n  \"recoveryAction\": \"RecoverObjects\",\n  \"permissions\": [],\n  \"creationInfo\": {\n    \"userName\": \"{{username}}\"\n  },\n  \"canTearDown\": false,\n  \"messages\": null,\n  \"retrieveArchiveTasks\": null,\n  \"isMultiStageRestore\": false,\n  \"cassandraParams\": {\n    \"recoveryAction\": \"RecoverObjects\",\n    \"recoverCassandraParams\": {\n      \"recoverTo\": 11667,\n      \"overwrite\": false,\n      \"warnings\": null,\n      \"snapshots\": [\n        {\n          \"snapshotId\": \"{{snapshotId}}\",\n          \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n          \"snapshotCreationTimeUsecs\": 1680005024062490,\n          \"snapshotTargetType\": \"Local\",\n          \"storageDomainId\": 33,\n          \"progressTaskId\": \"\",\n          \"messages\": null,\n          \"objectInfo\": {\n            \"id\": 11746,\n            \"name\": \"{{Cassandra_name}}\",\n            \"sourceId\": 11746,\n            \"sourceName\": \"{{Cassandra_sourcename}}\",\n            \"environment\": \"kCassandra\",\n            \"objectType\": \"kCluster\",\n            \"uuid\": \"{{uuid}}\"\n          },\n          \"objects\": [\n            {\n              \"objectName\": \"ATUsers_Roles_Permissions_P11.taba1\",\n              \"objectProperties\": null\n            }\n          ]\n        }\n      ],\n      \"selectedDataCenters\": null,\n      \"stagingDirectoryList\": null,\n      \"RestartServices\": false\n    }\n  }\n}"}],"_postman_id":"235abce5-29e6-4381-8a25-022c77f98d5c"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","var response = pm.response.json()","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.progressTaskId).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","","    if (jsonData.status === \"Running\") {","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status V2\");","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:745\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115603532122","            ]","        },","        \"endTimeUsecs\": {","            \"title\": \"The endTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115609532809","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Succeeded\"","            ]","        },","        \"progressTaskId\": {","            \"title\": \"The progressTaskId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"restore_files_745\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"protectionGroupName\": {","                                \"title\": \"The protectionGroupName Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"NAS_ProtectionJob\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/directory2/7606d3f6466114916c4a304b7f28527f\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"Finished\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                                    \"isDirectory\": false,","                                    \"status\": \"Finished\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                                    \"isDirectory\": false,","                                    \"status\": \"Finished\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                            \"isDirectory\": false,","                            \"status\": \"Finished\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                        \"isDirectory\": false,","                        \"status\": \"Finished\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:745\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115603532122,","        \"endTimeUsecs\": 1669115609532809,","        \"status\": \"Succeeded\",","        \"progressTaskId\": \"restore_files_745\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                    \"isDirectory\": false,","                    \"status\": \"Finished\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"301fb5b7-64a4-4458-ac5f-1c97ee3be77d"}}],"id":"896413d2-76dd-444a-a990-eff7020f56b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/data-protect/recoveries/{{restoreId}}","description":"<p>Returns the status of the recovery task.</p>\n<p>You can fetch the restore ID (<code>restoreId</code>) to be specified in the API URL from the <strong>Recover Cassandra Objects</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"2a2b27a6-1223-4c87-a879-185099e72310","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/recoveries/4594155844987574:1679899218812:938"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1680009421"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 28 Mar 2023 13:17:00 GMT"},{"key":"Content-Length","value":"763"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4594155844987574:1679899218812:938\",\n    \"name\": \"{{Recover_task_name}}\",\n    \"startTimeUsecs\": 1680007847448843,\n    \"endTimeUsecs\": 1680008125490244,\n    \"status\": \"Succeeded\",\n    \"progressTaskId\": \"recover_938\",\n    \"snapshotEnvironment\": \"kCassandra\",\n    \"recoveryAction\": \"RecoverObjects\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"{{username}}\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"retrieveArchiveTasks\": null,\n    \"isMultiStageRestore\": false,\n    \"cassandraParams\": {\n        \"recoveryAction\": \"RecoverObjects\",\n        \"recoverCassandraParams\": {\n            \"recoverTo\": 11667,\n            \"overwrite\": false,\n            \"warnings\": null,\n            \"snapshots\": [\n                {\n                    \"snapshotId\": \"{{snapshotId}}\",\n                    \"protectionGroupId\": \"4594155844987574:1679899218812:880\",\n                    \"protectionGroupName\": \"{{ProtectionGroupName}}\",\n                    \"snapshotCreationTimeUsecs\": 1680005024062490,\n                    \"snapshotTargetType\": \"Local\",\n                    \"storageDomainId\": 33,\n                    \"progressTaskId\": \"recover_938\",\n                    \"status\": \"Succeeded\",\n                    \"startTimeUsecs\": 1680007848000000,\n                    \"endTimeUsecs\": 1680008126000000,\n                    \"messages\": null,\n                    \"objectInfo\": {\n                        \"id\": 11746,\n                        \"name\": \"{{Cassandra_name}}\",\n                        \"sourceId\": 11746,\n                        \"sourceName\": \"{{Cassandra_sourcename}}\",\n                        \"environment\": \"kCassandra\",\n                        \"objectType\": \"kCluster\",\n                        \"uuid\": \"{{uuid}}\"\n                    },\n                    \"objects\": [\n                        {\n                            \"objectName\": \"ATUsers_Roles_Permissions_P11.taba1\",\n                            \"objectProperties\": null\n                        }\n                    ]\n                }\n            ],\n            \"selectedDataCenters\": null,\n            \"stagingDirectoryList\": null,\n            \"RestartServices\": false\n        }\n    }\n}\n"}],"_postman_id":"896413d2-76dd-444a-a990-eff7020f56b3"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"e485e12a-041c-45a3-bd27-62052b463742"}}],"id":"1a0009ff-a012-4c9f-b0cc-4e870221c747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGrouId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>The <code>protectionGrouId</code> of the Protection Group to be deleted must be specified in the API URL.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGrouId}}"],"host":["{{cluster_vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"aa8b65c5-770e-4c25-a28a-e5c51db21a6a","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGrouId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{protectionGrouId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"1a0009ff-a012-4c9f-b0cc-4e870221c747"},{"name":"Unregister External Target","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"c3b1f09b-7d14-4f8b-a35c-667f00577c04"}}],"id":"e13be8a3-7b9b-4f58-a459-07ef912f5010","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/vaults/{{ExternalTargetID}}","description":"<p>Unregisters the external target from the Cohesity cluster.</p>\n<p>The ID (<code>ExternalTargetID</code>) of the external target to be unregistered must be specified in the API URL.</p>\n<p>You can fetch the <code>ExternalTargetID</code> to be specified in the API URL from the <strong>Register External Target</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","vaults","{{ExternalTargetID}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"4f11cc50-ff20-45bc-89a5-9e509c0a6ded","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGrouId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{protectionGrouId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e13be8a3-7b9b-4f58-a459-07ef912f5010"},{"name":"Unregister Remote Cluster","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"e185ca33-e76a-41aa-921e-2fde9d60702d"}}],"id":"4d9cd7b9-6956-4160-9d5f-b59d52f1a50a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/remoteClusters/{{remote_clusterID}}","description":"<p>Unregisters the remote cluster from this Cohesity cluster.</p>\n<p>The ID (<code>remote_clusterID</code>) of the remoter clluster to be unregistered must be specified in the API URL.</p>\n<p>You can fetch the <code>remote_clusterID</code> to be specified in the API URL from the <strong>Register Remote Cluster</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","remoteClusters","{{remote_clusterID}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"7f2a2a7e-7167-4f9a-9a1e-b7fc11f79f20","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGrouId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{protectionGrouId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4d9cd7b9-6956-4160-9d5f-b59d52f1a50a"},{"name":"Unregister Cassandra Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"078ec9f1-5a61-4bc2-8d06-aa42e28bca39"}}],"id":"cd2c1b11-46d2-41ed-8e28-e1774300f621","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceId}}","description":"<p>Unregisters the Cassandra database from this Cohesity cluster.</p>\n<p>The ID (<code>sourceId</code>) of the Cassandra source to be unregistered must be specified in the API URL.</p>\n<p>You can fetch the <code>sourceId</code> to be specified in the API URL from the <strong>Register Cassandra Source</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ca9fea3f-182f-4048-9d76-337114910d43","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGrouId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{protectionGrouId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"cd2c1b11-46d2-41ed-8e28-e1774300f621"}],"id":"1db3a3d3-f4ec-4290-b851-b746390bbb6b","_postman_id":"1db3a3d3-f4ec-4290-b851-b746390bbb6b","description":""},{"name":"DataProtect-Couchbase","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"dbc6f287-b95a-40e0-9ee2-72c5f6ae7911"}}],"id":"7c80260c-9176-432a-a04b-4181e0d2c29d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c80260c-9176-432a-a04b-4181e0d2c29d"},{"name":"Register Couchbase Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Source Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","if(responseCode.code !== 201) {\r","    postman.setNextRequest(null);\r","}\r","\r","else {\r","    pm.test(\"Validating response and fetch registration id\", function () {\r","        var jsonData = pm.response.json();\r","        pm.environment.set(\"sourceId\", jsonData.id);\r","    });\r","}"],"type":"text/javascript","id":"bde29306-08d7-4fd9-b23b-7995b7ceedd1"}}],"id":"6cbdb90f-e13c-443c-a5cd-3980f4e4b300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"environment\": \"kCouchbase\",\r\n  \"connectionId\": 0,\r\n  \"couchbaseParams\": {\r\n    \"username\": \"{{couchbase_username}}\",\r\n    \"password\": \"{{couchbase_password}}\",\r\n    \"seeds\": [\r\n      \"{{couchbase_nodes}}\"\r\n    ],\r\n    \"isSslRequired\": false,\r\n    \"httpPort\": 8091,\r\n    \"carrierPort\": 11207\r\n  }\r\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cbdb90f-e13c-443c-a5cd-3980f4e4b300"},{"name":"Get Sources Info Using V1","id":"1bb1fff5-819c-4d76-8b7a-0c4f5eb4f08c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/registrationInfo?includeEntityPermissionInfo=true&allUnderHierarchy=false","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","registrationInfo"],"host":["{{cluster}}"],"query":[{"key":"includeEntityPermissionInfo","value":"true"},{"key":"allUnderHierarchy","value":"false"}],"variable":[]}},"response":[],"_postman_id":"1bb1fff5-819c-4d76-8b7a-0c4f5eb4f08c"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Validating response, fetch policy id\", function () {\r","    var jsonData = pm.response.json();\r","    if (jsonData.policies === null || jsonData.policies === undefined){\r","        postman.setNextRequest(\"Create protection policy\");\r","    }\r","    else {\r","        for (var i=0; i< jsonData.policies.length; i++) {\r","            pm.expect(jsonData.policies[i].name).to.be.a('string');\r","            pm.expect(jsonData.policies[i].id).to.be.a('string');\r","            if (jsonData.policies[i].retryOptions !== undefined){\r","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');\r","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');\r","            }\r","            if (jsonData.policies[i].backupPolicy !== undefined){\r","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")\r","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")\r","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){\r","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")\r","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")\r","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")\r","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {\r","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")\r","                    }\r","                }\r","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){\r","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")\r","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");\r","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");\r","                }\r","            }\r","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);\r","        }\r","        postman.setNextRequest(\"Get Storage Domains\");\r","    }\r","});"],"type":"text/javascript","id":"3be56417-7355-4e96-a535-00471a8ed9c2"}}],"id":"a738094e-ab4b-4e23-aac4-85f99885b088","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a738094e-ab4b-4e23-aac4-85f99885b088"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","if(responseCode.code !== 201) {\r","    postman.setNextRequest(null);\r","}\r","\r","pm.test(\"Validating response, fetch policy id\", function () {\r","    var jsonData = pm.response.json();\r","    pm.environment.set(\"policyId\", jsonData.id);\r","    pm.expect(jsonData.name).to.be.a(\"string\")\r","    pm.expect(jsonData.id).to.be.a(\"string\")\r","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")\r","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")\r","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")\r","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")\r","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")\r","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")\r","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")\r","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")\r","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)\r","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")\r","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");\r","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);\r","    \r","    \r","});"],"type":"text/javascript","id":"7548d6c0-9af0-494d-b520-2b4c3e329207"}}],"id":"616ebe20-d74f-4ab2-acde-8bfc08ed8ba9","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"backupPolicy\": {\r\n    \"regular\": {\r\n      \"incremental\": {\r\n        \"schedule\": {\r\n          \"unit\": \"Days\",\r\n          \"daySchedule\": {\r\n            \"frequency\": 1\r\n          }\r\n        }\r\n      },\r\n      \"retention\": {\r\n        \"unit\": \"Days\",\r\n        \"duration\": 14\r\n      }\r\n    }\r\n  },\r\n  \"name\": \"{{policyName}}\",\r\n  \"description\": \"Policy for newman automation\",\r\n  \"remoteTargetPolicy\": {},\r\n  \"retryOptions\": {\r\n    \"retries\": 3,\r\n    \"retryIntervalMins\": 5\r\n  }\r\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"616ebe20-d74f-4ab2-acde-8bfc08ed8ba9"},{"name":"Get Storage Domain","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;\r","\r","\r","var jsonData = JSON.parse(responseBody);\r","if (jsonData !== null) {\r","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);\r","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");\r","    for (var i = 0; i < jsonData.storageDomains.length; i++) {\r","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");\r","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");\r","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");\r","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");\r","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");\r","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");\r","    }\r","}"],"type":"text/javascript","id":"244e4af5-4b17-474b-981a-e998c6d18b56"}}],"id":"bb8dae4f-a545-47e4-ab97-ace67a653114","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb8dae4f-a545-47e4-ab97-ace67a653114"},{"name":"Get Object Id","event":[{"listen":"test","script":{"exec":["tests[\"Fetching objects, Status code is 200\"] = responseCode.code === 200;\r","var jsonData = JSON.parse(responseBody);\r","\r","pm.test(\"Status code is 200\", function () {\r","    var collection = pm.environment.get('bucket')\r","    if (jsonData !== undefined && jsonData.objects.length > 0) {\r","        for (var i = 0; i < jsonData.objects.length; i++) {\r","            if (jsonData.objects[i].name === collection) {\r","                pm.environment.set(\"objectId\", jsonData.objects[i].id);\r","                pm.environment.set(\"parentId\", jsonData.objects[i].sourceId);\r","                postman.setNextRequest(\"Create Protection Group\");\r","            }\r","        }\r","    }\r","})"],"type":"text/javascript","id":"f6dec09a-417f-4331-8dc7-59928141c936"}}],"id":"65a53c82-4f7e-4b98-8fe5-60db4d468686","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/sources/{{sourceId}}/objects","urlObject":{"protocol":"https","path":["v2","data-protect","sources","{{sourceId}}","objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"65a53c82-4f7e-4b98-8fe5-60db4d468686"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","    var jsonData = pm.response.json();\r","    pm.environment.set(\"protectionJobId\", jsonData.id);\r","    pm.environment.set(\"protectionJobName\", jsonData.name);\r","    pm.expect(jsonData.sla).to.be.an('array')\r","    for (var i=0; i<jsonData.sla.length; i++) {\r","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')\r","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')\r","    }\r","    for (var i=0; i<jsonData.sla.length; i++) {\r","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')\r","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')\r","    }\r","    pm.expect(jsonData.description).to.be.a('string')\r","    pm.expect(jsonData.startTime).to.be.an('object')\r","    pm.expect(jsonData.startTime.minute).to.be.a('number')\r","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')\r","    pm.expect(jsonData.startTime.hour).to.be.a('number')\r","    pm.expect(jsonData.isActive).to.be.a('boolean')\r","    pm.expect(jsonData.alertPolicy).to.be.an('object')\r","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')\r","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')\r","    pm.expect(jsonData.priority).to.be.a('string')\r","    pm.expect(jsonData.environment).to.be.a('string')\r","    pm.expect(jsonData.id).to.be.a('string')\r","    pm.expect(jsonData.policyId).to.be.a('string')\r","    pm.expect(jsonData.isPaused).to.be.a('boolean')\r","    pm.expect(jsonData.mongodbParams).to.be.an('object')\r","    pm.expect(jsonData.mongodbParams.concurrency).to.be.a('number')\r","    pm.expect(jsonData.mongodbParams.objects).to.be.an('array')\r","    for (var i=0; i<jsonData.mongodbParams.objects.length; i++) {\r","        pm.expect(jsonData.mongodbParams.objects[i].name).to.be.a('string')\r","        pm.expect(jsonData.mongodbParams.objects[i].id).to.be.a('number')\r","        }\r","    pm.expect(jsonData.mongodbParams.sourceId).to.be.a('number')\r","    pm.expect(jsonData.mongodbParams.sourceName).to.be.a('string')\r","    pm.expect(jsonData.storageDomainId).to.be.a('number')\r","    pm.expect(jsonData.name).to.be.a('string')\r","});"],"type":"text/javascript","id":"a6688821-1371-494a-992f-016cd35f332b"}}],"id":"fd9dd730-b6b5-4ecd-bdde-1f242764ced2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"name\":\"{{protectionJobName}}_960\",\r\n   \"policyId\":\"{{policyId}}\",\r\n   \"environment\":\"kCouchbase\",\r\n   \"storageDomainId\": {{viewBoxId}},\r\n   \"couchbaseParams\":{\r\n      \"objects\":[\r\n         {\r\n            \"id\": {{objectId}}\r\n         }\r\n      ]\r\n   }\r\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd9dd730-b6b5-4ecd-bdde-1f242764ced2"},{"name":"Run Now Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","pm.test(\"Status code is 202\", function () {\r","    sleep(5000);\r","});"],"type":"text/javascript","id":"ee0b15ec-e46e-4a49-9ae2-c18e722d281b"}}],"id":"7bc0ab6e-7f29-402f-995f-88112ef91c7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"runType\":\"kRegular\"\r\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7bc0ab6e-7f29-402f-995f-88112ef91c7e"},{"name":"Get Protection Group  Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","var job_id = pm.environment.get(\"protectionJobId\");\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","pm.test(\"Validating response\", function () {\r","    var resp = pm.response.json();\r","    var status = resp.runs[0].localBackupInfo.status;\r","    pm.environment.set(\"status\", status)\r","    if (status === \"Running\"){\r","        // Sleep for 15 seconds.\r","        sleep(15000);\r","    }\r","    else {\r","        // Sleep for 15 seconds.\r","        sleep(15000);\r","        jsonData = resp.runs;\r","        console.log(jsonData);\r","        for (var i=0; i<jsonData.length; i++) {\r","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')\r","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')\r","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')\r","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')\r","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')\r","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')\r","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')\r","            pm.expect(jsonData[i].id).to.be.a('string')\r","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')\r","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')\r","            pm.expect(jsonData[i].environment).to.be.a('string')\r","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')\r","            pm.expect(jsonData[i].permissions).to.be.a('array')\r","        }\r","    }\r","});"],"type":"text/javascript","id":"33222ccf-c89c-49a4-98e0-a9211df9511e"}}],"id":"f92a690c-7a4e-4e86-8961-4df16e2c8687","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f92a690c-7a4e-4e86-8961-4df16e2c8687"},{"name":"Get Snapshot","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","pm.test(\"Validating response\", function () {\r","    var jsonData = pm.response.json();\r","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);\r","});"],"type":"text/javascript","id":"c47c89f9-a037-454e-a6c5-0e483d7ebc20"}}],"id":"c5f496ef-5198-4dd6-8886-1045ce1fd3a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kCouchbase","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kCouchbase"}],"variable":[]}},"response":[],"_postman_id":"c5f496ef-5198-4dd6-8886-1045ce1fd3a5"},{"name":"ProtectionGroup Run Snashots","id":"0223f474-e513-40bf-9b58-ce3a5b65e360","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/objects/{{SourceId}}/snapshots?protectionGroupIds={{protectionJobId}}","description":"<p>If user wants to recover older snapshot run, this call is used to get the all snapshots of Protection group runs .</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{SourceId}}","snapshots"],"host":["{{cluster}}"],"query":[{"key":"protectionGroupIds","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"0223f474-e513-40bf-9b58-ce3a5b65e360"},{"name":"Recovery Using ProtectionGroup","event":[{"listen":"test","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","pm.test(\"Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","pm.test(\"Validating response\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.permissions).to.be.an('array')\r","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')\r","    pm.expect(jsonData.name).to.be.a('string')\r","    pm.expect(jsonData.canTearDown).to.be.a('boolean')\r","    pm.expect(jsonData.creationInfo).to.be.an('object')\r","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')\r","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')\r","    pm.expect(jsonData.status).to.be.a('string')\r","    pm.expect(jsonData.id).to.be.a('string')\r","    pm.expect(jsonData.recoveryAction).to.be.a('string')\r","    pm.expect(jsonData.couchbaseParams).to.be.an('object')\r","    pm.expect(jsonData.couchbaseParams.recoveryAction).to.be.a('string')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams).to.be.an('object')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots).to.be.an('array')\r","    for (var i=0; i<jsonData.couchbaseParams.recoverCouchbaseParams.snapshots.length; i++) {\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo).to.be.an('object')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.name).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.uuid).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.sourceName).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.id).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.environment).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.objectType).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].protectionGroupId).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].storageDomainId).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects).to.be.an('array')\r","        for (var j=0; j<jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects.length; j++) {\r","            pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects[j].objectName).to.be.a('string')\r","        }\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].progressTaskId).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotCreationTimeUsecs).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotTargetType).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotId).to.be.a('string')\r","    }\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.overwrite).to.be.a('boolean')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.recoverTo).to.be.a('number')\r","\r","\r","    pm.environment.set(\"restoreId\", jsonData.id)\r","    sleep(30000)\r","});"],"type":"text/javascript","id":"a99700ad-0ec6-4b28-92ea-d5fdddb8ce31"}}],"id":"337a8b88-43a3-4a58-ab06-97634d34fb85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Recovery_{{protectionJobName}}\",\r\n  \"snapshotEnvironment\": \"kCouchbase\",\r\n  \"couchbaseParams\": {\r\n    \"recoveryAction\": \"RecoverObjects\",\r\n    \"recoverCouchbaseParams\": {\r\n      \"recoverTo\": {{sourceId}},\r\n      \"overwrite\": true,\r\n      \"concurrency\": 0,\r\n      \"bandwidthMBPS\": 0,\r\n      \"snapshots\": [\r\n        {\r\n          \"snapshotId\": \"{{snapshotId}}\",\r\n          \"pointInTimeUsecs\": 0,\r\n          \"protectionGroupId\": \"{{protectionJobId}}\",\r\n          \"protectionGroupName\": \"{{protectionJobName}}\",\r\n          \"objects\": [ ]\r\n          ]\r\n        }\r\n      ],\r\n      \"suffix\": \"{{suffixString}}\",\r\n      \"filterDocumentsParams\": {\r\n        \"documentFilterType\": \"NONE\",\r\n        \"idRegex\": \"string\",\r\n        \"filterExpression\": \"string\"\r\n      },\r\n      \"appendDocuments\": false,\r\n      \"ddlOnlyRecovery\": false,\r\n      \"overwriteUsers\": false\r\n    }\r\n  }\r\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"337a8b88-43a3-4a58-ab06-97634d34fb85"},{"name":"Search Indexed Objects","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","pm.test(\"Validating response\", function () {\r","    var jsonData = pm.response.json();\r","    pm.environment.set(\"bucketName\", jsonData.couchbaseObjects.name);\r","    pm.environment.set(\"IndexedObjectId\", jsonData.couchbaseObjects.id);\r","});"],"type":"text/javascript","id":"6ec270e3-611e-48d7-9337-0f9aedcc7c84"}}],"id":"6b099155-b3cf-4903-84b7-1542748331f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"couchbaseParams\":\r\n  {\"couchbaseObjectTypes\":[\"CouchbaseBuckets\"],\r\n   \"searchString\":\"*\",\r\n   \"sourceIds\":[{{sourceId}}]\r\n   },\r\n  \"objectType\":\"CouchbaseObjects\",\r\n  \"protectionGroupIds\":[],\r\n  \"storageDomainIds\":[]\r\n  }"},"url":"https://{{cluster}}/v2/data-protect/search/indexed-objects","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b099155-b3cf-4903-84b7-1542748331f8"},{"name":"Get Indexed Object Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","pm.test(\"Validating response\", function () {\r","    var jsonData = pm.response.json();\r","    pm.environment.set(\"objectSnapshotid\", jsonData.snapshots[0].objectSnapshotid);\r","});"],"type":"text/javascript","id":"00083034-2518-49e5-a1af-1534c918b53a"}}],"id":"b20b8f05-a0a2-4f50-ab3f-06de81b53af0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/objects/{{SourceId}}/protection-groups/{{protectionJobId}}/indexed-objects/snapshots?indexedObjectName={{IndexedObjectId}}&includeIndexedSnapshotsOnly=true","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{SourceId}}","protection-groups","{{protectionJobId}}","indexed-objects","snapshots"],"host":["{{cluster}}"],"query":[{"key":"indexedObjectName","value":"{{IndexedObjectId}}"},{"key":"includeIndexedSnapshotsOnly","value":"true"}],"variable":[]}},"response":[],"_postman_id":"b20b8f05-a0a2-4f50-ab3f-06de81b53af0"},{"name":"Create Object Recovery","event":[{"listen":"test","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","pm.test(\"Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","pm.test(\"Validating response\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.permissions).to.be.an('array')\r","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')\r","    pm.expect(jsonData.name).to.be.a('string')\r","    pm.expect(jsonData.canTearDown).to.be.a('boolean')\r","    pm.expect(jsonData.creationInfo).to.be.an('object')\r","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')\r","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')\r","    pm.expect(jsonData.status).to.be.a('string')\r","    pm.expect(jsonData.id).to.be.a('string')\r","    pm.expect(jsonData.recoveryAction).to.be.a('string')\r","    pm.expect(jsonData.couchbaseParams).to.be.an('object')\r","    pm.expect(jsonData.couchbaseParams.recoveryAction).to.be.a('string')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams).to.be.an('object')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots).to.be.an('array')\r","    for (var i=0; i<jsonData.couchbaseParams.recoverCouchbaseParams.snapshots.length; i++) {\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo).to.be.an('object')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.name).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.uuid).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.sourceName).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.id).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.environment).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.objectType).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].protectionGroupId).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].storageDomainId).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects).to.be.an('array')\r","        for (var j=0; j<jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects.length; j++) {\r","            pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects[j].objectName).to.be.a('string')\r","        }\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].progressTaskId).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotCreationTimeUsecs).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotTargetType).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotId).to.be.a('string')\r","    }\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.overwrite).to.be.a('boolean')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.recoverTo).to.be.a('number')\r","\r","\r","    pm.environment.set(\"restoreId\", jsonData.id)\r","    sleep(30000)\r","});"],"type":"text/javascript","id":"e9b4e525-0562-44de-8c74-f3015cc4a90d"}}],"id":"4eb661bc-bc3c-4c29-8590-9a361ce94185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Recovery_{{protectionJobName}}\",\r\n  \"snapshotEnvironment\": \"kCouchbase\",\r\n  \"couchbaseParams\": {\r\n    \"recoveryAction\": \"RecoverObjects\",\r\n    \"recoverCouchbaseParams\": {\r\n      \"recoverTo\": {{sourceId}},\r\n      \"overwrite\": true,\r\n      \"concurrency\": 0,\r\n      \"bandwidthMBPS\": 0,\r\n      \"snapshots\": [\r\n        {\r\n          \"snapshotId\": \"{{objectSnapshotid}}\",\r\n          \"pointInTimeUsecs\": 0,\r\n          \"protectionGroupId\": \"{{protectionJobId}}\",\r\n          \"protectionGroupName\": \"{{protectionJobName}}\",\r\n          \"objects\": [\r\n              \"objectName\": \"{{bucketName}}\",\r\n              \"renameTo\": null\r\n          ]\r\n        }\r\n      ],\r\n      \"suffix\": \"{{suffixString}}\",\r\n      \"filterDocumentsParams\": {\r\n        \"documentFilterType\": \"NONE\",\r\n        \"idRegex\": \"string\",\r\n        \"filterExpression\": \"string\"\r\n      },\r\n      \"appendDocuments\": false,\r\n      \"ddlOnlyRecovery\": false,\r\n      \"overwriteUsers\": false\r\n    }\r\n  }\r\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4eb661bc-bc3c-4c29-8590-9a361ce94185"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {\r","  return new Promise(resolve => setTimeout(resolve, ms));\r","}\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","pm.test(\"Validating response\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.permissions).to.be.an('array')\r","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')\r","    pm.expect(jsonData.name).to.be.a('string')\r","    pm.expect(jsonData.canTearDown).to.be.a('boolean')\r","    pm.expect(jsonData.creationInfo).to.be.an('object')\r","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')\r","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')\r","    pm.expect(jsonData.status).to.be.a('string')\r","    pm.expect(jsonData.id).to.be.a('string')\r","    pm.expect(jsonData.recoveryAction).to.be.a('string')\r","    pm.expect(jsonData.couchbaseParams).to.be.an('object')\r","    pm.expect(jsonData.couchbaseParams.recoveryAction).to.be.a('string')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams).to.be.an('object')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots).to.be.an('array')\r","    for (var i=0; i<jsonData.couchbaseParams.recoverCouchbaseParams.snapshots.length; i++) {\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo).to.be.an('object')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.name).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.uuid).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.sourceName).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.id).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.environment).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objectInfo.objectType).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].protectionGroupId).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].storageDomainId).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects).to.be.an('array')\r","        for (var j=0; j<jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects.length; j++) {\r","            pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].objects[j].objectName).to.be.a('string')\r","        }\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].progressTaskId).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotCreationTimeUsecs).to.be.a('number')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotTargetType).to.be.a('string')\r","        pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.snapshots[i].snapshotId).to.be.a('string')\r","    }\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.overwrite).to.be.a('boolean')\r","    pm.expect(jsonData.couchbaseParams.recoverCouchbaseParams.recoverTo).to.be.a('number')\r","\r","    if (jsonData.status === \"Running\"){\r","        sleep(30000)\r","        postman.setNextRequest(\"Get Recovery Status\");\r","    }\r","});"],"type":"text/javascript","id":"2b17dc7b-248a-4b91-b7b4-368543fa673b"}}],"id":"5b08212c-d021-4b53-9b19-3795d85a0715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b08212c-d021-4b53-9b19-3795d85a0715"},{"name":"Remove Jobs And Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {\r","    pm.response.to.have.status(204);\r","});"],"type":"text/javascript","id":"1e4d6bc7-c5b4-43b3-b1c7-4a6b4377284a"}}],"id":"f516e362-67ff-47f6-8e31-c4a84e3962f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"f516e362-67ff-47f6-8e31-c4a84e3962f2"},{"name":"Unregister Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {\r","    pm.response.to.have.status(204);\r","});"],"type":"text/javascript","id":"367d7a5a-2c21-4f52-b119-1510eae06be4"}}],"id":"f3d43670-021a-422d-b741-1ac2fba8c2ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3d43670-021a-422d-b741-1ac2fba8c2ea"}],"id":"49f012ae-87bb-448c-949b-20f9156c8f9c","description":"<p>API Workflows/Examples to protect Couchbase Databases with Cohesity APIs.</p>\n","_postman_id":"49f012ae-87bb-448c-949b-20f9156c8f9c"},{"name":"DataProtect-Connector-Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var authResponse = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", authResponse.accessToken)"],"type":"text/javascript","id":"be3e9428-f97b-46c3-9c2a-3604b244e72c"}}],"id":"eb63438c-9586-454c-9564-e3573854bf7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"password\": \"{{clusterPassword}}\",\n  \"username\": \"{{clusterUser}}\",\n  \"domain\": \"LOCAL\"\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb63438c-9586-454c-9564-e3573854bf7d"},{"name":"Download Cohesity Agent","id":"6bbdf415-08a0-4a05-8de1-5299677bea49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/irisservices/api/v1/public/physicalAgents/download?hostType=kLinux&pkgType=kRPM","description":"<p>Refer to the <a href=\"https://developer.cohesity.com/apidocs/660x/#/http/api-endpoints/protection-sources/download-physical-agent\">Agent Download API document</a> to find all the option.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","physicalAgents","download"],"host":["{{cluster}}"],"query":[{"key":"hostType","value":"kLinux"},{"key":"pkgType","value":"kRPM"}],"variable":[]}},"response":[],"_postman_id":"6bbdf415-08a0-4a05-8de1-5299677bea49"},{"name":"Download Connector","id":"557172b3-5c99-4bb0-8848-dc9b8c591e24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/irisservices/api/v1/public/physicalAgents/download?agentType=kSapHana&hostType=kLinux","description":"<p>Refer to the <a href=\"https://developer.cohesity.com/apidocs/660x/#/http/api-endpoints/protection-sources/download-physical-agent\">Agent Download API document</a> to find all the option.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","physicalAgents","download"],"host":["{{cluster}}"],"query":[{"key":"agentType","value":"kSapHana"},{"key":"hostType","value":"kLinux"}],"variable":[]}},"response":[],"_postman_id":"557172b3-5c99-4bb0-8848-dc9b8c591e24"},{"name":"Register Source","id":"80e9266d-a005-4926-a23c-42cded31ac39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"content-type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kUDA\",\n    \"udaParams\": {\n        \"sourceType\": \"kOther\",\n        \"osType\": \"kLinux\",\n        \"hosts\": [\n            \"rhel8-endpoint.com\"\n        ],\n        \"credentials\": {\n            \"username\": \"username\",\n            \"password\": \"password\"\n        },\n        \"scriptDir\": \"/path/to/plugin/scripts/\",\n        \"mountView\": false,\n        \"viewParams\": {\n            \"mountDir\": \"\"\n        },\n        \"sourceRegistrationArgs\": null\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80e9266d-a005-4926-a23c-42cded31ac39"},{"name":"Get Protection Policies","id":"47c135a5-fbf3-4855-8b61-301e0cbbc8bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"47c135a5-fbf3-4855-8b61-301e0cbbc8bc"},{"name":"Create Protection Group","id":"71b2ec3e-d5e7-4581-b542-aa26d1f5b8d8","protocolProfileBehavior":{"disabledSystemHeaders":{"user-agent":true},"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"YOUR_POLICY_ID\",\n    \"startTime\": {\n        \"hour\": 14,\n        \"minute\": 54,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"storageDomainId\": 5,\n    \"name\": \"PROTECTION_GROUP_NAME\",\n    \"environment\": \"kUDA\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"udaParams\": {\n        \"sourceId\": 1840,\n        \"objects\": [\n            {\n                \"name\": \"test\"\n            }\n        ],\n        \"concurrency\": 16,\n        \"mounts\": 1,\n        \"fullBackupArgs\": \"defaults_file=/etc/my.cnf\",\n        \"incrBackupArgs\": \"\",\n        \"logBackupArgs\": \"\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"71b2ec3e-d5e7-4581-b542-aa26d1f5b8d8"},{"name":"Get SnapShots","id":"f0ef949e-9a06-4164-932f-5f36ecdc58e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?sourceIds=1355&snapshotActions=RecoverObjects&searchString=*&filterSnapshotToUsecs=1631689199999000&filterSnapshotFromUsecs=1631084400000000&environments=kUDA","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"sourceIds","value":"1355"},{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"filterSnapshotToUsecs","value":"1631689199999000"},{"key":"filterSnapshotFromUsecs","value":"1631084400000000"},{"key":"environments","value":"kUDA"}],"variable":[]}},"response":[],"_postman_id":"f0ef949e-9a06-4164-932f-5f36ecdc58e0"},{"name":"Restore Object","id":"244ca0d7-1d88-417c-ad30-a2601a84d4cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"application/json, text/plain, */*"},{"key":"content-type","value":"application/json"},{"key":"referer","value":"https://10.15.9.15/recover/uda"},{"key":"accept-language","value":"en-US,en;q=0.9"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"RECOVER_JOB_NAME\",\n    \"snapshotEnvironment\": \"kUDA\",\n    \"udaParams\": {\n        \"recoveryAction\": \"RecoverObjects\",\n        \"recoverUdaParams\": {\n            \"concurrency\": null,\n            \"mounts\": 1,\n            \"recoverTo\": null,\n            \"snapshots\": [\n                {\n                    \"snapshotId\": \"YOUR_SNAPSHOT_ID_FROM_GET_SNAPSHOTS\",\n                    \"objects\": [\n                        {\n                            \"objectName\": \"ONE\",\n                            \"overwrite\": true,\n                            \"renameTo\": null\n                        }\n                    ]\n                }\n            ],\n            \"recoveryArgs\": \"\"\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"244ca0d7-1d88-417c-ad30-a2601a84d4cd"},{"name":"Run Now","id":"e6d2b85c-6680-4b9a-ae0e-2767bbc38816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"application/json, text/plain, */*"},{"key":"content-type","value":"application/json;charset=UTF-8"}],"body":{"mode":"raw","raw":"{\n    \"copyRunTargets\": [],\n    \"runNowParameters\": [],\n    \"runType\": \"kFull\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/2977769649515108:1632205841948:66225/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","2977769649515108:1632205841948:66225","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6d2b85c-6680-4b9a-ae0e-2767bbc38816"}],"id":"0759ebc5-70b8-488a-b4ed-7b9af96becd9","description":"<h2 id=\"description\">Description</h2>\n<p>Postman API collection where you will find API examples for our latest Connector workflow using which you can protect various DBs like Postgres, MySQL, SAP HANA, SAP Oracle and <a href=\"https://docs.cohesity.com/6_6/Web/UserGuide/Content/Concepts/UniversalDataAdaptor.htm\">much more</a>. The API documentation can be found in the <a href=\"https://developer.cohesity.com/apidocs/helios/v2-api/\">Cohesity Developer Portal</a>.</p>\n<h2 id=\"environment-variables\">Environment Variables</h2>\n<ul>\n<li>Choose the ClusterOnPrem Postman Environment for this collection. You need to set the following variables.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment Variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cluster</td>\n<td>FQDN for the Cluster</td>\n</tr>\n<tr>\n<td>clusterUser</td>\n<td>Cluster Username</td>\n</tr>\n<tr>\n<td>clusterPassword</td>\n<td>Cluster Password</td>\n</tr>\n<tr>\n<td>token</td>\n<td>Cluster token. This will be set after Get Auth Token API call</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>There are other collection variables that will be set when you make API calls, like <code>sourceId</code> etc. These collection variables will be used further during subsequent API calls</li>\n<li>In order to use these APIs, you need to call these in sequence so that the collections variables set by a previous API call can be used later.</li>\n</ul>\n<h2 id=\"contribute\">Contribute</h2>\n<p>You can also contribute to this collection by submitting your collections and/or workflows. You can fork our Workspace and then submit a merge request.</p>\n<h2 id=\"feedback\">Feedback</h2>\n<p>If you want to see more collections/use-cases reach out to: <a href=\"mailto:cohesity-api-sdks@cohesity.com\">cohesity-api-sdks@cohesity.com</a></p>\n","_postman_id":"0759ebc5-70b8-488a-b4ed-7b9af96becd9"},{"name":"DataProtect-Isilon-NAS","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"30738963-b8a9-499b-91f0-9b42c09e8386"}}],"id":"fc20281b-b347-43a8-86d6-6f00c936b9a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc20281b-b347-43a8-86d6-6f00c936b9a5"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching the Isilon Source id\", function () {","    var jsonData = pm.response.json();","    var isilon_source = pm.environment.get(\"isilon_source\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kIsilon\") {","            if (jsonData.registrations[i].sourceInfo.name === isilon_source) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"16c4f346-8a42-4ae1-a31f-bd14dbe97c7b"}}],"id":"647c58b4-0ca9-49ae-8297-3ace0e7378e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"647c58b4-0ca9-49ae-8297-3ace0e7378e3"},{"name":"Register Isilon Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Register VCenter Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if(responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","id":"22586d91-fa28-4037-87cc-1d14b9e9a15e"}}],"id":"5fc4f249-20b9-462b-9742-cd856a9ad500","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"endpoint\": \"{{isilon_source}}\",\n    \"credentials\": {{isilon_credentials}},\n    \"backUpSMBVolumes\": true,\n    \"smbCredentials\": {{isilon_smb_credentials}}\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5fc4f249-20b9-462b-9742-cd856a9ad500"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains\");","    }","});"],"type":"text/javascript","id":"5b37d6c1-5431-4c2d-adda-168fcfd2d2c3"}}],"id":"2aa9200f-74f1-47cd-8fc1-fa28f5b2b41c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2aa9200f-74f1-47cd-8fc1-fa28f5b2b41c"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"ab14b08f-32e7-4d66-9d02-ab5eb8e57b80"}}],"id":"8dd44cd4-5dcc-4d04-b7af-1dcf324ecaae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8dd44cd4-5dcc-4d04-b7af-1dcf324ecaae"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","for (var i=0; i< jsonData.length; i++){","    postman.setEnvirontests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}mentVariable(\"viewBoxId\", jsonData[i].id);","    pm.expect(jsonData[i].id).to.be.a(\"number\");","    pm.expect(jsonData[i].name).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy).to.be.an(\"object\");","    pm.expect(jsonData[i].storagePolicy.deduplicationEnabled).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.inlineDeduplicate).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.compressionPolicy).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy.inlineCompress).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.deduplicateCompressDelaySecs).to.be.a(\"number\");","    pm.expect(jsonData[i].storagePolicy.encryptionPolicy).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy.numFailuresTolerated).to.be.a(\"number\");","    pm.expect(jsonData[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","    pm.expect(jsonData[i].clusterPartitionId).to.be.a(\"number\");","    pm.expect(jsonData[i].clusterPartitionName).to.be.a(\"string\");","    pm.expect(jsonData[i].s3BucketsAllowed).to.be.a(\"boolean\");","    pm.expect(jsonData[i].removalState).to.be.a(\"string\");","}"],"type":"text/javascript","id":"1aece41f-b7c1-4f15-a13c-c09ca72d3c05"}}],"id":"ec4b85b7-283d-493d-8df2-f934d7b7a812","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec4b85b7-283d-493d-8df2-f934d7b7a812"},{"name":"Get Nas Mountpoint","event":[{"listen":"test","script":{"exec":["tests[\"Fetching NAS mountpoint, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null && jsonData !== undefined && jsonData.objects !== undefined) {","    var nodes = jsonData.objects;","    for (var i = 0; i < nodes.length; i++) {","        var source_id = pm.environment.get('sourceId');","        if (nodes[i].objectProtectionInfos[0].sourceId === source_id) {","            pm.environment.set(\"mountPointId\", nodes[i].objectProtectionInfos[0].objectId)","            break;","        }","    }","}"],"type":"text/javascript","id":"33a1cfde-6735-465d-8376-f6b9a5dcb5d9"}}],"id":"d70fefa3-22d7-468c-b2a7-ca6d6bd0a381","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/objects?environments=kIsilon","urlObject":{"protocol":"https","path":["v2","data-protect","search","objects"],"host":["{{cluster}}"],"query":[{"key":"environments","value":"kIsilon"}],"variable":[]}},"response":[],"_postman_id":"d70fefa3-22d7-468c-b2a7-ca6d6bd0a381"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.abortInBlackouts).to.be.a('boolean')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.sourceId).to.be.a('number')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].name).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.sourceName).to.be.a('string')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    for (var i = 0; i < jsonData.alertPolicy.alertTargets.length; i++) {","        pm.expect(jsonData.alertPolicy.alertTargets[i].emailAddress).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].recipientType).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].language).to.be.a('string')","    }","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","});"],"type":"text/javascript","id":"c31c0f37-0f9c-4ac4-82a5-b101eb176734"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"aca174ab-488a-474e-9701-406e39f9e1de"}}],"id":"9d218305-90ef-47bb-b47b-650a370df326","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_90\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kIsilon\",\n  \"isPaused\": true,\n  \"priority\": \"kLow\",\n  \"description\": \"string\",\n  \"startTime\": {\n    \"hour\": 0,\n    \"minute\": 0,\n    \"timeZone\": \"America/Los_Angeles\"\n  },\n  \"endTimeUsecs\": 0,\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kSuccess\"\n    ]\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 1\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": true,\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"id\": {{mountPointId}}\n      }\n    ],\n    \"protocol\": \"kNfs3\"\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d218305-90ef-47bb-b47b-650a370df326"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"6534ba92-c3e1-4839-bce5-15fb1f1f2827"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bd19fab3-a1cb-45d8-a3f5-6469f87d1c96"}}],"id":"b23c2178-859d-436f-8d9f-d79d3c5f7f82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b23c2178-859d-436f-8d9f-d79d3c5f7f82"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","        pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","        pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"7867e113-0024-4152-a320-a460ba340f3b"}}],"id":"244beaeb-4731-4097-a8e8-7d13433a345a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"244beaeb-4731-4097-a8e8-7d13433a345a"},{"name":"Get Cluster Info","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"incarnationId\", jsonData.incarnationId);","    pm.environment.set(\"clusterId\", jsonData.id);","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.id).to.be.a(\"number\");","    pm.expect(jsonData.incarnationId).to.be.a(\"number\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.type).to.be.a(\"string\");","    pm.expect(jsonData.swVersion).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.ntpServers).to.be.an(\"array\");","    for (var i = 0; i < jsonData.networkConfig.ntpServers.length; i++) {","    }","    pm.expect(jsonData.networkConfig.domainNames).to.be.an(\"array\");","    for (var j = 0; j < jsonData.networkConfig.domainNames.length; j++) {","    }","    pm.expect(jsonData.networkConfig.vipHostName).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.useDhcp).to.be.a(\"boolean\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.gateway).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetIp).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetMask).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.dnsServers).to.be.an(\"array\");","    for (var k = 0; k < jsonData.networkConfig.manualNetworkConfig.dnsServers.length; k++) {","    }","    pm.expect(jsonData.enableEncryption).to.be.a(\"boolean\");","});"],"type":"text/javascript","id":"16e79a54-c174-45d3-a0bc-3717e3005df1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a8caab5b-00c1-4b69-b040-984fd8376402"}}],"id":"f42401bb-9b42-42f9-ae6e-765d4d48859e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/clusters","urlObject":{"protocol":"https","path":["v2","clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f42401bb-9b42-42f9-ae6e-765d4d48859e"},{"name":"Get Filepath","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    if (jsonData !== undefined && jsonData.entries!== undefined && jsonData.entries.length !== 0) {","        for (var i = 0; i < jsonData.entries.length; i++) {","            if (jsonData.entries[i].type === \"kFile\") {","                pm.environment.set(\"restoreFilePath\", jsonData.entries[i].fullPath);","                //break;","            }","            pm.environment.set(\"dirPath\", jsonData.entries[i].fullPath);","            postman.setNextRequest(\"Get filepath using V1-TODO\");","        }","    }","});"],"type":"text/javascript","id":"44417277-e8e6-41ed-be94-5201b941e39c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4e689110-2fe9-42df-b14a-7e2c8e52441f"}}],"id":"ec9ca442-6d46-413f-868b-adda0cf9be37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\": [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\":\"Files\",\n\t\"fileParams\":{\n\t\t\"searchString\": \"*\",\n\t\t\"types\": [\"File\"],\n\t\t\"sourceEnvironments\": [\"kPhysicalFiles\", \"kPhysical\"],\n\t\t\"sourceIds\": [{{sourceId}}]\n\t}\n}"},"url":"https://{{cluster}}/irisservices/api/v1/vm/directoryList?attemptNum=1&clusterId={{clusterId}}&clusterIncarnationId={{incarnationId}}&entityId={{mountPointId}}&jobId={{jobId}}&jobInstanceId={{instanceId}}&jobStartTimeUsecs={{startTimeUsecs}}&jobUidObjectId={{jobId}}&statFileEntries=true&dirPath={{dirPath}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","vm","directoryList"],"host":["{{cluster}}"],"query":[{"key":"attemptNum","value":"1"},{"key":"clusterId","value":"{{clusterId}}"},{"key":"clusterIncarnationId","value":"{{incarnationId}}"},{"key":"entityId","value":"{{mountPointId}}"},{"key":"jobId","value":"{{jobId}}"},{"key":"jobInstanceId","value":"{{instanceId}}"},{"key":"jobStartTimeUsecs","value":"{{startTimeUsecs}}"},{"key":"jobUidObjectId","value":"{{jobId}}"},{"key":"statFileEntries","value":"true"},{"key":"dirPath","value":"{{dirPath}}"}],"variable":[]}},"response":[],"_postman_id":"ec9ca442-6d46-413f-868b-adda0cf9be37"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"643d176b-f6b0-4a2e-b9cd-2a190cc27a5e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3bdef9a1-22cb-4293-8778-9f7c4cefbe70"}}],"id":"165bc42e-70f4-4b16-bdad-48654c79ce5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kIsilon","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kIsilon"}],"variable":[]}},"response":[],"_postman_id":"165bc42e-70f4-4b16-bdad-48654c79ce5d"},{"name":"Recover Isilon File","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"141c138a-f6d3-4b5e-af0b-46f478f9d549"}}],"id":"663f24ab-bfff-4b3b-a42f-41f7ee3d0816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kIsilon\",\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"pointInTimeUsecs\": 0,\n                \"protectionGroupId\": \" {{protectionJobId}}\",\n                \"protectionGroupName\": \" {{protectionJobName}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"{{restoreFilePath}}\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kIsilon\",\n            \"isilonTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": true,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","description":"<p>Operations on Isilon NAS with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Check the storage domain (the view box)</li>\n<li>Register the Isilon as NAS protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>Get the NAS mount points</li>\n<li>You are ready to create a protection group for Isilon using NAS</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The Isilon files are ready to be restored</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots), Isilon mount point</li>\n</ol>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"663f24ab-bfff-4b3b-a42f-41f7ee3d0816"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.progressTaskId).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","","    if (jsonData.status === \"Running\") {","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"17b922c3-f47d-470e-bead-d06562fee07f"}}],"id":"e92cfe6e-1688-4cb0-9fe0-0277f0494859","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e92cfe6e-1688-4cb0-9fe0-0277f0494859"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"e551c9a9-4071-44b8-905f-59a3c1027398"}}],"id":"b5bf3f70-343b-4667-87f1-0eed9b7190fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"b5bf3f70-343b-4667-87f1-0eed9b7190fb"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"aebbaf6a-d57d-4d5b-85ba-4cd40be3ad58"}}],"id":"3d869545-6cb1-41fd-b62e-3342a2b38544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d869545-6cb1-41fd-b62e-3342a2b38544"}],"id":"2727d275-2d1e-4e4b-9352-e88ff42214b8","description":"<p>Operations on Isilon NAS Server with Cohesity APIs:</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get all the registered source</li>\n<li>Register the Isilon server as protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>Get the storage domain</li>\n<li>You are ready to create a protection group for Isilon server</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The files from the Isilon server are ready to be restored</li>\n<li>Select the desired file and restore</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots), Isilon server</li>\n</ol>\n","_postman_id":"2727d275-2d1e-4e4b-9352-e88ff42214b8"},{"name":"DataProtect-Isilon-SMB","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"3362e886-66c4-4022-af0d-f99ecec6fb9c"}}],"id":"f3aef68a-11fc-4476-b9a5-4a26b553a5eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"domain\": \"LOCAL\",\r\n    \"password\": \"{{clusterPassword}}\",\r\n    \"username\": \"{{clusterUsername}}\"\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3aef68a-11fc-4476-b9a5-4a26b553a5eb"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching the Isilon Source id\", function () {","    var jsonData = pm.response.json();","    var isilon_source = pm.environment.get(\"isilon_source\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kIsilon\") {","            if (jsonData.registrations[i].sourceInfo.name === isilon_source) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"4f2423b6-71d5-4c8a-86cb-92df4453054b"}}],"id":"69cfe2cd-65c7-4c40-a067-aba336afa33d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"69cfe2cd-65c7-4c40-a067-aba336afa33d"},{"name":"Register Isilon Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Register VCenter Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if(responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","id":"6dcb2ce9-f2b8-4c45-b669-73174bfc62e2"}}],"id":"b40de1c7-a9ad-4316-86f8-1b8d1b94524f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"endpoint\": \"{{isilon_source}}\",\n    \"credentials\": {{isilon_credentials}},\n    \"backUpSMBVolumes\": true,\n    \"smbCredentials\": {{isilon_smb_credentials}}\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b40de1c7-a9ad-4316-86f8-1b8d1b94524f"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains\");","    }","});"],"type":"text/javascript","id":"cf552deb-e2f8-48f7-bad2-6987732dabe8"}}],"id":"04698abd-7727-46b1-a916-be77e9c9dce0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"04698abd-7727-46b1-a916-be77e9c9dce0"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"a4d21396-4a32-4c44-a39c-4eb6c96a96df"}}],"id":"3041c590-deb8-4b19-9d51-e3879e708a72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3041c590-deb8-4b19-9d51-e3879e708a72"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","for (var i=0; i< jsonData.length; i++){","    postman.setEnvirontests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}mentVariable(\"viewBoxId\", jsonData[i].id);","    pm.expect(jsonData[i].id).to.be.a(\"number\");","    pm.expect(jsonData[i].name).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy).to.be.an(\"object\");","    pm.expect(jsonData[i].storagePolicy.deduplicationEnabled).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.inlineDeduplicate).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.compressionPolicy).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy.inlineCompress).to.be.a(\"boolean\");","    pm.expect(jsonData[i].storagePolicy.deduplicateCompressDelaySecs).to.be.a(\"number\");","    pm.expect(jsonData[i].storagePolicy.encryptionPolicy).to.be.a(\"string\");","    pm.expect(jsonData[i].storagePolicy.numFailuresTolerated).to.be.a(\"number\");","    pm.expect(jsonData[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","    pm.expect(jsonData[i].clusterPartitionId).to.be.a(\"number\");","    pm.expect(jsonData[i].clusterPartitionName).to.be.a(\"string\");","    pm.expect(jsonData[i].s3BucketsAllowed).to.be.a(\"boolean\");","    pm.expect(jsonData[i].removalState).to.be.a(\"string\");","}"],"type":"text/javascript","id":"e50d728a-a7c6-4ff5-aa3b-652332f7f7ec"}}],"id":"4fdbe57f-7ec1-4ac8-8fb3-1d31c024b3bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4fdbe57f-7ec1-4ac8-8fb3-1d31c024b3bb"},{"name":"Get Nas Mountpoint","event":[{"listen":"test","script":{"exec":["tests[\"Fetching NAS mountpoint, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null && jsonData !== undefined && jsonData.objects !== undefined) {","    var nodes = jsonData.objects;","    for (var i = 0; i < nodes.length; i++) {","        var source_id = pm.environment.get('sourceId');","        if (nodes[i].objectProtectionInfos[0].sourceId === source_id) {","            if (nodes[i].genericNasParams.supportedNasMountProtocols.includes(\"kCifs1\")) {","                pm.environment.set(\"mountPointId\", nodes[i].objectProtectionInfos[0].objectId)","                break;","            }","        }","    }","}"],"type":"text/javascript","id":"e28c2848-e49d-4e5b-9f5e-ad712a9374bc"}}],"id":"920f0d6e-82d1-4863-aaeb-f0fadb7fc8f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/objects?environment=kIsilon","urlObject":{"protocol":"https","path":["v2","data-protect","search","objects"],"host":["{{cluster}}"],"query":[{"key":"environment","value":"kIsilon"}],"variable":[]}},"response":[],"_postman_id":"920f0d6e-82d1-4863-aaeb-f0fadb7fc8f0"},{"name":"Create Protection Job","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.abortInBlackouts).to.be.a('boolean')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.sourceId).to.be.a('number')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].name).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.sourceName).to.be.a('string')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    for (var i = 0; i < jsonData.alertPolicy.alertTargets.length; i++) {","        pm.expect(jsonData.alertPolicy.alertTargets[i].emailAddress).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].recipientType).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].language).to.be.a('string')","    }","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","});"],"type":"text/javascript","id":"daa053c4-bb8d-4b2a-a132-bf1ae15bfb51"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"b3d8b643-4a56-49c5-8cd6-fac17ec5f87b"}}],"id":"a2af785e-5974-47f3-b498-7946bc8c5679","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{protectionJobName}}_261\",\n    \"policyId\": \"{{policyId}}\",\n    \"storageDomainId\": {{viewBoxId}},\n    \"environment\": \"kIsilon\",\n    \"parentSourceId\": {{sourceId}},\n    \"isPaused\": true,\n    \"priority\": \"kLow\",\n    \"description\": \"string\",\n    \"startTime\": {\n        \"hour\": 0,\n        \"minute\": 0,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"endTimeUsecs\": 0,\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kSuccess\"\n        ]\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 1\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": true,\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"id\": {{mountPointId}}\n            }\n        ],\n        \"sourceId\": {{sourceId}},\n        \"protocol\": \"kCifs1\"\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2af785e-5974-47f3-b498-7946bc8c5679"},{"name":"Run Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"39e4822b-07f2-4f7f-ba93-c96c0777d2b4"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0a04a9e9-345b-4c05-ba32-13724c7c5712"}}],"id":"1aefef2f-b581-4921-8966-7801f2ef2426","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1aefef2f-b581-4921-8966-7801f2ef2426"},{"name":"Get Job Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","        pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","        pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"61b5ec3d-ea6f-4f84-8b8e-bf8f4b1ea099"}}],"id":"3a5fcc1a-4eca-4af2-8a9b-4b93128da4a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a5fcc1a-4eca-4af2-8a9b-4b93128da4a1"},{"name":"Get Cluster Info","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"incarnationId\", jsonData.incarnationId);","    pm.environment.set(\"clusterId\", jsonData.id);","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.id).to.be.a(\"number\");","    pm.expect(jsonData.incarnationId).to.be.a(\"number\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.type).to.be.a(\"string\");","    pm.expect(jsonData.swVersion).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.ntpServers).to.be.an(\"array\");","    for (var i = 0; i < jsonData.networkConfig.ntpServers.length; i++) {","    }","    pm.expect(jsonData.networkConfig.domainNames).to.be.an(\"array\");","    for (var j = 0; j < jsonData.networkConfig.domainNames.length; j++) {","    }","    pm.expect(jsonData.networkConfig.vipHostName).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.useDhcp).to.be.a(\"boolean\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.gateway).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetIp).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetMask).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.dnsServers).to.be.an(\"array\");","    for (var k = 0; k < jsonData.networkConfig.manualNetworkConfig.dnsServers.length; k++) {","    }","    pm.expect(jsonData.enableEncryption).to.be.a(\"boolean\");","});"],"type":"text/javascript","id":"d416a3ad-e2cc-4ff6-9e38-00705315adef"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e4889fe9-3040-48b2-b598-a6bf983967b4"}}],"id":"08db56e8-cea2-486e-94e0-2116b43e13a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/clusters","urlObject":{"protocol":"https","path":["v2","clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"08db56e8-cea2-486e-94e0-2116b43e13a3"},{"name":"Get filepath v1","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    if (jsonData !== undefined && jsonData.entries!== undefined && jsonData.entries.length !== 0) {","        for (var i = 0; i < jsonData.entries.length; i++) {","            if (jsonData.entries[i].type === \"kFile\") {","                pm.environment.set(\"restoreFilePath\", jsonData.entries[i].fullPath);","                //break;","            }","            pm.environment.set(\"dirPath\", jsonData.entries[i].fullPath);","            postman.setNextRequest(\"Get filepath using V1-TODO\");","        }","    }","});"],"type":"text/javascript","id":"89a1a642-e7da-4067-aa40-3a3b2f716f11"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"79a87dfd-816c-41b9-b42e-f83443718cff"}}],"id":"ba1c5c99-3082-495e-bf83-645e08c7453f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\": [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\":\"Files\",\n\t\"fileParams\":{\n\t\t\"searchString\": \"*\",\n\t\t\"types\": [\"File\"],\n\t\t\"sourceEnvironments\": [\"kPhysicalFiles\", \"kPhysical\"],\n\t\t\"sourceIds\": [{{sourceId}}]\n\t}\n}"},"url":"https://{{cluster}}/irisservices/api/v1/vm/directoryList?attemptNum=1&clusterId={{clusterId}}&clusterIncarnationId={{incarnationId}}&entityId={{mountPointId}}&jobId={{jobId}}&jobInstanceId={{instanceId}}&jobStartTimeUsecs={{startTimeUsecs}}&jobUidObjectId={{jobId}}&statFileEntries=true&dirPath={{dirPath}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","vm","directoryList"],"host":["{{cluster}}"],"query":[{"key":"attemptNum","value":"1"},{"key":"clusterId","value":"{{clusterId}}"},{"key":"clusterIncarnationId","value":"{{incarnationId}}"},{"key":"entityId","value":"{{mountPointId}}"},{"key":"jobId","value":"{{jobId}}"},{"key":"jobInstanceId","value":"{{instanceId}}"},{"key":"jobStartTimeUsecs","value":"{{startTimeUsecs}}"},{"key":"jobUidObjectId","value":"{{jobId}}"},{"key":"statFileEntries","value":"true"},{"key":"dirPath","value":"{{dirPath}}"}],"variable":[]}},"response":[],"_postman_id":"ba1c5c99-3082-495e-bf83-645e08c7453f"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"c6c3e47e-5e92-4943-94f5-3d6739cbcfcc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"162209f9-1e4b-4c85-8484-df13b7de6d6e"}}],"id":"83b57ffe-4161-4df9-8c86-a6f2e972d177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kIsilon","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kIsilon"}],"variable":[]}},"response":[],"_postman_id":"83b57ffe-4161-4df9-8c86-a6f2e972d177"},{"name":"Create Recovery","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"f8953e61-882e-46ff-9177-7c5a0ff09106"}}],"id":"a3020e3c-def4-41b5-a4f9-175cef3757ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kIsilon\",\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"pointInTimeUsecs\": 0,\n                \"protectionGroupId\": \" {{protectionJobId}}\",\n                \"protectionGroupName\": \" {{protectionJobName}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"{{restoreFilePath}}\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kIsilon\",\n            \"isilonTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": true,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3020e3c-def4-41b5-a4f9-175cef3757ab"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.progressTaskId).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","","    if (jsonData.status === \"Running\") {","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"d448e0e5-7d1e-4268-bca4-5d8db3a800e6"}}],"id":"238658ee-3d73-475d-8580-0a3742b24cbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"238658ee-3d73-475d-8580-0a3742b24cbd"},{"name":"Remove Job and Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"76326293-916f-4699-9374-7948d17c2ec1"}}],"id":"25bfe29e-c555-4804-b4f3-51c07c9ebe94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"25bfe29e-c555-4804-b4f3-51c07c9ebe94"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"f21c13cb-3d97-4c32-ad5c-b745eba5108c"}}],"id":"45819295-29e8-4d68-ab34-9f90ebd342ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"45819295-29e8-4d68-ab34-9f90ebd342ca"}],"id":"6af80a8c-12e8-4e98-9c4d-95e9c9af52d4","description":"<p>Operations on Isilon SMB server(s) with Cohesity APIs:</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get all the protection sources</li>\n<li>Register the Isilon server as protection source</li>\n<li>Get all protection policies</li>\n<li>Create a custom protection policy</li>\n<li>Get all the storage domains available</li>\n<li>Find the source id to protect</li>\n<li>Now you have all necessary information to create an Isilon protection job.</li>\n<li>Run the protection job</li>\n<li>Get the protection job run detail</li>\n<li>Get all the indexed objects (backed up files)</li>\n<li>Get all the snapshots for the source</li>\n<li>You have all the necessary information to start a recovery task.</li>\n<li>Get the recovery task status.</li>\n<li>Remove the protection job and all the associated snapshots.</li>\n<li>Remove the Isilon server from the cluster.</li>\n</ol>\n","_postman_id":"6af80a8c-12e8-4e98-9c4d-95e9c9af52d4"},{"name":"DataProtect-Physical-Windows-File","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"2db73985-ff7b-4c52-97da-ed49eb4b3bd0"}}],"id":"1da14f5f-e47a-498c-9866-c16e91b3da2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1da14f5f-e47a-498c-9866-c16e91b3da2b"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Physical source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching Source id\", function () {","    var jsonData = pm.response.json();","    var server = pm.environment.get(\"physical_server_windows\");","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.registrations).to.be.an(\"array\");","    for (var i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].environment === \"kPhysical\") {","            pm.expect(jsonData.registrations[i].id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceId).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo).to.be.an(\"object\");","            pm.expect(jsonData.registrations[i].sourceInfo.id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo.name).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.environment).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.objectType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.protectionType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.osType).to.be.a(\"string\");","","            if (jsonData.registrations[i].sourceInfo.name === server) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"b9560096-066f-4081-a868-90cf72ac54cc"}}],"id":"accd07bf-e3ea-4ca6-925e-7f0a09ddc271","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"accd07bf-e3ea-4ca6-925e-7f0a09ddc271"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"e87ff2e9-b2b7-42f3-abe3-66c168a382a2"}}],"id":"3905985b-0976-4656-a3b3-641834abf794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3905985b-0976-4656-a3b3-641834abf794"},{"name":"Register Physical Server","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","sleep(5000);","","pm.test(\"Register Physical Server Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Set the Physical Server registered id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"sourceId\", jsonData.id);","});"],"type":"text/javascript","id":"cf3e85e2-c13c-4591-ae82-94d2fb95e6dd"}}],"id":"ea496d7b-2fc2-4ad6-86f2-758ce62d09b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kPhysical\",\n  \"isInternalEncrypted\": false,\n  \"connectionId\": 0,\n  \"physicalParams\": {\n    \"endpoint\": \"{{physical_server_windows}}\",\n    \"hostType\":\"kWindows\",\n    \"physicalType\":\"kHost\"\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea496d7b-2fc2-4ad6-86f2-758ce62d09b7"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"42f0a980-4c3f-45f9-a209-33128db0ff2c"}}],"id":"2b82d986-f4f2-45fe-a8e8-3dfe32344ac0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b82d986-f4f2-45fe-a8e8-3dfe32344ac0"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"98041686-ef5c-42a6-9f63-57f00ec22c83"}}],"id":"ef74e52a-ec7d-4bc0-b0d1-baf5698673fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef74e52a-ec7d-4bc0-b0d1-baf5698673fb"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["    var jsonData = pm.response.json();","    console.log(jsonData)","    pm.test(\"Status code is 201\", function() {","        pm.response.to.have.status(201);","        pm.environment.set(\"protectionJobId\", jsonData.id);","        pm.environment.set(\"protectionJobName\", jsonData.name);","        pm.expect(jsonData.id).to.be.a('string')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.policyId).to.be.a('string')","        pm.expect(jsonData.priority).to.be.a('string')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.description).to.be.a('string')","        pm.expect(jsonData.startTime).to.be.an('object')","        pm.expect(jsonData.startTime.hour).to.be.a('number')","        pm.expect(jsonData.startTime.minute).to.be.a('number')","        pm.expect(jsonData.startTime.timeZone).to.be.a('string')","        pm.expect(jsonData.alertPolicy).to.be.an('object')","        pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","        pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","        pm.expect(jsonData.sla).to.be.an('array')","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        pm.expect(jsonData.qosPolicy).to.be.a('string')","        pm.expect(jsonData.isActive).to.be.a('boolean')","        pm.expect(jsonData.isPaused).to.be.a('boolean')","        pm.expect(jsonData.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.protectionType).to.be.a('string')","        pm.expect(jsonData.physicalParams.fileProtectionTypeParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects).to.be.an('array')","        for (var i = 0; i < jsonData.physicalParams.fileProtectionTypeParams.objects.length; i++) {","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].id).to.be.a('number')","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].name).to.be.a('string')","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths).to.be.an('array')","            for (var j = 0; j < jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths.length; j++) {","                pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths[j].includedPath).to.be.a('string')","                pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths[j].skipNestedVolumes).to.be.a('boolean')","            }","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].usesPathLevelSkipNestedVolumeSetting).to.be.a('boolean')","        }","    });"],"type":"text/javascript","id":"f4f0b078-da9e-4096-ab2c-d91b46b1e813"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3c584901-af8a-4326-8dce-58a1e8bcbbd3"}}],"id":"5dda9d68-f45c-49bf-87bd-cdece580f493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_983\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kPhysical\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"physicalParams\": {\n    \"protectionType\": \"kFile\",\n    \"fileProtectionTypeParams\":{\n    \t\"objects\": [{\n    \t\t\"id\": {{sourceId}}\n    \t,\"filePaths\":[{\"includedPath\":\"{{winDirPath}}\"}]}]\n    }\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5dda9d68-f45c-49bf-87bd-cdece580f493"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"0af0affe-553d-4a3d-a19e-5e8d8033e3b4"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2827d34b-1ff7-446d-ab2a-d52c35909b68"}}],"id":"35b1e9a1-1d60-4543-a30b-3bdc4dd9f4e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"35b1e9a1-1d60-4543-a30b-3bdc4dd9f4e8"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","    pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","    pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"951533d6-248d-4dd6-88f8-d87dee566a9e"}}],"id":"ab08780f-f3d6-4adc-b34b-85b5f1cde379","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab08780f-f3d6-4adc-b34b-85b5f1cde379"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"70bd9469-ca58-4bc5-8c64-179ced0455a5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6aa8b5d6-cdce-47f6-bb42-80d428d87176"}}],"id":"cb286896-6ce3-4c41-8d1e-646933ac4794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverFiles&searchString=*&environments=kPhysical,kPhysicalFiles","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverFiles"},{"key":"searchString","value":"*"},{"key":"environments","value":"kPhysical,kPhysicalFiles"}],"variable":[]}},"response":[],"_postman_id":"cb286896-6ce3-4c41-8d1e-646933ac4794"},{"name":"Get Cluster Info","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"incarnationId\", jsonData.incarnationId);","    pm.environment.set(\"clusterId\", jsonData.id);","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.id).to.be.a(\"number\");","    pm.expect(jsonData.incarnationId).to.be.a(\"number\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.type).to.be.a(\"string\");","    pm.expect(jsonData.swVersion).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.ntpServers).to.be.an(\"array\");","    for (var i = 0; i < jsonData.networkConfig.ntpServers.length; i++) {","    }","    pm.expect(jsonData.networkConfig.domainNames).to.be.an(\"array\");","    for (var j = 0; j < jsonData.networkConfig.domainNames.length; j++) {","    }","    pm.expect(jsonData.networkConfig.vipHostName).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.useDhcp).to.be.a(\"boolean\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.gateway).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetIp).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetMask).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.dnsServers).to.be.an(\"array\");","    for (var k = 0; k < jsonData.networkConfig.manualNetworkConfig.dnsServers.length; k++) {","    }","    pm.expect(jsonData.enableEncryption).to.be.a(\"boolean\");","});"],"type":"text/javascript","id":"0016ff48-b488-41a7-9b0c-0ca0bd741fec"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"537f85b0-26ab-48a7-a478-8a8ead89d086"}}],"id":"d2c4d38e-ee51-49d8-abb5-ab149c8c53ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/clusters","urlObject":{"protocol":"https","path":["v2","clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2c4d38e-ee51-49d8-abb5-ab149c8c53ab"},{"name":"Get Filepath","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData !== undefined && jsonData !== null) {","        for (var i = 0; i < jsonData.files.length; i++) {","            pm.environment.set(\"restoreFilePath\", jsonData.files[i].fullPath);","            postman.setNextRequest(\"Create Recovery\");","        }","    }","});"],"type":"text/javascript","id":"41211b92-4834-485d-befd-e71b93405b43"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d3f60b60-1957-4e0f-8685-49ccff1a7cf0"}}],"id":"03b97c3f-d950-4f99-8ed3-33740087c377","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\" : [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\": \"Files\",\n\t\"fileParams\": {\n\t\t\"searchString\" : \"{{filePath}}\",\n        \"types\": [\"File\"]\n\t}\n}"},"url":"https://{{cluster}}/v2/data-protect/search/indexed-objects","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"03b97c3f-d950-4f99-8ed3-33740087c377"},{"name":"Recover File","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"f0ca7cd4-5741-4a6d-840d-3b4d5c4540f5"}}],"id":"a28982f0-a2f0-49ec-870f-a1922deaff7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{            \n    \"name\":\"File_Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\":\"kPhysical\",\n    \"physicalParams\":{\n        \"recoveryAction\":\"RecoverFiles\",\n        \"objects\":[{\n            \"snapshotId\":\"{{snapshotId}}\"\n        }],\n    \"recoverFileAndFolderParams\":{\n        \"filesAndFolders\": [ \n            {\n                \"absolutePath\": \"{{restoreFilePath}}\",\n                \"isDirectory\":false\n            }\n        ],\n        \"targetEnvironment\": \"kPhysical\",\n        \"physicalTargetParams\":{\n            \"recoverTarget\": {\n            \t\"id\": {{sourceId}}\n            },\n            \"restoreToOriginalPaths\": true\n        }\n    }\n}}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a28982f0-a2f0-49ec-870f-a1922deaff7b"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","","    if (jsonData.status === \"Running\") {","        sleep(5000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"379b6ad0-8997-4467-9902-1d2a9beeaa9c"}}],"id":"4f503387-32d6-4aba-b8f9-4122edf1cba9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f503387-32d6-4aba-b8f9-4122edf1cba9"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"3ae5a60f-7d0d-4b49-896d-885fffffd32b"}}],"id":"bbe0a322-5adf-46d9-b111-6c4c0dad510d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"bbe0a322-5adf-46d9-b111-6c4c0dad510d"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"7cbddb4f-fc2e-4b58-9322-6fea957c4c1e"}}],"id":"91b5b6a6-cbd7-4d25-850d-1af3d6d624b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"91b5b6a6-cbd7-4d25-850d-1af3d6d624b2"}],"id":"681a4fad-f1f8-4388-9ba8-82fc2f6440ba","description":"<p>Operations on Windows Physical Server (File) with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Check the storage domain (the view box)</li>\n<li>Search for existing protection sources</li>\n<li>Register the Windows Physical Server as protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group with the windows physical server files</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The windows physical server files are ready to be restored</li>\n<li>Select the desired file and restore</li>\n<li>Cleanup the cluster by removing the protection group and the windows physical server</li>\n</ol>\n","_postman_id":"681a4fad-f1f8-4388-9ba8-82fc2f6440ba"},{"name":"DataProtect-Physical-Windows-Block","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"54f7a436-43ec-42f4-aca1-b7d82a841f38"}}],"id":"8c7968aa-63a6-403c-9636-8b01da7bd2df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c7968aa-63a6-403c-9636-8b01da7bd2df"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"ce2482ee-d9c2-4ec5-927a-209d157714dd"}}],"id":"f32fd15c-ccda-4850-aae8-3c706dca5c2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f32fd15c-ccda-4850-aae8-3c706dca5c2b"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Physical source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching Source id\", function () {","    var jsonData = pm.response.json();","    var server = pm.environment.get(\"physical_server_windows\");","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.registrations).to.be.an(\"array\");","    for (var i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].environment === \"kPhysical\") {","            pm.expect(jsonData.registrations[i].id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceId).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo).to.be.an(\"object\");","            pm.expect(jsonData.registrations[i].sourceInfo.id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo.name).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.environment).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.objectType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.protectionType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.osType).to.be.a(\"string\");","","            if (jsonData.registrations[i].sourceInfo.name === server) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"d982adf6-efeb-4e90-83b3-43002de146dc"}}],"id":"8327059d-1087-4641-bf24-26a002e18394","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8327059d-1087-4641-bf24-26a002e18394"},{"name":"Register Physical Server","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","sleep(5000);","","pm.test(\"Register Physical Server Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Set the Physical Server registered id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"sourceId\", jsonData.id);","});"],"type":"text/javascript","id":"7bd9ee04-6a20-43ec-a7fe-0e6d82bb8b7d"}}],"id":"5cab5955-c8b8-4cd9-8dbe-ef36d44f4e2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kPhysical\",\n  \"isInternalEncrypted\": false,\n  \"connectionId\": 0,\n  \"physicalParams\": {\n    \"endpoint\": \"{{physical_server_windows}}\",\n    \"hostType\":\"kWindows\",\n    \"physicalType\":\"kHost\"\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cab5955-c8b8-4cd9-8dbe-ef36d44f4e2e"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"caba73a6-9bc7-4e5f-af7b-5c0eba1b62b6"}}],"id":"f94b9c6b-5c22-4028-ac40-4410c81c9f54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f94b9c6b-5c22-4028-ac40-4410c81c9f54"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"ad4b3daf-d51d-4aa3-a42f-f7ce77148c7f"}}],"id":"a1ccd355-be69-4c4b-ab30-2182da8e430e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1ccd355-be69-4c4b-ab30-2182da8e430e"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["    var jsonData = pm.response.json();","    console.log(jsonData)","    pm.test(\"Status code is 201\", function() {","        pm.environment.set(\"protectionJobId\", jsonData.id);","        pm.environment.set(\"protectionJobName\", jsonData.name);","        pm.expect(jsonData.id).to.be.a('string')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.policyId).to.be.a('string')","        pm.expect(jsonData.priority).to.be.a('string')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.description).to.be.a('string')","        pm.expect(jsonData.startTime).to.be.an('object')","        pm.expect(jsonData.startTime.hour).to.be.a('number')","        pm.expect(jsonData.startTime.minute).to.be.a('number')","        pm.expect(jsonData.startTime.timeZone).to.be.a('string')","        pm.expect(jsonData.alertPolicy).to.be.an('object')","        pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","        pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","        pm.expect(jsonData.sla).to.be.an('array')","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        pm.expect(jsonData.qosPolicy).to.be.a('string')","        pm.expect(jsonData.isActive).to.be.a('boolean')","        pm.expect(jsonData.isPaused).to.be.a('boolean')","        pm.expect(jsonData.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.protectionType).to.be.a('string')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects).to.be.an('array')","        for (var i = 0; i < jsonData.physicalParams.volumeProtectionTypeParams.objects.length; i++) {","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].id).to.be.a('number')","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].name).to.be.a('string')","        }","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.enableIndexing).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.includePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.excludePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.performSourceSideDeduplication).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.incrementalBackupAfterRestart).to.be.a('boolean')","    });"],"type":"text/javascript","id":"c98464e5-4f5a-4f8a-8ae7-e1a954ccd112"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"de5de44e-bb44-40e4-871e-e95d955b6261"}}],"id":"30f7410e-a457-4a52-aec3-98be4004db6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_306\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kPhysical\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"physicalParams\":{\n  \t\"protectionType\":\"kVolume\",\n  \t\"volumeProtectionTypeParams\":{\n  \t\t\"objects\":[{\"id\":{{sourceId}}}],\n  \t\t\"indexingPolicy\":{\"enableIndexing\":true,\n  \t\t\"includePaths\":[\"/\"],\n  \t\t\"excludePaths\":[\"/$Recycle.Bin\",\"/Windows\",\"/Program Files\",\"/Program Files (x86)\",\"/ProgramData\",\"/System Volume Information\",\"/Users/*/AppData\",\"/Recovery\",\"/var\",\"/usr\",\"/sys\",\"/proc\",\"/lib\",\"/grub\",\"/grub2\",\"/opt/splunk\",\"/splunk\"]},\n  \t\t\"performSourceSideDeduplication\":false,\n  \t\t\"incrementalBackupAfterRestart\":true\n  \t\t}\n  \t}\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30f7410e-a457-4a52-aec3-98be4004db6d"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"328c5b31-0c0c-4947-9b91-69606e2e578f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"285921fe-8a08-4cce-8182-27a9052b397b"}}],"id":"b810f67d-7202-4931-a508-7e3c7c744169","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b810f67d-7202-4931-a508-7e3c7c744169"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","    pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","    pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"81666d5d-523e-4c05-90a6-99031397d338"}}],"id":"094d52f6-1c88-4305-9337-e10be439e54e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"094d52f6-1c88-4305-9337-e10be439e54e"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"80fbf7a4-fbc7-4d9d-83eb-81a214cb44c3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cdee2e82-7b67-4bc0-92fd-5b0ca4d562ba"}}],"id":"1386474b-b8a5-437c-aa12-04759176c4c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverFiles&searchString=*&environments=kPhysical,kPhysicalFiles&protectionGroupIds={{protectionJobId}}","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverFiles"},{"key":"searchString","value":"*"},{"key":"environments","value":"kPhysical,kPhysicalFiles"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"1386474b-b8a5-437c-aa12-04759176c4c3"},{"name":"Get Cluster Info","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"incarnationId\", jsonData.incarnationId);","    pm.environment.set(\"clusterId\", jsonData.id);","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.id).to.be.a(\"number\");","    pm.expect(jsonData.incarnationId).to.be.a(\"number\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.type).to.be.a(\"string\");","    pm.expect(jsonData.swVersion).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.ntpServers).to.be.an(\"array\");","    for (var i = 0; i < jsonData.networkConfig.ntpServers.length; i++) {","    }","    pm.expect(jsonData.networkConfig.domainNames).to.be.an(\"array\");","    for (var j = 0; j < jsonData.networkConfig.domainNames.length; j++) {","    }","    pm.expect(jsonData.networkConfig.vipHostName).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.useDhcp).to.be.a(\"boolean\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.gateway).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetIp).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetMask).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.dnsServers).to.be.an(\"array\");","    for (var k = 0; k < jsonData.networkConfig.manualNetworkConfig.dnsServers.length; k++) {","    }","    pm.expect(jsonData.enableEncryption).to.be.a(\"boolean\");","});"],"type":"text/javascript","id":"e1854c2d-0da3-4e28-b7a1-e956c12095a3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e8c902e1-78a6-484f-84d2-00a98e47b222"}}],"id":"c9689da5-f3d1-48fe-8bd0-33498e5ced32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/clusters","urlObject":{"protocol":"https","path":["v2","clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9689da5-f3d1-48fe-8bd0-33498e5ced32"},{"name":"Get voume path","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData !== undefined && jsonData !== null) {","        pm.expect(jsonData.volumes).to.be.an('array')","        for (var i = 0; i < jsonData.volumes.length; i++) {","            pm.environment.set(\"restoreVolumePath\", jsonData.volumes[i].name);","        }","    }","});"],"type":"text/javascript","id":"280dd4f8-b404-4add-8005-82e56b954a50"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e95e12d0-974c-475d-b921-2c4f1f4b205c"}}],"id":"66e9e63d-88b2-48ea-ba54-89a4efc7642a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/snapshots/{{snapshotId}}/volume","urlObject":{"protocol":"https","path":["v2","data-protect","snapshots","{{snapshotId}}","volume"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66e9e63d-88b2-48ea-ba54-89a4efc7642a"},{"name":"Recover Volume","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"5969c95e-cfe8-4815-920c-4e697739de8b"}}],"id":"11950b14-1173-44d1-927d-b2b8909b566e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{            \n    \"name\":\"File_Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\":\"kPhysical\",\n    \"physicalParams\":{\n        \"recoveryAction\":\"RecoverFiles\",\n        \"objects\":[{\n            \"snapshotId\":\"{{snapshotId}}\"\n        }],\n    \"recoverFileAndFolderParams\":{\n        \"filesAndFolders\": [ \n            {\n                \"absolutePath\": \"{{restoreVolumePath}}\",\n                \"isDirectory\":true\n            }\n        ],\n        \"targetEnvironment\": \"kPhysical\",\n        \"physicalTargetParams\":{\n            \"recoverTarget\": {\n            \t\"id\": {{sourceId}}\n            },\n            \"restoreToOriginalPaths\": true\n        }\n    }\n}}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"11950b14-1173-44d1-927d-b2b8909b566e"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","","    if (jsonData.status === \"Running\") {","        sleep(5000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"31abb050-a3ed-45f4-9da0-8a93118fe94e"}}],"id":"9294e786-5abf-4ee8-ba10-7c6a898d70b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9294e786-5abf-4ee8-ba10-7c6a898d70b5"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"6622b96f-1ab2-4d77-8ddb-623d0acb9596"}}],"id":"60830303-d787-4cfa-80ab-75677396e6bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"60830303-d787-4cfa-80ab-75677396e6bd"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"e1720c07-ee19-4910-9a8d-d198c49562d7"}}],"id":"918e3bbc-899e-41fe-b952-036bb408b782","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"918e3bbc-899e-41fe-b952-036bb408b782"}],"id":"25b4d8c5-97c0-4380-ab62-6f3080db6537","description":"<p>Operations on Windows Physical Server (Volume) with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Check the storage domain (the view box)</li>\n<li>Search for existing protection sources</li>\n<li>Register the Windows Physical Server as protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group for windows physical server volume</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The windows physical server volumes are ready to be restored</li>\n<li>Select the desired volume and restore</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots) and the windows physical server</li>\n</ol>\n","_postman_id":"25b4d8c5-97c0-4380-ab62-6f3080db6537"},{"name":"DataProtect-Physical-Linux-File","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"243d9676-91da-4191-9b7c-15088e887a02"}}],"id":"031b40c4-8825-4976-b995-c928f5729fa5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"031b40c4-8825-4976-b995-c928f5729fa5"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"71828370-c783-409a-9f05-5a8db75000cf"}}],"id":"6e5282aa-b181-4295-8e1f-e851d21c432b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e5282aa-b181-4295-8e1f-e851d21c432b"},{"name":"Get Protection Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Physical source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching Source id\", function () {","    var jsonData = pm.response.json();","    var server = pm.environment.get(\"physical_server_linux\");","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.registrations).to.be.an(\"array\");","    for (var i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].environment === \"kPhysical\") {","            pm.expect(jsonData.registrations[i].id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceId).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo).to.be.an(\"object\");","            pm.expect(jsonData.registrations[i].sourceInfo.id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo.name).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.environment).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.objectType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.protectionType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.osType).to.be.a(\"string\");","","            if (jsonData.registrations[i].sourceInfo.name === server) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"ee19f348-7008-46c4-acf8-60fea1d12b4c"}}],"id":"6a3961b6-374e-42cd-9d5c-28be702a60ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a3961b6-374e-42cd-9d5c-28be702a60ca"},{"name":"Register Physical Server","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","sleep(5000);","","pm.test(\"Register Physical Server Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Set the Physical Server registered id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"sourceId\", jsonData.id);","});"],"type":"text/javascript","id":"ce5a69ef-e9ad-491b-bd2c-39ce83a4ddc6"}}],"id":"2cd33c78-ba84-44dc-8425-4b4cae53d681","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kPhysical\",\n  \"isInternalEncrypted\": false,\n  \"connectionId\": 0,\n  \"physicalParams\": {\n    \"endpoint\": \"{{physical_server_linux}}\",\n    \"hostType\":\"kLinux\",\n    \"physicalType\":\"kHost\"\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2cd33c78-ba84-44dc-8425-4b4cae53d681"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"3f18367d-4abb-41b7-b1c0-944150a7ccaf"}}],"id":"c34a6bc1-0af2-4ecd-8771-48fbb30cc6e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c34a6bc1-0af2-4ecd-8771-48fbb30cc6e7"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"f725b03a-d1f7-4436-a40c-24277f82034f"}}],"id":"47c1f3c9-4fff-4017-abda-cd6d24b2dea0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"47c1f3c9-4fff-4017-abda-cd6d24b2dea0"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["    var jsonData = pm.response.json();","    console.log(jsonData)","    pm.test(\"Status code is 201\", function() {","        pm.response.to.have.status(201);","        pm.environment.set(\"protectionJobId\", jsonData.id);","        pm.environment.set(\"protectionJobName\", jsonData.name);","        pm.expect(jsonData.id).to.be.a('string')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.policyId).to.be.a('string')","        pm.expect(jsonData.priority).to.be.a('string')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.description).to.be.a('string')","        pm.expect(jsonData.startTime).to.be.an('object')","        pm.expect(jsonData.startTime.hour).to.be.a('number')","        pm.expect(jsonData.startTime.minute).to.be.a('number')","        pm.expect(jsonData.startTime.timeZone).to.be.a('string')","        pm.expect(jsonData.alertPolicy).to.be.an('object')","        pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","        pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","        pm.expect(jsonData.sla).to.be.an('array')","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        pm.expect(jsonData.qosPolicy).to.be.a('string')","        pm.expect(jsonData.isActive).to.be.a('boolean')","        pm.expect(jsonData.isPaused).to.be.a('boolean')","        pm.expect(jsonData.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.protectionType).to.be.a('string')","        pm.expect(jsonData.physicalParams.fileProtectionTypeParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects).to.be.an('array')","        for (var i = 0; i < jsonData.physicalParams.fileProtectionTypeParams.objects.length; i++) {","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].id).to.be.a('number')","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].name).to.be.a('string')","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths).to.be.an('array')","            for (var j = 0; j < jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths.length; j++) {","                pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths[j].includedPath).to.be.a('string')","                pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].filePaths[j].skipNestedVolumes).to.be.a('boolean')","            }","            pm.expect(jsonData.physicalParams.fileProtectionTypeParams.objects[i].usesPathLevelSkipNestedVolumeSetting).to.be.a('boolean')","        }","    });"],"type":"text/javascript","id":"07ba52ae-276f-4f77-be93-27dd34a205d9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8009ffa9-c61a-4026-b875-6e80ec88d8b5"}}],"id":"0b053de9-f4b1-4b3c-ae60-0833752d68f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_887\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kPhysical\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"America/Los_Angeles\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"physicalParams\": {\n    \"protectionType\": \"kFile\",\n    \"fileProtectionTypeParams\":{\n    \t\"objects\": [{\n    \t\t\"id\": {{sourceId}}\n    \t,\"filePaths\":[{\"includedPath\":\"{{filePath}}\"}]}]\n    }\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b053de9-f4b1-4b3c-ae60-0833752d68f6"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"89fae30c-4605-4e50-8355-a10c19ad5251"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5ab7ca16-7367-40d7-bd46-4f3a88fb065d"}}],"id":"55fde64f-6a14-420f-924a-84756d7caab3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55fde64f-6a14-420f-924a-84756d7caab3"},{"name":"Get Protection Groups Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","    pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","    pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"17467cf9-9e6d-4dbc-92d3-bb714cfba42f"}}],"id":"df54de96-e59a-4bb0-b70b-740769921dea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"df54de96-e59a-4bb0-b70b-740769921dea"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"edc8bc03-57f8-4136-8719-56074f79e983"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2b93ccf7-59fb-42df-b0e2-4571854c4673"}}],"id":"9d7d0513-c2af-48d3-859d-fa8c7c38c192","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverFiles&searchString=*&environments=kPhysical,kPhysicalFiles","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverFiles"},{"key":"searchString","value":"*"},{"key":"environments","value":"kPhysical,kPhysicalFiles"}],"variable":[]}},"response":[],"_postman_id":"9d7d0513-c2af-48d3-859d-fa8c7c38c192"},{"name":"Get Cluster Info","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"incarnationId\", jsonData.incarnationId);","    pm.environment.set(\"clusterId\", jsonData.id);","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.id).to.be.a(\"number\");","    pm.expect(jsonData.incarnationId).to.be.a(\"number\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.type).to.be.a(\"string\");","    pm.expect(jsonData.swVersion).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.ntpServers).to.be.an(\"array\");","    for (var i = 0; i < jsonData.networkConfig.ntpServers.length; i++) {","    }","    pm.expect(jsonData.networkConfig.domainNames).to.be.an(\"array\");","    for (var j = 0; j < jsonData.networkConfig.domainNames.length; j++) {","    }","    pm.expect(jsonData.networkConfig.vipHostName).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.useDhcp).to.be.a(\"boolean\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.gateway).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetIp).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetMask).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.dnsServers).to.be.an(\"array\");","    for (var k = 0; k < jsonData.networkConfig.manualNetworkConfig.dnsServers.length; k++) {","    }","    pm.expect(jsonData.enableEncryption).to.be.a(\"boolean\");","});"],"type":"text/javascript","id":"ce90e57c-5a65-4e3b-ab71-0211c9d6fdf2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8d800d23-2844-4e5d-8fe2-41679d1bc210"}}],"id":"0a616f6c-a0b2-43d1-907f-d224c65f062b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/clusters","urlObject":{"protocol":"https","path":["v2","clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a616f6c-a0b2-43d1-907f-d224c65f062b"},{"name":"Get Filepath","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData !== undefined && jsonData !== null) {","        for (var i = 0; i < jsonData.files.length; i++) {","            pm.environment.set(\"restoreFilePath\", jsonData.files[i].fullPath);","            postman.setNextRequest(\"Create Recovery\");","        }","    }","});"],"type":"text/javascript","id":"d127fbff-1163-44b3-8fe5-5591106705b9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"10d77922-856f-4ef3-9733-de83b9754e51"}}],"id":"7a789b21-5fc9-4b08-9e78-db3d3b057a2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\" : [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\": \"Files\",\n\t\"fileParams\": {\n\t\t\"searchString\" : \"{{filePath}}\",\n        \"types\": [\"File\"]\n\t}\n}"},"url":"https://{{cluster}}/v2/data-protect/search/indexed-objects","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a789b21-5fc9-4b08-9e78-db3d3b057a2f"},{"name":"Restore File","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"9104b563-82c6-4ce6-b7c5-669fb2144a16"}}],"id":"83122ce9-37e1-404e-a12e-2b94a6955d94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{            \n    \"name\":\"File_Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\":\"kPhysical\",\n    \"physicalParams\":{\n        \"recoveryAction\":\"RecoverFiles\",\n        \"objects\":[{\n            \"snapshotId\":\"{{snapshotId}}\"\n        }],\n    \"recoverFileAndFolderParams\":{\n        \"filesAndFolders\": [ \n            {\n                \"absolutePath\": \"{{restoreFilePath}}\",\n                \"isDirectory\":false\n            }\n        ],\n        \"targetEnvironment\": \"kPhysical\",\n        \"physicalTargetParams\":{\n            \"recoverTarget\": {\n            \t\"id\": {{sourceId}}\n            },\n            \"restoreToOriginalPaths\": true\n        }\n    }\n}}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"83122ce9-37e1-404e-a12e-2b94a6955d94"},{"name":"Get File Restore Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","","    if (jsonData.status === \"Running\") {","        sleep(5000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"15e2b61e-0e47-4bb0-897e-9d31f2ff7044"}}],"id":"ce5793cd-3c3e-4a8c-9ade-4eb24027a646","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce5793cd-3c3e-4a8c-9ade-4eb24027a646"},{"name":"Remove Protection Group and Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"5c3afe8c-16ba-4377-b351-9dd838e849c4"}}],"id":"5d83c0e3-49f2-412b-8702-fefe93c0a7c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"5d83c0e3-49f2-412b-8702-fefe93c0a7c4"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"18cf5d9b-31f1-4783-889c-783390e7119a"}}],"id":"5deafa17-c870-4ad3-9660-0c8bd366b3c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5deafa17-c870-4ad3-9660-0c8bd366b3c8"}],"id":"4ed4dac0-6fb8-4841-9c3c-8e90fd2d8664","description":"<p>Operations on Linux Physical Server (File) with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Check the storage domain (the view box)</li>\n<li>Search for existing protection sources</li>\n<li>Register the Linux Physical Server as protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group with the linux physical server files</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The linux physical server files are ready to be restored</li>\n<li>Select the desired file and restore</li>\n<li>Cleanup the cluster by removing the protection group and the linux physical server</li>\n</ol>\n","_postman_id":"4ed4dac0-6fb8-4841-9c3c-8e90fd2d8664"},{"name":"DataProtect-Physical-Linux-Block","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"c4ceb1a7-0723-429d-88c9-03d3f78c0c2e"}}],"id":"4f8760e7-9377-4ece-851b-595e9a3f2078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f8760e7-9377-4ece-851b-595e9a3f2078"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"ceb1a459-2f9f-4255-bca1-08be7dc1c90a"}}],"id":"79858b1a-a7a9-4543-8a88-e1e134f35fe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"79858b1a-a7a9-4543-8a88-e1e134f35fe1"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Physical source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching Source id\", function () {","    var jsonData = pm.response.json();","    var server = pm.environment.get(\"physical_server_linux\");","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.registrations).to.be.an(\"array\");","    for (var i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].environment === \"kPhysical\") {","            pm.expect(jsonData.registrations[i].id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceId).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo).to.be.an(\"object\");","            pm.expect(jsonData.registrations[i].sourceInfo.id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo.name).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.environment).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.objectType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.protectionType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.osType).to.be.a(\"string\");","","            if (jsonData.registrations[i].sourceInfo.name === server) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"c1babeb3-7608-4b86-88fd-ab5e6115ad3f"}}],"id":"54e608c9-47a0-4708-853a-0299ca2cb7e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"54e608c9-47a0-4708-853a-0299ca2cb7e8"},{"name":"Register Physical Server","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","sleep(5000);","","pm.test(\"Register Physical Server Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Set the Physical Server registered id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"sourceId\", jsonData.id);","});"],"type":"text/javascript","id":"f454757a-b8c3-438a-a860-fd4c699c87db"}}],"id":"a0d85f60-c05c-4f50-8372-ab0856593c74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kPhysical\",\n  \"isInternalEncrypted\": false,\n  \"connectionId\": 0,\n  \"physicalParams\": {\n    \"endpoint\": \"{{physical_server_linux}}\",\n    \"hostType\":\"kLinux\",\n    \"physicalType\":\"kHost\"\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0d85f60-c05c-4f50-8372-ab0856593c74"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"e7723e05-d94f-4193-8c5a-cbd3e46cdcfd"}}],"id":"459b6906-8051-4cb6-97a8-cccb5e24da78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"459b6906-8051-4cb6-97a8-cccb5e24da78"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"5d265478-2407-487d-86f6-c51bb44cae8f"}}],"id":"1a33e8a2-684d-474c-b6a2-2f1b649d86c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a33e8a2-684d-474c-b6a2-2f1b649d86c2"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["    var jsonData = pm.response.json();","    console.log(jsonData)","    pm.test(\"Status code is 201\", function() {","        pm.response.to.have.status(201);","        pm.environment.set(\"protectionJobId\", jsonData.id);","        pm.environment.set(\"protectionJobName\", jsonData.name);","        pm.expect(jsonData.id).to.be.a('string')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.policyId).to.be.a('string')","        pm.expect(jsonData.priority).to.be.a('string')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.description).to.be.a('string')","        pm.expect(jsonData.startTime).to.be.an('object')","        pm.expect(jsonData.startTime.hour).to.be.a('number')","        pm.expect(jsonData.startTime.minute).to.be.a('number')","        pm.expect(jsonData.startTime.timeZone).to.be.a('string')","        pm.expect(jsonData.alertPolicy).to.be.an('object')","        pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","        pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","        pm.expect(jsonData.sla).to.be.an('array')","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        pm.expect(jsonData.qosPolicy).to.be.a('string')","        pm.expect(jsonData.isActive).to.be.a('boolean')","        pm.expect(jsonData.isPaused).to.be.a('boolean')","        pm.expect(jsonData.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.protectionType).to.be.a('string')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects).to.be.an('array')","        for (var i = 0; i < jsonData.physicalParams.volumeProtectionTypeParams.objects.length; i++) {","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].id).to.be.a('number')","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].name).to.be.a('string')","        }","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.enableIndexing).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.includePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.excludePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.performSourceSideDeduplication).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.incrementalBackupAfterRestart).to.be.a('boolean')","    });"],"type":"text/javascript","id":"b4902f67-398e-4d0c-9b79-018abd6a9fd5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cbc3fb22-d7c8-45cf-889c-ec7e824c9e5a"}}],"id":"cad405f9-a8d9-4669-a8e8-a39a3c14ae46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_982\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kPhysical\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"physicalParams\":{\n  \t\"protectionType\":\"kVolume\",\n  \t\"volumeProtectionTypeParams\":{\n  \t\t\"objects\":[{\"id\":{{sourceId}}}],\n  \t\t\"indexingPolicy\":{\"enableIndexing\":true,\n  \t\t\"includePaths\":[\"/\"],\n  \t\t\"excludePaths\":[\"/$Recycle.Bin\",\"/Windows\",\"/Program Files\",\"/Program Files (x86)\",\"/ProgramData\",\"/System Volume Information\",\"/Users/*/AppData\",\"/Recovery\",\"/var\",\"/usr\",\"/sys\",\"/proc\",\"/lib\",\"/grub\",\"/grub2\",\"/opt/splunk\",\"/splunk\"]},\n  \t\t\"performSourceSideDeduplication\":false,\n  \t\t\"incrementalBackupAfterRestart\":true\n  \t\t}\n  \t}\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cad405f9-a8d9-4669-a8e8-a39a3c14ae46"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"e425c503-aa93-4047-b7fa-2d7c0b6d46ab"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e58fe550-cf54-4a89-8ad2-f701709bd476"}}],"id":"05e5d3db-19a2-4bd7-9f6a-4d9612c43516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"05e5d3db-19a2-4bd7-9f6a-4d9612c43516"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","    pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","    pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"601f0d3c-aeae-4784-8f3e-2b083bfe8b78"}}],"id":"741e59e1-1dd4-4277-90a0-bf23af8e964c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"741e59e1-1dd4-4277-90a0-bf23af8e964c"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"5e73babb-d56c-4983-a4bb-c84ce70cdb07"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"989ba95f-a4d8-4d4c-b653-8667f8c28ad6"}}],"id":"188e2530-19f3-4f13-b2b0-76042feff9ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverFiles&searchString=*&environments=kPhysical,kPhysicalFiles","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverFiles"},{"key":"searchString","value":"*"},{"key":"environments","value":"kPhysical,kPhysicalFiles"}],"variable":[]}},"response":[],"_postman_id":"188e2530-19f3-4f13-b2b0-76042feff9ea"},{"name":"Get Cluster Info","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"incarnationId\", jsonData.incarnationId);","    pm.environment.set(\"clusterId\", jsonData.id);","    var jsonData = JSON.parse(responseBody)","    pm.expect(jsonData.id).to.be.a(\"number\");","    pm.expect(jsonData.incarnationId).to.be.a(\"number\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.type).to.be.a(\"string\");","    pm.expect(jsonData.swVersion).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.ntpServers).to.be.an(\"array\");","    for (var i = 0; i < jsonData.networkConfig.ntpServers.length; i++) {","    }","    pm.expect(jsonData.networkConfig.domainNames).to.be.an(\"array\");","    for (var j = 0; j < jsonData.networkConfig.domainNames.length; j++) {","    }","    pm.expect(jsonData.networkConfig.vipHostName).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.useDhcp).to.be.a(\"boolean\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig).to.be.an(\"object\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.gateway).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetIp).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.subnetMask).to.be.a(\"string\");","    pm.expect(jsonData.networkConfig.manualNetworkConfig.dnsServers).to.be.an(\"array\");","    for (var k = 0; k < jsonData.networkConfig.manualNetworkConfig.dnsServers.length; k++) {","    }","    pm.expect(jsonData.enableEncryption).to.be.a(\"boolean\");","});"],"type":"text/javascript","id":"47c361f3-8455-4f44-93cb-e5070e0b082e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f276ee04-e95e-4384-9fe0-9cce9f7f60d5"}}],"id":"2538d35e-9f7a-409b-802f-661f3357638a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/clusters","urlObject":{"protocol":"https","path":["v2","clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2538d35e-9f7a-409b-802f-661f3357638a"},{"name":"Get Volume Name","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response, got 200\", function () {","    var jsonData = pm.response.json();","    if (jsonData !== undefined && jsonData !== null) {","        for (var i = 0; i < jsonData.volumes.length; i++) {","            pm.environment.set(\"restoreVolumePath\", jsonData.volumes[i].name);","","        }","    }","});"],"type":"text/javascript","id":"7e8c8573-bd21-43b5-a980-c1772e2a7912"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1ba54638-3b48-4be5-88c2-6993cacebc56"}}],"id":"2f534a2d-97ac-49f1-b81f-e5f6330bdc15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\": [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\":\"Files\",\n\t\"fileParams\":{\n\t\t\"searchString\": \"*\",\n\t\t\"types\": [\"File\"],\n\t\t\"sourceEnvironments\": [\"kPhysicalFiles\", \"kPhysical\"],\n\t\t\"sourceIds\": [{{sourceId}}]\n\t}\n}"},"url":"https://{{cluster}}/v2/data-protect/snapshots/{{snapshotId}}/volume","urlObject":{"protocol":"https","path":["v2","data-protect","snapshots","{{snapshotId}}","volume"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f534a2d-97ac-49f1-b81f-e5f6330bdc15"},{"name":"Recover Volume","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"f058a676-73a5-48dd-8993-d60f8776fe19"}}],"id":"ae2be7db-eb97-4cca-a807-1fe79a330116","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{            \n    \"name\":\"File_Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\":\"kPhysical\",\n    \"physicalParams\":{\n        \"recoveryAction\":\"RecoverFiles\",\n        \"objects\":[{\n            \"snapshotId\":\"{{snapshotId}}\"\n        }],\n    \"recoverFileAndFolderParams\":{\n        \"filesAndFolders\": [ \n            {\n                \"absolutePath\": \"{{restoreVolumePath}}\",\n                \"isDirectory\":true\n            }\n        ],\n        \"targetEnvironment\": \"kPhysical\",\n        \"physicalTargetParams\":{\n            \"recoverTarget\": {\n            \t\"id\": {{sourceId}}\n            },\n            \"restoreToOriginalPaths\": true\n        }\n    }\n}}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae2be7db-eb97-4cca-a807-1fe79a330116"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","","    if (jsonData.status === \"Running\") {","        sleep(5000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"8505adac-ea35-4553-a125-5ed0b94eb171"}}],"id":"ff2b212d-4e6c-4269-9229-b1e574688263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff2b212d-4e6c-4269-9229-b1e574688263"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"35dbf582-e9d6-46e8-b3ad-9a0ac04f71ed"}}],"id":"042a9cbe-0caa-441b-881a-7b5023ad11ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"042a9cbe-0caa-441b-881a-7b5023ad11ff"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"a18bab65-ba19-47d7-8fa3-b28bdb8befe1"}}],"id":"e01d55e2-6c13-4700-97c3-ce4b83ef2a13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e01d55e2-6c13-4700-97c3-ce4b83ef2a13"}],"id":"330f3ef7-1edf-4c53-8d75-2c61b64ca913","description":"<p>Operations on Linux Physical Server (Block-Based) with Cohesity APIs:</p>\n<ol>\n<li>Generate the access token</li>\n<li>Check the storage domain (the view box)</li>\n<li>Search for existing protection sources</li>\n<li>Register the Linux Physical Server as protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group for linux physical server volume</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The linux physical server volumes are ready to be restored</li>\n<li>Select the desired volume and restore</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots) and the linux physical server</li>\n</ol>\n","_postman_id":"330f3ef7-1edf-4c53-8d75-2c61b64ca913"},{"name":"DataProtect-MongoDB","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"de2acdc1-99f2-4555-a27a-2ce587f5fcd7"}}],"id":"dff6780a-0f54-43d7-be87-4c5b96ecc5d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dff6780a-0f54-43d7-be87-4c5b96ecc5d1"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Physical source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching Source id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get('mongo_hosts');","    var server = JSON.parse(source)[0]","    pm.expect(jsonData.registrations).to.be.an(\"array\");","    for (var i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kMongoDB\") {","            pm.expect(jsonData.registrations[i].id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceId).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo).to.be.an(\"object\");","            pm.expect(jsonData.registrations[i].sourceInfo.id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo.name).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.environment).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.objectType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.uuid).to.be.a(\"string\");","            if (jsonData.registrations[i].sourceInfo.name === server) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"104c1486-a7cb-488d-aa2c-2bdae6283bff"}}],"id":"c3fd6094-6499-42aa-9987-761a3ed97aec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3fd6094-6499-42aa-9987-761a3ed97aec"},{"name":"Register MongoDB","event":[{"listen":"test","script":{"exec":["pm.test(\"Register VCenter Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","id":"29ec75c0-3d47-4a6a-940e-0c252e2df661"}}],"id":"f5423485-a2bc-4f40-a539-5d9176b3f810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"environment\":\"kMongoDB\",\n   \"mongodbParams\":{\n      \"username\":\"{{mongo_db_user}}\",\n      \"password\":\"{{mongo_db_pwd}}\",\n      \"hosts\": {{mongo_hosts}},\n      \"description\":\"Mongo Database\",\n      \"authType\":\"NONE\",\n      \"authenticatingDatabase\":\"{{mongo_authenticating_db}}\",\n      \"isSslRequired\":false,\n      \"useSecondaryForBackup\":false,\n      \"secondaryNodeTag\":\"\"\n   }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5423485-a2bc-4f40-a539-5d9176b3f810"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains\");","    }","});"],"type":"text/javascript","id":"db28be91-9eeb-42d9-94d7-faf108835a9b"}}],"id":"b3b36ffa-1687-4e0b-96cd-42710ff0df49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3b36ffa-1687-4e0b-96cd-42710ff0df49"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"d122c846-49a1-4148-abb8-f3fa21420e87"}}],"id":"87121f1e-19ba-48df-b8ce-866c59611778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"87121f1e-19ba-48df-b8ce-866c59611778"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].s3BucketsEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.encryptionType).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.type).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams.inlineEnabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.inlineEnabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"898d3623-8781-4d34-8895-cc7cb461e25a"}}],"id":"d17fa85c-69d2-47c5-86e9-3292373269d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d17fa85c-69d2-47c5-86e9-3292373269d3"},{"name":"Get Object Id","event":[{"listen":"test","script":{"exec":["tests[\"Fetching objects, Status code is 200\"] = responseCode.code === 200;","var jsonData = JSON.parse(responseBody);","","pm.test(\"Status code is 200\", function () {","    var collection = pm.environment.get('collection')","    if (jsonData !== undefined && jsonData.objects.length > 0) {","        for (var i = 0; i < jsonData.objects.length; i++) {","            if (jsonData.objects[i].name === collection) {","                pm.environment.set(\"objectId\", jsonData.objects[i].id);","                pm.environment.set(\"parentId\", jsonData.objects[i].sourceId);","                postman.setNextRequest(\"Create Protection Group\");","            }","        }","    }","})"],"type":"text/javascript","id":"88c58852-f5fe-4716-b0e1-04b28437c16e"}}],"id":"2e137fc0-016c-4000-8fe1-f5844b14c6b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/objects?parentId={{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","objects"],"host":["{{cluster}}"],"query":[{"key":"parentId","value":"{{sourceId}}"}],"variable":[]}},"response":[],"_postman_id":"2e137fc0-016c-4000-8fe1-f5844b14c6b5"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i=0; i<jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","    }","    for (var i=0; i<jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","    }","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.mongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.concurrency).to.be.a('number')","    pm.expect(jsonData.mongodbParams.objects).to.be.an('array')","    for (var i=0; i<jsonData.mongodbParams.objects.length; i++) {","        pm.expect(jsonData.mongodbParams.objects[i].name).to.be.a('string')","        pm.expect(jsonData.mongodbParams.objects[i].id).to.be.a('number')","        }","    pm.expect(jsonData.mongodbParams.sourceId).to.be.a('number')","    pm.expect(jsonData.mongodbParams.sourceName).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.name).to.be.a('string')","});"],"type":"text/javascript","id":"7841379f-e804-490c-a39b-991bf80cdcfe"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e3737104-9b3c-4dc6-93cd-b5d7cc4ecede"}}],"id":"d772b6a8-ce81-4415-9a15-b94d152196c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_146\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kMongoDB\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"America/Los_Angeles\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"mongodbParams\": {\n    \"objects\": [\n      {\n        \"id\": {{objectId}}\n      }\n    ],\n    \"concurrency\": 16,\n    \"excludeObjectIds\": [],\n    \"bandwidthMBPS\": null\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d772b6a8-ce81-4415-9a15-b94d152196c4"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"a936d46d-311c-4a97-9344-3d09ab2fde6a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"84a717a7-d3fe-41bf-95b2-09b20050966e"}}],"id":"ad4bacb3-1748-4efd-b4a0-de41fdba5b66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad4bacb3-1748-4efd-b4a0-de41fdba5b66"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"99e3008a-7575-4a12-9c1d-6f40750e2a0a"}}],"id":"7457bfd8-d7ae-4de7-a7e8-fa9186da761c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7457bfd8-d7ae-4de7-a7e8-fa9186da761c"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"dddc76f9-09d2-48fd-b064-93a6bf7f6d8b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e8dc8b43-fe80-4d4d-8a92-d750937e928c"}}],"id":"a43c0e10-ac6a-4d1b-9592-cb15ce997072","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kMongoDB","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kMongoDB"}],"variable":[]}},"response":[],"_postman_id":"a43c0e10-ac6a-4d1b-9592-cb15ce997072"},{"name":"Get Indexed Objects","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"collectionName\", jsonData.mongoObjects.name);","});"],"type":"text/javascript","id":"a143e107-0121-497c-a21d-e9539c829f29"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f8c55dc4-963c-4824-81c1-538a10941fa9"}}],"id":"25a78714-85d3-41cf-91d5-b3d1befcc054","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"mongodbParams\": {\n    \"mongoDBObjectTypes\": [\n      \"MongoCollections\"\n    ],\n    \"searchString\": \"*\",\n    \"sourceIds\": []\n  },\n  \"objectType\": \"MongoObjects\",\n  \"protectionGroupIds\": [\n    \"{{protectionJobId}}\"\n  ],\n  \"storageDomainIds\": [\n    {{viewBoxId}}\n  ]\n}"},"url":"https://{{cluster}}/v2/data-protect/search/indexed-objects","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25a78714-85d3-41cf-91d5-b3d1befcc054"},{"name":"Recover Database","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.mongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots).to.be.an('array')","    for (var i=0; i<jsonData.mongodbParams.recoverMongodbParams.snapshots.length; i++) {","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects).to.be.an('array')","        for (var j=0; j<jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects.length; j++) {","            pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects[j].objectName).to.be.a('string')","        }","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotId).to.be.a('string')","    }","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.overwrite).to.be.a('boolean')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.recoverTo).to.be.a('number')","","","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"d8ef87c8-279d-41ca-830b-c63875b3cc6b"}}],"id":"37f663e5-a62d-4b7d-8de7-c7d6ee1ff844","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"Recovery_{{protectionJobName}}\",\n  \"snapshotEnvironment\": \"kMongoDB\",\n  \"mongodbParams\": {\n    \"recoveryAction\": \"RecoverObjects\",\n    \"recoverMongodbParams\": {\n      \"overwrite\": false,\n      \"concurrency\": null,\n      \"bandwidthMBPS\": null,\n      \"snapshots\": [\n        {\n          \"snapshotId\": \"{{snapshotId}}\",\n          \"objects\": [\n            {\n              \"objectName\": \"{{collectionName}}\",\n              \"objectProperties\": []\n            }\n          ]\n        }\n      ],\n      \"recoverTo\": {{parentId}},\n      \"suffix\": null\n    }\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37f663e5-a62d-4b7d-8de7-c7d6ee1ff844"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.mongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams).to.be.an('object')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots).to.be.an('array')","    for (var i=0; i<jsonData.mongodbParams.recoverMongodbParams.snapshots.length; i++) {","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects).to.be.an('array')","        for (var j=0; j<jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects.length; j++) {","            pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].objects[j].objectName).to.be.a('string')","        }","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.mongodbParams.recoverMongodbParams.snapshots[i].snapshotId).to.be.a('string')","    }","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.overwrite).to.be.a('boolean')","    pm.expect(jsonData.mongodbParams.recoverMongodbParams.recoverTo).to.be.a('number')","","    if (jsonData.status === \"Running\"){","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"a23885bf-9a9f-4cfb-9c5e-569234254da9"}}],"id":"1459ab67-60d4-4524-bd3e-a232c594284f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1459ab67-60d4-4524-bd3e-a232c594284f"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"b9cdf1ed-127b-40ed-b2c1-1d0a7ec12d48"}}],"id":"7d5a82ce-279a-47f7-89cf-3d7d7a055448","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"7d5a82ce-279a-47f7-89cf-3d7d7a055448"},{"name":"Unregister MongoDB","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"ee92c840-2c07-4aca-b9af-20e361851e96"}}],"id":"a4436d02-0347-4e6d-8c24-69819529a08f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4436d02-0347-4e6d-8c24-69819529a08f"}],"id":"4e2e1722-54b8-4fe1-8023-f9fc2ab8590a","description":"<p>Operations on Mongo DB with Cohesity APIs:</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get the protection sources</li>\n<li>Register the Mongo DB as protection source</li>\n<li>Check the storage domain (the view box)</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group for Mongo DB</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The Mongo database are ready to be restored</li>\n<li>Select the desired database and restore</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots), Mongo DB</li>\n</ol>\n","_postman_id":"4e2e1722-54b8-4fe1-8023-f9fc2ab8590a"},{"name":"DataProtect-MSSQL","item":[{"name":"Generate Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);",""],"type":"text/javascript","id":"584c25a7-c841-4838-9e42-cd493ecc9a0a"}}],"id":"01411194-d4f6-48ce-b57f-92936f34ce89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"domain\": \"LOCAL\",\r\n    \"password\": \"{{clusterPassword}}\",\r\n    \"username\": \"{{clusterUsername}}\"\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","description":"<p>https://{{cluster}}/irisservices/api/v1/public/accessTokens</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"01411194-d4f6-48ce-b57f-92936f34ce89"},{"name":"Get Storage Domain","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"viewBoxId\", jsonData[0].id);"],"type":"text/javascript","id":"0145fcaf-56f4-461f-81b5-f04911aa990e"}}],"id":"b09ee4e8-bf2f-4780-9b3d-ec5253318c6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/viewBoxes","description":"<p>https://{{cluster}}/irisservices/api/v1/public/viewBoxes</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b09ee4e8-bf2f-4780-9b3d-ec5253318c6f"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"40e47bca-d997-4e90-81d6-6f0bbe7276b9"}}],"id":"fa2aa9f3-cdb7-4aba-8f9c-6467e295f56e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa2aa9f3-cdb7-4aba-8f9c-6467e295f56e"},{"name":"Get MSSQL objects","event":[{"listen":"test","script":{"exec":["tests[\"Get MSSQL objects, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","// randomly pick a database","for (i = 0; i < jsonData.objects.length; i++) {","    if (jsonData.objects[i].objectType === \"kDatabase\") {","        var databaseId = jsonData.objects[i].objectProtectionInfos[0].objectId","        pm.environment.set(\"databaseId\", databaseId);","        break","    }","}"],"type":"text/javascript","id":"3d55417a-2ae5-4e31-ac6a-b19079b803c9"}}],"id":"745ce211-da65-473a-b789-bd99b00b1b1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/search/objects?environments=kSQL&searchString=MSSQL*","description":"<p>https://{{cluster}}/irisservices/api/v1/public/viewBoxes</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","objects"],"host":["{{cluster}}"],"query":[{"key":"environments","value":"kSQL"},{"key":"searchString","value":"MSSQL*"}],"variable":[]}},"response":[],"_postman_id":"745ce211-da65-473a-b789-bd99b00b1b1a"},{"name":"Create a Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","","tests[\"Create protection job Status code is 201 : \" + responseCode.code] = responseCode.code === 201;","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","var jsonData = pm.response.json();","var jobName = pm.environment.get(\"protectionJobName\");","pm.test(\"Check protection job name : \" + jobName, function () {","    console.log(jsonData);","    if(responseCode.code === 201) {","        sleep(1000);","        pm.expect(tv4.validate(jsonData.name, jobName)).to.be.true;","        pm.environment.set(\"protectionJobId\", jsonData.id);","    }","});"],"type":"text/javascript","id":"1376d3e4-d27d-4d33-bf45-baa50017d9b5"}},{"listen":"prerequest","script":{"exec":["var protectionJobName = \"ProtectionJob-\" + (new Date()).getTime()\r","pm.environment.set(\"protectionJobName\", protectionJobName);"],"type":"text/javascript","id":"30171c79-a50f-4832-8564-792650bd4cd7"}}],"id":"c5dcbca1-4ec0-4846-8cc2-1deeb40c13b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"policyId\": \"{{policyId}}\",\n  \"startTime\": {\n    \"hour\": 23,\n    \"minute\": 16,\n    \"timeZone\": \"America/Los_Angeles\"\n  },\n  \"qosPolicy\": \"kBackupHDD\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"name\": \"{{protectionJobName}}\",\n  \"environment\": \"kSQL\",\n  \"mssqlParams\": {\n    \"protectionType\": \"kFile\",\n    \"fileProtectionTypeParams\": {\n      \"userDbBackupPreferenceType\": \"kBackupAllDatabases\",\n      \"objects\": [\n        {\n          \"id\": {{databaseId}}\n        }\n      ]\n    }\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionJobs</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5dcbca1-4ec0-4846-8cc2-1deeb40c13b5"},{"name":"Run the Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","","tests[\"Run protection job, status code is 204 : \" + responseCode.code] = responseCode.code === 204;","sleep(10000);"],"type":"text/javascript","id":"4f28a8eb-b2ee-4593-a6a9-0f0d87905652"}}],"id":"059b1ff1-8cc6-4147-97b7-fe6c0143d401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs/run/{{protectionJobId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs","run","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"059b1ff1-8cc6-4147-97b7-fe6c0143d401"},{"name":"Get the Job Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript","id":"8385f2c7-0588-4dbb-a8df-915f65dfa945"}}],"id":"5e1849ff-174c-471f-944f-cca9995f3d48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionRuns?jobId={{protectionJobId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionRuns"],"host":["{{cluster}}"],"query":[{"key":"jobId","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"5e1849ff-174c-471f-944f-cca9995f3d48"},{"name":"Restore as new database","event":[{"listen":"test","script":{"id":"8385f2c7-0588-4dbb-a8df-915f65dfa945","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript"}}],"id":"e063a1e4-e9c3-47c2-83f9-1b4cb9ad2bd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"applicationEnvironment\": \"kSQL\",\r\n    \"hostingProtectionSource\": {\r\n        \"environment\": \"kSQL\",\r\n        \"jobId\": {{protectionJobId}},\r\n        \"jobUid\": {\r\n            \"id\": {{protectionJobId}},\r\n            \"clusterId\": {{clusterId}},\r\n            \"clusterIncarnationId\": {{clusterIncarnationId}}\r\n        },\r\n        \"protectionSourceId\": {{databaseInstanceId}}, //Parent ID\r\n        \"startedTimeUsecs\": {{startTimeUsecs}}\r\n    },\r\n    \"name\": \"{{databaseName}}\",\r\n    \"applicationRestoreObjects\": [\r\n        {\r\n            \"applicationServerId\": {{databaseInstanceId}}, //Instance Id\r\n            \"sqlRestoreParameters\": {\r\n                \"newDatabaseName\": \"{{newDatabaseName}}\",\r\n                \"targetDataFilesDirectory\": \"{{dataFilesDir}}\",\r\n                \"targetLogFilesDirectory\": \"{{logFilesDir}}\"\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/restore/applicationsRecover","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","restore","applicationsRecover"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e063a1e4-e9c3-47c2-83f9-1b4cb9ad2bd3"},{"name":"Restore to Alternate Instance","event":[{"listen":"test","script":{"id":"8385f2c7-0588-4dbb-a8df-915f65dfa945","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript"}}],"id":"7b8bd035-cad3-4455-a1db-991acdef1f01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"applicationEnvironment\": \"kSQL\",\r\n    \"hostingProtectionSource\": {\r\n        \"environment\": \"kSQL\",\r\n        \"jobId\": {{protectionJobId}},\r\n        \"jobUid\": {\r\n            \"id\": {{protectionJobId}},\r\n            \"clusterId\": {{clusterId}},\r\n            \"clusterIncarnationId\": {{clusterIncarnationId}}\r\n        },\r\n        \"protectionSourceId\": {{databaseInstanceId}}, //Parent ID\r\n        \"startedTimeUsecs\": {{startTimeUsecs}}\r\n    },\r\n    \"name\": \"{{databaseName}}\",\r\n    \"applicationRestoreObjects\": [\r\n        {\r\n            \"applicationServerId\": {{databaseInstanceId}}, //Database Id\r\n            \"sqlRestoreParameters\": {\r\n                \"newDatabaseName\": \"{{newDatabaseName}}\",\r\n                \"newInstanceName\": \"{{instanceName}}\",\r\n                \"targetDataFilesDirectory\": \"{{dataFilesDir}}\",\r\n                \"targetLogFilesDirectory\": \"{{logFilesDir}}\"\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/restore/applicationsRecover","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","restore","applicationsRecover"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b8bd035-cad3-4455-a1db-991acdef1f01"},{"name":"Restore to Alternate Host","event":[{"listen":"test","script":{"id":"8385f2c7-0588-4dbb-a8df-915f65dfa945","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript"}}],"id":"bb1de2b3-2be2-4bba-968f-978c6dc63c84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"applicationEnvironment\": \"kSQL\",\r\n    \"hostingProtectionSource\": {\r\n        \"environment\": \"kSQL\",\r\n        \"jobId\": {{protectionJobId}},\r\n        \"jobUid\": {\r\n            \"id\": {{protectionJobId}},\r\n            \"clusterId\": {{clusterId}},\r\n            \"clusterIncarnationId\": {{clusterIncarnationId}}\r\n        },\r\n        \"protectionSourceId\": {{databaseInstanceId}}, //Parent ID\r\n        \"startedTimeUsecs\": {{startTimeUsecs}}\r\n    },\r\n    \"name\": \"{{databaseName}}\",\r\n    \"applicationRestoreObjects\": [\r\n        {\r\n            \"applicationServerId\": {{databaseInstanceId}}, //Database Id\r\n            \"sqlRestoreParameters\": {\r\n                \"newDatabaseName\": \"{{newDatabaseName}}\",\r\n                \"targetDataFilesDirectory\": \"{{dataFilesDir}}\",\r\n                \"targetLogFilesDirectory\": \"{{logFilesDir}}\"\r\n            },\r\n            \"targetHostId\": {{newHostId}} // New Host Id.\r\n        }\r\n    ]\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/restore/applicationsRecover","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","restore","applicationsRecover"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb1de2b3-2be2-4bba-968f-978c6dc63c84"},{"name":"Restore Overwrite database","event":[{"listen":"test","script":{"id":"8385f2c7-0588-4dbb-a8df-915f65dfa945","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript"}}],"id":"323a7060-2fbe-4efd-a238-62c5bf5a7bdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"applicationEnvironment\": \"kSQL\",\r\n    \"hostingProtectionSource\": {\r\n        \"environment\": \"kSQL\",\r\n        \"jobId\": {{protectionJobId}},\r\n        \"jobUid\": {\r\n            \"id\": {{protectionJobId}},\r\n            \"clusterId\": {{clusterId}},\r\n            \"clusterIncarnationId\": {{clusterIncarnationId}}\r\n        },\r\n        \"protectionSourceId\": {{databaseInstanceId}}, //Parent ID\r\n        \"startedTimeUsecs\": {{startTimeUsecs}}\r\n    },\r\n    \"name\": \"{{databaseName}}\",\r\n    \"applicationRestoreObjects\": [\r\n        {\r\n            \"applicationServerId\": {{databaseInstanceId}}, //Database Id\r\n            \"sqlRestoreParameters\": {\r\n                \"overwritePolicy\": \"kOverwrite\",\r\n                \"targetDataFilesDirectory\": \"{{dataFilesDir}}\",\r\n                \"targetLogFilesDirectory\": \"{{logFilesDir}}\"\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/restore/applicationsRecover","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","restore","applicationsRecover"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"323a7060-2fbe-4efd-a238-62c5bf5a7bdc"},{"name":"Delete the Protection Job","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"c5dbd04a-fbed-41c6-aed1-702dc0b64f84"}}],"id":"f5eac9a3-5f89-40c5-9e4b-c00e73662d58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"f5eac9a3-5f89-40c5-9e4b-c00e73662d58"}],"id":"10b1e9ac-f0b6-4864-9ad8-40bcc7b807de","description":"<p>Operations on MSSQL database with v1 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Identify the protection policy</li>\n<li>Check the storage domain (the view box)</li>\n<li>Identify the MSSQL database to protect</li>\n<li>You are ready to create a protection job</li>\n<li>Run the protection job</li>\n<li>Check the status of the protection job</li>\n<li>Cleanup the cluster by removing the protection job</li>\n</ol>\n","_postman_id":"10b1e9ac-f0b6-4864-9ad8-40bcc7b807de"},{"name":"DataProtect-File-MSSQL","item":[{"name":"LoginCluster using v1-TODO","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"578080a7-ac8c-4187-b1c1-12d58e001339"}}],"id":"8ca40d2a-3d3c-4edd-afab-14560fd9b1d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{{clusterCredentials}}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ca40d2a-3d3c-4edd-afab-14560fd9b1d2"},{"name":"Get Sources V1 TODO","event":[{"listen":"test","script":{"exec":["pm.test(\"Get registration status, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch the Server id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get(\"sql\");","    for (i = 0; i < jsonData[0].nodes.length; i++) {","","        if (jsonData[0].nodes[i].registrationInfo.accessInfo.endpoint === source) {","            pm.environment.set(\"sourceId\", jsonData[0].nodes[i].protectionSource.id);","            postman.setNextRequest(\"Get Protection Policy\");","        }","    }","});"],"type":"text/javascript","id":"7cad1272-d091-4a6c-abd9-4e7c1bfd8b7d"}}],"id":"69cbeb3b-a866-45c1-88c7-8996c03b0b19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources?environment=kSQL","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources"],"host":["{{cluster}}"],"query":[{"key":"environment","value":"kSQL"}],"variable":[]}},"response":[],"_postman_id":"69cbeb3b-a866-45c1-88c7-8996c03b0b19"},{"name":"Register Sources NA","event":[{"listen":"test","script":{"exec":["pm.test(\"Get Oracle registration status, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch the Server id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get(\"oracle\");","    for (i = 0; i < jsonData[0].nodes.length; i++) {","","        if (jsonData[0].nodes[i].registrationInfo.accessInfo.endpoint === source) {","            pm.environment.set(\"sourceId\", jsonData[0].nodes[i].protectionSource.id);","            postman.setNextRequest(\"Get Protection Policy\");","        }","    }","});"],"type":"text/javascript","id":"d1259f63-0930-4e0a-bd42-72780a313020"}}],"id":"63c65def-eb9f-47ac-9d8b-6a4352aba397","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"63c65def-eb9f-47ac-9d8b-6a4352aba397"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains\");","    }","});"],"type":"text/javascript","id":"626d10b8-824b-4b36-a774-2754b24ccdd7"}}],"id":"905f4e3e-b547-4a34-99a1-65c6bc33ce6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"905f4e3e-b547-4a34-99a1-65c6bc33ce6f"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"a45eef5a-cec9-4c4a-9c52-97433ec160cf"}}],"id":"5f7ecc91-3f43-4b94-8db9-7f8cec22d4d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f7ecc91-3f43-4b94-8db9-7f8cec22d4d3"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id)","}"],"type":"text/javascript","id":"23756c09-be19-4285-b993-0495aa752b77"}}],"id":"ae40e0d2-0728-48f6-9e4e-0d0bc62fc45c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae40e0d2-0728-48f6-9e4e-0d0bc62fc45c"},{"name":"Get Source Id","event":[{"listen":"test","script":{"exec":["tests[\"Getting objects, Status code is 200\"] = responseCode.code === 200;","var jsonData = JSON.parse(responseBody);","name = pm.environment.get(\"sql_db\");","for (var i = 0; i < jsonData.objects.length; i++) {","    if (jsonData.objects[i].name === name) {","        pm.environment.set(\"databaseId\", jsonData.objects[i].id)","        pm.environment.set(\"databaseName\", jsonData.objects[i].name)","    }","}"],"type":"text/javascript","id":"829c28ae-ee47-48cd-8cae-c3134b8ae945"}}],"id":"3927339b-aeea-4487-9eef-a4a5f64e40bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/objects?parentId={{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","objects"],"host":["{{cluster}}"],"query":[{"key":"parentId","value":"{{sourceId}}"}],"variable":[]}},"response":[],"_postman_id":"3927339b-aeea-4487-9eef-a4a5f64e40bc"},{"name":"Create Protection Job","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","});"],"type":"text/javascript","id":"5073ca80-b2ae-49e8-85a4-e7f6046a2528"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"01405f60-c743-47ec-bc51-cf5c9dd7dea1"}}],"id":"a0437d09-bb3a-4111-ad94-9109203626c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{protectionJobName}}_184\",\n    \"policyId\": \"{{policyId}}\",\n    \"startTime\": {\n        \"hour\": 23,\n        \"minute\": 16,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"qosPolicy\": \"kBackupHDD\",\n    \"storageDomainId\": {{viewBoxId}},\n    \"environment\": \"kSQL\",\n    \"mssqlParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"userDbBackupPreferenceType\": \"kBackupAllDatabases\",\n            \"objects\": [\n                {\n                    \"id\": {{databaseId}}\n                }\n            ]\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0437d09-bb3a-4111-ad94-9109203626c2"},{"name":"Run Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"09135b76-69b2-471c-ad55-4361a152799a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"03748f0f-9186-4ad2-bdfb-02c55290e9fd"}}],"id":"df15d79b-a837-4df7-9f5e-d9f1679589f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"df15d79b-a837-4df7-9f5e-d9f1679589f0"},{"name":"Get Job Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.isSlaViolated).to.be.a('boolean')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].isReplicationRun).to.be.a('boolean')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].hasLocalSnapshot).to.be.a('boolean')","            pm.expect(jsonData[i].onLegalHold).to.be.a('boolean')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"05ae8f78-795e-4854-854d-c6d1fd0dcc83"}}],"id":"c282f4fe-f2d4-430a-8a78-3d4cd13df3b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c282f4fe-f2d4-430a-8a78-3d4cd13df3b2"},{"name":"Get indexed objects-NA","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    console.log(jsonData.files === null || jsonData.files === undefined)","    if (jsonData.files === null || jsonData.files === undefined){","        sleep(10000);","        postman.setNextRequest(\"Get indexed objects\");","    }","    else {","        if (jsonData.files[0].type === \"File\"){","            pm.environment.set(\"filePath\", (jsonData.files[0].path + \"/\" + jsonData.files[0].name))","        }","        for (var i=0; i< jsonData.files.length; i++){","            pm.expect(jsonData.files).to.be.a('array')","            pm.expect(jsonData.files[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData.files[i].type).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo).to.be.an('object')","            pm.expect(jsonData.files[i].sourceInfo.osType).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.sourceId).to.be.a('number')","            pm.expect(jsonData.files[i].sourceInfo.objectType).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.name).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.environment).to.be.a('string')","            pm.expect(jsonData.files[i].sourceInfo.id).to.be.a('number')","            pm.expect(jsonData.files[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData.files[i].name).to.be.a('string')","            pm.expect(jsonData.files[i].storageDomainId).to.be.a('number')","            pm.expect(jsonData.files[i].path).to.be.a('string')","            pm.expect(jsonData.objectType).to.be.a('string')","            console.log(jsonData.files[i].path + \"/\" + jsonData.files[i].name)","        }","    }","});"],"type":"text/javascript","id":"f5b1dd0d-97fe-4ced-a5cc-c5a0bc529900"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bfe4e907-43ab-42b3-9c14-f7b45815bdc4"}}],"id":"35148814-1639-40db-92c1-9ce03c1d76de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"protectionGroupIds\" : [\n\t\t\"{{protectionJobId}}\"\n\t\t],\n\t\"objectType\": \"Files\",\n\t\"fileParams\": {\n\t\t\"searchString\" : \"{{filePath}}\"\n\t}\n}"},"url":"https://{{cluster}}/v2/data-protect/search/indexed-objects","urlObject":{"protocol":"https","path":["v2","data-protect","search","indexed-objects"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"35148814-1639-40db-92c1-9ce03c1d76de"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData.objects !== null) {","        pm.environment.set(\"objectSnapshotid\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId)","    }","    else {","        postman.setNextRequest(\"Remove Job and objects\");","    }","});"],"type":"text/javascript","id":"1d59cbbf-b68b-414a-9778-a4b77d156514"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"12412b66-2710-4433-bf93-1d3775893b55"}}],"id":"465266ff-9283-4ad9-a79c-74e7cc4d6f01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&environments=kSQL&protectionGroupIds={{protectionJobId}}","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"environments","value":"kSQL"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"465266ff-9283-4ad9-a79c-74e7cc4d6f01"},{"name":"Create Recovery","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"73e98830-9434-49d0-b8b9-a4d2090c7ac9"}}],"id":"6a7db5ad-1b20-4568-81f7-46ef681069b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kSQL\",\n    \"name\": \"Recovery_{{protectionJobName}}\",\n    \"mssqlParams\": {\n        \"recoveryAction\": \"RecoverApps\",\n        \"recoverAppParams\": [\n            {\n                \"snapshotId\": \"{{objectSnapshotid}}\",\n                \"targetEnvironment\": \"kSQL\",\n                \"sqlTargetParams\": {\n                    \"recoverToNewSource\": true,\n                    \"newSourceConfig\": {\n                        \"secondaryDataFilesDirList\": null,\n                        \"keepCdc\": false,\n                        \"multiStageRestoreOptions\": {},\n                        \"instanceName\": \"New_{{databaseName}}\",\n                        \"dataFileDirectoryLocation\": \"/home\",\n                        \"logFileDirectoryLocation\": \"/home\",\n                        \"host\": {\n                            \"id\": {{sourceId}},\n                            \"name\": \"{{sql}}\"\n                        }\n                    }\n                }\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a7db5ad-1b20-4568-81f7-46ef681069b7"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.vmwareParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoveryAction).to.be.a('string')","    for (var i=0; i<jsonData.vmwareParams.objects.length; i++) {","        pm.expect(jsonData.vmwareParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.osType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects).to.be.an('array')","    }","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.recoverToOriginalTarget).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.preserveAttributes).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig.recoverMethod).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","","    if (jsonData.status === \"Running\"){","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"5eeb2465-4ed8-433f-a44a-9f273f2b13d6"}}],"id":"283195ee-a387-4dc2-95bd-29af4ea35e01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"283195ee-a387-4dc2-95bd-29af4ea35e01"},{"name":"Remove Job and Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"a095ea18-8961-4b4f-972d-9dc9137ed42b"}}],"id":"0261cb2a-68ee-4f00-88d0-0b05afa35582","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"0261cb2a-68ee-4f00-88d0-0b05afa35582"},{"name":"Unregister Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"92d17716-5d80-4866-8f8c-f202c8e3d154"}}],"id":"f68a5756-9be3-403e-a710-1ea6afe503b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f68a5756-9be3-403e-a710-1ea6afe503b1"}],"id":"dd947687-b122-42f5-a255-5b0c6ff6da00","description":"<h2 id=\"description\">Description</h2>\n<p>Postman API collection where you will find API examples for our latest Connector workflow using which you can protect various DBs like Postgres, MySQL, SAP HANA, SAP Oracle and <a href=\"https://docs.cohesity.com/6_6/Web/UserGuide/Content/Concepts/UniversalDataAdaptor.htm\">much more</a>. The API documentation can be found in the <a href=\"https://developer.cohesity.com/apidocs/helios/v2-api/\">Cohesity Developer Portal</a>.</p>\n<h2 id=\"environment-variables\">Environment Variables</h2>\n<ul>\n<li>Choose the ClusterOnPrem Postman Environment for this collection. You need to set the following variables.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment Variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cluster</td>\n<td>FQDN for the Cluster</td>\n</tr>\n<tr>\n<td>clusterUser</td>\n<td>Cluster Username</td>\n</tr>\n<tr>\n<td>clusterPassword</td>\n<td>Cluster Password</td>\n</tr>\n<tr>\n<td>token</td>\n<td>Cluster token. This will be set after Get Auth Token API call</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p>There are other collection variables that will be set when you make API calls, like <code>sourceId</code> etc. These collection variables will be used further during subsequent API calls</p>\n</li>\n<li><p>In order to use these APIs, you need to call these in sequence so that the collections variables set by a previous API call can be used later.</p>\n</li>\n</ul>\n<h2 id=\"contribute\">Contribute</h2>\n<p>You can also contribute to this collection by submitting your collections and/or workflows. You can fork our Workspace and then submit a merge request.</p>\n<h2 id=\"feedback\">Feedback</h2>\n<p>If you want to see more collections/use-cases reach out to: <a href=\"https://mailto:cohesity-api-sdks@cohesity.com\">cohesity-api-sdks@cohesity.com</a></p>\n","_postman_id":"dd947687-b122-42f5-a255-5b0c6ff6da00"},{"name":"DataProtect-NAS","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"509acac7-8c53-471f-ae90-7e080bcb8aa0"}}],"id":"730b1777-d13c-4eec-9793-a2168320e648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"730b1777-d13c-4eec-9793-a2168320e648"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"88da103f-b798-4b1a-bab9-91983aa18e22"}}],"id":"0b3cd936-aec7-47f6-b1dc-d59bba749d9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b3cd936-aec7-47f6-b1dc-d59bba749d9a"},{"name":"Create View","event":[{"listen":"test","script":{"exec":["pm.test(\"Creating View, Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","if (responseCode.code !== 201) {","    postman.setNextRequest(null);","} else {","    pm.test(\"Validating response\", function() {","        var jsonData = pm.response.json();","        pm.environment.set(\"viewId\", jsonData.viewId);","        pm.environment.set(\"view_name\", jsonData.name);","        pm.environment.set(\"mountPoint\", jsonData.nfsMountPath);","        pm.expect(jsonData.overrideGlobalNetgroupWhitelist).to.be.a('boolean')","        pm.expect(jsonData.basicMountPath).to.be.a('string')","        pm.expect(jsonData.viewId).to.be.a('number')","        pm.expect(jsonData.caseInsensitiveNamesEnabled).to.be.a('boolean')","        pm.expect(jsonData.enableSmbViewDiscovery).to.be.a('boolean')","        pm.expect(jsonData.nfsRootPermissions).to.be.an('object')","        pm.expect(jsonData.nfsRootPermissions.gid).to.be.a('number')","        pm.expect(jsonData.nfsRootPermissions.mode).to.be.a('number')","        pm.expect(jsonData.nfsRootPermissions.uid).to.be.a('number')","        pm.expect(jsonData.nfsRootSquash).to.be.an('object')","        pm.expect(jsonData.nfsRootSquash.gid).to.be.a('number')","        pm.expect(jsonData.nfsRootSquash.uid).to.be.a('number')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.securityMode).to.be.a('string')","        pm.expect(jsonData.enableLiveIndexing).to.be.a('boolean')","        pm.expect(jsonData.category).to.be.a('string')","        pm.expect(jsonData.enableFilerAuditLogging).to.be.a('boolean')","        pm.expect(jsonData.nfsMountPath).to.be.a('string')","        pm.expect(jsonData.smbPermissionsInfo).to.be.an('object')","        pm.expect(jsonData.smbPermissionsInfo.permissions).to.be.an('array')","        pm.expect(jsonData.protocolAccess).to.be.an('array')","        for (var i = 0; i < jsonData.protocolAccess.length; i++) {","            pm.expect(jsonData.protocolAccess[i].mode).to.be.a('string')","            pm.expect(jsonData.protocolAccess[i].type).to.be.a('string')","        }","        pm.expect(jsonData.enableSmbAccessBasedEnumeration).to.be.a('boolean')","        pm.expect(jsonData.enableMinion).to.be.a('boolean')","        pm.expect(jsonData.enforceSmbEncryption).to.be.a('boolean')","        pm.expect(jsonData.allowMountOnWindows).to.be.a('boolean')","        pm.expect(jsonData.createTimeMsecs).to.be.a('number')","        pm.expect(jsonData.enableNfsViewDiscovery).to.be.a('boolean')","        pm.expect(jsonData.storageDomainName).to.be.a('string')","        pm.expect(jsonData.nfsAllSquash).to.be.an('object')","        pm.expect(jsonData.nfsAllSquash.gid).to.be.a('number')","        pm.expect(jsonData.nfsAllSquash.uid).to.be.a('number')","        pm.expect(jsonData.enableFastDurableHandle).to.be.a('boolean')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.overrideGlobalSubnetWhitelist).to.be.a('boolean')","        pm.expect(jsonData.enableSmbOplock).to.be.a('boolean')","        pm.expect(jsonData.isTargetForMigratedData).to.be.a('boolean')","        pm.expect(jsonData.enableSmbEncryption).to.be.a('boolean')","        pm.expect(jsonData.storagePolicyOverride).to.be.an('object')","        pm.expect(jsonData.description).to.be.a('string')","    });","}","postman.setNextRequest(\"Register NAS Source\");"],"type":"text/javascript","id":"8d6982f3-2ea3-4086-aea0-3be86f1496bb"}}],"id":"1bcc9bb4-bbac-4b49-a6de-43b5278dc72d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"storageDomainId\": {{viewBoxId}},\n  \"caseInsensitiveNamesEnabled\": true,\n  \"name\": \"{{viewName}}25\",\n  \"category\": \"BackupTarget\",\n  \"protocolAccess\": [\n  {\n  \"type\": \"NFS\",\n  \"mode\": \"ReadWrite\"\n  }]\n}"},"url":"https://{{cluster}}/v2/file-services/views","urlObject":{"protocol":"https","path":["v2","file-services","views"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1bcc9bb4-bbac-4b49-a6de-43b5278dc72d"},{"name":"Register NAS Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Source Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","if (responseCode.code !== 201) {","    postman.setNextRequest(null);","} else {","    pm.test(\"Validating response and fetch registration id\", function() {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","id":"12c5ac15-4a97-4c29-9ff4-1ff79cd9a4fd"}}],"id":"20b14dd0-828a-4e4c-8d34-b358c462331e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kGenericNas\",\n  \"isInternalEncrypted\": false,\n  \"connectionId\": 0,\n  \"genericNasParams\": {\n    \"mountPoint\": \"{{mountPoint}}\",\n    \"mode\": \"kNfs3\",\n    \"skipValidation\": true,\n    \"smbMountCredentials\": {\n      \"username\": \"{{smb_user}}\",\n      \"password\": \"{{smb_password}}\"\n    }\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"20b14dd0-828a-4e4c-8d34-b358c462331e"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.environment.set(\"policyId\", jsonData[\"policies\"][0].id);","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"24687dee-cd3d-49a0-bf78-fcb155341fae"}}],"id":"217cdff2-bf1e-4ddf-a0d6-fa5cbec7e2d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"217cdff2-bf1e-4ddf-a0d6-fa5cbec7e2d1"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"f45867d7-50af-40c3-9cea-53c954c0999e"}}],"id":"c1a9dce8-f066-4ae4-8b41-62db0b38b229","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1a9dce8-f066-4ae4-8b41-62db0b38b229"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.genericNasParams).to.be.an('object')","    pm.expect(jsonData.genericNasParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.genericNasParams.objects.length; i++) {","        pm.expect(jsonData.genericNasParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.genericNasParams.objects[i].name).to.be.a('string')","    }","});"],"type":"text/javascript","id":"efb6b78b-bddb-449e-b003-3ef1018e1345"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2a0d0eb4-f6a6-4c16-969a-a3d6b546f857"}}],"id":"58bce140-d2b4-401d-a49c-407e0c8f5abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_616\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kGenericNas\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"genericNasParams\": {\n    \"objects\": [\n      {\n        \"id\": {{sourceId}}\n      }\n    ],\n    \"concurrency\": 16,\n    \"excludeObjectIds\": [],\n    \"bandwidthMBPS\": null\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"58bce140-d2b4-401d-a49c-407e0c8f5abe"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"c55631a0-bb03-4049-9f97-47993262f063"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3350f0d6-cb86-4144-bd48-9378aeb2b151"}}],"id":"8a791e44-797d-4881-b592-d703898ebc2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a791e44-797d-4881-b592-d703898ebc2e"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"976b9fcb-81f3-415f-a1a1-815f86d5cea5"}}],"id":"19fddc6d-b052-4821-bd23-54256f533750","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19fddc6d-b052-4821-bd23-54256f533750"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"888eb126-7c17-454e-a089-bf99d525fef8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"b53c3f0c-20d9-40b0-b1af-528b2c8b10e7"}}],"id":"a2737655-91f9-4837-b5d4-af60b2c047f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kGenericNas","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kGenericNas"}],"variable":[]}},"response":[],"_postman_id":"a2737655-91f9-4837-b5d4-af60b2c047f2"},{"name":"Recover NAS Volume","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"c697238a-8267-4dca-82a7-c310583725af"}}],"id":"5b1da864-6bb9-40d7-8b3a-e57fc55ebbc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"File_Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kGenericNas\",\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverNasVolume\",\n        \"recoverNasVolumeParams\": {\n            \"targetEnvironment\": \"kView\",\n            \"viewTargetParams\": {\n                \"viewName\": \"TestView\",\n                \"qosPolicy\": {\n                    \"id\": 23,\n                    \"name\": \"Backup Target SSD\",\n                    \"priority\": \"kHigh\",\n                    \"weight\": 80,\n                    \"workLoadType\": \"Backup\",\n                    \"seqWriteSsdPct\": 0,\n                    \"seqWriteHydraPct\": 0,\n                    \"randomWriteSsdPct\": 100,\n                    \"randomWriteHydraPct\": 100,\n                    \"alwaysUseSsd\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b1da864-6bb9-40d7-8b3a-e57fc55ebbc4"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"bf3092e3-e9bf-4cb1-aa10-7754cc3a4a99"}}],"id":"57b017d5-0fd4-4f24-93e6-2cb7e7bb0719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"57b017d5-0fd4-4f24-93e6-2cb7e7bb0719"},{"name":"Unregister NAS source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"2bba6e11-aec2-41eb-bef7-59a819d2f15c"}}],"id":"31a8f862-364a-4883-9429-13dcd764751e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"31a8f862-364a-4883-9429-13dcd764751e"},{"name":"Delete View","event":[{"listen":"test","script":{"exec":["pm.test(\"Delete view Status code is 204\", function () {","    pm.response.to.have.status(204);","});",""],"type":"text/javascript","id":"225c04c1-f150-4ffa-ba7b-aadd2fb1d2a1"}}],"id":"3f2078a4-72f6-44a9-b304-6f90ba6e452c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/file-services/views/{{viewId}}","urlObject":{"protocol":"https","path":["v2","file-services","views","{{viewId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f2078a4-72f6-44a9-b304-6f90ba6e452c"}],"id":"05397fee-98ce-409c-b8a7-3a836aa1f1ec","description":"<p>Operations on NAS volume with Cohesity APIs:</p>\n<ol>\n<li>Generate the access token</li>\n<li>Check the storage domain (the view box)</li>\n<li>Create a NFS view, this would generate a mount point</li>\n<li>Register the mount point as NAS protection source</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group for NAS volume</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>The NAS volumes are ready to be restored</li>\n<li>Select the desired volume and restore</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots), NAS mount point and the view</li>\n</ol>\n","_postman_id":"05397fee-98ce-409c-b8a7-3a836aa1f1ec"},{"name":"DataProtect-O365","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);",""],"type":"text/javascript","id":"ba1a6a5b-9a63-4ffa-b01e-84255a8380c0"}}],"id":"78adfd3f-719c-41f5-8b21-9013a0d221cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"domain\": \"LOCAL\",\r\n    \"password\": \"{{clusterPassword}}\",\r\n    \"username\": \"{{clusterUsername}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","description":"<p>https://{{cluster}}/irisservices/api/v1/public/accessTokens</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"78adfd3f-719c-41f5-8b21-9013a0d221cb"},{"name":"Register O365","event":[{"listen":"test","script":{"exec":["if(responseCode.code === 400){","  tests[\"Protection Source already registered, Status code is 400\"] = responseCode.code === 400;","}","else if(responseCode.code === 200){","  tests[\"Register Protection Source, Status code is 200\"] = responseCode.code === 200;","  jsonData = JSON.parse(responseBody);","  pm.environment.set(\"sourceIdRegistered\", jsonData.id);","}","else{","  postman.setNextRequest(null);","}"],"type":"text/javascript","id":"92c4d4ae-72ba-410c-bef5-3bdb6538d365"}}],"id":"f0afe7ad-6daa-472a-82a0-72a221d4fe6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kO365\",\n    \"endpoint\": \"https://outlook.office365.com/EWS/Exchange.asmx\",\n    \"office365Type\": \"kDomain\",\n    \"office365CredentialsList\": [\n        {\n            \"grantType\": \"client_credentials\",\n            \"scope\": \"https://graph.microsoft.com/.default\",\n            \"clientId\": {{o365ClientId}},\n            \"clientSecret\": {{o365ClientSecret}}\n        }\n    ],\n    \"username\": {{o365UserName}},\n    \"password\": {{o365Password}}\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/register","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0afe7ad-6daa-472a-82a0-72a221d4fe6c"},{"name":"Select an O365 source","event":[{"listen":"test","script":{"exec":["pm.test(\"Virtual machines Status code is 200\", function () {","    pm.response.to.have.status(200);","    // set the root id as source id, of course you can set of your choice","//    var o365SourceId = pm.environment.get(\"sourceIdRegistered\");","    var o365SourceId = 111042","    pm.environment.set(\"o365SourceId\", o365SourceId);","});","","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\", \"application/json\");","});","","pm.test(\"Validating attributes\", function () {","    var jsonData = pm.response.json();","    var node = jsonData[0];","    pm.expect(node.id).not.equal(undefined);","});","",""],"type":"text/javascript","id":"0a81296f-3604-4afe-8159-eba20bb10020"}}],"id":"1ec39708-0959-4d44-af0b-08ff31423bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources?id={{sourceIdRegistered}}&excludeOffice365Types=kTeam","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources"],"host":["{{cluster}}"],"query":[{"key":"id","value":"{{sourceIdRegistered}}"},{"key":"excludeOffice365Types","value":"kTeam"}],"variable":[]}},"response":[],"_postman_id":"1ec39708-0959-4d44-af0b-08ff31423bec"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["tests[\"Protection policy, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","for(var item in jsonData){","    if(jsonData[item].hasOwnProperty(\"type\") && jsonData[item].type == \"kRPO\")","    {","        continue;","    }","    postman.setEnvironmentVariable(\"policyId\", jsonData[item].id);","    break;","}"],"type":"text/javascript","id":"5ad4288d-e0fb-4862-8c67-c44d8731cbd6"}}],"id":"d531c9eb-9ce2-4955-a0bd-367313192b64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionPolicies","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionPolicies</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionPolicies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d531c9eb-9ce2-4955-a0bd-367313192b64"},{"name":"Get View Box","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"viewBoxId\", jsonData[0].id);"],"type":"text/javascript","id":"8a8ca799-7076-43f5-9b34-3f712e39d9e0"}}],"id":"02ecd0ee-666b-4108-8ef8-6ffbb09d586d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/viewBoxes","description":"<p>https://{{cluster}}/irisservices/api/v1/public/viewBoxes</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"02ecd0ee-666b-4108-8ef8-6ffbb09d586d"},{"name":"Create a Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","","tests[\"Create protection job Status code is 201 : \" + responseCode.code] = responseCode.code === 201;","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","var jsonData = pm.response.json();","var jobName = pm.environment.get(\"protectionJobName\");","pm.test(\"Check protection job name : \" + jobName, function () {","    console.log(jsonData);","    if(responseCode.code === 201) {","        sleep(1000);","        pm.expect(tv4.validate(jsonData.name, jobName)).to.be.true;","        pm.environment.set(\"protectionJobId\", jsonData.id);","    }","});"],"type":"text/javascript","id":"6d42e14c-fd0b-46d7-9a81-02655ba7eaa0"}},{"listen":"prerequest","script":{"exec":["var protectionJobName = \"ProtectionJob-\" + (new Date()).getTime()\r","pm.environment.set(\"protectionJobName\", protectionJobName);"],"type":"text/javascript","id":"87833c4a-2257-4c07-9490-05981df10c4f"}}],"id":"83453db7-bf99-4abe-a1d1-e99b592165b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}\",\n  \"policyId\": \"{{policyId}}\",\n  \"viewBoxId\": {{viewBoxId}},\n  \"timezone\": \"America/Los_Angeles\",\n  \"environment\": \"kO365Outlook\",\n  \"sourceIds\": [\n    {{o365SourceId}}\n  ],\n  \"parentSourceId\": {{sourceIdRegistered}}\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionJobs</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"83453db7-bf99-4abe-a1d1-e99b592165b8"},{"name":"Run the Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","","tests[\"Run protection job, status code is 204 : \" + responseCode.code] = responseCode.code === 204;","sleep(10000);"],"type":"text/javascript","id":"2cd26acc-b044-45ef-b729-3dffd151f1aa"}}],"id":"bb3cf359-14ea-4531-9fe5-ae3543737ae6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs/run/{{protectionJobId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs","run","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb3cf359-14ea-4531-9fe5-ae3543737ae6"},{"name":"Get the Job Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript","id":"85342e7b-b94e-4019-8dec-2e7adc6a5f69"}}],"id":"efaf3f4b-76fd-43e1-bc7c-035f9f6bb89f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionRuns?jobId={{protectionJobId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionRuns"],"host":["{{cluster}}"],"query":[{"key":"jobId","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"efaf3f4b-76fd-43e1-bc7c-035f9f6bb89f"},{"name":"Delete the Protection Job","event":[{"listen":"test","script":{"exec":["console.log(responseBody);","function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var count = pm.environment.get(\"count\");","if(responseCode.code != 204 && count < 3){","sleep(10000);","pm.environment.set(\"count\", count + 1)","postman.setNextRequest(\"Delete Protection Job\");","}","else{","pm.environment.unset(\"count\");","tests[\"Delete Protection Job, Status code is 204\"] = responseCode.code === 204;","pm.environment.unset(\"token\")","pm.environment.unset(\"vmId\")","pm.environment.unset(\"policyId\")","pm.environment.unset(\"viewBoxId\")","pm.environment.unset(\"protectionJobName\")","pm.environment.unset(\"protectionJobId\")","}"],"type":"text/javascript","id":"c7f0de5c-c20d-4eb5-a950-075bea0ac861"}},{"listen":"prerequest","script":{"exec":["var count = pm.environment.get(\"count\");","if (count === undefined) {","pm.environment.set(\"count\", 0);","}"],"type":"text/javascript","id":"6be5c621-a540-4dd6-b3c6-928a56f791a6"}}],"id":"4979bb94-3122-47bc-a3e3-b8f2602b7edb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"deleteSnapshots\": true\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs/{{protectionJobId}}","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionJobs/{{1stJobId}}</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4979bb94-3122-47bc-a3e3-b8f2602b7edb"},{"name":"Unregister O365 source","event":[{"listen":"test","script":{"exec":["tests[\"Unregister the vCenter : \" + responseCode.code] = responseCode.code === 204;\r","if(responseCode.code === 204) {\r","    pm.environment.unset(\"sourceIdRegistered\")\r","    pm.environment.unset(\"token\")\r","    pm.environment.unset(\"vmId\")\r","    pm.environment.unset(\"policyId\")\r","    pm.environment.unset(\"viewBoxId\")\r","    pm.environment.unset(\"protectionJobName\")\r","    pm.environment.unset(\"protectionJobId\")\r","}"],"type":"text/javascript","id":"bd575586-7dc3-4419-a7fb-04e4a5ec0b12"}}],"id":"d79f7d77-ae61-4425-94d4-3af09e412d20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{vcenter_user}}\",\n    \"netappType\": null,\n    \"vmwareType\": \"kVCenter\",\n    \"endpoint\": \"{{vcenter}}\",\n    \"throttlingPolicy\": null,\n    \"throttlingPolicyOverrides\": null,\n    \"pureType\": null,\n    \"sourceSideDedupEnabled\": null,\n    \"sslVerification\": null,\n    \"azureCredentials\": null,\n    \"gcpCredentials\": null,\n    \"office365Type\": null,\n    \"environment\": \"kVMware\",\n    \"physicalType\": null,\n    \"nasMountCredentials\": null,\n    \"hostType\": null,\n    \"password\": \"{{vcenter_password}}\"\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/{{sourceIdRegistered}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","{{sourceIdRegistered}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d79f7d77-ae61-4425-94d4-3af09e412d20"}],"id":"66a3dafb-a0cc-49ed-a18a-7e63672508b7","description":"<p>Operations on VMware VMs with v1 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Register the vCenter as protection source</li>\n<li>Search for existing protection sources</li>\n<li>Look for virtual machines</li>\n<li>Identify the protection policy</li>\n<li>Check the storage domain (the view box)</li>\n<li>You are ready to create a protection job</li>\n<li>Run the protection job</li>\n<li>Check the status of the protection job</li>\n<li>The virtual machines are ready for restore</li>\n<li>Cleanup the cluster by removing the protection job and the vCenter</li>\n</ol>\n","_postman_id":"66a3dafb-a0cc-49ed-a18a-7e63672508b7"},{"name":"DataProtect-View","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"460cf10f-b5e7-4e14-80da-263650930ea4"}}],"id":"07abc244-9c3d-47df-8d3b-5ecf161b0761","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"07abc244-9c3d-47df-8d3b-5ecf161b0761"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"a1759657-64c2-4f72-8df4-709e20fd4889"}}],"id":"8187822e-cb59-4775-be63-d64f1c3f2025","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8187822e-cb59-4775-be63-d64f1c3f2025"},{"name":"Create View","event":[{"listen":"test","script":{"exec":["pm.test(\"Creating View, Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","if (responseCode.code !== 201) {","    postman.setNextRequest(null);","} else {","    pm.test(\"Validating response\", function() {","        var jsonData = pm.response.json();","        pm.environment.set(\"viewId\", jsonData.viewId);","        pm.environment.set(\"view_name\", jsonData.name);","        pm.environment.set(\"mountPoint\", jsonData.nfsMountPath);","        pm.expect(jsonData.overrideGlobalNetgroupWhitelist).to.be.a('boolean')","        pm.expect(jsonData.basicMountPath).to.be.a('string')","        pm.expect(jsonData.viewId).to.be.a('number')","        pm.expect(jsonData.caseInsensitiveNamesEnabled).to.be.a('boolean')","        pm.expect(jsonData.enableSmbViewDiscovery).to.be.a('boolean')","        pm.expect(jsonData.nfsRootPermissions).to.be.an('object')","        pm.expect(jsonData.nfsRootPermissions.gid).to.be.a('number')","        pm.expect(jsonData.nfsRootPermissions.mode).to.be.a('number')","        pm.expect(jsonData.nfsRootPermissions.uid).to.be.a('number')","        pm.expect(jsonData.nfsRootSquash).to.be.an('object')","        pm.expect(jsonData.nfsRootSquash.gid).to.be.a('number')","        pm.expect(jsonData.nfsRootSquash.uid).to.be.a('number')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.securityMode).to.be.a('string')","        pm.expect(jsonData.enableLiveIndexing).to.be.a('boolean')","        pm.expect(jsonData.category).to.be.a('string')","        pm.expect(jsonData.enableFilerAuditLogging).to.be.a('boolean')","        pm.expect(jsonData.nfsMountPath).to.be.a('string')","        pm.expect(jsonData.smbPermissionsInfo).to.be.an('object')","        pm.expect(jsonData.smbPermissionsInfo.permissions).to.be.an('array')","        pm.expect(jsonData.protocolAccess).to.be.an('array')","        for (var i = 0; i < jsonData.protocolAccess.length; i++) {","            pm.expect(jsonData.protocolAccess[i].mode).to.be.a('string')","            pm.expect(jsonData.protocolAccess[i].type).to.be.a('string')","        }","        pm.expect(jsonData.enableSmbAccessBasedEnumeration).to.be.a('boolean')","        pm.expect(jsonData.enableMinion).to.be.a('boolean')","        pm.expect(jsonData.enforceSmbEncryption).to.be.a('boolean')","        pm.expect(jsonData.allowMountOnWindows).to.be.a('boolean')","        pm.expect(jsonData.createTimeMsecs).to.be.a('number')","        pm.expect(jsonData.enableNfsViewDiscovery).to.be.a('boolean')","        pm.expect(jsonData.storageDomainName).to.be.a('string')","        pm.expect(jsonData.nfsAllSquash).to.be.an('object')","        pm.expect(jsonData.nfsAllSquash.gid).to.be.a('number')","        pm.expect(jsonData.nfsAllSquash.uid).to.be.a('number')","        pm.expect(jsonData.enableFastDurableHandle).to.be.a('boolean')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.overrideGlobalSubnetWhitelist).to.be.a('boolean')","        pm.expect(jsonData.enableSmbOplock).to.be.a('boolean')","        pm.expect(jsonData.isTargetForMigratedData).to.be.a('boolean')","        pm.expect(jsonData.enableSmbEncryption).to.be.a('boolean')","        pm.expect(jsonData.storagePolicyOverride).to.be.an('object')","        pm.expect(jsonData.description).to.be.a('string')","    });","}"],"type":"text/javascript","id":"19693fe7-69a1-459f-a667-f413b3daeb00"}}],"id":"b2e32a08-e1ef-4260-8671-d872456ce0d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"storageDomainId\": {{viewBoxId}},\n  \"caseInsensitiveNamesEnabled\": true,\n  \"name\": \"{{viewName}}639\",\n  \"category\": \"BackupTarget\",\n  \"protocolAccess\": [\n  {\n  \"type\": \"NFS\",\n  \"mode\": \"ReadWrite\"\n  }]\n}"},"url":"https://{{cluster}}/v2/file-services/views","urlObject":{"protocol":"https","path":["v2","file-services","views"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2e32a08-e1ef-4260-8671-d872456ce0d7"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"a844229c-a2c0-41b2-aa6a-563ab700335f"}}],"id":"350268a3-82f8-4ca8-905e-2fd529e1dc94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"350268a3-82f8-4ca8-905e-2fd529e1dc94"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.genericNasParams).to.be.an('object')","    pm.expect(jsonData.genericNasParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.genericNasParams.objects.length; i++) {","        pm.expect(jsonData.genericNasParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.genericNasParams.objects[i].name).to.be.a('string')","    }","});"],"type":"text/javascript","id":"cbafdb1e-181c-4fdc-81ac-d77c403416b8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3aa92d47-4b5b-4df6-866a-cb66dde27ef8"}}],"id":"97900088-4abe-4159-b1a9-8598db9f45fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_561\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kView\",\n  \"isPaused\": true,\n  \"priority\": \"kMedium\",\n  \"description\": \"\",\n  \"startTime\": {\n    \"hour\": 14,\n    \"minute\": 51,\n    \"timeZone\": \"America/Los_Angeles\"\n  },\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"viewParams\": {\n    \"objects\": [\n      {\n        \"id\": {{viewId}}\n      }\n    ],\n    \"concurrency\": 16,\n    \"excludeObjectIds\": [],\n    \"bandwidthMBPS\": null\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"97900088-4abe-4159-b1a9-8598db9f45fa"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"914b23f1-3a0e-487b-8135-ea5c3de8c099"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0e91f7d1-8742-4cd0-8c4b-3eab4211529a"}}],"id":"6d49157d-6731-4004-aed9-d2a3fde23613","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d49157d-6731-4004-aed9-d2a3fde23613"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"af0d28cf-5557-441a-8f62-c30f5337265d"}}],"id":"4a7b0601-2523-4b99-8633-ff987805aa69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a7b0601-2523-4b99-8633-ff987805aa69"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"03364909-a7c6-4e96-aa0e-a80e681d0ee9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5ca81fc7-6125-4d1b-be90-0d42f9442bca"}}],"id":"08fbe2af-082b-474f-81a7-1b7df892d8bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kView","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kView"}],"variable":[]}},"response":[],"_postman_id":"08fbe2af-082b-474f-81a7-1b7df892d8bc"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"21d5e523-48d4-44a3-b7d0-316ae37fd05f"}}],"id":"b7ba56e7-08d1-4e13-b88b-51935113e800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"b7ba56e7-08d1-4e13-b88b-51935113e800"},{"name":"Delete View","event":[{"listen":"test","script":{"exec":["pm.test(\"Delete view Status code is 204\", function () {","    pm.response.to.have.status(204);","});",""],"type":"text/javascript","id":"567b4b68-5062-4ff0-99ba-acd60be7c540"}}],"id":"971a33bb-3e56-4100-8565-8b92957fad77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/file-services/views/{{viewId}}","urlObject":{"protocol":"https","path":["v2","file-services","views","{{viewId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"971a33bb-3e56-4100-8565-8b92957fad77"}],"id":"c3063e4e-1ff8-45ba-97a6-7f839c2b77fc","description":"<p>Operations on View with Cohesity APIs:</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get the storage domain (the view box)</li>\n<li>Create a View</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group for View</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots) and View</li>\n</ol>\n","_postman_id":"c3063e4e-1ff8-45ba-97a6-7f839c2b77fc"},{"name":"DataProtect-View-Replication","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"9fa0fca0-df27-4012-a0e0-86645f6125df"}}],"id":"417d1a40-c3b8-4b8e-916c-75895b13b99d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"417d1a40-c3b8-4b8e-916c-75895b13b99d"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","    for (var i = 0; i < jsonData.storageDomains.length; i++) {","        pm.expect(jsonData.storageDomains[i].id).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].name).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionId).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].clusterPartitionName).to.be.a(\"string\");","        pm.expect(jsonData.storageDomains[i].storagePolicy).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationCompressionDelaySecs).to.be.a(\"number\");","","        pm.expect(jsonData.storageDomains[i].storagePolicy.numDiskFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.numNodeFailuresTolerated).to.be.a(\"number\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.compressionParams).to.be.an(\"object\");","","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams).to.be.an(\"object\");","        pm.expect(jsonData.storageDomains[i].storagePolicy.deduplicationParams.enabled).to.be.a(\"boolean\");","    }","}"],"type":"text/javascript","id":"56b460e2-cef8-47fe-8899-e178eda08e12"}}],"id":"23304a19-ede8-48e0-a7c1-91167e3c6221","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"23304a19-ede8-48e0-a7c1-91167e3c6221"},{"name":"Get Remote Clusters","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null && jsonData[\"remoteCluster\"] && jsonData[\"remoteCluster\"].length >= 1) {","    postman.setEnvironmentVariable(\"remoteClusterId\", jsonData[\"remoteClusters\"][\"clusterId\"])","}",""],"type":"text/javascript","id":"d63cae2a-befa-410f-ae41-d8fee7ebc2c8"}}],"id":"cb911a2b-9105-420c-8fff-dfdc39e2c851","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/remote-clusters","urlObject":{"protocol":"https","path":["v2","remote-clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb911a2b-9105-420c-8fff-dfdc39e2c851"},{"name":"Register Remote Clusters","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null){","    postman.setEnvironmentVariable(\"remoteClusterId\", jsonData.clusterId);","}"],"type":"text/javascript","id":"24521d05-ae7f-486b-a6c4-f8ad5a185712"}}],"id":"265c68a1-70f6-4308-b6a1-4d3b80345a5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{remoteClusterUser}}\",\n    \"password\": \"{{remoteClusterPassword}}\",\n    \"nodeAddresses\": [\n        \"{{remoteClusterIp}}\"\n    ],\n    \"purpose\": [\n        \"Replication\"\n    ],\n    \"replicationParams\": {\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/remote-clusters","urlObject":{"protocol":"https","path":["v2","remote-clusters"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"265c68a1-70f6-4308-b6a1-4d3b80345a5a"},{"name":"Get Remote Cluster ViewBoxes","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null && jsonData.length >=1) {","    postman.setEnvironmentVariable(\"remoteViewBoxId\", jsonData[0].id);","}"],"type":"text/javascript","id":"60b574a6-5622-4c53-ae52-4d8ec0819167"}}],"id":"e682ec67-aeef-4b3e-80c0-c847844ff79a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/irisservices/api/v1/public/remoteClusterApi/{{remoteClusterId}}/public/viewBoxes?allUnderHierarchy=true","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","remoteClusterApi","{{remoteClusterId}}","public","viewBoxes"],"host":["{{cluster}}"],"query":[{"key":"allUnderHierarchy","value":"true"}],"variable":[]}},"response":[],"_postman_id":"e682ec67-aeef-4b3e-80c0-c847844ff79a"},{"name":"Update Remote Cluster","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript","id":"909115fd-1cd0-4679-ad84-7bc4a2d01bb7"}}],"id":"3b4e5ae5-5f20-4ca5-ae0c-928a2bfed95a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{remoteClusterUser}}\",\n    \"password\": \"{{remoteClusterPassword}}\",\n    \"nodeAddresses\": [\n        \"{{remoteClusterIp}}\"\n    ],\n    \"purpose\": [\n        \"Replication\"\n    ],\n    \"replicationParams\": {\n        \"storageDomainPairs\": [\n            {\n                \"localStorageDomainId\": {{viewBoxId}},\n                \"remoteStorageDomainId\": {{remoteViewBoxId}}\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/remote-clusters/{{remoteClusterId}}","urlObject":{"protocol":"https","path":["v2","remote-clusters","{{remoteClusterId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b4e5ae5-5f20-4ca5-ae0c-928a2bfed95a"},{"name":"Create View","event":[{"listen":"test","script":{"exec":["pm.test(\"Creating View, Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","if (responseCode.code !== 201) {","    postman.setNextRequest(null);","} else {","    pm.test(\"Validating response\", function() {","        var jsonData = pm.response.json();","        pm.environment.set(\"viewId\", jsonData.viewId);","        pm.environment.set(\"view_name\", jsonData.name);","        pm.environment.set(\"mountPoint\", jsonData.nfsMountPath);","        pm.expect(jsonData.overrideGlobalNetgroupWhitelist).to.be.a('boolean')","        pm.expect(jsonData.basicMountPath).to.be.a('string')","        pm.expect(jsonData.viewId).to.be.a('number')","        pm.expect(jsonData.caseInsensitiveNamesEnabled).to.be.a('boolean')","        pm.expect(jsonData.enableSmbViewDiscovery).to.be.a('boolean')","        pm.expect(jsonData.nfsRootPermissions).to.be.an('object')","        pm.expect(jsonData.nfsRootPermissions.gid).to.be.a('number')","        pm.expect(jsonData.nfsRootPermissions.mode).to.be.a('number')","        pm.expect(jsonData.nfsRootPermissions.uid).to.be.a('number')","        pm.expect(jsonData.nfsRootSquash).to.be.an('object')","        pm.expect(jsonData.nfsRootSquash.gid).to.be.a('number')","        pm.expect(jsonData.nfsRootSquash.uid).to.be.a('number')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.securityMode).to.be.a('string')","        pm.expect(jsonData.enableLiveIndexing).to.be.a('boolean')","        pm.expect(jsonData.category).to.be.a('string')","        pm.expect(jsonData.enableFilerAuditLogging).to.be.a('boolean')","        pm.expect(jsonData.nfsMountPath).to.be.a('string')","        pm.expect(jsonData.smbPermissionsInfo).to.be.an('object')","        pm.expect(jsonData.smbPermissionsInfo.permissions).to.be.an('array')","        pm.expect(jsonData.protocolAccess).to.be.an('array')","        for (var i = 0; i < jsonData.protocolAccess.length; i++) {","            pm.expect(jsonData.protocolAccess[i].mode).to.be.a('string')","            pm.expect(jsonData.protocolAccess[i].type).to.be.a('string')","        }","        pm.expect(jsonData.enableSmbAccessBasedEnumeration).to.be.a('boolean')","        pm.expect(jsonData.enableMinion).to.be.a('boolean')","        pm.expect(jsonData.enforceSmbEncryption).to.be.a('boolean')","        pm.expect(jsonData.allowMountOnWindows).to.be.a('boolean')","        pm.expect(jsonData.createTimeMsecs).to.be.a('number')","        pm.expect(jsonData.enableNfsViewDiscovery).to.be.a('boolean')","        pm.expect(jsonData.storageDomainName).to.be.a('string')","        pm.expect(jsonData.nfsAllSquash).to.be.an('object')","        pm.expect(jsonData.nfsAllSquash.gid).to.be.a('number')","        pm.expect(jsonData.nfsAllSquash.uid).to.be.a('number')","        pm.expect(jsonData.enableFastDurableHandle).to.be.a('boolean')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.overrideGlobalSubnetWhitelist).to.be.a('boolean')","        pm.expect(jsonData.enableSmbOplock).to.be.a('boolean')","        pm.expect(jsonData.isTargetForMigratedData).to.be.a('boolean')","        pm.expect(jsonData.enableSmbEncryption).to.be.a('boolean')","        pm.expect(jsonData.storagePolicyOverride).to.be.an('object')","        pm.expect(jsonData.description).to.be.a('string')","    });","}"],"type":"text/javascript","id":"318230df-8174-49ee-9670-1237dbb00a90"}}],"id":"f0038622-b87d-4428-804f-bde06b4c752f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"storageDomainId\": {{viewBoxId}},\n  \"caseInsensitiveNamesEnabled\": true,\n  \"name\": \"{{viewName}}848\",\n  \"category\": \"BackupTarget\",\n  \"protocolAccess\": [\n  {\n  \"type\": \"NFS\",\n  \"mode\": \"ReadWrite\"\n  }]\n}"},"url":"https://{{cluster}}/v2/file-services/views","urlObject":{"protocol":"https","path":["v2","file-services","views"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0038622-b87d-4428-804f-bde06b4c752f"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.environment.set(\"policyId\", jsonData[\"policies\"][0].id);","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"709669fb-4a22-4e11-a5ab-0cc1ab2f1b0d"}}],"id":"2ae8de79-480d-4195-bc3a-996a5e6bc936","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ae8de79-480d-4195-bc3a-996a5e6bc936"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"93091a51-9438-4fdb-8764-ca25f4946d8d"}}],"id":"ee8f663f-bf54-4762-9057-8461f37923df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Days\",\n                \"duration\": 14\n            }\n        }\n    },\n    \"name\": \"{{policyName}}\",\n    \"description\": \"Policy for newman automation\",\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"remoteTargetPolicy\": {\n        \"replicationTargets\": [\n            {\n                \"schedule\": {\n                    \"unit\": \"Runs\",\n                    \"frequency\": 1\n                },\n                \"retention\": {\n                    \"unit\": \"Days\",\n                    \"duration\": 10\n                },\n                \"targetType\": \"RemoteCluster\",\n                \"copyOnRunSuccess\": false,\n                \"remoteTargetConfig\": {\n                    \"clusterId\": {{remoteClusterId}}\n                }\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee8f663f-bf54-4762-9057-8461f37923df"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.genericNasParams).to.be.an('object')","    pm.expect(jsonData.genericNasParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.genericNasParams.objects.length; i++) {","        pm.expect(jsonData.genericNasParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.genericNasParams.objects[i].name).to.be.a('string')","    }","});"],"type":"text/javascript","id":"075861c2-ab2c-4167-896a-5285e9be78d6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2fc02bdf-6889-40e4-b8a4-70b26348cb87"}}],"id":"e2c83dc3-6f5b-443d-a6cb-dd73344c9460","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{protectionJobName}}_114\",\n    \"policyId\": \"{{policyId}}\",\n    \"storageDomainId\": {{viewBoxId}},\n    \"environment\": \"kView\",\n    \"isPaused\": true,\n    \"priority\": \"kMedium\",\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 14,\n        \"minute\": 51,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"viewParams\": {\n        \"objects\": [\n            {\n                \"id\": {{viewId}}\n            }\n        ],\n        \"concurrency\": 16,\n        \"replicationParams\": {\n            \"viewNameConfigList\": [\n                {\n                    \"sourceViewId\": {{viewId}},\n                    \"useSameViewName\": true\n                }\n            ]\n        },\"indexingPolicy\": {\n      \"enableIndexing\": true,\n      \"includePaths\": [\n        \"/\"\n      ],\n      \"excludePaths\": []\n    }\n    },\n    \"remoteAdapterParams\": {\n        \"hosts\": [\n            {\n                \"hostname\": \"{{remoteClusterIp}}\"\n            }\n        ],\n        \"viewId\": {{viewId}},\n        \"remoteViewParams\": {\n            \"createView\": true\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2c83dc3-6f5b-443d-a6cb-dd73344c9460"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"8e9e32d4-9156-483c-9bf0-3c496924d230"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3118cf92-6d4f-4ac3-8a9f-7234f05d06b5"}}],"id":"0522aeae-e591-4868-b24d-90df98b62231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\": \"kRegular\",\n    \"targetsConfig\": {\n        \"replications\": [\n            {\n                \"id\": {{remoteClusterId}},\n                \"retention\": {\n                    \"unit\": \"Days\",\n                    \"duration\": 10\n                }\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0522aeae-e591-4868-b24d-90df98b62231"},{"name":"Get Protection Group Run Id","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var run_id = resp.runs[0].id;","    pm.environment.set(\"runId\", run_id)","});"],"type":"text/javascript","id":"008214b2-de53-479d-8802-d8b333024e05"}}],"id":"eddff455-39ea-400c-8a41-3ff548496bc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eddff455-39ea-400c-8a41-3ff548496bc1"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    //var status = resp.localBackupInfo.status;","    var replication_results = resp.replicationInfo.replicationTargetResults;","    for (var i = 0; i < replication_results.length; i++) {","        status = replication_results[i].status","        if (status === \"Running\") {","            // Sleep for 15 seconds.","            sleep(15000);","            postman.setNextRequest(\"Get Protection Group Runs\")","        }","        else {","            // Sleep for 15 seconds.","            sleep(15000);","        }","    }","});"],"type":"text/javascript","id":"00bf9e06-9d43-4712-bee0-09db79f72a1a"}}],"id":"29517cc3-f1f7-41e6-b7eb-d9f3bc90af8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs/{{runId}}","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs","{{runId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"29517cc3-f1f7-41e6-b7eb-d9f3bc90af8d"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"e3c0f1dd-35f1-46b1-a5a7-fc2f1bd49140"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"96f100a2-eebd-4daf-9be6-b5db755f03d3"}}],"id":"582c70ce-1de8-40b1-be19-5fecef1538f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionJobId}}&environments=kView","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"},{"key":"environments","value":"kView"}],"variable":[]}},"response":[],"_postman_id":"582c70ce-1de8-40b1-be19-5fecef1538f1"},{"name":"Remove Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"69a7f3dd-0e76-437e-86cc-0a23e74944b9"}}],"id":"28a063d7-bf06-4728-867f-69d925822f32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"28a063d7-bf06-4728-867f-69d925822f32"},{"name":"Delete View","event":[{"listen":"test","script":{"exec":["pm.test(\"Delete view Status code is 204\", function () {","    pm.response.to.have.status(204);","});",""],"type":"text/javascript","id":"9461776c-35bc-4f4f-8915-f0eaad2fe620"}}],"id":"4dc0cb52-06ef-4071-ab73-ae69ca803d93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/file-services/views/{{viewId}}","urlObject":{"protocol":"https","path":["v2","file-services","views","{{viewId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4dc0cb52-06ef-4071-ab73-ae69ca803d93"}],"id":"eec5bf2f-be1b-43fe-a373-38aaa6acfd27","description":"<p>Operations on View with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get the storage domain (the view box)</li>\n<li>Create a View</li>\n<li>Identify/Create the protection policy</li>\n<li>You are ready to create a protection group for View</li>\n<li>Run the protection group</li>\n<li>Check the status of the protection group</li>\n<li>Upon completion of protection group run, check the snapshots for the protection group</li>\n<li>Cleanup the cluster by removing the protection group (and snapshots) and View</li>\n</ol>\n","_postman_id":"eec5bf2f-be1b-43fe-a373-38aaa6acfd27"},{"name":"DataProtect-VMWare-Migration","item":[{"name":"Login/ Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);",""],"type":"text/javascript","id":"3404fc07-33c4-40ef-b939-accaa7260616"}}],"id":"2ad7c79a-ea41-451c-9168-fbcf62418d91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","description":"<p>https://{{cluster}}/irisservices/api/v1/public/accessTokens</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ad7c79a-ea41-451c-9168-fbcf62418d91"},{"name":"Register vCenter","event":[{"listen":"test","script":{"exec":["if(responseCode.code === 400){","  tests[\"Protection Source already registered, Status code is 400\"] = responseCode.code === 400;","  postman.setNextRequest(\"Get Protection Sources\");","}","else if(responseCode.code === 200){","  tests[\"Register Protection Source, Status code is 200\"] = responseCode.code === 200;","  jsonData = JSON.parse(responseBody);","  pm.environment.set(\"sourceIdRegistered\", jsonData.id);","  postman.setNextRequest(\"Select a VirtualMachine\");","}","else{","  postman.setNextRequest(null);","}"],"type":"text/javascript","id":"0d1f3141-fac7-4c20-a251-24ea57512e0f"}}],"id":"e4e81ddf-a08b-43c1-bf5c-de324d17beb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{vcenter_user}}\",\n    \"vmwareType\": \"kVCenter\",\n    \"endpoint\": \"{{vcenter}}\",\n    \"environment\": \"kVMware\",\n    \"password\": \"{{vcenter_password}}\"\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/register","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4e81ddf-a08b-43c1-bf5c-de324d17beb6"},{"name":"Get Protection Sources","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","var source = pm.environment.get(\"vcenter\")","for (var i=0;i<jsonData.length;i++){","   obj = jsonData[i].protectionSource;","   if (source === obj.name){","       pm.environment.set(\"sourceIdRegistered\", obj.id);","   }","}"],"type":"text/javascript","id":"93c438b9-1e7a-4343-b616-900400c48e7f"}}],"id":"14da1e0b-5905-45b1-881f-6a9fa22e1b08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/rootNodes?environments=kVMware","description":"<p>We set the get the id from the response and set an environment variable <em>sourceIdRegistered ,</em> this is later used in other API workflows</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","rootNodes"],"host":["{{cluster}}"],"query":[{"key":"environments","value":"kVMware"}],"variable":[]}},"response":[],"_postman_id":"14da1e0b-5905-45b1-881f-6a9fa22e1b08"},{"name":"Select a VirtualMachine","event":[{"listen":"test","script":{"exec":["pm.test(\"Virtual machines Status code is 200\", function () {","    pm.response.to.have.status(200);","","    // Identify one VM for a protection job","    jsonData = JSON.parse(responseBody);","    for (i = 0; i < jsonData.length; i++) {","        targetVM = jsonData[i]","        if (targetVM.vmWareProtectionSource.type === \"kVirtualMachine\") {","            pm.environment.set(\"vmId\", targetVM.id);","            break","        }","    }","});","","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\", \"application/json\");","});","","pm.test(\"Validating attributes\", function () {","    var jsonData = pm.response.json();","    var node = jsonData[0];","    pm.expect(node.id).not.equal(undefined);","});","",""],"type":"text/javascript","id":"863fe02f-f36b-4d26-bb71-b5d294ae13bd"}}],"id":"2c052aea-c9c5-4a61-a712-b6f3839d5be1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceIdRegistered}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","virtualMachines"],"host":["{{cluster}}"],"query":[{"key":"vCenterId","value":"{{sourceIdRegistered}}"}],"variable":[]}},"response":[],"_postman_id":"2c052aea-c9c5-4a61-a712-b6f3839d5be1"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["tests[\"Protection policy, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","for(var item in jsonData){","    if(jsonData[item].hasOwnProperty(\"type\") && jsonData[item].type == \"kRPO\")","    {","        continue;","    }","    postman.setEnvironmentVariable(\"policyId\", jsonData[item].id);","    break;","}"],"type":"text/javascript","id":"e7b35f3e-0922-462c-ad21-fa15f5cc3235"}}],"id":"309f7503-4b33-421a-8490-5945a31306a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionPolicies","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionPolicies</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionPolicies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"309f7503-4b33-421a-8490-5945a31306a1"},{"name":"Get View Box","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"viewBoxId\", jsonData[0].id);"],"type":"text/javascript","id":"a4f62238-c61d-4203-9b6e-35752e9ca101"}}],"id":"fb05d92e-89ff-4dc6-b4ae-ce3bf8015574","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/viewBoxes","description":"<p>We are getting storage domain id from this API call and setting it in environment variable <em>viewBoxId</em> which will be later used in creating protection group.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb05d92e-89ff-4dc6-b4ae-ce3bf8015574"},{"name":"Create a Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","","tests[\"Create protection job Status code is 201 : \" + responseCode.code] = responseCode.code === 201;","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","var jsonData = pm.response.json();","var jobName = pm.environment.get(\"protectionJobName\");","pm.test(\"Check protection job name : \" + jobName, function () {","    console.log(jsonData);","    if(responseCode.code === 201) {","        sleep(1000);","        pm.expect(tv4.validate(jsonData.name, jobName)).to.be.true;","        pm.environment.set(\"protectionJobId\", jsonData.id);","    }","});"],"type":"text/javascript","id":"fa92a52d-91b7-438e-9de9-4ea2f3c4d02b"}},{"listen":"prerequest","script":{"exec":["var protectionJobName = \"ProtectionJob-\" + (new Date()).getTime()\r","pm.environment.set(\"protectionJobName\", protectionJobName);"],"type":"text/javascript","id":"1c69e08b-351b-47e7-8678-4a7e6f4b8c77"}}],"id":"5381a731-b134-45f8-a653-40dbc283b4cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}\",\n  \"policyId\": \"{{policyId}}\",\n  \"viewBoxId\": {{viewBoxId}},\n  \"timezone\": \"Asia/Kolkata\",\n  \"environment\": \"kVMware\",\n  \"sourceIds\": [\n    {{vmId}}\n  ],\n  \"parentSourceId\": {{sourceIdRegistered}},\n  \"excludeSourceIds\": [],\n  \"isNew\": true,\n  \"indexingPolicy\": {\n    \"disableIndexing\": false,\n    \"allowPrefixes\": [\n      \"/\"\n    ]\n  }\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionJobs</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5381a731-b134-45f8-a653-40dbc283b4cd"},{"name":"Run the Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","","tests[\"Run protection job, status code is 204 : \" + responseCode.code] = responseCode.code === 204;","sleep(10000);"],"type":"text/javascript","id":"355b49ae-8c75-466b-a831-b07709e000ed"}}],"id":"b5715891-dcc8-4dc2-8676-1503aa914a2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs/run/{{protectionJobId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs","run","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5715891-dcc8-4dc2-8676-1503aa914a2d"},{"name":"Get the Job Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var jsonData = JSON.parse(responseBody);","if(jsonData.length === 0 || jsonData === undefined || jsonData === null || jsonData[0].backupRun.status === \"kAccepted\" || jsonData[0].backupRun.status === \"kSuccess\"){","    pm.environment.set(\"protectionRunId\", jsonData[0].backupRun.jobRunId);","    pm.environment.set(\"protectionRunStartTime\", jsonData[0].backupRun.stats.startTimeUsecs);","}","else if(jsonData[0].backup !== undefined && jsonData[0].backupRun.status === \"kCanceled\"){","    console.log(\"Job is canceled\");","}"],"type":"text/javascript","id":"e41d1be9-2f38-425e-904e-d8f9f3da5249"}}],"id":"9491a365-450f-4eb8-8ff7-b39cbe34a1d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionRuns?jobId={{protectionJobId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionRuns"],"host":["{{cluster}}"],"query":[{"key":"jobId","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"9491a365-450f-4eb8-8ff7-b39cbe34a1d5"},{"name":"Get Protected Objects","event":[{"listen":"test","script":{"id":"e41d1be9-2f38-425e-904e-d8f9f3da5249","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var migrate_vm_name = pm.environment.get(\"migrate_vm\")","var group_name = pm.environment.get(\"group_name\")","var jsonData = JSON.parse(responseBody);","if(jsonData.objects.length !== 0){","    var objects = jsonData.objects","    for (i = 0; i < objects.length; i++) {","        if (objects[i].name === migrate_vm_name && objects[i].latestSnapshotsInfo[0].protectionGroupName === group_name) {","            pm.environment.set(\"protectionRunId\", objects[i].latestSnapshotsInfo[0].protectionRunId);","            pm.environment.set(\"instanceId\", objects[i].latestSnapshotsInfo[0].runInstanceId);","            break","        }","    }","}"],"type":"text/javascript"}}],"id":"486aec15-96c8-4948-a9b9-c6d5a911c03e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverVMs&searchString=*&environments=kVMware","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverVMs"},{"key":"searchString","value":"*"},{"key":"environments","value":"kVMware"}],"variable":[]}},"response":[],"_postman_id":"486aec15-96c8-4948-a9b9-c6d5a911c03e"},{"name":"Get Datastores Id","event":[{"listen":"test","script":{"id":"e41d1be9-2f38-425e-904e-d8f9f3da5249","exec":[""],"type":"text/javascript"}}],"id":"bb62aa8a-919a-4031-b483-58d82ed4e552","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/resourcePools?vCenterId={{sourceIdRegistered}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","resourcePools"],"host":["{{cluster}}"],"query":[{"key":"vCenterId","value":"{{sourceIdRegistered}}"}],"variable":[]}},"response":[],"_postman_id":"bb62aa8a-919a-4031-b483-58d82ed4e552"},{"name":"Get Resourcepool Id","event":[{"listen":"test","script":{"id":"e41d1be9-2f38-425e-904e-d8f9f3da5249","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var migrate_vm_name = pm.environment.get(\"migrate_vm\")","var group_name = pm.environment.get(\"group_name\")","var jsonData = JSON.parse(responseBody);","if(jsonData.objects.length !== 0){","    var objects = jsonData.objects","    for (i = 0; i < objects.length; i++) {","        if (objects[i].name === migrate_vm_name && objects[i].latestSnapshotsInfo[0].protectionGroupName === group_name) {","            pm.environment.set(\"protectionRunId\", objects[i].latestSnapshotsInfo[0].protectionRunId);","            pm.environment.set(\"instanceId\", objects[i].latestSnapshotsInfo[0].runInstanceId);","            break","        }","    }","}"],"type":"text/javascript"}}],"id":"015f199e-8b23-46bb-a1d4-c79d958de682","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources?excludeTypes=kDatastore,kVirtualMachine,kComputeResource","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources"],"host":["{{cluster}}"],"query":[{"key":"excludeTypes","value":"kDatastore,kVirtualMachine,kComputeResource"}],"variable":[]}},"response":[],"_postman_id":"015f199e-8b23-46bb-a1d4-c79d958de682"},{"name":"Get Network Id (Optional)","event":[{"listen":"test","script":{"id":"e41d1be9-2f38-425e-904e-d8f9f3da5249","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var migrate_vm_name = pm.environment.get(\"migrate_vm\")","var group_name = pm.environment.get(\"group_name\")","var jsonData = JSON.parse(responseBody);","if(jsonData.objects.length !== 0){","    var objects = jsonData.objects","    for (i = 0; i < objects.length; i++) {","        if (objects[i].name === migrate_vm_name && objects[i].latestSnapshotsInfo[0].protectionGroupName === group_name) {","            pm.environment.set(\"protectionRunId\", objects[i].latestSnapshotsInfo[0].protectionRunId);","            pm.environment.set(\"instanceId\", objects[i].latestSnapshotsInfo[0].runInstanceId);","            break","        }","    }","}"],"type":"text/javascript"}}],"id":"01b072e6-00bf-4bb4-8a62-2206eecadbed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources?excludeTypes=kResourcePool,kComputeResource,kVirtualMachine,kComputeResource&includeDatastores=true&includeNetworks=true","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources"],"host":["{{cluster}}"],"query":[{"key":"excludeTypes","value":"kResourcePool,kComputeResource,kVirtualMachine,kComputeResource"},{"key":"includeDatastores","value":"true"},{"key":"includeNetworks","value":"true"}],"variable":[]}},"response":[],"_postman_id":"01b072e6-00bf-4bb4-8a62-2206eecadbed"},{"name":"Get Folder Id (Optional)","event":[{"listen":"test","script":{"id":"e41d1be9-2f38-425e-904e-d8f9f3da5249","exec":[""],"type":"text/javascript"}}],"id":"e57338ad-02d6-4885-b853-139d2ebce8b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources?excludeTypes=kResourcePool,kComputeResource,kVirtualMachine,kComputeResource&includeDatastores=true&includeVMFolders=true","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources"],"host":["{{cluster}}"],"query":[{"key":"excludeTypes","value":"kResourcePool,kComputeResource,kVirtualMachine,kComputeResource"},{"key":"includeDatastores","value":"true"},{"key":"includeVMFolders","value":"true"}],"variable":[]}},"response":[],"_postman_id":"e57338ad-02d6-4885-b853-139d2ebce8b8"},{"name":"Migrate VirtualMachine","event":[{"listen":"prerequest","script":{"id":"0c58df58-4abe-44bb-bfe5-0c0693883c59","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"2ff4cc40-1348-49bc-ace7-5eb2de2e7674","exec":["var jsonData = JSON.parse(responseBody);","var task_id = jsonData.id","var task_id_v1 = jsonData.id.split(\":\")[-1]","postman.setEnvironmentVariable(\"taskId\", jsonData.id);","postman.setEnvironmentVariable(\"taskIdV1\", task_id_v1);"],"type":"text/javascript"}}],"id":"414d33d7-a000-4875-b3dc-fc2d6a4f06e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{MigrateVMTaskName}}\",\r\n    \"snapshotEnvironment\": \"kVMware\",\r\n    \"vmwareParams\": {\r\n        \"objects\": [],\r\n        \"recoveryAction\": \"RecoverVMs\",\r\n        \"recoverVmParams\": {\r\n            \"targetEnvironment\": \"kVMware\",\r\n            \"recoverProtectionGroupRunsParams\": [\r\n                {\r\n                    \"protectionGroupRunId\": \"{{protectionRunId}}\",\r\n                    \"protectionGroupInstanceId\": {{instanceId}}\r\n                }\r\n            ],\r\n            \"vmwareTargetParams\": {\r\n                \"recoveryTargetConfig\": {\r\n                    \"recoverToNewSource\": true,\r\n                    \"newSourceConfig\": {\r\n                        \"sourceType\": \"kVCenter\",\r\n                        \"vCenterParams\": {\r\n                            \"source\": {\r\n                                \"id\": {{sourceId}}\r\n                            },\r\n                            \"networkConfig\": {\r\n                                \"detachNetwork\": true\r\n                            },\r\n                            \"datastores\": [\r\n                                {\r\n                                    \"type\": 1,\r\n                                    \"id\": {{datastoreId}},\r\n                                    \"parentId\": {{sourceId}}\r\n                                }\r\n                            ],\r\n                            \"resourcePool\": {\r\n                                \"id\": {{resourcepoolId}}\r\n                            },\r\n                            \"vmFolder\": {\r\n                                \"id\": {{vmFolderId}}\r\n                            }\r\n                        }\r\n                    }\r\n                },\r\n                \"recoveryProcessType\": \"CopyRecovery\",\r\n                \"powerOnVms\": true,\r\n                \"diskProvisionType\": \"kBackedUpDiskType\",\r\n                \"continueOnError\": false,\r\n                \"isMultiStageRestore\": true\r\n            }\r\n        }\r\n    }\r\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"414d33d7-a000-4875-b3dc-fc2d6a4f06e0"},{"name":"Cancel Migration","event":[{"listen":"prerequest","script":{"id":"0c58df58-4abe-44bb-bfe5-0c0693883c59","exec":[""],"type":"text/javascript"}}],"id":"6df603fb-00ab-42cd-813a-61321073fceb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/recoveries/{{taskId}}/cancel","description":"<p>Request to generate access token for Cohesity cluster authentication.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{taskId}}","cancel"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6df603fb-00ab-42cd-813a-61321073fceb"},{"name":"Sync Migration Objects","event":[{"listen":"prerequest","script":{"id":"0c58df58-4abe-44bb-bfe5-0c0693883c59","exec":[""],"type":"text/javascript"}}],"id":"24f3c4b7-cb9b-41a0-b8d3-10011cb3a8ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"restoreTaskId\": {{taskIdV1}},\n    \"options\": {\n        \"multiStageRestoreAction\": \"kUpdate\"\n    }\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/restore/recover","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","restore","recover"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"24f3c4b7-cb9b-41a0-b8d3-10011cb3a8ed"},{"name":"Get Migration status","event":[{"listen":"prerequest","script":{"id":"0c58df58-4abe-44bb-bfe5-0c0693883c59","exec":[""],"type":"text/javascript"}}],"id":"b44089fd-dea6-4e63-a1c5-8a2da926f182","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/irisservices/api/v1/restoretasks/{{taskIdV1}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","restoretasks","{{taskIdV1}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b44089fd-dea6-4e63-a1c5-8a2da926f182"},{"name":"Finalize Migration","event":[{"listen":"prerequest","script":{"id":"0c58df58-4abe-44bb-bfe5-0c0693883c59","exec":[""],"type":"text/javascript"}}],"id":"5e3a4e3f-1f6f-4208-8690-cab30fff9141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"restoreTaskId\": {{taskIdV1}},\n    \"options\": {\n        \"multiStageRestoreAction\": \"kFinalize\"\n    }\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/restore/recover","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","restore","recover"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e3a4e3f-1f6f-4208-8690-cab30fff9141"},{"name":"Delete the Protection Job","event":[{"listen":"test","script":{"id":"46df0e68-4495-424c-b4f5-b7eba6d6d71c","exec":["console.log(responseBody);","function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var count = pm.environment.get(\"count\");","if(responseCode.code != 204 && count < 3){","sleep(10000);","pm.environment.set(\"count\", count + 1)","postman.setNextRequest(\"Delete Protection Job\");","}","else{","pm.environment.unset(\"count\");","tests[\"Delete Protection Job, Status code is 204\"] = responseCode.code === 204;","pm.environment.unset(\"token\")","pm.environment.unset(\"vmId\")","pm.environment.unset(\"policyId\")","pm.environment.unset(\"viewBoxId\")","pm.environment.unset(\"protectionJobName\")","pm.environment.unset(\"protectionJobId\")","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"b3d05761-f515-462f-8ffc-c69402043452","exec":["var count = pm.environment.get(\"count\");","if (count === undefined) {","pm.environment.set(\"count\", 0);","}"],"type":"text/javascript"}}],"id":"f31b4dc7-b2ec-4945-876a-efd0051cd498","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"deleteSnapshots\": true\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionJobs/{{protectionJobId}}","description":"<p>https://{{cluster}}/irisservices/api/v1/public/protectionJobs/{{1stJobId}}</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionJobs","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f31b4dc7-b2ec-4945-876a-efd0051cd498"},{"name":"Unregister vCenter","event":[{"listen":"test","script":{"exec":["tests[\"Unregister the vCenter : \" + responseCode.code] = responseCode.code === 204;\r","if(responseCode.code === 204) {\r","    pm.environment.unset(\"sourceIdRegistered\")\r","    pm.environment.unset(\"token\")\r","    pm.environment.unset(\"vmId\")\r","    pm.environment.unset(\"policyId\")\r","    pm.environment.unset(\"viewBoxId\")\r","    pm.environment.unset(\"protectionJobName\")\r","    pm.environment.unset(\"protectionJobId\")\r","}"],"type":"text/javascript","id":"bf38ea05-b075-45ba-92ff-3e3f7784ad13"}}],"id":"29d625f8-d518-4e30-80ef-8bd7d6f185b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{vcenter_user}}\",\n    \"netappType\": null,\n    \"vmwareType\": \"kVCenter\",\n    \"endpoint\": \"{{vcenter}}\",\n    \"throttlingPolicy\": null,\n    \"throttlingPolicyOverrides\": null,\n    \"pureType\": null,\n    \"sourceSideDedupEnabled\": null,\n    \"sslVerification\": null,\n    \"azureCredentials\": null,\n    \"gcpCredentials\": null,\n    \"office365Type\": null,\n    \"environment\": \"kVMware\",\n    \"physicalType\": null,\n    \"nasMountCredentials\": null,\n    \"hostType\": null,\n    \"password\": \"{{vcenter_password}}\"\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/{{sourceIdRegistered}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","{{sourceIdRegistered}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"29d625f8-d518-4e30-80ef-8bd7d6f185b8"}],"id":"e55dbd47-66ce-453d-8340-08471486fd58","description":"<p>Operations on Migrate VMware VMs with v1 &amp; V2 APIs, Steps 1-10 are to create a Protection Group for VMWare endpoint, The migration workflow begin from Step 11 onwards.</p>\n<ol>\n<li>Generate the access token</li>\n<li>Register the vCenter as protection source</li>\n<li>Search for existing protection sources</li>\n<li>Look for virtual machines</li>\n<li>Identify the protection policy</li>\n<li>Check the storage domain (the view box)</li>\n<li>You are ready to create a protection job</li>\n<li>Run the protection job</li>\n<li>Check the status of the protection job</li>\n<li>The virtual machines are ready for restore</li>\n<li>Get the protected objects run id and instance id.</li>\n<li>Fetch datastore id, resource pool id ,folder id and network id.</li>\n<li>Migrate the tasks and check status.</li>\n<li>Cleanup the cluster by removing the protection job and the vCenter.</li>\n</ol>\n","_postman_id":"e55dbd47-66ce-453d-8340-08471486fd58"},{"name":"DataProtect-VMware","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);",""],"type":"text/javascript","id":"3fb9d93f-1972-4a29-bbb6-c9ca5ac735f8"}}],"id":"c19b2ae7-d425-4b35-85bb-18fa11b7823b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"p@ssw0rd\",\"username\":\"user1\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","description":"<p>https://{{cluster}}/irisservices/api/v1/public/accessTokens</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c19b2ae7-d425-4b35-85bb-18fa11b7823b"},{"name":"Register vCenter","event":[{"listen":"test","script":{"exec":["if(responseCode.code === 400){","  tests[\"Protection Source already registered, Status code is 400\"] = responseCode.code === 400;","  postman.setNextRequest(\"Get Protection Sources\");","}","else if(responseCode.code === 200){","  tests[\"Register Protection Source, Status code is 200\"] = responseCode.code === 200;","  jsonData = JSON.parse(responseBody);","  pm.environment.set(\"sourceIdRegistered\", jsonData.id);","  postman.setNextRequest(\"Select a VirtualMachine\");","}","else{","  postman.setNextRequest(null);","}"],"type":"text/javascript","id":"96db28aa-fd1d-4379-8194-bcf38646954e"}}],"id":"37b9cf8d-97c9-44dd-a75d-10b69ad66d75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{vcenter_user}}\",\n    \"vmwareType\": \"kVCenter\",\n    \"endpoint\": \"{{vcenter}}\",\n    \"environment\": \"kVMware\",\n    \"password\": \"{{vcenter_password}}\"\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/register","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37b9cf8d-97c9-44dd-a75d-10b69ad66d75"},{"name":"Get Protection Sources","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","var source = pm.environment.get(\"vcenter\")","for (var i=0;i<jsonData.length;i++){","   obj = jsonData[i].protectionSource;","   if (source === obj.name){","       pm.environment.set(\"sourceIdRegistered\", obj.id);","   }","}"],"type":"text/javascript","id":"e08601d7-c8be-4c75-8838-aff07cba3400"}}],"id":"83a26f20-b1c6-447c-a19f-94d942816894","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/rootNodes?environments=kVMware","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","rootNodes"],"host":["{{cluster}}"],"query":[{"key":"environments","value":"kVMware"}],"variable":[]}},"response":[],"_postman_id":"83a26f20-b1c6-447c-a19f-94d942816894"},{"name":"Select a VirtualMachine","event":[{"listen":"test","script":{"exec":["pm.test(\"Virtual machines Status code is 200\", function () {","    pm.response.to.have.status(200);","","    // Identify one VM for a protection job","    var vmSize = -1","    jsonData = JSON.parse(responseBody);","    for (i = 0; i < jsonData.length; i++) {","        targetVM = jsonData[i]","        if (targetVM.vmWareProtectionSource.type === \"kVirtualMachine\") {","            if(targetVM.vmWareProtectionSource.virtualDisks == null) {","                continue","            }","            var logicalSize = targetVM.vmWareProtectionSource.virtualDisks[0].logicalSizeBytes","            if (logicalSize != null && logicalSize === 0) {","                continue","            }","            if(vmSize === -1) {","                vmSize = logicalSize","            }","            if (vmSize >= logicalSize) {","                vmSize = logicalSize","                // set the smallest VM","                pm.environment.set(\"vmId\", targetVM.id);","            }","        }","    }","});","","pm.test(\"Content-Type is present\", function () {","    pm.response.to.have.header(\"Content-Type\", \"application/json\");","});","","pm.test(\"Validating attributes\", function () {","    var jsonData = pm.response.json();","    var node = jsonData[0];","    pm.expect(node.id).not.equal(undefined);","});","",""],"type":"text/javascript","id":"eddbfc69-fdaa-4673-94dd-e6fe5724565b"}}],"id":"18c69704-b42b-46c8-b590-c036143919c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"url":"https://{{cluster}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceIdRegistered}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","virtualMachines"],"host":["{{cluster}}"],"query":[{"key":"vCenterId","value":"{{sourceIdRegistered}}"}],"variable":[]}},"response":[],"_postman_id":"18c69704-b42b-46c8-b590-c036143919c0"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"13192d49-4752-4601-bc63-5feae60ca913"}}],"id":"005912d6-ede0-4ef2-a572-7f30be9df696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"005912d6-ede0-4ef2-a572-7f30be9df696"},{"name":"Get Storage Domain","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"viewBoxId\", jsonData[0].id);"],"type":"text/javascript","id":"378a085e-693e-49d2-8157-d46ebe48922c"}}],"id":"77379f6c-d5e4-438f-9b36-eebefca8f41f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster}}/irisservices/api/v1/public/viewBoxes","description":"<p>https://{{cluster}}/irisservices/api/v1/public/viewBoxes</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77379f6c-d5e4-438f-9b36-eebefca8f41f"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["    var jsonData = pm.response.json();","    console.log(jsonData)","    pm.test(\"Status code is 201\", function() {","        pm.environment.set(\"protectionJobId\", jsonData.id);","        pm.environment.set(\"protectionJobName\", jsonData.name);","        pm.expect(jsonData.id).to.be.a('string')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.policyId).to.be.a('string')","        pm.expect(jsonData.priority).to.be.a('string')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.description).to.be.a('string')","        pm.expect(jsonData.startTime).to.be.an('object')","        pm.expect(jsonData.startTime.hour).to.be.a('number')","        pm.expect(jsonData.startTime.minute).to.be.a('number')","        pm.expect(jsonData.startTime.timeZone).to.be.a('string')","        pm.expect(jsonData.alertPolicy).to.be.an('object')","        pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","        pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","        pm.expect(jsonData.sla).to.be.an('array')","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        pm.expect(jsonData.qosPolicy).to.be.a('string')","        pm.expect(jsonData.isActive).to.be.a('boolean')","        pm.expect(jsonData.isPaused).to.be.a('boolean')","        pm.expect(jsonData.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.protectionType).to.be.a('string')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects).to.be.an('array')","        for (var i = 0; i < jsonData.physicalParams.volumeProtectionTypeParams.objects.length; i++) {","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].id).to.be.a('number')","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].name).to.be.a('string')","        }","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.enableIndexing).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.includePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.excludePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.performSourceSideDeduplication).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.incrementalBackupAfterRestart).to.be.a('boolean')","    });"],"type":"text/javascript","id":"9832bc60-9d97-49a5-8f84-24d35fae9bed"}},{"listen":"prerequest","script":{"exec":["var protectionJobName = \"ProtectionJob-\" + (new Date()).getTime()\r","pm.environment.set(\"protectionJobName\", protectionJobName);"],"type":"text/javascript","id":"f1e5860e-3b56-4265-9569-f0713d4a79a8"}}],"id":"565ae623-0510-4365-8a06-78f29b662710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{protectionJobName}}\",\n    \"policyId\": \"{{policyId}}\",\n    \"storageDomainId\": {{viewBoxId}},\n    \"environment\": \"kVMware\",\n    \"isPaused\": true,\n    \"priority\": \"kMedium\",\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 14,\n        \"minute\": 51,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"vmwareParams\": {\n        \"objects\": [\n            {\n                \"id\": {{vmId}}\n            }\n        ],\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ]\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"565ae623-0510-4365-8a06-78f29b662710"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"c1fb1ca0-562a-4152-bc26-d93f829fa4ac"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"065813e8-48f4-491c-9b2b-76415c655c3f"}}],"id":"c54d527b-5a46-44fe-9394-2cac3127f906","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c54d527b-5a46-44fe-9394-2cac3127f906"},{"name":"Get Protection Group Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","    pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","    if (status !== \"Running\") {","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"646bcc6d-2a71-451f-bb3c-9ce85b20ac01"}}],"id":"ccde850a-e691-4d95-8fb0-8b68cce37898","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccde850a-e691-4d95-8fb0-8b68cce37898"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"b3bdcf85-131f-4dc0-a18a-b07704cca3f3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e5af42b5-22d3-4913-a1e7-804d568e94e2"}}],"id":"901f933f-2d53-439f-a61a-84965bfdb770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverVMs&searchString=*&environments=kVMware","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverVMs"},{"key":"searchString","value":"*"},{"key":"environments","value":"kVMware"}],"variable":[]}},"response":[],"_postman_id":"901f933f-2d53-439f-a61a-84965bfdb770"},{"name":"Restore VirtualMachine","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var resp = pm.response.json();","    pm.environment.set(\"restoreId\", resp.id);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"119cb4f9-ed04-4eef-8a5e-ca8456e0408e"}},{"listen":"prerequest","script":{"exec":["var restoreTaskName = \"RestoreTask-\" + (new Date()).getTime()\r","pm.environment.set(\"restoreTaskName\", restoreTaskName);"],"type":"text/javascript","id":"f42791b9-a049-4f60-9e20-bb86556af633"}}],"id":"9291fb62-a994-4178-b5b0-c26a2c288b1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{restoreTaskName}}\",\n    \"snapshotEnvironment\": \"kVMware\",\n    \"vmwareParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"pointInTimeUsecs\": {{startTimeUsecs}},\n                \"protectionGroupId\": \"{{protectionJobId}}\",\n                \"protectionGroupName\": \"{{protectionJobName}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverVMs\",\n        \"recoverVmParams\": {\n            \"targetEnvironment\": \"kVMware\",\n            \"vmwareTargetParams\": {\n                \"renameRecoveredVmsParams\": {\n                    \"prefix\": \"pref\",\n                    \"suffix\": \"suff\"\n                },\n                \"powerOnVms\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9291fb62-a994-4178-b5b0-c26a2c288b1b"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","","    if (jsonData.status === \"Running\") {","        sleep(5000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"cdab0aa2-380c-45af-9ec6-ce977503885d"}}],"id":"6428d7ed-084f-418b-b11e-4b0f51ac8bb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6428d7ed-084f-418b-b11e-4b0f51ac8bb4"},{"name":"Delete the Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"631aa4d1-3fab-4b43-ab55-ec46903852cc"}}],"id":"1c05d337-a6d0-4e0c-b146-6b5ac7bdac9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"1c05d337-a6d0-4e0c-b146-6b5ac7bdac9a"},{"name":"Unregister vCenter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"18d0b72c-c81d-492e-80ad-2f569e8b17f0"}}],"id":"ac56a505-c778-46ae-8a41-c564ade0711a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceIdRegistered}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceIdRegistered}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac56a505-c778-46ae-8a41-c564ade0711a"}],"id":"c53e84cf-bb6c-4f51-b420-893b88237cc5","description":"<p>Operations on VMware VMs with v2 APIs,</p>\n<ol>\n<li>Generate the access token</li>\n<li>Register the vCenter as protection source</li>\n<li>Search for existing protection sources</li>\n<li>Look for virtual machines</li>\n<li>Identify the protection policy</li>\n<li>Check the storage domain (the view box)</li>\n<li>You are ready to create a protection group</li>\n<li>Run the protection group</li>\n<li>Get the snapshots for the protection group</li>\n<li>The virtual machines are ready for restore</li>\n<li>Check the recovery status</li>\n<li>Cleanup the cluster by removing the protection group and the vCenter</li>\n</ol>\n","_postman_id":"c53e84cf-bb6c-4f51-b420-893b88237cc5"},{"name":"DataProtect-UDA","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"2b6e6e5d-1912-4002-afef-1e0d2a7f639b"}}],"id":"f1b5452f-faf2-49f7-be91-e9cd0bed5d72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{{clusterCredentials}}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1b5452f-faf2-49f7-be91-e9cd0bed5d72"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register UDA Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch the VCD Server id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get(\"source_name\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kUDA\") {","            if (jsonData.registrations[i].sourceInfo.name === source) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"3c6fb0dc-f201-459e-a570-c5e8e71ba769"}}],"id":"13549b7d-9c72-478e-9f5b-a6e4d74b9e8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"13549b7d-9c72-478e-9f5b-a6e4d74b9e8c"},{"name":"Register Source","event":[{"listen":"test","script":{"id":"7681634e-b450-4751-bd37-edbe9979caa0","exec":["pm.test(\"Register UDA Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.expect(jsonData.id).to.be.a('number');","        pm.environment.set(\"sourceID\", jsonData.id);","    });","}"],"type":"text/javascript","packages":{}}}],"id":"f8cc9dfa-785b-42b2-99a3-1cedb1f87333","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kUDA\",\n  \"udaParams\": {\n    \"sourceType\": \"kOther\",\n    \"osType\": \"kLinux\",\n    \"hosts\": [\n      \"host.fqdn.com\"\n    ],\n    \"credentials\": {\n      \"password\": \"{{mysecurepassword}}\",\n      \"username\": \"{{username}}\"\n    },\n    \"scriptDir\": \"/opt/cohesity/db2/scripts\",\n    \"sourceRegistrationArgs\": \"--db2profile-path=/home/db2inst1/sqllib/db2profile --source-name=db2-node02\"\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f8cc9dfa-785b-42b2-99a3-1cedb1f87333"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains using v1-TODO\");","    }","});"],"type":"text/javascript","id":"2eefc64d-4471-4ebc-bc74-c27817fc6296"}}],"id":"57490077-e7bd-4ef8-9673-41ffd13cd8f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"57490077-e7bd-4ef8-9673-41ffd13cd8f5"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains using v1-TODO\");","    }","});"],"type":"text/javascript","id":"14040272-2a58-4520-a2fd-9aae6dee40e7"}}],"id":"66fd6860-c81a-4cb6-9feb-432d9e80ffcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66fd6860-c81a-4cb6-9feb-432d9e80ffcb"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});",""],"type":"text/javascript","id":"266cd2dc-70a8-4c0f-8cfa-a9fe3df944aa"}}],"id":"01de8ff5-533c-4cc6-8d2b-d2c814f47052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{policyName}}\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"01de8ff5-533c-4cc6-8d2b-d2c814f47052"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","}"],"type":"text/javascript","id":"544534de-595f-4892-8c53-8ae70fae8ce6"}}],"id":"a5f6579c-c256-49ca-9056-000474a11687","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5f6579c-c256-49ca-9056-000474a11687"},{"name":"Get Source Id","event":[{"listen":"test","script":{"exec":["tests[\"Getting virtual machines, Status code is 200\"] = responseCode.code === 200;","var jsonData = JSON.parse(responseBody);","vm_name = pm.environment.get(\"vmName\");","for (var i = 0; i < jsonData.objects.length; i++) {","    if (jsonData.objects[i].objectType === \"kVirtualMachine\" && jsonData.objects[i].name === vm_name) {","        pm.environment.set(\"objectId\", jsonData.objects[i].id)","    }","}"],"type":"text/javascript","id":"4133ac30-bbf7-4337-85b4-0cff7b52390d"}}],"id":"0d84f6e5-2c12-4b89-a194-851f89b7d058","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/objects?parentId={{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","objects"],"host":["{{cluster}}"],"query":[{"key":"parentId","value":"{{sourceId}}"}],"variable":[]}},"response":[],"_postman_id":"0d84f6e5-2c12-4b89-a194-851f89b7d058"},{"name":"Create Protection Job","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a(\"string\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.environment).to.be.eql(\"kVMware\");","    pm.expect(jsonData.isActive).to.be.a(\"boolean\");","    pm.expect(jsonData.isPaused).to.be.a(\"boolean\");","    pm.expect(jsonData.abortInBlackouts).to.be.a(\"boolean\");","    pm.expect(jsonData.priority).to.be.a(\"string\");","    pm.expect(jsonData.storageDomainId).to.be.a(\"number\");","    pm.expect(jsonData.startTime).to.be.an(\"object\");","    pm.expect(jsonData.startTime.hour).to.be.a(\"number\");","    pm.expect(jsonData.startTime.minute).to.be.a(\"number\");","    pm.expect(jsonData.alertPolicy).to.be.an(\"object\");","    pm.expect(jsonData.vmwareParams).to.be.an(\"object\");","    pm.expect(jsonData.vmwareParams.objects).to.be.an(\"array\");","    for (var i=0; i< jsonData.vmwareParams.objects.length; i++) {","        pm.expect(jsonData.vmwareParams.objects[i].id).to.be.a(\"number\");","        pm.expect(jsonData.vmwareParams.objects[i].name).to.be.a(\"string\");","    }","    pm.expect(jsonData.vmwareParams.sourceId).to.be.a(\"number\");","    pm.expect(jsonData.vmwareParams.sourceName).to.be.a(\"string\");","    pm.expect(jsonData.vmwareParams.appConsistentSnapshot).to.be.a(\"boolean\");","    pm.expect(jsonData.vmwareParams.fallbackToCrashConsistentSnapshot).to.be.a(\"boolean\");","    pm.expect(jsonData.vmwareParams.skipPhysicalRDMDisks).to.be.a(\"boolean\");","    pm.expect(jsonData.vmwareParams.cloudMigration).to.be.a(\"boolean\");","    pm.expect(jsonData.vmwareParams.indexingPolicy).to.be.an(\"object\");","    pm.expect(jsonData.vmwareParams.indexingPolicy.enableIndexing).to.be.a(\"boolean\");","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","});"],"type":"text/javascript","id":"dc341d66-bc6f-45fa-8acd-0b0fd879a5c1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6edd98b7-ecdc-42f1-a4a0-75256419ea05"}}],"id":"1931f5ff-363f-40dc-858c-6b03955ee77d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{protectionJobName}}_649\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"priority\": \"kLow\",\n  \"environment\": \"kUDA\",\n  \"startTime\": {\n    \"hour\": 16,\n    \"minute\": 38,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"sourceId\": {{sourceId}},\n  \"abortInBlackouts\": false,\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ]\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"udaParams\": {\n      \"sourceId\": {{sourceId}},\n    \"objects\": [\n      {\"name\":\"db2inst1\"\n      }\n    ]},\n    \"pauseFutureRuns\": true\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1931f5ff-363f-40dc-858c-6b03955ee77d"},{"name":"Run Protection Job","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript","id":"c4de4982-3bf9-4331-ae4d-7ad1ee6c2080"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5df3270a-a862-4b1e-9703-fdada369d160"}}],"id":"589b87cd-3e02-4f52-b892-070b99553f08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"589b87cd-3e02-4f52-b892-070b99553f08"},{"name":"Get Job Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.isSlaViolated).to.be.a('boolean')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].isReplicationRun).to.be.a('boolean')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].hasLocalSnapshot).to.be.a('boolean')","            pm.expect(jsonData[i].onLegalHold).to.be.a('boolean')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"c518ff83-d4b5-4e0e-9a48-c58810410647"}}],"id":"f0581d69-313b-4598-a50e-d878852e7d44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0581d69-313b-4598-a50e-d878852e7d44"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData.objects !== null) {","        pm.environment.set(\"objectSnapshotid\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId)","    }","    else {","        postman.setNextRequest(\"Remove Job and objects\");","    }","});"],"type":"text/javascript","id":"3735113d-775d-4c7f-9ce4-dcc088958f97"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c59f7e6b-9265-40c2-8d02-4eec914e3603"}}],"id":"18b8874d-ae21-4db5-9abf-d0d9afc58026","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&environments=kUDA&protectionGroupIds={{protectionJobId}}","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"environments","value":"kUDA"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"18b8874d-ae21-4db5-9abf-d0d9afc58026"},{"name":"Create Recovery","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.vmwareParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoveryAction).to.be.a('string')","    for (var i=0; i<jsonData.vmwareParams.objects.length; i++){","        pm.expect(jsonData.vmwareParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.osType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects).to.be.an('array');","    }","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.recoverToOriginalTarget).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.preserveAttributes).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig.recoverMethod).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"d4c2a14b-20f6-48fd-ad9b-5162b834a3af"}}],"id":"1ffeebaa-6f8c-422e-9551-63957f410137","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"File_Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kUDA\",\n    \"udaParams\": {\n        \"recoveryAction\": \"RecoverObjects\",\n        \"recoverUdaParams\": {\n            \"snapshots\": [\n                {\n                    \"snapshotId\": \"{{objectSnapshotid}}\",\n                    \"objects\": [\n                        {\n                            \"objectName\": \"{{objectName}}\",\n                            \"overwrite\": true,\n                            \"renameTo\": null\n                        }\n                    ],\n                    \"recoveryArgs\": \"\"\n                }\n            ]\n        }\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ffeebaa-6f8c-422e-9551-63957f410137"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.vmwareParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoveryAction).to.be.a('string')","    for (var i=0; i<jsonData.vmwareParams.objects.length; i++) {","        pm.expect(jsonData.vmwareParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.osType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.uuid).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.vmwareParams.objects).to.be.an('array')","    }","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.recoverToOriginalTarget).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.preserveAttributes).to.be.a('boolean')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig).to.be.an('object')","    pm.expect(jsonData.vmwareParams.recoverFileAndFolderParams.vmwareTargetParams.originalTargetConfig.recoverMethod).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","","    if (jsonData.status === \"Running\"){","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"20012231-9695-4b81-91db-ba9320be2aff"}}],"id":"fdebe1b1-2583-48fe-9153-82ac8492b85c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fdebe1b1-2583-48fe-9153-82ac8492b85c"},{"name":"Remove Job and Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"3f479556-dea1-4099-9b84-a2ed2b5bdacc"}}],"id":"c3af8faf-7ecb-41e5-b412-d3da1cfbb591","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"c3af8faf-7ecb-41e5-b412-d3da1cfbb591"},{"name":"Unregister UDA","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"593c26c5-c91c-4af0-98ca-3d43a58e685d"}}],"id":"ab7519e5-d8fa-4469-bcfd-a0c13e9d1b6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab7519e5-d8fa-4469-bcfd-a0c13e9d1b6d"}],"id":"8992df4a-92aa-49b2-8401-9a6a23e039af","description":"<h2 id=\"description\">Description</h2>\n<p>Postman API collection where you will find API examples for our latest Connector workflow using which you can protect various DBs like Postgres, MySQL, SAP HANA, SAP Oracle and <a href=\"https://docs.cohesity.com/6_6/Web/UserGuide/Content/Concepts/UniversalDataAdaptor.htm\">much more</a>. The API documentation can be found in the <a href=\"https://developer.cohesity.com/apidocs/helios/v2-api/\">Cohesity Developer Portal</a>.</p>\n<h2 id=\"environment-variables\">Environment Variables</h2>\n<ul>\n<li>Choose the ClusterOnPrem Postman Environment for this collection. You need to set the following variables.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment Variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cluster</td>\n<td>FQDN for the Cluster</td>\n</tr>\n<tr>\n<td>clusterUser</td>\n<td>Cluster Username</td>\n</tr>\n<tr>\n<td>clusterPassword</td>\n<td>Cluster Password</td>\n</tr>\n<tr>\n<td>token</td>\n<td>Cluster token. This will be set after Get Auth Token API call</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>There are other collection variables that will be set when you make API calls, like <code>sourceId</code> etc. These collection variables will be used further during subsequent API calls</li>\n<li>In order to use these APIs, you need to call these in sequence so that the collections variables set by a previous API call can be used later.</li>\n</ul>\n<h2 id=\"contribute\">Contribute</h2>\n<p>You can also contribute to this collection by submitting your collections and/or workflows. You can fork our Workspace and then submit a merge request.</p>\n<h2 id=\"feedback\">Feedback</h2>\n<p>If you want to see more collections/use-cases reach out to: <a href=\"mailto:cohesity-api-sdks@cohesity.com\">cohesity-api-sdks@cohesity.com</a></p>\n","_postman_id":"8992df4a-92aa-49b2-8401-9a6a23e039af"},{"name":"DataProtect-UDA SAP ASE","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","packages":{},"id":"01d0ae2c-ae80-456e-a819-99ca5a54703c"}}],"id":"b6fb3207-fc0c-4077-85b4-bfec962f8b79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"domain\": \"LOCAL\",\n    \"password\": \"{{clusterUsername}}\",\n    \"username\": \"{{clusterPassword}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6fb3207-fc0c-4077-85b4-bfec962f8b79"},{"name":"Get Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Register UDA Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetch the VCD Server id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get(\"source_name\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kUDA\") {","            if (jsonData.registrations[i].sourceInfo.name === source) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"c96242a8-44de-4672-9a42-ebe8e186bb72"}}],"id":"7b48169e-060d-4c11-b0c1-fbbbb19cdbcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b48169e-060d-4c11-b0c1-fbbbb19cdbcd"},{"name":"Register Source - Password Auth","event":[{"listen":"test","script":{"exec":["pm.test(\"Register UDA Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.expect(jsonData.id).to.be.a('number');","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","packages":{},"id":"aa2d2f37-3b7f-41fd-a115-99a298834307"}},{"listen":"prerequest","script":{"exec":["//let timestamp = Date.now();","//let uniqueSourceName = `\"ASESource_${timestamp}\"`;","//pm.environment.set(\"sourceName1\", uniqueSourceName);","","let substitutedRequestBody = pm.variables.replaceIn(pm.request.body.raw);","let jsonRequestBody = JSON.parse(substitutedRequestBody);","let allowedOSTypes = [\"kLinux\", \"kWindows\"];","console.log(jsonRequestBody[\"osType\"]);","if(!allowedOSTypes.includes(jsonRequestBody.udaParams.osType)){","    throw new Error(`The value of osType must be on: ${allowedOSTypes.join(\", \")}`);","}","",""],"type":"text/javascript","packages":{},"id":"25b6a2ec-2b28-44a6-b664-ca0491b18ed5"}}],"id":"f6f28c86-663c-4c14-95de-f6d7b688ba06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kUDA\",\n    \"udaParams\": {\n        \"sourceType\": \"kSapASE\",\n        \"osType\": \"{{osType}}\",\n        \"hosts\": {{aseHosts}},\n        \"scriptDir\": \"{{aseConnectorScriptsLocation}}\",\n        \"sourceRegistrationArguments\": [\n            {\n                \"key\": \"authentication_type\",\n                \"value\": \"password\"\n            },\n            {\n                \"key\": \"username\",\n                \"value\": \"{{aseDBUsername}}\"\n            },\n            {\n                \"key\": \"password\",\n                \"value\": \"{{aseDBPassword}}\"\n            },\n            {\n                \"key\": \"source_name\",\n                \"value\": \"{{sourceName}}\"\n            },\n            {\n                \"key\": \"server_name\",\n                \"value\": \"{{aseServerName}}\"\n            },\n            {\n                \"key\": \"sapase_host\",\n                \"value\": \"{{aseHostIP}}\"\n            },\n            {\n                \"key\": \"sapase_port\",\n                \"value\": \"{{aseHostPort}}\"\n            },\n            {\n                \"key\": \"check_db_connection\",\n                \"value\": \"true\"\n            },\n            {\n                \"key\": \"ssl_certificate_path\",\n                \"value\": \"{{sslCertificatePath}}\"\n            },\n            {\n                \"key\": \"certificate_config_path\",\n                \"value\": \"{{certificateConfigPath}}\"\n            },\n            {\n                \"key\": \"environment_variables\",\n                \"value\": \"{{connectorEnvVariables}}\"\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6f28c86-663c-4c14-95de-f6d7b688ba06"},{"name":"Register Source - SecureStoreKey Auth","event":[{"listen":"test","script":{"exec":["pm.test(\"Register UDA Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.expect(jsonData.id).to.be.a('number');","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","packages":{},"id":"b62bb787-865a-4874-8121-759753451b41"}},{"listen":"prerequest","script":{"exec":["let substitutedRequestBody = pm.variables.replaceIn(pm.request.body.raw);","let jsonRequestBody = JSON.parse(substitutedRequestBody);","let allowedOSTypes = [\"kLinux\", \"kWindows\"];","console.log(jsonRequestBody[\"osType\"]);","if(!allowedOSTypes.includes(jsonRequestBody.udaParams.osType)){","    throw new Error(`The value of osType must be on: ${allowedOSTypes.join(\", \")}`);","}","",""],"type":"text/javascript","packages":{},"id":"274067d0-80f2-4fdc-b461-07bcf254aa75"}}],"id":"c2dfb912-5795-49cb-9b7e-af42bba75a01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kUDA\",\n    \"udaParams\": {\n        \"sourceType\": \"kSapASE\",\n        \"osType\": \"{{osType}}\",\n        \"hosts\": {{aseHosts}},\n        \"scriptDir\": \"{{aseConnectorScriptsLocation}}\",\n        \"sourceRegistrationArguments\": [\n            {\n                \"key\": \"authentication_type\",\n                \"value\": \"securestorekey\"\n            },\n            {\n                \"key\": \"securestorekey\",\n                \"value\": {{aseSecureStoreKey}}\n            },\n            {\n                \"key\": \"source_name\",\n                \"value\": \"{{sourceName}}\"\n            },\n            {\n                \"key\": \"server_name\",\n                \"value\": \"{{aseServerName}}\"\n            },\n            {\n                \"key\": \"sapase_host\",\n                \"value\": \"{{aseHostIP}}\"\n            },\n            {\n                \"key\": \"sapase_port\",\n                \"value\": \"{{aseHostPort}}\"\n            },\n            {\n                \"key\": \"check_db_connection\",\n                \"value\": \"true\"\n            },\n            {\n                \"key\": \"ssl_certificate_path\",\n                \"value\": \"{{sslCertificatePath}}\"\n            },\n            {\n                \"key\": \"certificate_config_path\",\n                \"value\": \"{{certificateConfigPath}}\"\n            },\n            {\n                \"key\": \"environment_variables\",\n                \"value\": \"{{connectorEnvVariables}}\"\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2dfb912-5795-49cb-9b7e-af42bba75a01"},{"name":"Register Source - Kerberos Auth with keytab file","event":[{"listen":"test","script":{"exec":["pm.test(\"Register UDA Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.expect(jsonData.id).to.be.a('number');","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","packages":{},"id":"84c43df2-9d2e-41d9-8c1a-fb94e94fdda0"}},{"listen":"prerequest","script":{"exec":["let substitutedRequestBody = pm.variables.replaceIn(pm.request.body.raw);","let jsonRequestBody = JSON.parse(substitutedRequestBody);","let allowedOSTypes = [\"kLinux\"];","console.log(jsonRequestBody[\"osType\"]);","if(!allowedOSTypes.includes(jsonRequestBody.udaParams.osType)){","    throw new Error(`The value of osType must be on: ${allowedOSTypes.join(\", \")}for Kerberos authentication.`);","}","",""],"type":"text/javascript","packages":{},"id":"31ff1c60-37bf-4524-8b41-3d5eeade5932"}}],"id":"dc9001d9-b232-49fa-a29e-c545e2ced7fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kUDA\",\n    \"udaParams\": {\n        \"sourceType\": \"kSapASE\",\n        \"osType\": \"{{osType}}\",\n        \"hosts\": {{aseHosts}},\n        \"scriptDir\": \"{{aseConnectorScriptsLocation}}\",\n        \"sourceRegistrationArguments\": [\n            {\n                \"key\": \"authentication_type\",\n                \"value\": \"Kerberos\"\n            },\n            {\n                \"key\": \"kerberos_principal\",\n                \"value\": \"{{kerberosPrincipal}}\"\n            },\n            {\n                \"key\": \"kerberos_keytab\",\n                \"value\": \"{{kerberosKeytabPath}}\"\n            },\n            {\n                \"key\": \"source_name\",\n                \"value\": \"{{sourceName}}\"\n            },\n            {\n                \"key\": \"server_name\",\n                \"value\": \"{{aseServerName}}\"\n            },\n            {\n                \"key\": \"sapase_host\",\n                \"value\": \"{{aseHostIP}}\"\n            },\n            {\n                \"key\": \"sapase_port\",\n                \"value\": \"{{aseHostPort}}\"\n            },\n            {\n                \"key\": \"check_db_connection\",\n                \"value\": \"true\"\n            },\n            {\n                \"key\": \"ssl_certificate_path\",\n                \"value\": \"{{sslCertificatePath}}\"\n            },\n            {\n                \"key\": \"certificate_config_path\",\n                \"value\": \"{{certificateConfigPath}}\"\n            },\n            {\n                \"key\": \"environment_variables\",\n                \"value\": \"KEYTAB_AUTHENTICATION=true\"\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc9001d9-b232-49fa-a29e-c545e2ced7fa"},{"name":"Register Source - Kerberos Auth with Kerberos cache","event":[{"listen":"test","script":{"exec":["pm.test(\"Register UDA Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.expect(jsonData.id).to.be.a('number');","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}"],"type":"text/javascript","packages":{},"id":"b6b14705-0ddd-4a07-8697-42facafa0c66"}},{"listen":"prerequest","script":{"exec":["let substitutedRequestBody = pm.variables.replaceIn(pm.request.body.raw);","let jsonRequestBody = JSON.parse(substitutedRequestBody);","let allowedOSTypes = [\"kLinux\"];","console.log(jsonRequestBody[\"osType\"]);","if(!allowedOSTypes.includes(jsonRequestBody.udaParams.osType)){","    throw new Error(`The value of osType must be on: ${allowedOSTypes.join(\", \")}for Kerberos authentication.`);","}","",""],"type":"text/javascript","packages":{},"id":"50298a42-d3a4-46af-8bf1-fc37a014a3cb"}}],"id":"79f414c9-dc2e-435e-b11f-b6e5f8ac8782","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"environment\": \"kUDA\",\n    \"udaParams\": {\n        \"sourceType\": \"kSapASE\",\n        \"osType\": \"{{osType}}\",\n        \"hosts\": {{aseHosts}},\n        \"scriptDir\": \"{{aseConnectorScriptsLocation}}\",\n        \"sourceRegistrationArguments\": [\n            {\n                \"key\": \"authentication_type\",\n                \"value\": \"Kerberos\"\n            },\n            {\n                \"key\": \"kerberos_principal\",\n                \"value\": \"{{kerberosPrincipal}}\"\n            },\n            {\n                \"key\": \"kerberos_cache\",\n                \"value\": \"{{kerberosCachePath}}\"\n            },\n            {\n                \"key\": \"source_name\",\n                \"value\": \"{{sourceName}}\"\n            },\n            {\n                \"key\": \"server_name\",\n                \"value\": \"{{aseServerName}}\"\n            },\n            {\n                \"key\": \"sapase_host\",\n                \"value\": \"{{aseHostIP}}\"\n            },\n            {\n                \"key\": \"sapase_port\",\n                \"value\": \"{{aseHostPort}}\"\n            },\n            {\n                \"key\": \"check_db_connection\",\n                \"value\": \"true\"\n            },\n            {\n                \"key\": \"ssl_certificate_path\",\n                \"value\": \"{{sslCertificatePath}}\"\n            },\n            {\n                \"key\": \"certificate_config_path\",\n                \"value\": \"{{certificateConfigPath}}\"\n            },\n            {\n                \"key\": \"environment_variables\",\n                \"value\": \"KRBCACHE_AUTHENTICATION=true\"\n            }\n        ]\n    }\n}"},"url":"https://{{cluster}}/v2/data-protect/sources/registrations","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"79f414c9-dc2e-435e-b11f-b6e5f8ac8782"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains using v1-TODO\");","    }","});"],"type":"text/javascript","id":"daa1ceef-aafa-47d1-adf8-157460094d0e"}}],"id":"64b09952-e7c3-436d-8779-27659aa88b33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/policies","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"64b09952-e7c3-436d-8779-27659aa88b33"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","    pm.expect(jsonData.storageDomains).to.be.an(\"array\");","}"],"type":"text/javascript","id":"87ec3cf1-9af6-42e8-a680-85fe4de9d89c"}}],"id":"d3fb7880-c0aa-4827-8790-a6ad2c28d0bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/storage-domains","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3fb7880-c0aa-4827-8790-a6ad2c28d0bb"},{"name":"Get Source Id","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"adb063a5-1135-483f-9109-c6ed1f8fc2fe"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"94cde864-b36a-4ef6-9060-866efdb742de"}}],"id":"4127de0e-b804-4484-b18b-40b5640d0943","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/objects?parentId={{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","objects"],"host":["{{cluster}}"],"query":[{"key":"parentId","value":"{{sourceId}}"}],"variable":[]}},"response":[],"_postman_id":"4127de0e-b804-4484-b18b-40b5640d0943"},{"name":"Create Protection Job","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a(\"string\");","    pm.expect(jsonData.name).to.be.a(\"string\");","    pm.expect(jsonData.environment).to.be.eql(\"kUDA\");","    pm.expect(jsonData.isActive).to.be.a(\"boolean\");","    pm.expect(jsonData.isPaused).to.be.a(\"boolean\");","    pm.expect(jsonData.abortInBlackouts).to.be.a(\"boolean\");","    pm.expect(jsonData.priority).to.be.a(\"string\");","    pm.expect(jsonData.storageDomainId).to.be.a(\"number\");","    pm.expect(jsonData.startTime).to.be.an(\"object\");","    pm.expect(jsonData.startTime.hour).to.be.a(\"number\");","    pm.expect(jsonData.startTime.minute).to.be.a(\"number\");","    pm.expect(jsonData.alertPolicy).to.be.an(\"object\");","    pm.expect(jsonData.udaParams).to.be.an(\"object\");","    pm.expect(jsonData.udaParams.objects).to.be.an(\"array\");","    pm.expect(jsonData.udaParams.sourceId).to.be.a(\"number\");","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","});"],"type":"text/javascript","packages":{},"id":"e32cbe94-af0b-4a06-9648-baf861448251"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"6fb66345-3b30-4dfc-a521-6a1aa71e4af4"}}],"id":"0a3f6f2a-7699-4c67-affe-2c3b38450044","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{protectionJobName}}\",\n    \"policyId\": \"{{policyId}}\",\n    \"storageDomainId\": {{viewBoxId}},\n    \"priority\": \"kLow\",\n    \"environment\": \"kUDA\",\n    \"startTime\": {\n        \"hour\": 16,\n        \"minute\": 38,\n        \"timeZone\": \"Asia/Calcutta\"\n    },\n    \"sourceId\": {{sourceId}},\n    \"abortInBlackouts\": false,\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ]\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"udaParams\": {\n        \"sourceId\": {{sourceId}},\n        \"objects\": [\n            {\n                \"name\": \"{{aseDBObjectName}}\"\n            }\n        ],\n        \"concurrency\": 16,\n        \"backupJobArguments\": [\n            {\n                \"key\": \"convert_incremental_to_full_on_error\",\n                \"value\": \"false\"\n            },\n            {\n                \"key\": \"allow_incremental_backups\",\n                \"value\": \"false\"\n            },\n            {\n                \"key\": \"parallel_objects\",\n                \"value\": \"6\"\n            },\n            {\n                \"key\": \"io_thread_count\",\n                \"value\": \"0\"\n            },\n            {\n                \"key\": \"rpc_timeout\",\n                \"value\": \"120\"\n            },\n            {\n                \"key\": \"hangtimeout_secs\",\n                \"value\": \"1200\"\n            },\n            {\n                \"key\": \"max_io_bytes\",\n                \"value\": \"4194304\"\n            },\n            {\n                \"key\": \"environment_variables\",\n                \"value\": \"\"\n            }\n        ]\n    },\n    \"pauseFutureRuns\": true\n}\n\n\n\n"},"url":"https://{{cluster}}/v2/data-protect/protection-groups","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a3f6f2a-7699-4c67-affe-2c3b38450044"},{"name":"Get Job Runs","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"status\", status)","    if (status === \"Running\"){","        // Sleep for 15 seconds.","        sleep(15000);","        postman.setNextRequest(\"Get Job Runs\")","    }","    else {","        // Sleep for 15 seconds.","        sleep(15000);","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.isSlaViolated).to.be.a('boolean')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].isReplicationRun).to.be.a('boolean')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].hasLocalSnapshot).to.be.a('boolean')","            pm.expect(jsonData[i].onLegalHold).to.be.a('boolean')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"ab7ac01d-9a79-4665-802d-9c7854fbec3c"}}],"id":"0c7e3f2d-69bb-4c5e-8e36-29bf12ff9887","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c7e3f2d-69bb-4c5e-8e36-29bf12ff9887"},{"name":"Get Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    if (jsonData.objects !== null) {","        pm.environment.set(\"objectSnapshotid\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId)","    }","    else {","        postman.setNextRequest(\"Remove Job and objects\");","    }","});"],"type":"text/javascript","id":"df5bffd8-8a1e-466c-8d0a-d164b3a1eaab"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1c540184-2d0a-48db-b109-617456b691a6"}}],"id":"c92a4929-6605-46b0-ac75-6977701c38eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&environments=kUDA&protectionGroupIds={{protectionJobId}}","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"environments","value":"kUDA"},{"key":"protectionGroupIds","value":"{{protectionJobId}}"}],"variable":[]}},"response":[],"_postman_id":"c92a4929-6605-46b0-ac75-6977701c38eb"},{"name":"Create Recovery","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.udaParams).to.be.an('object')","    pm.expect(jsonData.udaParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.udaParams.recoverUdaParams).to.be.a('object')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","","    pm.environment.set(\"restoreId\", jsonData.id)","});"],"type":"text/javascript","packages":{},"id":"057b313a-0f76-4ed5-8bfc-8a0ae2f0f38a"}}],"id":"ed31a97e-1cc7-4f23-a676-cc7ab0799980","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recover_UDA_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kUDA\",\n    \"udaParams\": {\n        \"recoveryAction\": \"RecoverObjects\",\n        \"recoverUdaParams\": {\n            \"snapshots\": [\n                {\n                    \"snapshotId\": \"{{objectSnapshotid}}\",\n                    \"objects\": [\n                        {\n                            \"objectName\": \"{{aseDBObjectName}}\",\n                            \"overwrite\": true,\n                            \"renameTo\": null\n                        }\n                    ]\n                }\n            ],\n            \"recoveryArgs\": \"\",\n            \"recoveryJobArguments\": [\n                {\n                    \"key\": \"create_database\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"parallel_objects\",\n                    \"value\": \"6\"\n                },\n                {\n                    \"key\": \"io_thread_count\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"rpc_timeout\",\n                    \"value\": \"120\"\n                },\n                {\n                    \"key\": \"hangtimeout_secs\",\n                    \"value\": \"1200\"\n                },\n                {\n                    \"key\": \"max_io_bytes\",\n                    \"value\": \"4194304\"\n                },\n                {\n                    \"key\": \"environment_variables\",\n                    \"value\": \"\"\n                }\n            ]\n        }\n    }\n}\n\n"},"url":"https://{{cluster}}/v2/data-protect/recoveries","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed31a97e-1cc7-4f23-a676-cc7ab0799980"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.udaParams).to.be.an('object')","    pm.expect(jsonData.udaParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.udaParams.recoverUdaParams).to.be.a('object')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","});"],"type":"text/javascript","packages":{},"id":"d30d5bcf-85b8-4fba-ad94-4b123caaa498"}}],"id":"bc1c2ed8-5968-4b1e-9e95-fca120404c4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster}}/v2/data-protect/recoveries/{{restoreId}}","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc1c2ed8-5968-4b1e-9e95-fca120404c4e"},{"name":"Remove Job and Snapshots","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"4fa910c9-e1b3-4000-9d72-1daa2886de1b"}}],"id":"1fc546b3-cb90-4ecc-88fa-2c212a8e7f6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"host":["{{cluster}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[],"_postman_id":"1fc546b3-cb90-4ecc-88fa-2c212a8e7f6a"},{"name":"Unregister UDA","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"77203e6b-b1a7-4bdc-949c-0aea0e6c30c0"}}],"id":"87169c77-fb04-4887-bdf8-da92ca95be2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster}}/v2/data-protect/sources/registrations/{{sourceId}}","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"87169c77-fb04-4887-bdf8-da92ca95be2d"}],"id":"1f5e389e-f008-4ecd-a362-00de8d7dc316","description":"<h2 id=\"description\">Description</h2>\n<p>Postman API collection where you will find API examples for our latest Connector workflow using which you can protect various DBs like Postgres, MySQL, SAP HANA, SAP Oracle and <a href=\"https://docs.cohesity.com/6_6/Web/UserGuide/Content/Concepts/UniversalDataAdaptor.htm\">much more</a>. The API documentation can be found in the <a href=\"https://developer.cohesity.com/apidocs/helios/v2-api/\">Cohesity Developer Portal</a>.</p>\n<h2 id=\"environment-variables\">Environment Variables</h2>\n<ul>\n<li><p>Consider selecting the environment <code>SAP ASE ENV</code></p>\n</li>\n<li><p>Choose the ClusterOnPrem Postman Environment for this collection. You need to set the following variables.</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment Variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cluster</td>\n<td>FQDN for the Cluster</td>\n</tr>\n<tr>\n<td>clusterUser</td>\n<td>Cluster Username</td>\n</tr>\n<tr>\n<td>clusterPassword</td>\n<td>Cluster Password</td>\n</tr>\n<tr>\n<td>token</td>\n<td>Cluster token. This will be set after Get Auth Token API call</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p>There are other collection variables that will be set when you make API calls, like <code>sourceId</code> etc. These collection variables will be used further during subsequent API calls</p>\n</li>\n<li><p>In order to use these APIs, you need to call these in sequence so that the collections variables set by a previous API call can be used later.</p>\n</li>\n</ul>\n<h2 id=\"contribute\">Contribute</h2>\n<p>You can also contribute to this collection by submitting your collections and/or workflows. You can fork our Workspace and then submit a merge request.</p>\n<h2 id=\"feedback\">Feedback</h2>\n<p>If you want to see more collections/use-cases reach out to: <a href=\"https://mailto:cohesity-api-sdks@cohesity.com\">cohesity-api-sdks@cohesity.com</a></p>\n","_postman_id":"1f5e389e-f008-4ecd-a362-00de8d7dc316"},{"name":"Platform-Alerts","item":[{"name":"Webhook-Alerts","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);",""],"type":"text/javascript","id":"eb03545a-f52b-4c81-821d-0beed7384e8b"}}],"id":"c48a045b-7dc6-4ce3-9b4d-c428616270b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\":\"{{clusterPassword}}\",\"username\":\"{{clusterUser}}\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","description":"<p>https://{{cluster}}/irisservices/api/v1/public/accessTokens</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c48a045b-7dc6-4ce3-9b4d-c428616270b7"},{"name":"Webook Notification Rule","event":[{"listen":"prerequest","script":{"exec":["var alertNotificationRuleName = \"AlertNotificationRuleName-\" + (new Date()).getTime()\r","pm.environment.set(\"alertNotificationRuleName\", alertNotificationRuleName);"],"type":"text/javascript","id":"22e153ab-5506-47fc-b93e-7beb71365111"}},{"listen":"test","script":{"exec":["if(responseCode.code === 200){\r","  tests[\"Successfully created a new alert notification rule, Status code is 200\"] = responseCode.code === 200;\r","  jsonData = JSON.parse(responseBody);\r","  pm.environment.set(\"alertNotificationRuleId\", jsonData.ruleId);\r","}"],"type":"text/javascript","id":"7cd3ce19-a70e-473c-aa97-9354b0ab263e"}}],"id":"1f14b85f-8ed6-44be-96ef-72c30a559ec0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"ruleName\": \"{{alertNotificationRuleName}}\",\r\n  \"webHookDeliveryTargets\": [\r\n    {\r\n      \"externalApiUrl\": \"{{webhookURL}}\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/irisservices/api/v1/public/alertNotificationRules","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertNotificationRules"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f14b85f-8ed6-44be-96ef-72c30a559ec0"},{"name":"Alert Notification Rules","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData !== null) {","    if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","        pm.test(\"Validate Response Object\", function () { ","            //API was returning null at the time of writing tests.","            pm.expect(jsonData[0].alertTypeList).to.be.a('Array');","            pm.expect(jsonData[0].categories).to.be.a('Array');","            pm.expect(jsonData[0].emailDelliveryTargets[0].emailAddress).to.not.be.a('number');","            pm.expect(jsonData[0].emailDeliveryTargets[0].locale).to.not.be.a('number');","            pm.expect(jsonData[0].ruleId).to.be.a('number');","            pm.expect(jsonData[0].ruleName).to.not.be.a('number');","            pm.expect(jsonData[0].severities).to.be.a('Array');","            pm.expect(jsonData[0].tenantId).to.not.be.a('number');","            pm.expect(jsonData[0].webHookDeliveryTargets[0].curlOptions).to.not.be.a('number');","            pm.expect(jsonData[0].webHookDeliveryTargets[0].externalApiUrl).to.not.be.a('number');","        });","    } else if(Object.keys(jsonData).length === 0){ ","        pm.test(\"Empty Response Object\", function () { }); ","    }","}"],"type":"text/javascript","id":"8a1e4e4b-fdf1-4245-83bf-0c9cfbbda3aa"}}],"id":"d1a79ef3-a6e7-4ba9-b625-87a2817e0f3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertNotificationRules","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertNotificationRules"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1a79ef3-a6e7-4ba9-b625-87a2817e0f3f"},{"name":"Update Notification Rule","event":[{"listen":"prerequest","script":{"exec":["var alertNotificationRuleName = \"UpdatedAlertNotificationRuleName-\" + (new Date()).getTime()\r","pm.environment.set(\"alertNotificationRuleName\", alertNotificationRuleName);"],"type":"text/javascript","id":"0d3e32e2-2e90-4fd4-bbc4-b19cff1051e0"}},{"listen":"test","script":{"exec":["if(responseCode.code === 200){\r","  tests[\"Successfully updated the alert notification rule, Status code is 200\"] = responseCode.code === 200;\r","  jsonData = JSON.parse(responseBody);\r","  pm.environment.set(\"alertNotificationRuleId\", jsonData.ruleId);\r","}"],"type":"text/javascript","id":"6bd9c63f-b771-4e68-970b-201f6846a518"}}],"id":"d300714a-4bb0-4652-bb9c-373dba45ce13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"ruleId\": {{alertNotificationRuleId}},\r\n  \"ruleName\": \"{{alertNotificationRuleName}}\",\r\n  \"webHookDeliveryTargets\": [\r\n    {\r\n      \"externalApiUrl\": \"{{webhookURL}}\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/irisservices/api/v1/public/alertNotificationRules","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertNotificationRules"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d300714a-4bb0-4652-bb9c-373dba45ce13"},{"name":"Validate Notification Rules","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Check if the notification rule is updated\", function () { ","    var jsonData = pm.response.json();","    var foundNotificationRule = false","    var alertNotificationRuleName = pm.environment.get(\"alertNotificationRuleName\");","    for(index = 0; index < jsonData.length; index++) {","        if(jsonData[index].ruleName === alertNotificationRuleName) {","            foundNotificationRule = true","            break","        }","    }","    tests[\"Validated the alert notification rule is updated\"] = foundNotificationRule === true;","});","","",""],"type":"text/javascript","id":"d52cc545-6cb6-4dda-85c6-70601d1a74b7"}}],"id":"1b33659c-a973-471f-9658-e9c58a4f29db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertNotificationRules","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertNotificationRules"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b33659c-a973-471f-9658-e9c58a4f29db"},{"name":"Delete Notification Rule","event":[{"listen":"prerequest","script":{"exec":["var alertRuleName = \"AlertRuleName-\" + (new Date()).getTime()\r","pm.environment.set(\"alertRuleName\", alertRuleName);"],"type":"text/javascript","id":"e93a01a9-a66b-4ed3-aca5-ff1281ef6fd7"}},{"listen":"test","script":{"exec":["if(responseCode.code === 204){\r","  tests[\"Successfully deleted the alert notification rule, Status code is 204\"] = responseCode.code === 204;\r","}"],"type":"text/javascript","id":"981c4280-9608-4981-88eb-69b8315c362e"}}],"id":"8f58ee58-c786-426d-b637-d9443de21907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"ruleName\": \"{{alertRuleName}}\",\r\n  \"webHookDeliveryTargets\": [\r\n    {\r\n      \"externalApiUrl\": \"{{webhookURL}}\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/irisservices/api/v1/public/alertNotificationRules/{{alertNotificationRuleId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertNotificationRules","{{alertNotificationRuleId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f58ee58-c786-426d-b637-d9443de21907"}],"id":"97f69b8e-8cf4-4bf4-ae4e-0d1e210b2930","description":"<p>Operations on Alert Notification Rules with v1 APIs</p>\n<ol>\n<li>Generate the access token</li>\n<li>Configure a webhook for an alert notification rules</li>\n<li>Get all configured, alert notification rules</li>\n<li>Update the alert notification rule</li>\n<li>Validate if the update is successful</li>\n<li>Delete the alert notification rule</li>\n</ol>\n","_postman_id":"97f69b8e-8cf4-4bf4-ae4e-0d1e210b2930"},{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.accessToken);"],"type":"text/javascript","id":"a0b1f557-aeff-477d-a94c-35e24cb7fdb2"}}],"id":"4c586f0a-b143-4988-9d18-aa5d7cc87531","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"domain\":\"LOCAL\",\"password\": \"{{clusterPassword}}\",\"username\": \"{{clusterUser}}\"}"},"url":"https://{{cluster}}/irisservices/api/v1/public/accessTokens","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c586f0a-b143-4988-9d18-aa5d7cc87531"},{"name":"Get Alerts","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","pm.test(\"Validate Response Object\", function () { ","    //Response was empty when started.","    pm.expect(jsonData[0].alertCategory).to.not.be.a('number');","    pm.expect(jsonData[0].alertCode).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument).to.be.a('Object');","    pm.expect(jsonData[0].alertDocument.alertCause).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertDescription).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertHelpText).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertName).to.not.be.a('number');","    pm.expect(jsonData[0].alertState).to.not.be.a('number');","    pm.expect(jsonData[0].alertType).to.be.a('number');","    pm.expect(jsonData[0].alertTypeBucket).to.not.be.a('number');","    //pm.expect(jsonData[0].clusterId).to.be.a('number');","    ","    pm.expect(jsonData[0].clusterName).to.not.be.a('number');","    pm.expect(jsonData[0].dedupCount).to.be.a('number');","    pm.expect(jsonData[0].dedupTimestamps).to.be.a('Array');","    pm.expect(jsonData[0].eventSource).to.not.be.a('number');","    pm.expect(jsonData[0].firstTimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].id).to.not.be.a('number');","    pm.expect(jsonData[0].latestTimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].propertyList[0].key).to.not.be.a('number');","    pm.expect(jsonData[0].propertyList[0].value).to.not.be.a('number');","    pm.expect(jsonData[0].severity).to.not.be.a('number');","    ","    pm.environment.set(\"alerts_alertId\", jsonData[0].id);","});} else if(Object.keys(jsonData).length === 0){ ","pm.test(\"Empty Response Object\", function () { }); ","}"],"type":"text/javascript","id":"cf256a6c-a608-4ac0-8407-b382aff557ca"}}],"id":"c907e87e-61d5-4930-b5b3-ff895fac1f12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alerts?alertStateList=kOpen&maxAlerts=2","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alerts"],"host":["{{cluster}}"],"query":[{"key":"alertStateList","value":"kOpen"},{"key":"maxAlerts","value":"2"}],"variable":[]}},"response":[],"_postman_id":"c907e87e-61d5-4930-b5b3-ff895fac1f12"},{"name":"Get Alert Types","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","var jsonData = pm.response.json();","","if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","pm.test(\"Validate Response Object\", function () { ","    pm.expect(jsonData[0].alertDocumentList[0].alertCause).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocumentList[0].alertDescription).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocumentList[0].alertHelpText).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocumentList[0].alertName).to.not.be.a('number');","    pm.expect(jsonData[0].alertTypeBucket).to.not.be.a('number');","    pm.expect(jsonData[0].alertTypeId).to.be.a('number');","    pm.expect(jsonData[0].category).to.not.be.a('number');","    //pm.expect(jsonData[0].dedupIntervalSeconds).to.be.a('number'); -> Avilable only for certain alert category","    pm.expect(jsonData[0].primaryKeyList).to.be.a('Array');","    pm.expect(jsonData[0].propertyList).to.be.a('Array');","    pm.expect(jsonData[0].version).to.be.a('number');","});} else if(Object.keys(jsonData).length === 0){ ","pm.test(\"Empty Response Object\", function () { }); ","}"],"type":"text/javascript","id":"df0460d4-ac03-48ea-8e38-cecfe8a242b3"}}],"id":"9e56c9ee-c79a-4fd2-adb9-a3bde5bce041","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertTypes","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertTypes"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e56c9ee-c79a-4fd2-adb9-a3bde5bce041"},{"name":"Get Alert Categories","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","pm.test(\"Validate Response Object\", function () { ","    pm.expect(jsonData[0]).to.be.a('object'); ","    pm.expect(jsonData[0].category).to.not.be.a('number');","    pm.expect(jsonData[0].name).to.not.be.a('number');","});} else if(Object.keys(jsonData).length === 0){ ","pm.test(\"Empty Response Object\", function () { }); ","}"],"type":"text/javascript","id":"3fe5be4b-039c-4b0f-b4af-f79b5951d529"}}],"id":"91589ab9-24ac-4c40-8e16-bfadfb5b4804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertCategories","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertCategories"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"91589ab9-24ac-4c40-8e16-bfadfb5b4804"},{"name":"Get Alert Detail","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","pm.test(\"Validate Response Object\", function () { ","    //Empty Response even after passing alert ID.","    pm.expect(jsonData[0].alertCategory).to.not.be.a('number');","    pm.expect(jsonData[0].alertCode).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument).to.be.a('Object');","    pm.expect(jsonData[0].alertDocument.alertCause).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertDescription).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertHelpText).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertName).to.not.be.a('number');","    pm.expect(jsonData[0].alertState).to.not.be.a('number');","    pm.expect(jsonData[0].alertType).to.be.a('number');","    pm.expect(jsonData[0].alertTypeBucket).to.not.be.a('number');","    pm.expect(jsonData[0].clusterId).to.be.a('number');","    pm.expect(jsonData[0].clusterName).to.not.be.a('number');","    pm.expect(jsonData[0].dedupCount).to.be.a('number');","    pm.expect(jsonData[0].dedupTimestamps).to.be.a('Array');","    pm.expect(jsonData[0].eventSource).to.not.be.a('number');","    pm.expect(jsonData[0].firstTimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].id).to.not.be.a('number');","    pm.expect(jsonData[0].latestTimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].propertyList[0].key).to.not.be.a('number');","    pm.expect(jsonData[0].propertyList[0].value).to.not.be.a('number');","    pm.expect(jsonData[0].resolutionDetails.resolutionDetails).to.not.be.a('number');","    pm.expect(jsonData[0].resolutionDetails.resolutionDetailsresolutionId).to.be.a('number');","    pm.expect(jsonData[0].resolutionDetails.resolutionDetailsresolutionSummary).to.not.be.a('number');","    pm.expect(jsonData[0].resolutionDetails.resolutionDetailstimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].resolutionDetails.resolutionDetailsuserName).to.not.be.a('number');","    pm.expect(jsonData[0].severity).to.not.be.a('number');","    pm.expect(jsonData[0].suppressionId).to.be.a('number');","    pm.expect(jsonData[0].tenantIds).to.be.a('Array');","    ","});} else if(Object.keys(jsonData).length === 0){ ","pm.test(\"Empty Response Object\", function () { }); ","}"],"type":"text/javascript","id":"c28ddda9-db9c-4974-a978-cc085e7f2538"}}],"id":"3b56f920-046d-4952-ad9c-cff84e57cf1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alerts/{{alerts_alertId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alerts","{{alerts_alertId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b56f920-046d-4952-ad9c-cff84e57cf1d"},{"name":"Alert Notification Rules","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData !== null) {","    if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","        pm.test(\"Validate Response Object\", function () { ","            //API was returning null at the time of writing tests.","            pm.expect(jsonData[0].alertTypeList).to.be.a('Array');","            pm.expect(jsonData[0].categories).to.be.a('Array');","            pm.expect(jsonData[0].emailDelliveryTargets[0].emailAddress).to.not.be.a('number');","            pm.expect(jsonData[0].emailDeliveryTargets[0].locale).to.not.be.a('number');","            pm.expect(jsonData[0].ruleId).to.be.a('number');","            pm.expect(jsonData[0].ruleName).to.not.be.a('number');","            pm.expect(jsonData[0].severities).to.be.a('Array');","            pm.expect(jsonData[0].tenantId).to.not.be.a('number');","            pm.expect(jsonData[0].webHookDeliveryTargets[0].curlOptions).to.not.be.a('number');","            pm.expect(jsonData[0].webHookDeliveryTargets[0].externalApiUrl).to.not.be.a('number');","        });","    } else if(Object.keys(jsonData).length === 0){ ","        pm.test(\"Empty Response Object\", function () { }); ","    }","}"],"type":"text/javascript","id":"32591c2a-0645-4a76-9a59-151bf4374c0e"}}],"id":"ba2d04cf-7f5f-4a09-b165-b767efb8cf7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertNotificationRules","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertNotificationRules"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba2d04cf-7f5f-4a09-b165-b767efb8cf7e"},{"name":"Alert Resolution","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST Request\", function () { ","pm.response.to.have.status(201); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});"],"type":"text/javascript","id":"01ce78e1-fbff-4a74-9e4a-111a9e5dab29"}}],"id":"d3b8070e-f3d1-46ad-9d27-59e50675e648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"alertIdList\": [\r\n    \"{{alerts_alertId}}\"\r\n  ],\r\n  \"resolutionDetails\": {\r\n    \"resolutionDetails\": \"details\",\r\n    \"resolutionSummary\": \"summary\"\r\n  }\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/alertResolutions","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertResolutions"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3b8070e-f3d1-46ad-9d27-59e50675e648"},{"name":"Alert Resolutions","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData !== null) {","    if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","    pm.test(\"Validate Response Object\", function () { ","        pm.expect(jsonData[0].alertIdList).to.not.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.resolutionDetails).to.not.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.resolutionId).to.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.resolutionSummary).to.not.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.timestampUsecs).to.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.userName).to.not.be.a('number');","        pm.expect(jsonData[0].tenantIds).to.not.be.a('number');","        ","        pm.environment.set(\"resolutionId\", jsonData[0].resolutionDetails.resolutionId);","    });} else if(Object.keys(jsonData).length === 0){ ","    pm.test(\"Empty Response Object\", function () { }); ","    }","} else {","     pm.environment.set(\"resolutionId\", undefined);","}"],"type":"text/javascript","id":"e016621b-d9fb-49fa-93a7-3922a41f9cbb"}}],"id":"268dcf9d-5656-4d17-ab62-05b67b34c4eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertResolutions?maxResolutions=1","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertResolutions"],"host":["{{cluster}}"],"query":[{"key":"maxResolutions","value":"1"}],"variable":[]}},"response":[],"_postman_id":"268dcf9d-5656-4d17-ab62-05b67b34c4eb"},{"name":"Get Another Alert","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","pm.test(\"Validate Response Object\", function () { ","    //Response was empty when started.","    pm.expect(jsonData[0].alertCategory).to.not.be.a('number');","    pm.expect(jsonData[0].alertCode).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument).to.be.a('Object');","    pm.expect(jsonData[0].alertDocument.alertCause).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertDescription).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertHelpText).to.not.be.a('number');","    pm.expect(jsonData[0].alertDocument.alertName).to.not.be.a('number');","    pm.expect(jsonData[0].alertState).to.not.be.a('number');","    pm.expect(jsonData[0].alertType).to.be.a('number');","    pm.expect(jsonData[0].alertTypeBucket).to.not.be.a('number');","    //pm.expect(jsonData[0].clusterId).to.be.a('number');","    ","    pm.expect(jsonData[0].clusterName).to.not.be.a('number');","    pm.expect(jsonData[0].dedupCount).to.be.a('number');","    pm.expect(jsonData[0].dedupTimestamps).to.be.a('Array');","    pm.expect(jsonData[0].eventSource).to.not.be.a('number');","    pm.expect(jsonData[0].firstTimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].id).to.not.be.a('number');","    pm.expect(jsonData[0].latestTimestampUsecs).to.be.a('number');","    pm.expect(jsonData[0].propertyList[0].key).to.not.be.a('number');","    pm.expect(jsonData[0].propertyList[0].value).to.not.be.a('number');","    pm.expect(jsonData[0].severity).to.not.be.a('number');","    ","    pm.environment.set(\"alerts_alertId\", jsonData[0].id);","});} else if(Object.keys(jsonData).length === 0){ ","pm.test(\"Empty Response Object\", function () { }); ","}"],"type":"text/javascript","id":"c98a4267-75cf-42fc-8ebf-c27867a133f4"}}],"id":"8f965adc-0484-4ddc-b5a6-295418f0c160","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alerts?alertStateList=kOpen&maxAlerts=2","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alerts"],"host":["{{cluster}}"],"query":[{"key":"alertStateList","value":"kOpen"},{"key":"maxAlerts","value":"2"}],"variable":[]}},"response":[],"_postman_id":"8f965adc-0484-4ddc-b5a6-295418f0c160"},{"name":"Update Resolution","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST Request\", function () { ","pm.response.to.have.status(202); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});"],"type":"text/javascript","id":"122c79fb-e487-44ca-a95b-36aa2e8bf6c5"}}],"id":"0cc11d55-35c2-4964-8559-b59aae3e3b32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"alertIdList\": [\r\n    \"{{alerts_alertId}}\"\r\n  ]\r\n}"},"url":"https://{{cluster}}/irisservices/api/v1/public/alertResolutions/{{resolutionId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertResolutions","{{resolutionId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cc11d55-35c2-4964-8559-b59aae3e3b32"},{"name":"Alert Resolution Detail","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful GET Request\", function () { ","pm.response.to.have.status(200); ","});","","pm.test(\"Response time is less than 500ms\", function () { ","pm.expect(pm.response.responseTime).to.be.below(500); ","});","","pm.test(\"Content-Type header is present\", function () { ","pm.response.to.have.header(\"Content-Type\"); ","});","","var jsonData = pm.response.json();","","if(jsonData !== null) {","    if(jsonData.constructor === Array && Object.keys(jsonData).length > 0){ ","    pm.test(\"Validate Response Object\", function () { ","        pm.expect(jsonData[0].alertIdList).to.not.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.resolutionDetails).to.not.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.resolutionId).to.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.resolutionSummary).to.not.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.timestampUsecs).to.be.a('number');","        pm.expect(jsonData[0].resolutionDetails.userName).to.not.be.a('number');","        pm.expect(jsonData[0].tenantIds).to.not.be.a('number');","    });} else if(Object.keys(jsonData).length === 0){ ","    pm.test(\"Empty Response Object\", function () { }); ","}","}"],"type":"text/javascript","id":"c8ea704a-28bf-466b-8ef7-3e80f06bb3a5"}}],"id":"e907c197-13de-44c4-b0ab-15c2467bf008","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{cluster}}/irisservices/api/v1/public/alertResolutions/{{resolutionId}}","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","alertResolutions","{{resolutionId}}"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e907c197-13de-44c4-b0ab-15c2467bf008"}],"id":"6c40fb81-f1e7-403b-9c59-5969cd0c71dc","description":"<p>Operations on Alerts with v1 APIs</p>\n<ol>\n<li>Generate the access token</li>\n<li>Get all the alerts</li>\n<li>Identify all the alert types</li>\n<li>Check the alert categories</li>\n<li>Find out the alert notification rules</li>\n<li>Create an alert resolution</li>\n<li>Get all the alert resolutions</li>\n<li>Update the alert resolution</li>\n<li>Get alert resolution detail</li>\n</ol>\n","_postman_id":"6c40fb81-f1e7-403b-9c59-5969cd0c71dc"},{"name":"Platform-HeliosClusterClaim","item":[{"name":"Generate Claim Token on Helios","id":"6953b61b-1a59-4899-9ffd-3736f7eb9568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"apiKey"},{"key":"value","value":"{{my-api-key}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"my-token\",\n    \"clusterProvider\": \"kMCMCohesity\"\n}","options":{"raw":{"language":"json"}}},"url":"https://helios.cohesity.com/v2/mcm/claim-tokens","description":"<p>This endpoint makes an HTTP GET request to claim tokens from the specified URL. The request should include a payload with the \"name\" and \"clusterProvider\" parameters.</p>\n<ul>\n<li>Each account is allowed 32 valid tokens at a time.</li>\n<li>Tokens self expire after 15 mins.</li>\n<li>A token auto expires on claim use.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","mcm","claim-tokens"],"host":["helios","cohesity","com"],"query":[],"variable":[]}},"response":[{"id":"33bc1b47-62a2-4612-b327-67f2bb64a711","name":"Generate Claim Token on Helios","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Token-Name\",\n    \"clusterProvider\": \"kMCMCohesity\"\n}","options":{"raw":{"language":"json"}}},"url":"https://helios.cohesity.com/v2/mcm/claim-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"registrationToken\": {{registrationToken}}\n}"}],"_postman_id":"6953b61b-1a59-4899-9ffd-3736f7eb9568"},{"name":"Register to Helios","id":"a9b73bcd-6769-4f05-ab0d-1abb0aaddd03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"registrationToken\": \"{{registrationToken}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/helios-registration","description":"<p>This API endpoint is used to submit a registration token for Helios registration. The HTTP POST request should be made to https://{{cluster}}/v2/helios-registration with a JSON payload in the raw request body type. The payload should include a \"registrationToken\" field.  </p>\n<p>This is a sync API. SLA for cluster registration to be successfull is 5-30 seconds</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>registrationToken (string, required): The registration token to be submitted.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: text/xml</li>\n<li>Response Body: The response body is not provided in the request data.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","helios-registration"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[{"id":"60934e83-db4f-4294-87fe-4b3ff9b1e924","name":"Register to Helios","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"registrationToken\": \"{{registrationToken}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/helios-registration"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"a9b73bcd-6769-4f05-ab0d-1abb0aaddd03"}],"id":"4a6c0def-850b-49fc-975a-5e7a52fc2618","description":"<p>New simplified workflows to claim a cluster to Helios.</p>\n","_postman_id":"4a6c0def-850b-49fc-975a-5e7a52fc2618"},{"name":"Workflows","item":[{"name":"SmartFiles-S3-Workflows","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Get Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","//return-code verification","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","//not-null verification","pm.test(\"Response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","//store access token as env var","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"accessToken\",","        \"tokenType\",","        \"privileges\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"accessToken\": {","            \"type\": \"string\"","        },","        \"tokenType\": {","            \"type\": \"string\"","        },","        \"privileges\": {","            \"type\": \"array\",","            \"additionalItems\": true,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        }","    }","};","pm.test(\"Validate accessTokens Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","//Response time verification - Optional (wherever applicable)","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"89cc6f48-ded4-44f5-a51f-5442c2114dc4"}}],"id":"2e9d4eef-40b6-443f-be61-68a010cc3cba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"cce1806d-cd6b-4901-bbdc-5b671f605556","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\":\"{{cluster_1-admin_password}}\",\n    \"domain\": \"{{cluster_1-domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675203768"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:22:47 GMT"},{"key":"Content-Length","value":"1122"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"2e9d4eef-40b6-443f-be61-68a010cc3cba"},{"name":"Get Views List","event":[{"listen":"test","script":{"exec":["console.log(\"Test to Get views - v2/file-services/views\")","","//Validate return-code","var response = pm.response.json()","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//not-null verification","pm.test(\"Response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","//schema validation","var response_schema;","if(response.count == \"0\"){","    response_schema = {","        \"type\": \"object\",","        \"required\": [","            \"views\",","            \"lastResult\",","            \"count\"","        ],","        \"additionalProperties\": false,","        \"properties\": {","            \"views\": {","                \"type\": \"array\",","                \"additionalItems\": false,","                \"items\": {},","                \"uniqueItems\": true","            },","            \"lastResult\": {","                \"type\": \"boolean\"","            },","            \"count\": {","                \"type\": \"number\"","            }","        }","    };","}else{","        response_schema = {","        \"type\": \"object\",","        \"required\": [","            \"views\",","            \"lastResult\",","            \"count\"","        ],","        \"additionalProperties\": false,","        \"properties\": {","            \"views\": {","                \"type\": \"array\",","                \"additionalItems\": false,","                \"items\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"viewId\",","                        \"storageDomainId\",","                        \"storageDomainName\",","                        \"caseInsensitiveNamesEnabled\",","                        \"createTimeMsecs\",","                        \"basicMountPath\",","                        \"nfsMountPath\",","                        \"nfsMountPaths\",","                        \"smbMountPaths\",","                        \"aliases\",","                        \"isTargetForMigratedData\",","                        \"fileCountBySize\",","                        \"ownerSid\",","                        \"stats\",","                        \"viewFailover\",","                        \"name\",","                        \"category\",","                        \"protocolAccess\",","                        \"overrideGlobalSubnetWhitelist\",","                        \"subnetWhitelist\",","                        \"overrideGlobalNetgroupWhitelist\",","                        \"securityMode\",","                        \"allowMountOnWindows\",","                        \"enableMinion\",","                        \"enableFilerAuditLogging\",","                        \"enableLiveIndexing\",","                        \"accessSids\",","                        \"isReadOnly\",","                        \"fileExtensionFilter\",","                        \"qos\",","                        \"selfServiceSnapshotConfig\",","                        \"enableNfsViewDiscovery\",","                        \"enableNfsUnixAuthentication\",","                        \"enableNfsKerberosAuthentication\",","                        \"enableNfsKerberosIntegrity\",","                        \"enableNfsKerberosPrivacy\",","                        \"nfsAllSquash\",","                        \"nfsRootSquash\",","                        \"enableSmbViewDiscovery\",","                        \"enableSmbAccessBasedEnumeration\",","                        \"enableSmbEncryption\",","                        \"enforceSmbEncryption\",","                        \"enableFastDurableHandle\",","                        \"enableSmbOplock\",","                        \"sharePermissions\",","                        \"s3AccessPath\",","                        \"versioning\",","                        \"aclConfig\",","                        \"ownerInfo\"","                    ],","                    \"additionalProperties\": false,","                    \"properties\": {","                        \"viewId\": {","                            \"type\": \"number\"","                        },","                        \"storageDomainId\": {","                            \"type\": \"number\"","                        },","                        \"storageDomainName\": {","                            \"type\": \"string\"","                        },","                        \"caseInsensitiveNamesEnabled\": {","                            \"type\": \"boolean\"","                        },","                        \"createTimeMsecs\": {","                            \"type\": \"number\"","                        },","                        \"basicMountPath\": {","                            \"type\": \"string\"","                        },","                        \"nfsMountPath\": {","                            \"type\": \"string\"","                        },","                        \"nfsMountPaths\": {","                            \"type\": \"array\",","                            \"additionalItems\": false,","                            \"items\": {","                                \"type\": \"string\"","                            },","                            \"uniqueItems\": true","                        },","                        \"smbMountPaths\": {","                            \"type\": \"array\",","                            \"additionalItems\": false,","                            \"items\": {","                                \"type\": \"string\"","                            },","                            \"uniqueItems\": true","                        },","                        \"aliases\": {","                            \"type\": \"null\"","                        },","                        \"isTargetForMigratedData\": {","                            \"type\": \"boolean\"","                        },","                        \"fileCountBySize\": {","                            \"type\": \"null\"","                        },","                        \"ownerSid\": {","                            \"type\": \"string\"","                        },","                        \"stats\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"id\",","                                \"dataUsageStats\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"id\": {","                                    \"type\": \"number\"","                                },","                                \"dataUsageStats\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"totalLogicalUsageBytes\"","                                    ],","                                    \"additionalProperties\": false,","                                    \"properties\": {","                                        \"totalLogicalUsageBytes\": {","                                            \"type\": \"number\"","                                        }","                                    }","                                }","                            }","                        },","                        \"viewFailover\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"isFailoverReady\",","                                \"remoteViewId\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"isFailoverReady\": {","                                    \"type\": \"boolean\"","                                },","                                \"remoteViewId\": {","                                    \"type\": \"number\"","                                }","                            }","                        },","                        \"name\": {","                            \"type\": \"string\"","                        },","                        \"category\": {","                            \"type\": \"string\"","                        },","                        \"protocolAccess\": {","                            \"type\": \"array\",","                            \"additionalItems\": false,","                            \"items\": {","                                \"type\": \"object\",","                                \"required\": [","                                    \"type\",","                                    \"mode\"","                                ],","                                \"additionalProperties\": false,","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\"","                                    },","                                    \"mode\": {","                                        \"type\": \"string\"","                                    }","                                }","                            },","                            \"uniqueItems\": true","                        },","                        \"overrideGlobalSubnetWhitelist\": {","                            \"type\": \"boolean\"","                        },","                        \"subnetWhitelist\": {","                            \"type\": \"null\"","                        },","                        \"overrideGlobalNetgroupWhitelist\": {","                            \"type\": \"boolean\"","                        },","                        \"securityMode\": {","                            \"type\": \"string\"","                        },","                        \"allowMountOnWindows\": {","                            \"type\": \"boolean\"","                        },","                        \"enableMinion\": {","                            \"type\": \"boolean\"","                        },","                        \"enableFilerAuditLogging\": {","                            \"type\": \"boolean\"","                        },","                        \"enableLiveIndexing\": {","                            \"type\": \"boolean\"","                        },","                        \"accessSids\": {","                            \"type\": \"array\",","                            \"additionalItems\": false,","                            \"items\": {},","                            \"uniqueItems\": true","                        },","                        \"isReadOnly\": {","                            \"type\": \"boolean\"","                        },","                        \"fileExtensionFilter\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"fileExtensionsList\",","                                \"isEnabled\",","                                \"mode\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"fileExtensionsList\": {","                                    \"type\": \"null\"","                                },","                                \"isEnabled\": {","                                    \"type\": \"boolean\"","                                },","                                \"mode\": {","                                    \"type\": \"string\"","                                }","                            }","                        },","                        \"qos\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"principalId\",","                                \"principalName\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"principalId\": {","                                    \"type\": \"number\"","                                },","                                \"principalName\": {","                                    \"type\": \"string\"","                                }","                            }","                        },","                        \"selfServiceSnapshotConfig\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"previousVersionsEnabled\",","                                \"nfsAccessEnabled\",","                                \"smbAccessEnabled\",","                                \"snapshotDirectoryName\",","                                \"alternateSnapshotDirectoryName\",","                                \"allowAccessSids\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"previousVersionsEnabled\": {","                                    \"type\": \"boolean\"","                                },","                                \"nfsAccessEnabled\": {","                                    \"type\": \"boolean\"","                                },","                                \"smbAccessEnabled\": {","                                    \"type\": \"boolean\"","                                },","                                \"snapshotDirectoryName\": {","                                    \"type\": \"string\"","                                },","                                \"alternateSnapshotDirectoryName\": {","                                    \"type\": \"string\"","                                },","                                \"allowAccessSids\": {","                                    \"type\": \"array\",","                                    \"additionalItems\": false,","                                    \"items\": {","                                        \"type\": \"string\"","                                    },","                                    \"uniqueItems\": true","                                }","                            }","                        },","                        \"enableNfsViewDiscovery\": {","                            \"type\": \"boolean\"","                        },","                        \"enableNfsUnixAuthentication\": {","                            \"type\": \"boolean\"","                        },","                        \"enableNfsKerberosAuthentication\": {","                            \"type\": \"boolean\"","                        },","                        \"enableNfsKerberosIntegrity\": {","                            \"type\": \"boolean\"","                        },","                        \"enableNfsKerberosPrivacy\": {","                            \"type\": \"boolean\"","                        },","                        \"nfsAllSquash\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"gid\",","                                \"uid\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"gid\": {","                                    \"type\": \"number\"","                                },","                                \"uid\": {","                                    \"type\": \"number\"","                                }","                            }","                        },","                        \"nfsRootSquash\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"gid\",","                                \"uid\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"gid\": {","                                    \"type\": \"number\"","                                },","                                \"uid\": {","                                    \"type\": \"number\"","                                }","                            }","                        },","                        \"enableSmbViewDiscovery\": {","                            \"type\": \"boolean\"","                        },","                        \"enableSmbAccessBasedEnumeration\": {","                            \"type\": \"boolean\"","                        },","                        \"enableSmbEncryption\": {","                            \"type\": \"boolean\"","                        },","                        \"enforceSmbEncryption\": {","                            \"type\": \"boolean\"","                        },","                        \"enableFastDurableHandle\": {","                            \"type\": \"boolean\"","                        },","                        \"enableSmbOplock\": {","                            \"type\": \"boolean\"","                        },","                        \"sharePermissions\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"superUserSids\",","                                \"permissions\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"superUserSids\": {","                                    \"type\": \"null\"","                                },","                                \"permissions\": {","                                    \"type\": \"array\",","                                    \"additionalItems\": false,","                                    \"items\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"type\",","                                            \"mode\",","                                            \"access\",","                                            \"sid\"","                                        ],","                                        \"additionalProperties\": false,","                                        \"properties\": {","                                            \"type\": {","                                                \"type\": \"string\"","                                            },","                                            \"mode\": {","                                                \"type\": \"string\"","                                            },","                                            \"access\": {","                                                \"type\": \"string\"","                                            },","                                            \"sid\": {","                                                \"type\": \"string\"","                                            }","                                        }","                                    },","                                    \"uniqueItems\": true","                                }","                            }","                        },","                        \"s3AccessPath\": {","                            \"type\": \"string\"","                        },","                        \"versioning\": {","                            \"type\": \"string\"","                        },","                        \"aclConfig\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"grants\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"grants\": {","                                    \"type\": \"array\",","                                    \"additionalItems\": false,","                                    \"items\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"permissions\",","                                            \"grantee\"","                                        ],","                                        \"additionalProperties\": false,","                                        \"properties\": {","                                            \"permissions\": {","                                                \"type\": \"array\",","                                                \"additionalItems\": false,","                                                \"items\": {","                                                    \"type\": \"string\"","                                                },","                                                \"uniqueItems\": true","                                            },","                                            \"grantee\": {","                                                \"type\": \"object\",","                                                \"required\": [","                                                    \"type\",","                                                    \"userId\"","                                                ],","                                                \"additionalProperties\": false,","                                                \"properties\": {","                                                    \"type\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"userId\": {","                                                        \"type\": \"string\"","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"uniqueItems\": true","                                }","                            }","                        },","                        \"ownerInfo\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"userId\"","                            ],","                            \"additionalProperties\": false,","                            \"properties\": {","                                \"userId\": {","                                    \"type\": \"string\"","                                }","                            }","                        }","                    }","                },","                \"uniqueItems\": true","            },","            \"lastResult\": {","                \"type\": \"boolean\"","            },","            \"count\": {","                \"type\": \"number\"","            }","        }","    };","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"89a73656-fbeb-4acf-86c2-b58b49db995b"}}],"id":"4cb94220-58ca-4ea8-bdbe-bdf00547dd78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/file-services/views","description":"<p>Returns the list of Cohesity views created on the Cohesity cluster along with the ID of the views and the parameters configured for the views.</p>\n","urlObject":{"protocol":"https","path":["v2","file-services","views"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"dcc066b7-c5fe-4fc1-8473-eec795214c13","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster-vip}}/v2/file-services/views"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675203783"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:23:02 GMT"},{"key":"Content-Length","value":"1180"}],"cookie":[],"responseTime":null,"body":"{\n  \"views\": [\n    {\n      \"viewId\": 32291,\n      \"storageDomainId\": 5,\n      \"storageDomainName\": \"DefaultStorageDomain\",\n      \"caseInsensitiveNamesEnabled\": true,\n      \"createTimeMsecs\": 1674672048214,\n      \"basicMountPath\": \"/DefaultStorageDomain/Test2/fs\",\n      \"nfsMountPath\": \"{{ip_address}}:/Test2\",\n      \"nfsMountPaths\": [\n        \"{{ip_address}}:/Test2\"\n      ],\n      \"smbMountPaths\": [\n        \"\\\\\\\\{{ip_address}}\\\\Test2\"\n      ],\n      \"aliases\": null,\n      \"isTargetForMigratedData\": false,\n      \"fileCountBySize\": null,\n      \"ownerSid\": \"S-1-100-21-49802749-50841745-1\",\n      \"stats\": {\n        \"id\": 32291,\n        \"dataUsageStats\": {\n          \"totalLogicalUsageBytes\": 0\n        }\n      },\n      \"viewFailover\": {\n        \"isFailoverReady\": false,\n        \"remoteViewId\": 32291\n      },\n      \"name\": \"Test2\",\n      \"category\": \"FileServices\",\n      \"protocolAccess\": [\n        {\n          \"type\": \"NFS\",\n          \"mode\": \"ReadWrite\"\n        },\n        {\n          \"type\": \"SMB\",\n          \"mode\": \"ReadWrite\"\n        },\n        {\n          \"type\": \"S3\",\n          \"mode\": \"ReadOnly\"\n        }\n      ],\n      \"overrideGlobalSubnetWhitelist\": true,\n      \"subnetWhitelist\": null,\n      \"overrideGlobalNetgroupWhitelist\": true,\n      \"securityMode\": \"NativeMode\",\n      \"allowMountOnWindows\": false,\n      \"enableMinion\": true,\n      \"enableFilerAuditLogging\": false,\n      \"enableLiveIndexing\": false,\n      \"accessSids\": [],\n      \"isReadOnly\": false,\n      \"fileExtensionFilter\": {\n        \"fileExtensionsList\": null,\n        \"isEnabled\": false,\n        \"mode\": \"Blacklist\"\n      },\n      \"qos\": {\n        \"principalId\": 6,\n        \"principalName\": \"TestAndDev High\"\n      },\n      \"selfServiceSnapshotConfig\": {\n        \"previousVersionsEnabled\": true,\n        \"nfsAccessEnabled\": false,\n        \"smbAccessEnabled\": false,\n        \"snapshotDirectoryName\": \".snapshot\",\n        \"alternateSnapshotDirectoryName\": \"~snapshot\",\n        \"allowAccessSids\": [\n          \"S-1-1-0\"\n        ]\n      },\n      \"enableNfsViewDiscovery\": false,\n      \"enableNfsUnixAuthentication\": true,\n      \"enableNfsKerberosAuthentication\": true,\n      \"enableNfsKerberosIntegrity\": true,\n      \"enableNfsKerberosPrivacy\": true,\n      \"nfsAllSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n      },\n      \"nfsRootSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n      },\n      \"enableSmbViewDiscovery\": true,\n      \"enableSmbAccessBasedEnumeration\": false,\n      \"enableSmbEncryption\": false,\n      \"enforceSmbEncryption\": false,\n      \"enableFastDurableHandle\": false,\n      \"enableSmbOplock\": true,\n      \"sharePermissions\": {\n        \"superUserSids\": null,\n        \"permissions\": [\n          {\n            \"type\": \"Allow\",\n            \"mode\": \"FolderSubFoldersAndFiles\",\n            \"access\": \"FullControl\",\n            \"sid\": \"S-1-1-0\"\n          }\n        ]\n      },\n      \"s3AccessPath\": \"https://{{cluster-vip}}:{{s3-port}}/Test2\",\n      \"versioning\": \"UnVersioned\",\n      \"aclConfig\": {\n        \"grants\": [\n          {\n            \"permissions\": [\n              \"FullControl\"\n            ],\n            \"grantee\": {\n              \"type\": \"RegisteredUser\",\n              \"userId\": \"ADMIN@LOCAL@\"\n            }\n          }\n        ]\n      },\n      \"ownerInfo\": {\n        \"userId\": \"ADMIN@LOCAL@\"\n      }\n    },\n    {\n      \"viewId\": 32280,\n      \"storageDomainId\": 5,\n      \"storageDomainName\": \"DefaultStorageDomain\",\n      \"caseInsensitiveNamesEnabled\": true,\n      \"createTimeMsecs\": 1674671815323,\n      \"basicMountPath\": \"/DefaultStorageDomain/Test_View/fs\",\n      \"nfsMountPath\": \"{{ip_address}}:/Test_View\",\n      \"nfsMountPaths\": [\n        \"{{ip_address}}:/Test_View\"\n      ],\n      \"smbMountPaths\": [\n        \"\\\\\\\\{{ip_address}}\\\\Test_View\"\n      ],\n      \"aliases\": null,\n      \"isTargetForMigratedData\": false,\n      \"fileCountBySize\": null,\n      \"ownerSid\": \"S-1-100-21-49802749-50841745-1\",\n      \"stats\": {\n        \"id\": 32280,\n        \"dataUsageStats\": {\n          \"totalLogicalUsageBytes\": 0\n        }\n      },\n      \"viewFailover\": {\n        \"isFailoverReady\": false,\n        \"remoteViewId\": 32280\n      },\n      \"name\": \"Test_View\",\n      \"category\": \"FileServices\",\n      \"protocolAccess\": [\n        {\n          \"type\": \"NFS\",\n          \"mode\": \"ReadWrite\"\n        },\n        {\n          \"type\": \"SMB\",\n          \"mode\": \"ReadWrite\"\n        },\n        {\n          \"type\": \"S3\",\n          \"mode\": \"ReadOnly\"\n        }\n      ],\n      \"overrideGlobalSubnetWhitelist\": true,\n      \"subnetWhitelist\": null,\n      \"overrideGlobalNetgroupWhitelist\": true,\n      \"securityMode\": \"NativeMode\",\n      \"allowMountOnWindows\": false,\n      \"enableMinion\": true,\n      \"enableFilerAuditLogging\": false,\n      \"enableLiveIndexing\": false,\n      \"accessSids\": [],\n      \"isReadOnly\": false,\n      \"fileExtensionFilter\": {\n        \"fileExtensionsList\": null,\n        \"isEnabled\": false,\n        \"mode\": \"Blacklist\"\n      },\n      \"qos\": {\n        \"principalId\": 6,\n        \"principalName\": \"TestAndDev High\"\n      },\n      \"selfServiceSnapshotConfig\": {\n        \"previousVersionsEnabled\": true,\n        \"nfsAccessEnabled\": false,\n        \"smbAccessEnabled\": false,\n        \"snapshotDirectoryName\": \".snapshot\",\n        \"alternateSnapshotDirectoryName\": \"~snapshot\",\n        \"allowAccessSids\": [\n          \"S-1-1-0\"\n        ]\n      },\n      \"enableNfsViewDiscovery\": false,\n      \"enableNfsUnixAuthentication\": true,\n      \"enableNfsKerberosAuthentication\": true,\n      \"enableNfsKerberosIntegrity\": true,\n      \"enableNfsKerberosPrivacy\": true,\n      \"nfsAllSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n      },\n      \"nfsRootSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n      },\n      \"enableSmbViewDiscovery\": true,\n      \"enableSmbAccessBasedEnumeration\": false,\n      \"enableSmbEncryption\": false,\n      \"enforceSmbEncryption\": false,\n      \"enableFastDurableHandle\": false,\n      \"enableSmbOplock\": true,\n      \"sharePermissions\": {\n        \"superUserSids\": null,\n        \"permissions\": [\n          {\n            \"type\": \"Allow\",\n            \"mode\": \"FolderSubFoldersAndFiles\",\n            \"access\": \"FullControl\",\n            \"sid\": \"S-1-1-0\"\n          }\n        ]\n      },\n      \"s3AccessPath\": \"https://{{cluster-vip}}:{{s3-port}}/Test_View\",\n      \"versioning\": \"UnVersioned\",\n      \"aclConfig\": {\n        \"grants\": [\n          {\n            \"permissions\": [\n              \"FullControl\"\n            ],\n            \"grantee\": {\n              \"type\": \"RegisteredUser\",\n              \"userId\": \"ADMIN@LOCAL@\"\n            }\n          }\n        ]\n      },\n      \"ownerInfo\": {\n        \"userId\": \"ADMIN@LOCAL@\"\n      }\n    },\n    {\n      \"viewId\": 1224,\n      \"storageDomainId\": 5,\n      \"storageDomainName\": \"DefaultStorageDomain\",\n      \"caseInsensitiveNamesEnabled\": true,\n      \"createTimeMsecs\": 1673496409675,\n      \"basicMountPath\": \"/DefaultStorageDomain/Testview_87/fs\",\n      \"nfsMountPath\": \"{{ip_address}}:/Testview_87\",\n      \"nfsMountPaths\": [\n        \"{{ip_address}}:/Testview_87\"\n      ],\n      \"smbMountPaths\": null,\n      \"aliases\": null,\n      \"isTargetForMigratedData\": false,\n      \"fileCountBySize\": null,\n      \"ownerSid\": \"S-1-100-12-12345678-123123123-1\",\n      \"stats\": {\n        \"id\": 1224,\n        \"dataUsageStats\": {\n          \"totalLogicalUsageBytes\": 0\n        }\n      },\n      \"viewFailover\": {\n        \"isFailoverReady\": false,\n        \"remoteViewId\": 1224\n      },\n      \"name\": \"Testview_87\",\n      \"category\": \"BackupTarget\",\n      \"protocolAccess\": [\n        {\n          \"type\": \"NFS\",\n          \"mode\": \"ReadWrite\"\n        }\n      ],\n      \"overrideGlobalSubnetWhitelist\": true,\n      \"subnetWhitelist\": null,\n      \"overrideGlobalNetgroupWhitelist\": true,\n      \"securityMode\": \"NativeMode\",\n      \"allowMountOnWindows\": false,\n      \"enableMinion\": true,\n      \"enableFilerAuditLogging\": false,\n      \"enableLiveIndexing\": false,\n      \"accessSids\": [],\n      \"isReadOnly\": false,\n      \"selfServiceSnapshotConfig\": {\n        \"previousVersionsEnabled\": true,\n        \"nfsAccessEnabled\": false,\n        \"smbAccessEnabled\": false,\n        \"snapshotDirectoryName\": \".snapshot\",\n        \"alternateSnapshotDirectoryName\": \"~snapshot\",\n        \"allowAccessSids\": [\n          \"S-1-1-0\"\n        ]\n      },\n      \"enableNfsViewDiscovery\": false,\n      \"enableNfsUnixAuthentication\": true,\n      \"enableNfsKerberosAuthentication\": true,\n      \"enableNfsKerberosIntegrity\": true,\n      \"enableNfsKerberosPrivacy\": true,\n      \"nfsAllSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n      },\n      \"nfsRootSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n      },\n      \"enableSmbViewDiscovery\": false,\n      \"enableSmbAccessBasedEnumeration\": false,\n      \"enableSmbEncryption\": false,\n      \"enforceSmbEncryption\": false,\n      \"enableFastDurableHandle\": false,\n      \"enableSmbOplock\": true,\n      \"sharePermissions\": {\n        \"superUserSids\": null,\n        \"permissions\": null\n      },\n      \"versioning\": \"UnVersioned\",\n      \"aclConfig\": {\n        \"grants\": [\n          {\n            \"permissions\": [\n              \"FullControl\"\n            ],\n            \"grantee\": {\n              \"type\": \"RegisteredUser\",\n              \"userId\": \"{{user_id}}\"\n            }\n          }\n        ]\n      },\n      \"ownerInfo\": {\n        \"userId\": \"{{user_id}}\"\n      }\n    }\n  ],\n  \"lastResult\": true,\n  \"count\": 3\n}"}],"_postman_id":"4cb94220-58ca-4ea8-bdbe-bdf00547dd78"},{"name":"Get Storage Domains List","event":[{"listen":"test","script":{"exec":["var response = pm.response.json()","","//Validate return-code","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var jsonData = JSON.parse(responseBody);","if (jsonData !== null) {","    postman.setEnvironmentVariable(\"viewBoxId\", jsonData.storageDomains[0].id);","}"],"type":"text/javascript","id":"7579d83f-6bb4-4aa8-8d43-d4014ff82715"}}],"id":"ac4b9e1c-c439-4879-88e4-c6d04be616ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>The Storage Domain ID is required when you are creating a View.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"226e4259-b03b-45a3-8bc5-294348f49f9d","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675206402"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:06:41 GMT"},{"key":"Content-Length","value":"253"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 27,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 3,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\"\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"ac4b9e1c-c439-4879-88e4-c6d04be616ca"},{"name":"Create View with ACL Config","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","pm.environment.set(\"viewId\", jsonData.viewId)"],"type":"text/javascript","id":"d056ef6e-5be8-48e7-a51b-f8219b80a0e5"}}],"id":"658ecae8-cd56-495e-955a-938c8370e0bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"protocolAccess\": [\n        {\n            \"type\": \"S3\",\n            \"mode\": \"ReadWrite\"\n        }\n    ],\n    \"qos\": {\n        \"principalId\": 6,\n        \"principalName\": \"TestAndDev High\"\n    },\n    \"overrideGlobalSubnetWhitelist\": true,\n    \"overrideGlobalNetgroupWhitelist\": true,\n    \"securityMode\": \"NativeMode\",\n    \"storagePolicyOverride\": {},\n    \"description\": \"\",\n    \"allowMountOnWindows\": false,\n    \"enableMinion\": true,\n    \"enableFilerAuditLogging\": false,\n    \"enableLiveIndexing\": false,\n    \"enableNfsViewDiscovery\": true,\n    \"nfsAllSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n    },\n    \"nfsRootPermissions\": {\n        \"gid\": 0,\n        \"mode\": 493,\n        \"uid\": 0\n    },\n    \"nfsRootSquash\": {\n        \"gid\": 65534,\n        \"uid\": 65534\n    },\n    \"enableSmbViewDiscovery\": true,\n    \"enableSmbAccessBasedEnumeration\": false,\n    \"enableSmbEncryption\": false,\n    \"enforceSmbEncryption\": false,\n    \"enableFastDurableHandle\": false,\n    \"enableSmbOplock\": true,\n    \"smbPermissionsInfo\": {\n        \"ownerSid\": \"S-1-5-32-544\",\n        \"permissions\": [\n            {\n                \"type\": \"Allow\",\n                \"mode\": \"FolderSubFoldersAndFiles\",\n                \"access\": \"FullControl\",\n                \"sid\": \"S-1-1-0\"\n            }\n        ]\n    },\n    \"sharePermissions\": [\n        {\n            \"type\": \"Allow\",\n            \"mode\": \"FolderSubFoldersAndFiles\",\n            \"access\": \"FullControl\",\n            \"sid\": \"S-1-1-0\"\n        }\n    ],\n    \"aclConfig\": {\n        \"grants\": [\n            {\n                \"permissions\": [\n                    \"FullControl\"\n                ],\n                \"grantee\": {\n                    \"type\": \"RegisteredUser\",\n                    \"userId\": \"USER@LOCAL@\"\n                }\n            }\n        ]\n    },\n    \"ownerInfo\": {\n        \"userId\": \"USER@LOCAL@\"\n    },\n    \"category\": \"ObjectServices\",\n    \"name\": \"aclConfig-test\",\n    \"viewId\": 1234,\n    \"storageDomainId\": 5,\n    \"caseInsensitiveNamesEnabled\": false,\n    \"isTargetForMigratedData\": false,\n    \"stats\": {\n        \"id\": 1234\n    },\n    \"s3AccessPath\": \"https://ip:port/view\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster}}/v2/file-services/views","urlObject":{"protocol":"https","path":["v2","file-services","views"],"host":["{{cluster}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"658ecae8-cd56-495e-955a-938c8370e0bc"},{"name":"Delete View","event":[{"listen":"test","script":{"exec":["//Validate return-code","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"3ca32acf-4f1b-4d73-a962-61293f712a46"}}],"id":"0c8ca4c9-c78b-433c-ad5b-a4e49af33136","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{cluster_1-access_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster-vip}}/v2/file-services/views/{{viewId}}","description":"<p>Deletes the Cohesity view from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","file-services","views","{{viewId}}"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"91d7b57e-2e09-42f8-b2fc-7457ab4c9bb2","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{cluster_1-access_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster-vip}}/v2/file-services/views/{{viewId}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675206064"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:01:03 GMT"},{"key":"Content-Length","value":"104"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0c8ca4c9-c78b-433c-ad5b-a4e49af33136"}],"id":"1b1a3ef2-7755-4c70-8001-ddbcfbb1b6f6","description":"<p>The S3 workflows using API are as follows:</p>\n<ul>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Get the list of Cohesity views created on the Cohesity cluster.</li>\n<li>Get the list of Storage Domains available on the Cohesity cluster. The ID of the Storage Domain in which you want the view to be created is required in the API for creating the view.</li>\n<li>Create a Cohesity view.</li>\n<li>Delete the view from the Cohesity cluster.</li>\n</ul>\n","_postman_id":"1b1a3ef2-7755-4c70-8001-ddbcfbb1b6f6"},{"name":"NAS (Generic) SMB Protection Workflow","item":[{"name":"Generate Acces Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"2a82cc5b-aab2-4b49-a2a8-809a14bddb21"}}],"id":"71f6f193-be35-40be-a64c-66df7154b733","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\",\n    \"domain\": \"{{cluster_1-domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"4c139aaf-30cb-4eab-8813-9479afe8bf90","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675202646"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:04:05 GMT"},{"key":"Content-Length","value":"1126"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\""}],"_postman_id":"71f6f193-be35-40be-a64c-66df7154b733"},{"name":"Register Generic NAS Source","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","if (responseCode.code !== 201) {","    postman.setNextRequest(null);","}","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"Windows_NAS_Source_Id\", jsonData.id);","    });","}","","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"entity\"","    ],","    \"properties\": {","        \"entity\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"type\",","                \"genericNasEntity\",","                \"id\",","                \"displayName\"","            ],","            \"properties\": {","                \"type\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"genericNasEntity\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"type\",","                        \"uid\",","                        \"protocol\",","                        \"path\"","                    ],","                    \"properties\": {","                        \"type\": {","                            \"type\": \"integer\",","                            \"default\": 0","                        },","                        \"uid\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"clusterId\",","                                \"clusterIncarnationId\",","                                \"objectId\"","                            ],","                            \"properties\": {","                                \"clusterId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"clusterIncarnationId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"objectId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        },","                        \"protocol\": {","                            \"type\": \"integer\",","                            \"default\": 0","                        },","                        \"path\": {","                            \"type\": \"string\",","                            \"default\": \"\"","                        }","                    }","                },","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"displayName\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"07697a5d-336b-45b7-aa8f-0f9a4029383b"}}],"id":"35584255-62e3-448d-9fc9-c7d44750e52a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"entity\": {\n        \"type\": 11,\n        \"genericNasEntity\": {\n            \"protocol\": 2,\n            \"type\": 1,\n            \"path\": \"\\\\\\\\{{File_Client_Windows}}\\\\{{Windows_Share_Name}}\"\n        }\n    },\n    \"entityInfo\": {\n        \"endpoint\": \"\\\\\\\\{{File_Client_Windows}}\\\\{{Windows_Share_Name}}\",\n        \"credentials\": {\n            \"nasMountCredentials\": {\n                \"username\": \"{{Windows_Username}}\",\n                \"password\": \"{{Windows_Password}}\",\n                \"protocol\": 2\n            }\n        },\n        \"type\": 11\n    },\n    \"registeredEntityParams\": {}\n}"},"url":"https://{{cluster_vip}}/irisservices/api/v1/backupsources","description":"<p>Registers Generic NAS of type SMB with the Cohesity cluster.</p>\n<p>Ensure to set the following parameters in the request body:</p>\n<ul>\n<li>The path for mounting the NAS ( <code>\\\\\\\\{{File_Client_Windows}}\\\\{{Windows_Share_Name}}</code>)</li>\n<li>SMB mount credentials (<code>{{Windows_Username}}</code><br />  <code>{{Windows_Username}}</code>)</li>\n</ul>\n<p>For NAS Generic of type SMB, the <code>protocol</code> value in the request body will be set <code>2</code>.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","backupsources"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ce033b2e-a539-47fa-a9ab-c1159e507c38","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"entity\": {\n        \"type\": 11,\n        \"genericNasEntity\": {\n            \"protocol\": 2,\n            \"type\": 1,\n            \"path\": \"\\\\\\\\{{File_Client_Windows}}\\\\{{Windows_Share_Name}}\"\n        }\n    },\n    \"entityInfo\": {\n        \"endpoint\": \"\\\\\\\\{{File_Client_Windows}}\\\\{{Windows_Share_Name}}\",\n        \"credentials\": {\n            \"nasMountCredentials\": {\n                \"username\": \"{{Windows_Username}}\",\n                \"password\": \"{{Windows_Password}}\",\n                \"protocol\": 2\n            }\n        },\n        \"type\": 11\n    },\n    \"registeredEntityParams\": {}\n}"},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/backupsources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675204198"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:29:58 GMT"},{"key":"Content-Length","value":"190"}],"cookie":[],"responseTime":null,"body":"{\n    \"entity\": {\n        \"type\": 11,\n        \"genericNasEntity\": {\n            \"type\": 1,\n            \"uid\": {\n                \"clusterId\": 1234567,\n                \"clusterIncarnationId\": 89101112,\n                \"objectId\": 25273\n            },\n            \"protocol\": 2,\n            \"path\": \"\\\\\\\\NAS_hostname\\\\CIFS-1\"\n        },\n        \"id\": 25274,\n        \"displayName\": \"NAS\"\n    }\n}"}],"_postman_id":"35584255-62e3-448d-9fc9-c7d44750e52a"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"sourceId\",","        \"sourceInfo\",","        \"environment\",","        \"registrationTimeMsecs\",","        \"lastRefreshedTimeMsecs\",","        \"genericNasParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"sourceId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"sourceInfo\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"id\",","                \"name\",","                \"environment\",","                \"objectType\",","                \"protectionStats\",","                \"genericNasParams\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"name\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"environment\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"objectType\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"protectionStats\": {","                    \"type\": \"null\",","                    \"default\": null","                },","                \"genericNasParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"supportedNasMountProtocols\"","                    ],","                    \"properties\": {","                        \"supportedNasMountProtocols\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                }","            }","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"registrationTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"lastRefreshedTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"genericNasParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"mountPoint\",","                \"mode\"","            ],","            \"properties\": {","                \"mountPoint\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"mode\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"fc546769-c53a-40b4-91f4-ce29f8106b32"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1bbd39eb-ca34-4373-b423-3f554c773c0d"}}],"id":"55a39262-d498-46eb-9536-d01d553fc40c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the Genric NAS is registered with the Cohesity cluster</li>\n<li>Obtain the Id (<code>sourceId</code>) of the Generic NAS.<br />  The <code>sourceId</code> is required for creating a Protection Group.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ea1b721b-0cbb-43fd-b387-7e0ff2dd0aa6","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster_cip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212738"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:52:17 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25278,\n    \"sourceId\": 25278,\n    \"sourceInfo\": {\n        \"id\": 25278,\n        \"name\": \"\\\\\\\\NAS_hostname\\\\CIFS-1\",\n        \"environment\": \"kGenericNas\",\n        \"objectType\": \"kHost\",\n        \"protectionStats\": null,\n        \"genericNasParams\": {\n            \"supportedNasMountProtocols\": [\n                \"kCifs1\"\n            ]\n        }\n    },\n    \"environment\": \"kGenericNas\",\n    \"registrationTimeMsecs\": 1675211867095,\n    \"lastRefreshedTimeMsecs\": 1675211867095,\n    \"genericNasParams\": {\n        \"mountPoint\": \"\\\\\\\\NAS_hostname\\\\CIFS-1\",\n        \"mode\": \"kCifs1\",\n        \"smbMountCredentials\": {\n            \"username\": \"administrator\",\n            \"password\": null\n        }\n    }\n}"}],"_postman_id":"55a39262-d498-46eb-9536-d01d553fc40c"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"cascadedTargetsConfig\",","        \"retryOptions\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"incremental\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"incremental\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        }","                    }","                }","            }","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"retryOptions\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"retries\",","                \"retryIntervalMins\"","            ],","            \"properties\": {","                \"retries\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"retryIntervalMins\": {","                    \"type\": \"integer\",","                    \"default\": 0","                }","            }","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        }","    }","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"5e3fb905-c30b-4b10-b7b4-896a54500e3d"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Windows_CIFS_Policy_Name\", \"Windows_CIFS_Policy\");"],"type":"text/javascript","id":"db0fdb7e-f9c7-44e3-a2e7-b0138a2cb7e2"}}],"id":"e7cfc317-32ec-4f9b-abdb-c98038675b81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{Windows_CIFS_Policy_Name}}\",\n  \"description\": \"Policy for NAS\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the output is required to create the Protection Group for protecting the NAS source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"c5215a18-03c5-489c-bfda-a3fb1174a174","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{Windows_CIFS_Policy_Name}}\",\n  \"description\": \"Policy for File, Folder Testing\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208488"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:41:27 GMT"},{"key":"Content-Length","value":"286"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"{{Windows_CIFS_Policy_Name}}\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for NAS\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:413488\"\n}"}],"_postman_id":"e7cfc317-32ec-4f9b-abdb-c98038675b81"},{"name":"Get Storage Domains List","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"8ed6a150-6578-435a-9ea4-b9dc8aa10b49"}}],"id":"25fa58d0-c12e-4d7e-837c-a64ca7a8e0e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>The Storage Domain ID is required when you are creating the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster_vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"64857e9f-16f9-441f-9393-6a221523f4b7","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster_1-ip}}/v2/storage-domains?names=DefaultStorageDomain","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","storage-domains"],"query":[{"key":"names","value":"DefaultStorageDomain"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 24,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 22,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": true,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"25fa58d0-c12e-4d7e-837c-a64ca7a8e0e9"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"name\",","        \"policyId\",","        \"priority\",","        \"storageDomainId\",","        \"description\",","        \"startTime\",","        \"alertPolicy\",","        \"sla\",","        \"qosPolicy\",","        \"abortInBlackouts\",","        \"isActive\",","        \"isPaused\",","        \"environment\",","        \"permissions\",","        \"missingEntities\",","        \"genericNasParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"policyId\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"priority\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"storageDomainId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"startTime\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"hour\",","                \"minute\",","                \"timeZone\"","            ],","            \"properties\": {","                \"hour\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"minute\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"timeZone\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        },","        \"alertPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"backupRunStatus\",","                \"alertTargets\"","            ],","            \"properties\": {","                \"backupRunStatus\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                },","                \"alertTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {}","                }","            }","        },","        \"sla\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"backupRunType\",","                    \"slaMinutes\"","                ],","                \"properties\": {","                    \"backupRunType\": {","                        \"type\": \"string\"","                    },","                    \"slaMinutes\": {","                        \"type\": \"integer\"","                    }","                }","            }","        },","        \"qosPolicy\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"abortInBlackouts\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isActive\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isPaused\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"permissions\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"missingEntities\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"genericNasParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"objects\",","                \"indexingPolicy\",","                \"continueOnError\",","                \"encryptionEnabled\",","                \"directCloudArchive\",","                \"nativeFormat\",","                \"protocol\"","            ],","            \"properties\": {","                \"objects\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                },","                \"indexingPolicy\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"enableIndexing\",","                        \"includePaths\",","                        \"excludePaths\"","                    ],","                    \"properties\": {","                        \"enableIndexing\": {","                            \"type\": \"boolean\",","                            \"default\": false","                        },","                        \"includePaths\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        },","                        \"excludePaths\": {","                            \"type\": \"null\",","                            \"default\": null","                        }","                    }","                },","                \"continueOnError\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"encryptionEnabled\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"directCloudArchive\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"nativeFormat\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"protocol\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"Windows_NAS_Protection_Job_Id\", jsonData.id);"],"type":"text/javascript","id":"9e84ffec-1abc-49d6-9e46-e3eec29f826b"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Windows_NAS_Protection_Job_Name\", \"Windows_NAS_Protection\");"],"type":"text/javascript","id":"0c64b9b4-01ef-4ae1-a16f-ddeb7435d0a2"}}],"id":"ded39a14-5b21-4d88-a127-106ddea17fbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"{{Windows_CIFS_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 16,\n        \"minute\": 33,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"storageDomainId\": 24,\n    \"name\": \"{{Windows_NAS_Protection_Job_Name}}\",\n    \"environment\": \"kGenericNas\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ]\n    },\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"id\": {{Windows_NAS_Source_Id}}\n            }\n        ],\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": [\n                \"/$Recycle.Bin\",\n                \"/Windows\",\n                \"/Program Files\",\n                \"/Program Files (x86)\",\n                \"/ProgramData\",\n                \"/System Volume Information\",\n                \"/Users/*/AppData\",\n                \"/Recovery\",\n                \"/var\",\n                \"/usr\",\n                \"/sys\",\n                \"/proc\",\n                \"/lib\",\n                \"/grub\",\n                \"/grub2\",\n                \"/opt\",\n                \"/splunk\"\n            ]\n        },\n        \"protocol\": \"kNfs3\",\n        \"fileFilters\": {\n            \"includeList\": [\n                \"/\"\n            ],\n            \"excludeList\": [\n                \"/.snapshot/\"\n            ]\n        },\n        \"backupExistingSnapshot\": true,\n        \"excludeObjectIds\": []\n    }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a Protection Group for protecting Generic NAS.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the Isilon source to be protected are required in the request body for running this API.</li>\n<li>For protecting Generic NAS of type SMB ensure to enter the <code>protocol</code> value as kCifs1, kCifs2, or kCifs3 in the request body.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the Isilon source.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"8ba90bd1-f3d4-4dd6-829f-3b488841c569","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"{{Windows_CIFS_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 16,\n        \"minute\": 33,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"storageDomainId\": 24,\n    \"name\": \"{{Windows_NAS_Protection_Job_Name}}\",\n    \"environment\": \"kGenericNas\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ]\n    },\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"id\": {{Windows_NAS_Source_Id}}\n            }\n        ],\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": [\n                \"/$Recycle.Bin\",\n                \"/Windows\",\n                \"/Program Files\",\n                \"/Program Files (x86)\",\n                \"/ProgramData\",\n                \"/System Volume Information\",\n                \"/Users/*/AppData\",\n                \"/Recovery\",\n                \"/var\",\n                \"/usr\",\n                \"/sys\",\n                \"/proc\",\n                \"/lib\",\n                \"/grub\",\n                \"/grub2\",\n                \"/opt\",\n                \"/splunk\"\n            ]\n        },\n        \"protocol\": \"kNfs3\",\n        \"fileFilters\": {\n            \"includeList\": [\n                \"/\"\n            ],\n            \"excludeList\": [\n                \"/.snapshot/\"\n            ]\n        },\n        \"backupExistingSnapshot\": true,\n        \"excludeObjectIds\": []\n    }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675211959"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:39:18 GMT"},{"key":"Content-Length","value":"602"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:413694\",\n    \"name\": \"Windows_NAS_Protection\",\n    \"policyId\": \"8743635867054034:1666901032964:413488\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 24,\n    \"startTime\": {\n        \"hour\": 16,\n        \"minute\": 33,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        },\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kGenericNas\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"id\": 25278,\n                \"name\": \"\\\\\\\\hostname\\\\CIFS-1\"\n            }\n        ],\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": [\n                \"/$Recycle.Bin\",\n                \"/Windows\",\n                \"/Program Files\",\n                \"/Program Files (x86)\",\n                \"/ProgramData\",\n                \"/System Volume Information\",\n                \"/Users/*/AppData\",\n                \"/Recovery\",\n                \"/var\",\n                \"/usr\",\n                \"/sys\",\n                \"/proc\",\n                \"/lib\",\n                \"/grub\",\n                \"/grub2\",\n                \"/opt\",\n                \"/splunk\"\n            ]\n        },\n        \"fileFilters\": {\n            \"includeList\": [\n                \"/\"\n            ],\n            \"excludeList\": [\n                \"/.snapshot/\"\n            ]\n        },\n        \"protocol\": \"kNfs3\"\n    }\n}"}],"_postman_id":"ded39a14-5b21-4d88-a127-106ddea17fbd"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(60000);","    pm.response.to.have.status(202);","","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"02f9eb4a-3f32-44d2-b709-801294ef0d3b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"db7e2965-2ee5-4e6d-b236-93c3aba52ea0"}}],"id":"2b442e90-7be8-4af5-932e-a7526b78a86a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting the Generic NAS source.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"cc891fdb-6033-4919-a516-360316e0064e","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Windows_NAS_Protection_Job_Id}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212580"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:49:39 GMT"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"8743635867054034:1666901032964:413694\"\n}"}],"_postman_id":"2b442e90-7be8-4af5-932e-a7526b78a86a"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function () { }, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","var resp = pm.response.json();","var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if ((status == \"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","    setTimeout(function () { }, 10000);","    postman.setNextRequest(request.name)","}","else {","    // Sleep for 5 seconds.","    setTimeout(function () { }, 5000);","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"runs\",","        \"totalRuns\"","    ],","    \"properties\": {","        \"runs\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"protectionGroupInstanceId\",","                    \"protectionGroupId\",","                    \"isReplicationRun\",","                    \"protectionGroupName\",","                    \"objects\",","                    \"localBackupInfo\",","                    \"permissions\",","                    \"hasLocalSnapshot\",","                    \"environment\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupInstanceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"isReplicationRun\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objects\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"localBackupInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"runType\",","                            \"startTimeUsecs\",","                            \"status\",","                            \"messages\",","                            \"successfulObjectsCount\",","                            \"failedObjectsCount\",","                            \"cancelledObjectsCount\",","                            \"successfulAppObjectsCount\",","                            \"failedAppObjectsCount\",","                            \"cancelledAppObjectsCount\",","                            \"localSnapshotStats\",","                            \"indexingTaskId\",","                            \"localTaskId\"","                        ],","                        \"properties\": {","                            \"runType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"startTimeUsecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"status\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"messages\": {","                                \"type\": \"null\",","                                \"default\": null","                            },","                            \"successfulObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"successfulAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"localSnapshotStats\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"logicalSizeBytes\"","                                ],","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    }","                                }","                            },","                            \"indexingTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"progressTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"localTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    },","                    \"permissions\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {}","                    },","                    \"hasLocalSnapshot\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"environment\": {","                        \"type\": \"string\",","                    }","                }","            }","        },","        \"totalRuns\": {","            \"type\": \"integer\",","            \"default\": 0","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"2ef32911-f031-408d-b603-7926ca7fba5f"}}],"id":"8a96b447-6cf8-4e57-ac76-7875ea8d39a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>StartFragment</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is <code>Succeeded</code>, you can recover the volumes of the Isilon source.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_1-ip}}"],"query":[],"variable":[]}},"response":[{"id":"77ad7679-bd85-40c9-8676-7acd956ba27e","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Windows_NAS_Protection_Job_Id}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212680"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:51:19 GMT"},{"key":"Content-Length","value":"455"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"413694:1675212580179277\",\n            \"protectionGroupInstanceId\": 413700,\n            \"protectionGroupId\": \"8743635867054034:1666901032964:413694\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Windows_NAS_Protection\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"isSlaViolated\": false,\n                \"startTimeUsecs\": 1675212580179277,\n                \"endTimeUsecs\": 1675212589179486,\n                \"status\": \"Succeeded\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 1,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 0,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 6158\n                },\n                \"indexingTaskId\": \"indexing_413694_413700\",\n                \"localTaskId\": \"8743635867054034:1666901032964:51947478104\"\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kGenericNas\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"8a96b447-6cf8-4e57-ac76-7875ea8d39a7"},{"name":"Get Objects List","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"required\": [","        \"id\",","        \"name\",","        \"sourceId\",","        \"environment\",","        \"objectHash\",","        \"objectType\",","        \"permissions\",","        \"protectionGroupConfigurations\",","        \"lastRun\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\"","        },","        \"name\": {","            \"type\": \"string\"","        },","        \"sourceId\": {","            \"type\": \"integer\"","        },","        \"environment\": {","            \"type\": \"string\"","        },","        \"objectHash\": {","            \"type\": \"string\"","        },","        \"objectType\": {","            \"type\": \"string\"","        },","        \"permissions\": {","            \"type\": \"null\"","        },","        \"protectionGroupConfigurations\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"protectionGroupId\",","                    \"protectionGroupName\"","                ],","                \"properties\": {","                    \"protectionGroupId\": {","                        \"type\": \"string\"","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\"","                    }","                }","            },","            \"uniqueItems\": false","        },","        \"lastRun\": {","            \"type\": \"object\",","            \"required\": [","                \"id\",","                \"name\",","                \"sourceId\",","                \"environment\",","                \"runId\",","                \"runType\",","                \"isSlaViolated\",","                \"protectionGroupId\",","                \"protectionGroupName\",","                \"isReplicationRun\",","                \"isCloudArchivalDirect\",","                \"storageDomainId\",","                \"permissions\",","                \"localSnapshotInfo\",","                \"replicationInfo\",","                \"archivalInfo\",","                \"cloudSpinInfo\",","                \"onLegalHold\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\"","                },","                \"name\": {","                    \"type\": \"string\"","                },","                \"sourceId\": {","                    \"type\": \"integer\"","                },","                \"environment\": {","                    \"type\": \"string\"","                },","                \"runId\": {","                    \"type\": \"string\"","                },","                \"runType\": {","                    \"type\": \"string\"","                },","                \"isSlaViolated\": {","                    \"type\": \"boolean\"","                },","                \"protectionGroupId\": {","                    \"type\": \"string\"","                },","                \"protectionGroupName\": {","                    \"type\": \"string\"","                },","                \"isReplicationRun\": {","                    \"type\": \"boolean\"","                },","                \"isCloudArchivalDirect\": {","                    \"type\": \"boolean\"","                },","                \"storageDomainId\": {","                    \"type\": \"integer\"","                },","                \"permissions\": {","                    \"type\": \"null\"","                },","                \"localSnapshotInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"snapshotInfo\",","                        \"failedAttempts\"","                    ],","                    \"properties\": {","                        \"snapshotInfo\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"snapshotId\",","                                \"status\",","                                \"startTimeUsecs\",","                                \"endTimeUsecs\",","                                \"admittedTimeUsecs\",","                                \"snapshotCreationTimeUsecs\",","                                \"stats\",","                                \"progressTaskId\",","                                \"warnings\",","                                \"isManuallyDeleted\",","                                \"expiryTimeUsecs\",","                                \"totalFileCount\",","                                \"backupFileCount\"","                            ],","                            \"properties\": {","                                \"snapshotId\": {","                                    \"type\": \"string\"","                                },","                                \"status\": {","                                    \"type\": \"string\"","                                },","                                \"startTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"endTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"admittedTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"snapshotCreationTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"stats\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"logicalSizeBytes\",","                                        \"bytesWritten\",","                                        \"bytesRead\"","                                    ],","                                    \"properties\": {","                                        \"logicalSizeBytes\": {","                                            \"type\": \"integer\"","                                        },","                                        \"bytesWritten\": {","                                            \"type\": \"integer\"","                                        },","                                        \"bytesRead\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"progressTaskId\": {","                                    \"type\": \"string\"","                                },","                                \"warnings\": {","                                    \"type\": \"null\"","                                },","                                \"isManuallyDeleted\": {","                                    \"type\": \"boolean\"","                                },","                                \"expiryTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"totalFileCount\": {","                                    \"type\": \"integer\"","                                },","                                \"backupFileCount\": {","                                    \"type\": \"integer\"","                                }","                            }","                        },","                        \"failedAttempts\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"replicationInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"replicationTargetResults\"","                    ],","                    \"properties\": {","                        \"replicationTargetResults\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"archivalInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"archivalTargetResults\"","                    ],","                    \"properties\": {","                        \"archivalTargetResults\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"cloudSpinInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"cloudSpinTargetResults\"","                    ],","                    \"properties\": {","                        \"cloudSpinTargetResults\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"onLegalHold\": {","                    \"type\": \"boolean\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"551f02f1-f977-4434-96df-01f8564f9fa9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"56944105-dc4d-4b7a-aae9-ca1eb1213a2e"}}],"id":"c2be09d0-60d6-4537-9f88-42e96e7922c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/objects/{{sourceId}}","description":"<p>Returns information about the objects that are being protected in the source specified in the API URL</p>\n<p>The object ID from the response is required for performing recovery.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{sourceId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"2281668d-5746-4ea3-a1cc-cfb7ac05dd93","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/objects/{{Windows_NAS_Source_Id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9998"},{"key":"X-Ratelimit-Reset","value":"1675212888"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:54:48 GMT"},{"key":"Content-Length","value":"794"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25278,\n    \"name\": \"\\\\\\\\hostname\\\\CIFS-1\",\n    \"sourceId\": 0,\n    \"environment\": \"kGenericNas\",\n    \"objectHash\": \"kHost_8743635867054034:1666901032964:25277\",\n    \"objectType\": \"kVolume\",\n    \"permissions\": null,\n    \"protectionGroupConfigurations\": [\n        {\n            \"protectionGroupId\": \"8743635867054034:1666901032964:413694\",\n            \"protectionGroupName\": \"Windows_NAS_Protection\"\n        }\n    ],\n    \"lastRun\": {\n        \"id\": 25278,\n        \"name\": \"\\\\\\\\hostname\\\\CIFS-1\",\n        \"sourceId\": 0,\n        \"environment\": \"kGenericNas\",\n        \"runId\": \"413694:1675212580179277\",\n        \"runType\": \"kRegular\",\n        \"isSlaViolated\": false,\n        \"protectionGroupId\": \"8743635867054034:1666901032964:413694\",\n        \"protectionGroupName\": \"Windows_NAS_Protection\",\n        \"isReplicationRun\": false,\n        \"isCloudArchivalDirect\": false,\n        \"storageDomainId\": 24,\n        \"permissions\": null,\n        \"localSnapshotInfo\": {\n            \"snapshotInfo\": {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"status\": \"Succeeded\",\n                \"startTimeUsecs\": 1675212580179277,\n                \"endTimeUsecs\": 1675212589179486,\n                \"admittedTimeUsecs\": 1675212581179293,\n                \"snapshotCreationTimeUsecs\": 0,\n                \"stats\": {\n                    \"logicalSizeBytes\": 6158,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 6158\n                },\n                \"progressTaskId\": \"backup_413700_1/task_413701\",\n                \"warnings\": null,\n                \"isManuallyDeleted\": false,\n                \"expiryTimeUsecs\": 1676422191000000,\n                \"totalFileCount\": 5,\n                \"backupFileCount\": 5\n            },\n            \"failedAttempts\": null\n        },\n        \"replicationInfo\": {\n            \"replicationTargetResults\": null\n        },\n        \"archivalInfo\": {\n            \"archivalTargetResults\": null\n        },\n        \"cloudSpinInfo\": {\n            \"cloudSpinTargetResults\": null\n        },\n        \"onLegalHold\": false\n    }\n}"}],"_postman_id":"c2be09d0-60d6-4537-9f88-42e96e7922c2"},{"name":"Get Object Status","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"required\": [","        \"snapshotsSummary\"","    ],","    \"properties\": {","        \"snapshotsSummary\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"snapshotTargetType\",","                    \"snapshotCount\",","                    \"latestSnapshotTimestampUsecs\"","                ],","                \"properties\": {","                    \"snapshotTargetType\": {","                        \"type\": \"string\"","                    },","                    \"snapshotCount\": {","                        \"type\": \"integer\"","                    },","                    \"latestSnapshotTimestampUsecs\": {","                        \"type\": \"integer\"","                    }","                }","            },","            \"uniqueItems\": false","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"37c194b6-319a-4de3-981f-55ef28077e8e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cd6dc65b-402e-41e0-9ba9-c2c206af1c56"}}],"id":"41d10bc2-8cc5-480e-8b0b-110cdc5c859f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/objects/{{sourceId}}/stats","description":"<p>Returns the snapshot summary of the objects that are being protected in the source specified in the API URL.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{sourceId}}","stats"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"373daca8-e358-4651-ad80-9f71c1acdcc5","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/objects/{{Windows_Source_Id}}/stats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212767"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:52:46 GMT"},{"key":"Content-Length","value":"123"}],"cookie":[],"responseTime":null,"body":"{\n    \"snapshotsSummary\": [\n        {\n            \"snapshotTargetType\": \"Local\",\n            \"snapshotCount\": 1,\n            \"latestSnapshotTimestampUsecs\": 1675209533498160\n        }\n    ]\n}"}],"_postman_id":"41d10bc2-8cc5-480e-8b0b-110cdc5c859f"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","// pm.test(\"Validating response\", function() {","","//         for (var i = 0; i < jsonData.objects.length; i++) {","//             if (jsonData.objects[i].sourceId === pm.environment.get(\"sourceId\")) {","//                 pm.environment.set(\"Linux_NAS_Restore_File\", jsonData.objects[i].name);","//                 //break;","//             }","//         }","// });","var jsonData = pm.response.json();","","pm.test(\"Validating response\", function () {","    for (var i = 0; i < jsonData.objects.length; i++) {","        if (jsonData.objects[i].id === pm.environment.get(\"Linux_NFS_Source_Id\")) {","            pm.environment.set(\"Linux_NAS_Snapshot\", jsonData.objects[i].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","            //break;","        }","    }","});","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"objects\",","        \"numResults\",","        \"metadata\"","    ],","    \"properties\": {","        \"objects\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"environment\",","                    \"objectType\",","                    \"osType\",","                    \"protectionStats\",","                    \"genericNasParams\",","                    \"latestSnapshotsInfo\",","                    \"sourceInfo\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objectType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"osType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionStats\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"genericNasParams\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"supportedNasMountProtocols\"","                        ],","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"type\": \"array\",","                                \"default\": [],","                                \"items\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                }","                            }","                        }","                    },","                    \"latestSnapshotsInfo\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"archivalSnapshotsInfo\",","                                \"indexingStatus\",","                                \"protectionGroupId\",","                                \"protectionGroupName\",","                                \"runInstanceId\",","                                \"storageDomainId\",","                                \"protectionRunId\",","                                \"runType\",","                                \"protectionRunStartTimeUsecs\",","                                \"localSnapshotInfo\"","                            ],","                            \"properties\": {","                                \"archivalSnapshotsInfo\": {","                                    \"type\": \"null\",","                                    \"default\": null","                                },","                                \"indexingStatus\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"protectionGroupId\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"protectionGroupName\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"runInstanceId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"storageDomainId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"protectionRunId\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"runType\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"protectionRunStartTimeUsecs\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"localSnapshotInfo\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"snapshotId\",","                                        \"logicalSizeBytes\"","                                    ],","                                    \"properties\": {","                                        \"snapshotId\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"logicalSizeBytes\": {","                                            \"type\": \"integer\",","                                            \"default\": 0","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                }","            }","        },","        \"numResults\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"metadata\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"uniqueProtectionGroupIdentifiers\"","            ],","            \"properties\": {","                \"uniqueProtectionGroupIdentifiers\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"protectionGroupId\",","                            \"protectionGroupName\"","                        ],","                        \"properties\": {","                            \"protectionGroupId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionGroupName\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"5be9181d-fe1e-425f-9d39-d308ded80e04"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"42cc995a-54d5-4a15-88f7-8f2cf3e8c846"}}],"id":"ac8bb622-d0c2-473c-b167-ec152666aed9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects","description":"<p>Returns information on the latest snapshots of the objects that are being protected on the Cohesity cluster.</p>\n<p>The snapshot ID (<code>snapshotId</code>) of the object from the response is required for recovering that object.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"8c5d8d89-1325-4df5-a3fc-afba2af10d46","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/search/protected-objects"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"objects\": [\n    {\n      \"id\": 22484,\n      \"name\": \"{{objectname}}\",\n      \"sourceId\": 22395,\n      \"environment\": \"kView\",\n      \"objectType\": \"kView\",\n      \"osType\": \"kOther\",\n      \"protectionStats\": null,\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8743635867054034:1666901032964:18416\",\n          \"protectionGroupName\": \"{{protectionGroupName1}}\",\n          \"runInstanceId\": 412673,\n          \"storageDomainId\": 280161309,\n          \"protectionRunId\": \"18416:1675198980346195\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1675198980346195,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 0\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 22395,\n        \"name\": \"{{sourcename}}\",\n        \"environment\": \"kView\",\n        \"objectType\": \"kViewBox\"\n      }\n    },\n    {\n      \"id\": 25267,\n      \"name\": \"{{objectname}}\",\n      \"environment\": \"kGenericNas\",\n      \"objectType\": \"kHost\",\n      \"osType\": \"kOther\",\n      \"protectionStats\": null,\n      \"genericNasParams\": {\n        \"supportedNasMountProtocols\": [\n          \"kNfs3\"\n        ]\n      },\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8743635867054034:1666901032964:412249\",\n          \"protectionGroupName\": \"{{protectionGroupName2}}\",\n          \"runInstanceId\": 412252,\n          \"storageDomainId\": 24,\n          \"protectionRunId\": \"412249:1675193584348281\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1675193584348281,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 6\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 25266,\n        \"name\": \"{{sourcename}}\",\n        \"environment\": \"kGenericNas\",\n        \"objectType\": \"kGroup\"\n      }\n    }\n  ],\n  \"numResults\": 502,\n  \"metadata\": {\n    \"uniqueProtectionGroupIdentifiers\": [\n      {\n        \"protectionGroupId\": \"8743635867054034:1666901032964:18833\",\n        \"protectionGroupName\": \"{{protectionGroupName1}}\"\n      },\n      {\n        \"protectionGroupId\": \"8743635867054034:1666901032964:18962\",\n        \"protectionGroupName\": \"{{protectionGroupName2}}\"\n      }\n    ]\n  }\n}"}],"_postman_id":"ac8bb622-d0c2-473c-b167-ec152666aed9"},{"name":"Recover File","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","","var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + currentdate.getMonth() + \"\" + currentdate.getDay() + \"_\" +","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = pm.response.json();","pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"43245633-1488-4831-aef9-6f85a1535fad"}},{"listen":"prerequest","script":{"exec":["var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + (\"0\" + (currentdate.getMonth() + 1)).slice(-2) + \"\" + (\"0\" + currentdate.getDate()).slice(-2) + \"_\"","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","pm.environment.set(\"timestamp\", datetime);"],"type":"text/javascript","id":"53ca347a-8cda-4bd0-8512-ef1f47bea793"}}],"id":"df259146-5329-4d65-8030-4d47c3889a1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recover_{{timestamp}}\",\n    \"snapshotEnvironment\": \"kGenericNas\",\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Linux_NAS_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/1.txt\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kGenericNas\",\n            \"genericNasTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": false,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": true,\n                    \"encryptionEnabled\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries","description":"<p>Recover the objects specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID from which you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>{{timestamp}}</code> variable in the request body will be auto-populated when you run the API.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"df259146-5329-4d65-8030-4d47c3889a1d"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"1f26fecb-ff74-4226-975e-fd3a1def1621"}}],"id":"0f857a1b-7e33-4e6f-8410-bc03e3e0c18c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster_vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"99e2200b-b8c6-4f02-b7c9-6dc3dae8b42f","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Linux_NAS_Protection_Job_Id}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{Linux_NAS_Protection_Job_Id}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199767"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:16:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0f857a1b-7e33-4e6f-8410-bc03e3e0c18c"},{"name":"Unregister Generic NAS Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"92367d93-dc46-4111-b6ea-1b2dce1b0538"}}],"id":"ed472bca-8faa-4d55-9556-f4c19b9db5f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceId}}","description":"<p>Unregisters the Generic NAS source from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"199641d4-cd7f-4725-aca0-67cd516118cc","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations/{{Linux_NFS_Source_Id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199890"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:18:10 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ed472bca-8faa-4d55-9556-f4c19b9db5f8"}],"id":"b9177b16-7ef1-442e-96b7-5244c84699de","description":"<p>To protect Generic NAS using Cohesity, perform the following steps using the API operations:</p>\n<ol>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Generic NAS as a source with the Cohesity cluster.</li>\n<li>Verify whether the Generic NAS is available as a source on the Cohesity cluster and get the source ID required for creating the Protection Group.</li>\n<li>Create a new Protection Policy and get the policy ID required for creating the Protection Group.</li>\n<li>Get the list of Storage Domains available on the Cohesity cluster. You can either use an existing Storage Domain or create a new Storage Domain. Get the Storage Domain ID required for creating the Protection Group.</li>\n<li>Create a Protection Group for protecting the Generic NAS.</li>\n<li>Run the Protection Group.</li>\n<li>Get the Protection Group run status.</li>\n<li>Get the list of objects that are being protected on the Cohesity cluster and obtain the ID of the object (file) you want to recover.</li>\n<li>Get the snapshot summary of the objects being protected</li>\n<li>Get the latest snapshot of the object for recovery.</li>\n<li>Recover the file.</li>\n<li>Delete the Protection Group.</li>\n<li>Unregister the Generic NAS from the Cohesity cluster.</li>\n</ol>\n","_postman_id":"b9177b16-7ef1-442e-96b7-5244c84699de"},{"name":"NAS (Generic) NFS Protection Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"f64d4336-2c79-4d31-86fa-1c7a3ad14c70"}}],"id":"d53ff048-06c6-495b-bcd1-4029b80fb001","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"f0695733-0873-42cd-acbb-19907b73aadc","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675191792"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:03:11 GMT"},{"key":"Content-Length","value":"1127"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\""}],"_postman_id":"d53ff048-06c6-495b-bcd1-4029b80fb001"},{"name":"Register Generic NAS Source","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","if (responseCode.code !== 201) {","    postman.setNextRequest(null);","}","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"entity\"","    ],","    \"properties\": {","        \"entity\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"type\",","                \"genericNasEntity\",","                \"id\",","                \"displayName\"","            ],","            \"properties\": {","                \"type\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"genericNasEntity\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"type\",","                        \"uid\",","                        \"protocol\",","                        \"path\"","                    ],","                    \"properties\": {","                        \"type\": {","                            \"type\": \"integer\",","                            \"default\": 0","                        },","                        \"uid\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"clusterId\",","                                \"clusterIncarnationId\",","                                \"objectId\"","                            ],","                            \"properties\": {","                                \"clusterId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"clusterIncarnationId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"objectId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        },","                        \"protocol\": {","                            \"type\": \"integer\",","                            \"default\": 0","                        },","                        \"path\": {","                            \"type\": \"string\",","                            \"default\": \"\"","                        }","                    }","                },","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"displayName\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"93cd7e4d-ff2d-426f-9ba2-8e6314d6a85e"}}],"id":"1fad7d12-9d3c-4b3a-870a-bb84ae618de7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"entity\": {\n        \"type\": 11,\n        \"genericNasEntity\": {\n            \"protocol\": 1,\n            \"type\": 1,\n            \"path\": \"{{File_Client_Linux1}}:/mnt/mountpoint_1\"\n        }\n    },\n    \"entityInfo\": {\n        \"endpoint\": \"{{File_Client_Linux1}}:/mnt/mountpoint_1\",\n        \"type\": 11\n    },\n    \"registeredEntityParams\": {\n        \"description\": \"Linux NAS\",\n        \"genericNasParams\": {\n            \"skipValidation\": true\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/irisservices/api/v1/backupsources","description":"<p>Registers Generic NAS of type NFS with the Cohesity cluster.</p>\n<p>For NAS Generic of type NFS, ensure to set the following parameter in the request body:</p>\n<ul>\n<li>The path for mounting the NAS, (<code>{{File_Client_Linux}}\\\\mount path</code>)</li>\n<li>The <code>protocol</code> value in the request body must be set 1.</li>\n<li>For NFSv3, the value of the parameter, <code>type</code> must be set to 1.</li>\n<li>For NFSv4.1, the value of the parameter, <code>type</code> must be set to 2.</li>\n</ul>\n<p>The source ID from the response is required to create the Protection Group for protecting your NAS source.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","backupsources"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"141745b7-0d37-4cd7-8951-5f4e7b05d567","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"entity\": {\n        \"type\": 11,\n        \"genericNasEntity\": {\n            \"protocol\": 1,\n            \"type\": 1,\n            \"path\": \"{{File_Client_Linux1}}:/mnt/mountpoint_1\"\n        }\n    },\n    \"entityInfo\": {\n        \"endpoint\": \"{{File_Client_Linux1}}:/mnt/mountpoint_1\",\n        \"type\": 11\n    },\n    \"registeredEntityParams\": {\n        \"description\": \"Linux NAS\",\n        \"genericNasParams\": {\n            \"skipValidation\": true\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/irisservices/api/v1/backupsources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192690"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:18:09 GMT"},{"key":"Content-Length","value":"189"}],"cookie":[],"responseTime":null,"body":"{\n    \"entity\": {\n        \"type\": 11,\n        \"genericNasEntity\": {\n            \"type\": 1,\n            \"uid\": {\n                \"clusterId\": {{cluster_id}},\n                \"clusterIncarnationId\": {{clusterincarnation_id}},\n                \"objectId\": 25265\n            },\n            \"protocol\": 1,\n            \"path\": \"{{NAS_hostname}}:/mnt/mountpoint_1\"\n        },\n        \"id\": 25267,\n        \"displayName\": \"{{NAS_hostname}}:/mnt/mountpoint_1\"\n    }\n}"}],"_postman_id":"1fad7d12-9d3c-4b3a-870a-bb84ae618de7"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response is not null\", function () {","    pm.expect(pm.response).to.not.equal(undefined);","});","var found_flag = 0","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment == \"kPhysical\") {","            if (jsonData.registrations[i].sourceInfo.name == pm.environment.get(\"File_Client_Linux1\")) {","                pm.environment.set(\"Linux_Source_Id\", parseInt(jsonData.registrations[i].sourceId));","                found_flag += 1","            }","        }","        else if (jsonData.registrations[i].sourceInfo.environment == \"kGenericNas\") {","            if (jsonData.registrations[i].sourceInfo.name.includes(pm.environment.get(\"File_Client_Linux1\"))) {","                pm.environment.set(\"Linux_NFS_Source_Id\", parseInt(jsonData.registrations[i].sourceId));","                found_flag += 1","            }","        }","    }","});","pm.test(\"Response contains expected client info of \" + pm.environment.get(\"File_Client_Linux1\"), function () {","    if (found_flag != 2) {","        pm.expect.fail(\"Client/NAS info not found\")","    }","});","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"registrations\"","    ],","    \"properties\": {","        \"registrations\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"sourceId\",","                    \"sourceInfo\",","                    \"environment\",","                    \"registrationTimeMsecs\",","                    \"lastRefreshedTimeMsecs\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sourceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\",","                            \"protectionStats\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"osType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionStats\": {","                                \"type\": \"null\",","                                \"default\": null","                            }","                        }","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"authenticationStatus\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"registrationTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastRefreshedTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"03dc2920-aca9-4635-877d-1b96abbf79f7"}}],"id":"fd3a4c88-4a96-4382-acee-46cb65feca06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the Genric NAS is registered with the Cohesity cluster</li>\n<li>Obtain the Id (<code>sourceId</code>) of the Generic NAS.<br />  The <code>sourceId</code> is required for creating a Protection Group.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"99cff9bc-b559-422d-9a6e-91395b4632fb","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192699"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:18:18 GMT"},{"key":"Content-Length","value":"788"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25278,\n    \"sourceId\": 25278,\n    \"sourceInfo\": {\n        \"id\": 25278,\n        \"name\": \"\\\\\\\\{{NAS_hostname}}\\\\CIFS-1\",\n        \"environment\": \"kGenericNas\",\n        \"objectType\": \"kHost\",\n        \"protectionStats\": null,\n        \"genericNasParams\": {\n            \"supportedNasMountProtocols\": [\n                \"kCifs1\"\n            ]\n        }\n    },\n    \"environment\": \"kGenericNas\",\n    \"registrationTimeMsecs\": 1675211867095,\n    \"lastRefreshedTimeMsecs\": 1675211867095,\n    \"genericNasParams\": {\n        \"mountPoint\": \"\\\\\\\\{{NAS_hostname}}\\\\CIFS-1\",\n        \"mode\": \"kCifs1\",\n        \"smbMountCredentials\": {\n            \"username\": \"{{Username}}\",\n            \"password\": {{password}}\n        }\n    }\n}"}],"_postman_id":"fd3a4c88-4a96-4382-acee-46cb65feca06"},{"name":"Get Protection Policies List","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code shoild be 200\", function () {","    pm.response.to.have.status(200);","});","","pm.environment.set(\"Linux_Policy_Name\", \"LinuxFileFolderTestPolicy\");","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"policies\"","    ],","    \"properties\": {","        \"policies\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"name\",","                    \"backupPolicy\",","                    \"blackoutWindow\",","                    \"extendedRetention\",","                    \"cascadedTargetsConfig\",","                    \"id\"","                ],","                \"properties\": {","                    \"name\": {","                        \"type\": \"string\"","                    },","                    \"backupPolicy\": {","                        \"type\": \"object\",","                        \"required\": [","                            \"regular\"","                        ],","                        \"properties\": {","                            \"regular\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"incremental\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"daySchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    },","                                                    \"hourSchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"retention\": {","                                        \"default\" : null,","                                        \"required\": [","                                            \"unit\",","                                            \"duration\"","                                        ],","                                        \"properties\": {","                                            \"unit\": {","                                                \"type\": \"string\"","                                            },","                                            \"duration\": {","                                                \"type\": \"integer\"","                                            }","                                        }","                                    },","                                    \"full\": {","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"required\": [","                                                    \"unit\"","                                                ],","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\",","                                                        \"default\": \"\"","                                                    }","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"description\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"blackoutWindow\": {","                        \"type\": \"null\"","                    },","                    \"extendedRetention\": {","                        \"type\": [","                            \"null\",","                            \"array\"","                        ],","                        \"items\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"schedule\",","                                \"retention\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"frequency\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"frequency\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"retention\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"duration\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"duration\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                }","                            }","                        }","                    },","","                    \"retryOptions\": {","                        \"type\": \"object\",","                        \"default\": {},","","                        \"properties\": {","                            \"retries\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"retryIntervalMins\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            }","                        }","                    },","                    \"id\": {","                        \"type\": \"string\"","                    }","                }","            }","        }","    }","}","    pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"b1fd0015-e4ea-440b-9ff1-2e2fabb721c3"}}],"id":"3d32238c-938e-40d1-ba71-a37dbfbfeb2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Returns the list of Protection Policies available on the Cohesity cluster along with their Policy IDs and information on the parameters configured for these policies.</p>\n<p>You can either use an available policy or create a new policy for protecting your Generic NAS. The Protection Policy ID is required for creating the Protection Group for the Generic NAS protection.</p>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"b9a61c4a-8efe-49d6-8e1c-bd803c7e6630","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192986"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:23:05 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n        {\n            \"name\": \"Linux_NFS_Policy1\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for File, Folder Testing\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"8743635867054034:1666901032964:412244\"\n        },\n        {\n            \"name\": \"LinuxFileFolderTestPolicy\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for File, Folder Testing\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"8743635867054034:1666901032964:412243\"\n        }\n      \n    ]\n}"}],"_postman_id":"3d32238c-938e-40d1-ba71-a37dbfbfeb2b"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"cascadedTargetsConfig\",","        \"retryOptions\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"incremental\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"incremental\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        }","                    }","                }","            }","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"retryOptions\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"retries\",","                \"retryIntervalMins\"","            ],","            \"properties\": {","                \"retries\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"retryIntervalMins\": {","                    \"type\": \"integer\",","                    \"default\": 0","                }","            }","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        }","    }","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"b5ca558f-dcaa-488c-b658-46bd434353cd"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d67fd292-fe2f-4221-ac86-b2407a25c84b"}}],"id":"ec30160e-5759-4fec-b6ba-c295c40edbc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"Linux_NFS_Policy\",\n  \"description\": \"Policy for File, Folder Testing\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the output is required to create the Protection Group for protecting the NAS source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"e8e68b37-37cb-44b3-9839-201638cceb93","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{Linux_NFS_Policy_Name}}\",\n  \"description\": \"Policy for File, Folder Testing\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193002"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:23:21 GMT"},{"key":"Content-Length","value":"287"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Linux_NFS_Policy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for File, Folder Testing\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:412244\"\n}"}],"_postman_id":"ec30160e-5759-4fec-b6ba-c295c40edbc0"},{"name":"Verify Protection Policy Creation","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema = jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"policies\"","    ],","    \"properties\": {","        \"policies\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"name\",","                    \"backupPolicy\",","                    \"blackoutWindow\",","                    \"extendedRetention\",","                    \"cascadedTargetsConfig\",","                    \"id\"","                ],","                \"properties\": {","                    \"name\": {","                        \"type\": \"string\"","                    },","                    \"backupPolicy\": {","                        \"type\": \"object\",","                        \"required\": [","                            \"regular\"","                        ],","                        \"properties\": {","                            \"regular\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"incremental\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"daySchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    },","                                                    \"hourSchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"retention\": {","                                        \"default\": null,","                                        \"required\": [","                                            \"unit\",","                                            \"duration\"","                                        ],","                                        \"properties\": {","                                            \"unit\": {","                                                \"type\": \"string\"","                                            },","                                            \"duration\": {","                                                \"type\": \"integer\"","                                            }","                                        }","                                    },","                                    \"full\": {","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"required\": [","                                                    \"unit\"","                                                ],","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\",","                                                        \"default\": \"\"","                                                    }","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"description\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"blackoutWindow\": {","                        \"type\": \"null\"","                    },","                    \"extendedRetention\": {","                        \"type\": [","                            \"null\",","                            \"array\"","                        ],","                        \"items\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"schedule\",","                                \"retention\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"frequency\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"frequency\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"retention\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"duration\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"duration\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"cascadedTargetsConfig\": {","                    },","                    \"retryOptions\": {","                        \"type\": \"object\",","                        \"default\": {},","","                        \"properties\": {","                            \"retries\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"retryIntervalMins\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            }","                        }","                    },","                    \"id\": {","                        \"type\": \"string\"","                    }","                }","            }","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});","","var found_flag = 0","pm.test(\"Validating Policy creation\", function () {","    var jsonData = pm.response.json();","    for (i = 0; i < jsonData.policies.length; i++) {","        if (jsonData.policies[i].name == pm.environment.get(\"Linux_Policy_Name\")) {","            found_flag += 1","            pm.environment.set(\"Linux_Policy_Id\", jsonData.policies[i].id);","        } else if (jsonData.policies[i].name == pm.environment.get(\"Linux_NFS_Policy_Name\")) {","            found_flag += 1","            pm.environment.set(\"Linux_NFS_Policy_Id\", jsonData.policies[i].id);","        }","    }","});","pm.test(\"Response contains expected policy info of \" + pm.environment.get(\"Linux_Policy_Name\"), function () {","    if (found_flag != 2) {","        pm.expect.fail(\"Policy info not found\")","    }","});","",""],"type":"text/javascript","id":"6f26000c-572c-4a35-b809-50cff5c6570b"}}],"id":"31d3cf51-d7f1-4d38-a456-7331975f3eac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"policyNames\" : [\"NASAPITest\"]\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Returns the list of policies available on the Cohesity cluster along with their policy IDs and information on the parameters configured for the Protection Policy.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the policy you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Protection Policy you want to use for creating the Protection Group.</li>\n</ul>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"9059dee2-1ad9-4e0b-9dce-7b0d2591ac86","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193180"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:26:19 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n        {\n            \"name\": \"Linux_NFS_Policy1\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for File, Folder Testing\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"8743635867054034:1666901032964:412244\"\n        },\n        {\n            \"name\": \"LinuxFileFolderTestPolicy\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for File, Folder Testing\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"8743635867054034:1666901032964:412243\"\n        },\n        {\n    \"name\": \"Linux_NFS_Policy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for File, Folder Testing\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:412244\"\n}\n      \n    ]\n}"}],"_postman_id":"31d3cf51-d7f1-4d38-a456-7331975f3eac"},{"name":"Get Storage Domains List","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Linux_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"7db92691-a567-4493-bbd6-36fddecbbb7c"}}],"id":"336035ef-1280-4931-b23b-43d0b451f8b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>The Storage Domain ID is required when you are creating the Protection Group for protecting your Generic NAS.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster-vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"2cadfd27-37da-4fc6-8ebe-468c114989bd","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster-vip}}/v2/storage-domains","protocol":"https","host":["{{cluster-vip}}"],"path":["v2","storage-domains"],"query":[{"key":"names","value":"DefaultStorageDomain","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193189"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:26:28 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 24,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 22,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": true,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"336035ef-1280-4931-b23b-43d0b451f8b0"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"name\",","        \"policyId\",","        \"priority\",","        \"storageDomainId\",","        \"description\",","        \"startTime\",","        \"alertPolicy\",","        \"sla\",","        \"qosPolicy\",","        \"abortInBlackouts\",","        \"isActive\",","        \"isPaused\",","        \"environment\",","        \"permissions\",","        \"missingEntities\",","        \"genericNasParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"policyId\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"priority\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"storageDomainId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"startTime\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"hour\",","                \"minute\",","                \"timeZone\"","            ],","            \"properties\": {","                \"hour\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"minute\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"timeZone\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        },","        \"alertPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"backupRunStatus\",","                \"alertTargets\"","            ],","            \"properties\": {","                \"backupRunStatus\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                },","                \"alertTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {}","                }","            }","        },","        \"sla\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"backupRunType\",","                    \"slaMinutes\"","                ],","                \"properties\": {","                    \"backupRunType\": {","                        \"type\": \"string\"","                    },","                    \"slaMinutes\": {","                        \"type\": \"integer\"","                    }","                }","            }","        },","        \"qosPolicy\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"abortInBlackouts\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isActive\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isPaused\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"permissions\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"missingEntities\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"genericNasParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"objects\",","                \"indexingPolicy\",","                \"continueOnError\",","                \"encryptionEnabled\",","                \"directCloudArchive\",","                \"nativeFormat\",","                \"protocol\"","            ],","            \"properties\": {","                \"objects\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                },","                \"indexingPolicy\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"enableIndexing\",","                        \"includePaths\",","                        \"excludePaths\"","                    ],","                    \"properties\": {","                        \"enableIndexing\": {","                            \"type\": \"boolean\",","                            \"default\": false","                        },","                        \"includePaths\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        },","                        \"excludePaths\": {","                            \"type\": \"null\",","                            \"default\": null","                        }","                    }","                },","                \"continueOnError\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"encryptionEnabled\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"directCloudArchive\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"nativeFormat\": {","                    \"type\": \"boolean\",","                    \"default\": false","                },","                \"protocol\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"Linux_NAS_Protection_Job_Id\", jsonData.id);"],"type":"text/javascript","id":"1bf508fb-59a1-4228-baf8-3bbaf2fe56d9"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Linux_NAS_Protection_Job_Name\", \"Linux_NAS_Protection\");"],"type":"text/javascript","id":"d168dcb4-3ed7-4cf5-987b-2f07bd203974"}}],"id":"50da8f48-3df1-46be-8b53-e1160882bae4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"{{Linux_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 15,\n        \"minute\": 25,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"storageDomainId\": {{storageDomainId}},\n    \"name\": \"{{protectionGroupName}}\",\n    \"environment\": \"kGenericNas\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"id\": {{Linux_NFS_Source_Id}}\n            }\n        ],\n        \"directCloudArchive\": false,\n        \"nativeFormat\": true,\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": []\n        },\n        \"protocol\": \"kNfs3\",\n        \"continueOnError\": true,\n        \"encryptionEnabled\": false,\n        \"backupExistingSnapshot\": true,\n        \"excludeObjectIds\": []\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups","description":"<p>Creates a Protection Group for protecting Generic NAS.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the Isilon source to be protected are required in the request body for running this API.</li>\n<li>For protecting Generic NAS of type SMB ensure to enter the <code>protocol</code> value as KNfs, kNfs3 in the request body.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the Isilon source.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"a522bb35-f861-4d65-92d7-c2dfb6712cb0","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"{{Linux_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 15,\n        \"minute\": 25,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"storageDomainId\": {{Linux_Viewbox_Id_DSD}},\n    \"name\": \"{{Linux_NAS_Protection_Job_Name}}\",\n    \"environment\": \"kGenericNas\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"id\": {{Linux_NFS_Source_Id}}\n            }\n        ],\n        \"directCloudArchive\": false,\n        \"nativeFormat\": true,\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": []\n        },\n        \"protocol\": \"kNfs3\",\n        \"continueOnError\": true,\n        \"encryptionEnabled\": false,\n        \"backupExistingSnapshot\": true,\n        \"excludeObjectIds\": []\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193507"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:31:46 GMT"},{"key":"Content-Length","value":"516"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:412249\",\n    \"name\": \"Linux_NAS_Protection\",\n    \"policyId\": \"8743635867054034:1666901032964:412243\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 24,\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 15,\n        \"minute\": 25,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        },\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kGenericNas\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"id\": 25267,\n                \"name\": \"10.14.14.8:/mnt/mountpoint_1\"\n            }\n        ],\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": null\n        },\n        \"continueOnError\": true,\n        \"encryptionEnabled\": false,\n        \"directCloudArchive\": false,\n        \"nativeFormat\": true,\n        \"protocol\": \"kNfs3\"\n    }\n}"}],"_postman_id":"50da8f48-3df1-46be-8b53-e1160882bae4"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(60000);","    pm.response.to.have.status(202);","","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"74e8af82-1d8d-44d0-929d-2979f8480127"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f7ffc167-2829-4604-8369-52197e3120d2"}}],"id":"89bc63a6-b5da-44bb-8eff-64d1a921bb65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting the Generic NAS source.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"5b51f3fd-6b76-48b4-83cb-74abbadf1606","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{Linux_NAS_Protection_Job_Id}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193583"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:33:02 GMT"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"8743635867054034:1666901032964:412249\"\n}"}],"_postman_id":"89bc63a6-b5da-44bb-8eff-64d1a921bb65"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function () { }, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","var resp = pm.response.json();","var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if ((status == \"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","    setTimeout(function () { }, 10000);","    postman.setNextRequest(request.name)","}","else {","    // Sleep for 5 seconds.","    setTimeout(function () { }, 5000);","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"runs\",","        \"totalRuns\"","    ],","    \"properties\": {","        \"runs\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"protectionGroupInstanceId\",","                    \"protectionGroupId\",","                    \"isReplicationRun\",","                    \"protectionGroupName\",","                    \"objects\",","                    \"localBackupInfo\",","                    \"permissions\",","                    \"hasLocalSnapshot\",","                    \"environment\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupInstanceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"isReplicationRun\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objects\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"localBackupInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"runType\",","                            \"startTimeUsecs\",","                            \"status\",","                            \"messages\",","                            \"successfulObjectsCount\",","                            \"failedObjectsCount\",","                            \"cancelledObjectsCount\",","                            \"successfulAppObjectsCount\",","                            \"failedAppObjectsCount\",","                            \"cancelledAppObjectsCount\",","                            \"localSnapshotStats\",","                            \"indexingTaskId\",","                            \"localTaskId\"","                        ],","                        \"properties\": {","                            \"runType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"startTimeUsecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"status\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"messages\": {","                                \"type\": \"null\",","                                \"default\": null","                            },","                            \"successfulObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"successfulAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"localSnapshotStats\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"logicalSizeBytes\"","                                ],","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    }","                                }","                            },","                            \"indexingTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"progressTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"localTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    },","                    \"permissions\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {}","                    },","                    \"hasLocalSnapshot\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"environment\": {","                        \"type\": \"string\",","                    }","                }","            }","        },","        \"totalRuns\": {","            \"type\": \"integer\",","            \"default\": 0","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"5d03f066-4296-4c8e-9bf6-7ecc23f335a8"}}],"id":"59e85ab1-4baa-41f2-b2d6-e498037d52a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>StartFragment</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is <code>Succeeded</code>, you can recover the volumes of the Isilon source.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"47b6a4b7-144b-4957-9a08-fbc245cee913","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193602"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:33:21 GMT"},{"key":"Content-Length","value":"452"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"412249:1675193584348281\",\n            \"protectionGroupInstanceId\": 412252,\n            \"protectionGroupId\": \"8743635867054034:1666901032964:412249\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Linux_NAS_Protection\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"isSlaViolated\": false,\n                \"startTimeUsecs\": 1675193584348281,\n                \"endTimeUsecs\": 1675193594350240,\n                \"status\": \"Succeeded\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 1,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 0,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 6\n                },\n                \"indexingTaskId\": \"indexing_412249_412252\",\n                \"localTaskId\": \"8743635867054034:1666901032964:51865412631\"\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kGenericNas\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"59e85ab1-4baa-41f2-b2d6-e498037d52a8"},{"name":"Get Objects List","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"required\": [","        \"id\",","        \"name\",","        \"sourceId\",","        \"environment\",","        \"objectHash\",","        \"objectType\",","        \"permissions\",","        \"protectionGroupConfigurations\",","        \"lastRun\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\"","        },","        \"name\": {","            \"type\": \"string\"","        },","        \"sourceId\": {","            \"type\": \"integer\"","        },","        \"environment\": {","            \"type\": \"string\"","        },","        \"objectHash\": {","            \"type\": \"string\"","        },","        \"objectType\": {","            \"type\": \"string\"","        },","        \"permissions\": {","            \"type\": \"null\"","        },","        \"protectionGroupConfigurations\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"protectionGroupId\",","                    \"protectionGroupName\"","                ],","                \"properties\": {","                    \"protectionGroupId\": {","                        \"type\": \"string\"","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\"","                    }","                }","            },","            \"uniqueItems\": false","        },","        \"lastRun\": {","            \"type\": \"object\",","            \"required\": [","                \"id\",","                \"name\",","                \"sourceId\",","                \"environment\",","                \"runId\",","                \"runType\",","                \"isSlaViolated\",","                \"protectionGroupId\",","                \"protectionGroupName\",","                \"isReplicationRun\",","                \"isCloudArchivalDirect\",","                \"storageDomainId\",","                \"permissions\",","                \"localSnapshotInfo\",","                \"replicationInfo\",","                \"archivalInfo\",","                \"cloudSpinInfo\",","                \"onLegalHold\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\"","                },","                \"name\": {","                    \"type\": \"string\"","                },","                \"sourceId\": {","                    \"type\": \"integer\"","                },","                \"environment\": {","                    \"type\": \"string\"","                },","                \"runId\": {","                    \"type\": \"string\"","                },","                \"runType\": {","                    \"type\": \"string\"","                },","                \"isSlaViolated\": {","                    \"type\": \"boolean\"","                },","                \"protectionGroupId\": {","                    \"type\": \"string\"","                },","                \"protectionGroupName\": {","                    \"type\": \"string\"","                },","                \"isReplicationRun\": {","                    \"type\": \"boolean\"","                },","                \"isCloudArchivalDirect\": {","                    \"type\": \"boolean\"","                },","                \"storageDomainId\": {","                    \"type\": \"integer\"","                },","                \"permissions\": {","                    \"type\": \"null\"","                },","                \"localSnapshotInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"snapshotInfo\",","                        \"failedAttempts\"","                    ],","                    \"properties\": {","                        \"snapshotInfo\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"snapshotId\",","                                \"status\",","                                \"startTimeUsecs\",","                                \"endTimeUsecs\",","                                \"admittedTimeUsecs\",","                                \"snapshotCreationTimeUsecs\",","                                \"stats\",","                                \"progressTaskId\",","                                \"warnings\",","                                \"isManuallyDeleted\",","                                \"expiryTimeUsecs\",","                                \"totalFileCount\",","                                \"backupFileCount\"","                            ],","                            \"properties\": {","                                \"snapshotId\": {","                                    \"type\": \"string\"","                                },","                                \"status\": {","                                    \"type\": \"string\"","                                },","                                \"startTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"endTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"admittedTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"snapshotCreationTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"stats\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"logicalSizeBytes\",","                                        \"bytesWritten\",","                                        \"bytesRead\"","                                    ],","                                    \"properties\": {","                                        \"logicalSizeBytes\": {","                                            \"type\": \"integer\"","                                        },","                                        \"bytesWritten\": {","                                            \"type\": \"integer\"","                                        },","                                        \"bytesRead\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"progressTaskId\": {","                                    \"type\": \"string\"","                                },","                                \"warnings\": {","                                    \"type\": \"null\"","                                },","                                \"isManuallyDeleted\": {","                                    \"type\": \"boolean\"","                                },","                                \"expiryTimeUsecs\": {","                                    \"type\": \"integer\"","                                },","                                \"totalFileCount\": {","                                    \"type\": \"integer\"","                                },","                                \"backupFileCount\": {","                                    \"type\": \"integer\"","                                }","                            }","                        },","                        \"failedAttempts\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"replicationInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"replicationTargetResults\"","                    ],","                    \"properties\": {","                        \"replicationTargetResults\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"archivalInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"archivalTargetResults\"","                    ],","                    \"properties\": {","                        \"archivalTargetResults\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"cloudSpinInfo\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"cloudSpinTargetResults\"","                    ],","                    \"properties\": {","                        \"cloudSpinTargetResults\": {","                            \"type\": \"null\"","                        }","                    }","                },","                \"onLegalHold\": {","                    \"type\": \"boolean\"","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"3ca78529-d90c-452c-9753-1f5e09bf8144"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f26334fe-d289-4413-a945-96051eecc7c2"}}],"id":"705dbf44-18c7-4194-8a0f-84c2e22db747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/objects/{{sourceId}}","description":"<p>Returns information about the objects that are being protected in the source specified in the API URL</p>\n<p>The object ID from the output is required for performing recovery.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{sourceId}}"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"b3c960fb-3711-40d5-8b6d-99fca5f5f9a0","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster-vip}}/v2/data-protect/objects/{{sourceId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675196151"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 20:15:50 GMT"},{"key":"Content-Length","value":"792"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25267,\n    \"name\": \"{{Nas_hostname}}:/mnt/mountpoint_1\",\n    \"sourceId\": 0,\n    \"environment\": \"kGenericNas\",\n    \"objectHash\": \"kHost_8743635867054034:1666901032964:25265\",\n    \"objectType\": \"kVolume\",\n    \"permissions\": null,\n    \"protectionGroupConfigurations\": [\n        {\n            \"protectionGroupId\": \"8743635867054034:1666901032964:412249\",\n            \"protectionGroupName\": \"Linux_NAS_Protection\"\n        }\n    ],\n    \"lastRun\": {\n        \"id\": 25267,\n        \"name\": \"{{Nas_hostname}}:/mnt/mountpoint_1\",\n        \"sourceId\": 0,\n        \"environment\": \"kGenericNas\",\n        \"runId\": \"412249:1675193584348281\",\n        \"runType\": \"kRegular\",\n        \"isSlaViolated\": false,\n        \"protectionGroupId\": \"8743635867054034:1666901032964:412249\",\n        \"protectionGroupName\": \"Linux_NAS_Protection\",\n        \"isReplicationRun\": false,\n        \"isCloudArchivalDirect\": false,\n        \"storageDomainId\": 24,\n        \"permissions\": null,\n        \"localSnapshotInfo\": {\n            \"snapshotInfo\": {\n                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6ODc0MzYzNTg2NzA1NDAzNCwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2NjkwMTAzMjk2NCwiY19qb2JJZCI6NDEyMjQ5LCJlX2pvYkluc3RhbmNlSWQiOjQxMjI1MiwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY3NTE5MzU4NDM0ODI4MSwiZ19vYmplY3RJZCI6MjUyNjd9\",\n                \"status\": \"Succeeded\",\n                \"startTimeUsecs\": 1675193584348281,\n                \"endTimeUsecs\": 1675193594350240,\n                \"admittedTimeUsecs\": 1675193587349236,\n                \"snapshotCreationTimeUsecs\": 0,\n                \"stats\": {\n                    \"logicalSizeBytes\": 6,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 6\n                },\n                \"progressTaskId\": \"backup_412252_1/task_412253\",\n                \"warnings\": null,\n                \"isManuallyDeleted\": false,\n                \"expiryTimeUsecs\": 1676403195000000,\n                \"totalFileCount\": 2,\n                \"backupFileCount\": 2\n            },\n            \"failedAttempts\": null\n        },\n        \"replicationInfo\": {\n            \"replicationTargetResults\": null\n        },\n        \"archivalInfo\": {\n            \"archivalTargetResults\": null\n        },\n        \"cloudSpinInfo\": {\n            \"cloudSpinTargetResults\": null\n        },\n        \"onLegalHold\": false\n    }\n}"}],"_postman_id":"705dbf44-18c7-4194-8a0f-84c2e22db747"},{"name":"Get Objects Status","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"required\": [","        \"snapshotsSummary\"","    ],","    \"properties\": {","        \"snapshotsSummary\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"snapshotTargetType\",","                    \"snapshotCount\",","                    \"latestSnapshotTimestampUsecs\"","                ],","                \"properties\": {","                    \"snapshotTargetType\": {","                        \"type\": \"string\"","                    },","                    \"snapshotCount\": {","                        \"type\": \"integer\"","                    },","                    \"latestSnapshotTimestampUsecs\": {","                        \"type\": \"integer\"","                    }","                }","            },","            \"uniqueItems\": false","        }","    }","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"cf8df22c-8705-4586-a40b-64a062878ba2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"03fc0db1-6c68-4e23-b982-143287126503"}}],"id":"0c93c4e3-bd90-4fc4-9a69-50e9e1c206ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/objects/{{sourceId}}/stats","description":"<p>Returns the snapshot summary of the objects that are being protected in the source specified in the API URL.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{sourceId}}","stats"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"2dfd8e2b-0613-4198-856d-a985c23acc0d","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster-vip}}/v2/data-protect/objects/{{Linux_NFS_Source_Id}}/stats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675196100"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 20:14:59 GMT"},{"key":"Content-Length","value":"123"}],"cookie":[],"responseTime":null,"body":"{\n    \"snapshotsSummary\": [\n        {\n            \"snapshotTargetType\": \"Local\",\n            \"snapshotCount\": 1,\n            \"latestSnapshotTimestampUsecs\": 1675193584348281\n        }\n    ]\n}"}],"_postman_id":"0c93c4e3-bd90-4fc4-9a69-50e9e1c206ab"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","// pm.test(\"Validating response\", function() {","","//         for (var i = 0; i < jsonData.objects.length; i++) {","//             if (jsonData.objects[i].sourceId === pm.environment.get(\"sourceId\")) {","//                 pm.environment.set(\"Linux_NAS_Restore_File\", jsonData.objects[i].name);","//                 //break;","//             }","//         }","// });","var jsonData = pm.response.json();","","pm.test(\"Validating response\", function () {","    for (var i = 0; i < jsonData.objects.length; i++) {","        if (jsonData.objects[i].id === pm.environment.get(\"Linux_NFS_Source_Id\")) {","            pm.environment.set(\"Linux_NAS_Snapshot\", jsonData.objects[i].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","            //break;","        }","    }","});","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"objects\",","        \"numResults\",","        \"metadata\"","    ],","    \"properties\": {","        \"objects\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"environment\",","                    \"objectType\",","                    \"osType\",","                    \"protectionStats\",","                    \"latestSnapshotsInfo\",","                    \"sourceInfo\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objectType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"osType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionStats\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"genericNasParams\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"supportedNasMountProtocols\"","                        ],","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"type\": \"array\",","                                \"default\": [],","                                \"items\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                }","                            }","                        }","                    },","                    \"latestSnapshotsInfo\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"archivalSnapshotsInfo\",","                                \"indexingStatus\",","                                \"protectionGroupId\",","                                \"protectionGroupName\",","                                \"runInstanceId\",","                                \"storageDomainId\",","                                \"protectionRunId\",","                                \"runType\",","                                \"protectionRunStartTimeUsecs\",","                                \"localSnapshotInfo\"","                            ],","                            \"properties\": {","                                \"indexingStatus\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"protectionGroupId\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"protectionGroupName\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"runInstanceId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"storageDomainId\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"protectionRunId\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"runType\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"protectionRunStartTimeUsecs\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                },","                                \"localSnapshotInfo\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"snapshotId\",","                                        \"logicalSizeBytes\"","                                    ],","                                    \"properties\": {","                                        \"snapshotId\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"logicalSizeBytes\": {","                                            \"type\": \"integer\",","                                            \"default\": 0","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                }","            }","        },","        \"numResults\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"metadata\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"uniqueProtectionGroupIdentifiers\"","            ],","            \"properties\": {","                \"uniqueProtectionGroupIdentifiers\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"protectionGroupId\",","                            \"protectionGroupName\"","                        ],","                        \"properties\": {","                            \"protectionGroupId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionGroupName\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"a8532ed9-f9da-46d6-bb4d-ba836bf0e84f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"861925c1-7845-48de-925d-7fe2b0901180"}}],"id":"8a0f91e4-ce5e-4328-919f-9590002dfb48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/search/protected-objects","description":"<p>Returns information on the latest snapshots of the objects that are being protected on the Cohesity cluster.</p>\n<p>StartFragment</p>\n<p>The snapshot ID (<code>snapshotId</code>) of the object from the response is required for recovering that object.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"74187e1f-c08e-42b3-a0eb-1b3a085205b7","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{cluster-vip}}/v2/data-protect/search/protected-objects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199365"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:09:35 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n  \"objects\": [\n    {\n      \"id\": 22484,\n      \"name\": \"{{objectname}}\",\n      \"sourceId\": 22395,\n      \"environment\": \"kView\",\n      \"objectType\": \"kView\",\n      \"osType\": \"kOther\",\n      \"protectionStats\": null,\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8743635867054034:1666901032964:18416\",\n          \"protectionGroupName\": \"{{protectionGroupName1}}\",\n          \"runInstanceId\": 412673,\n          \"storageDomainId\": 280161309,\n          \"protectionRunId\": \"18416:1675198980346195\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1675198980346195,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 0\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 22395,\n        \"name\": \"{{sourcename}}\",\n        \"environment\": \"kView\",\n        \"objectType\": \"kViewBox\"\n      }\n    },\n    {\n      \"id\": 25267,\n      \"name\": \"{{objectname}}\",\n      \"environment\": \"kGenericNas\",\n      \"objectType\": \"kHost\",\n      \"osType\": \"kOther\",\n      \"protectionStats\": null,\n      \"genericNasParams\": {\n        \"supportedNasMountProtocols\": [\n          \"kNfs3\"\n        ]\n      },\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8743635867054034:1666901032964:412249\",\n          \"protectionGroupName\": \"{{protectionGroupName2}}\",\n          \"runInstanceId\": 412252,\n          \"storageDomainId\": 24,\n          \"protectionRunId\": \"412249:1675193584348281\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1675193584348281,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 6\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 25266,\n        \"name\": \"{{sourcename}}\",\n        \"environment\": \"kGenericNas\",\n        \"objectType\": \"kGroup\"\n      }\n    }\n  ],\n  \"numResults\": 502,\n  \"metadata\": {\n    \"uniqueProtectionGroupIdentifiers\": [\n      {\n        \"protectionGroupId\": \"8743635867054034:1666901032964:18833\",\n        \"protectionGroupName\": \"{{protectionGroupName1}}\"\n      },\n      {\n        \"protectionGroupId\": \"8743635867054034:1666901032964:18962\",\n        \"protectionGroupName\": \"{{protectionGroupName2}}\"\n      }\n    ]\n  }\n}"}],"_postman_id":"8a0f91e4-ce5e-4328-919f-9590002dfb48"},{"name":"Recover File","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","","var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + currentdate.getMonth() + \"\" + currentdate.getDay() + \"_\" +","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = pm.response.json();","pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"96444730-eb5c-4747-83fc-169d5348c654"}},{"listen":"prerequest","script":{"exec":["var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + (\"0\" + (currentdate.getMonth() + 1)).slice(-2) + \"\" + (\"0\" + currentdate.getDate()).slice(-2) + \"_\"","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","pm.environment.set(\"timestamp\", datetime);"],"type":"text/javascript","id":"f37427da-ce23-4a7b-8608-96c51e43b40e"}}],"id":"90b13b01-c700-45f8-9fde-d0b896035650","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recover_{{timestamp}}\",\n    \"snapshotEnvironment\": \"kGenericNas\",\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/1.txt\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kGenericNas\",\n            \"genericNasTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": false,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": true,\n                    \"encryptionEnabled\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/recoveries","description":"<p>Recover the objects from the snapshot ID specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID from which you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>{{timestamp}}</code> variable in the request body will be auto-populated when you run the API.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"73e31ace-107d-45ac-b81a-972db152cc8c","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recover_{{timestamp}}\",\n    \"snapshotEnvironment\": \"kGenericNas\",\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Linux_NAS_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/1.txt\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kGenericNas\",\n            \"genericNasTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": false,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": true,\n                    \"encryptionEnabled\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/recoveries"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199441"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:10:40 GMT"},{"key":"Content-Length","value":"791"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:412830\",\n    \"name\": \"Recover_20230131_131039\",\n    \"startTimeUsecs\": 1675199439525195,\n    \"status\": \"Running\",\n    \"progressTaskId\": \"restore_files_412830\",\n    \"snapshotEnvironment\": \"kGenericNas\",\n    \"recoveryAction\": \"RecoverFiles\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"admin\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"genericNasParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \"8743635867054034:1666901032964:412249\",\n                \"protectionGroupName\": \"{{protectionGroupName2}}\",\n                \"snapshotCreationTimeUsecs\": 1675193584348281,\n                \"snapshotTargetType\": \"Local\",\n                \"storageDomainId\": 24,\n                \"progressTaskId\": \"\",\n                \"messages\": null,\n                \"objectInfo\": {\n                    \"id\": 25267,\n                    \"name\": \"{{objectname}}\",\n                    \"sourceName\": \"NAS Mount Points\",\n                    \"environment\": \"kGenericNas\",\n                    \"objectType\": \"kHost\"\n                }\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/1.txt\",\n                    \"isDirectory\": false,\n                    \"status\": \"NotStarted\",\n                    \"messages\": null\n                }\n            ],\n            \"targetEnvironment\": \"kGenericNas\",\n            \"genericNasTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"recoverToOriginalPath\": true,\n                    \"overwriteExistingFile\": false,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": true,\n                    \"encryptionEnabled\": false\n                }\n            }\n        }\n    }\n}\n"}],"_postman_id":"90b13b01-c700-45f8-9fde-d0b896035650"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"907062f9-fb8d-4e1e-90b2-9b36bc8e3f4a"}}],"id":"3f61178d-10fd-463c-bdf9-274f341086bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster-vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"91b7ff5f-725b-4f4f-99fc-6e4f9b12d2d3","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{Linux_NAS_Protection_Job_Id}}?deleteSnapshots=true","protocol":"https","host":["{{cluster-vip}}"],"path":["v2","data-protect","protection-groups","{{Linux_NAS_Protection_Job_Id}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199767"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:16:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3f61178d-10fd-463c-bdf9-274f341086bd"},{"name":"Unregister Generic NAS Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"fb810c2d-f65d-4bcd-8e1b-6f35669f7c64"}}],"id":"9ef94492-84a4-4862-915a-0b0060611cf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations/{{sourceId}}","description":"<p>Unregisters the Generic NAS source from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"0cf3f746-6f0f-4c35-a310-d5b979798634","name":"Sample Output","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations/{{Linux_NFS_Source_Id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199890"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:18:10 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"9ef94492-84a4-4862-915a-0b0060611cf6"}],"id":"cca2a615-76aa-4465-889a-65aed5aa5473","description":"<p>To protect Generic NAS using Cohesity, perform the following steps using the API operations:</p>\n<ol>\n<li><p>Generate the access token for the user to access the Cohesity cluster resources.</p>\n</li>\n<li><p>Register the Generic NAS as a source with the Cohesity cluster.</p>\n</li>\n<li><p>Verify whether the Generic NAS is available as a source on the Cohesity cluster and get the source ID required for creating the Protection Group.</p>\n</li>\n<li><p>Get the list of Protection Policies available on the Cohesity cluster. You can either use an existing policy or create a new Protection Policy.</p>\n</li>\n<li><p>If you have created a new Protection Policy, verify whether the policy is available on the Cohesity cluster, and get the policy ID required for creating the Protection Group.</p>\n</li>\n<li><p>Get the list of Storage Domains available on the Cohesity cluster. You can either use an existing Storage Domain or create a new Storage Domain. Get the Storage Domain ID required for creating the Protection Group.</p>\n</li>\n<li><p>Create a Protection Group for protecting the Generic NAS.</p>\n</li>\n<li><p>Get the Protection Group ID to run the Protection Group.</p>\n</li>\n<li><p>Run the Protection Group.</p>\n</li>\n<li><p>Get the Protection Group run status.</p>\n</li>\n<li><p>Get the list of objects that are being protected on the Cohesity cluster and obtain the ID of the object (file) you want to recover.</p>\n</li>\n<li><p>Get the snapshot summary of the objects that are being protected.</p>\n</li>\n<li><p>Get the latest snapshot of the object for recovery.</p>\n</li>\n<li><p>Recover the file.</p>\n</li>\n<li><p>Delete the Protection Group.</p>\n</li>\n<li><p>Unregister the Generic NAS from the Cohesity cluster.</p>\n</li>\n</ol>\n","_postman_id":"cca2a615-76aa-4465-889a-65aed5aa5473"},{"name":"NAS (Isilon) NFS Protection Workflow","item":[{"name":"Generate Aceess Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"5c755457-c706-464e-b4c8-bfb0e127bcd4"}}],"id":"1b9f75a4-91f9-4f6b-970b-e2dfa1c850cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\": \"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"e894736e-f8c5-4fed-a0fd-ba60f0c192c4","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\": \"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/accessTokens"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"1b9f75a4-91f9-4f6b-970b-e2dfa1c850cc"},{"name":"Register Isilon Source","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","//Add not null","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"id\",","        \"sourceId\",","        \"sourceInfo\",","        \"environment\",","        \"connections\",","        \"registrationTimeMsecs\",","        \"lastRefreshedTimeMsecs\",","        \"isilonParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The id Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceId\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The sourceId Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceInfo\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The sourceInfo Schema\",","            \"required\": [","                \"id\",","                \"name\",","                \"environment\",","                \"objectType\",","                \"protectionStats\",","                \"isilonParams\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"title\": \"The id Schema\",","                    \"examples\": [","                        1","                    ]","                },","                \"name\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The name Schema\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                },","                \"environment\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The environment Schema\",","                    \"examples\": [","                        \"kIsilon\"","                    ]","                },","                \"objectType\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The objectType Schema\",","                    \"examples\": [","                        \"kCluster\"","                    ]","                },","                \"protectionStats\": {","                    \"type\": \"null\",","                    \"default\": null,","                    \"title\": \"The protectionStats Schema\",","                    \"examples\": [","                        null","                    ]","                },","                \"isilonParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The isilonParams Schema\",","                    \"required\": [","                        \"supportedNasMountProtocols\"","                    ],","                    \"properties\": {","                        \"supportedNasMountProtocols\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The supportedNasMountProtocols Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"supportedNasMountProtocols\": null","                    }]","                }","            },","            \"examples\": [{","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            }]","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The environment Schema\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"connections\": {","            \"type\": \"array\",","            \"default\": [],","            \"title\": \"The connections Schema\",","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"registrationTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The registrationTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"lastRefreshedTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The lastRefreshedTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"isilonParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The isilonParams Schema\",","            \"required\": [","                \"endpoint\",","                \"credentials\",","                \"backUpSMBVolumes\",","                \"smbCredentials\",","                \"filterIpConfig\"","            ],","            \"properties\": {","                \"endpoint\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The endpoint Schema\",","                    \"examples\": [","                        \"10.2.144.30\"","                    ]","                },","                \"credentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The credentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"admin\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"admin\",","                        \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                    }]","                },","                \"backUpSMBVolumes\": {","                    \"type\": \"boolean\",","                    \"default\": false,","                    \"title\": \"The backUpSMBVolumes Schema\",","                    \"examples\": [","                        true","                    ]","                },","                \"smbCredentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The smbCredentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"Administrator\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"Administrator\",","                        \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                    }]","                },","                \"filterIpConfig\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The filterIpConfig Schema\",","                    \"required\": [","                        \"deniedIpAddresses\",","                        \"allowedIpAddresses\"","                    ],","                    \"properties\": {","                        \"deniedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The deniedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        },","                        \"allowedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The allowedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"deniedIpAddresses\": null,","                        \"allowedIpAddresses\": null","                    }]","                }","            },","            \"examples\": [{","                \"endpoint\": \"10.2.144.30\",","                \"credentials\": {","                    \"username\": \"admin\",","                    \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                },","                \"backUpSMBVolumes\": true,","                \"smbCredentials\": {","                    \"username\": \"Administrator\",","                    \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                },","                \"filterIpConfig\": {","                    \"deniedIpAddresses\": null,","                    \"allowedIpAddresses\": null","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": 1,","        \"sourceId\": 1,","        \"sourceInfo\": {","            \"id\": 1,","            \"name\": \"sv4-isilon1\",","            \"environment\": \"kIsilon\",","            \"objectType\": \"kCluster\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": null","            }","        },","        \"environment\": \"kIsilon\",","        \"connections\": [],","        \"registrationTimeMsecs\": 1669110005645,","        \"lastRefreshedTimeMsecs\": 1669110005645,","        \"isilonParams\": {","            \"endpoint\": \"10.2.144.30\",","            \"credentials\": {","                \"username\": \"admin\",","                \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","            },","            \"backUpSMBVolumes\": true,","            \"smbCredentials\": {","                \"username\": \"Administrator\",","                \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","            },","            \"filterIpConfig\": {","                \"deniedIpAddresses\": null,","                \"allowedIpAddresses\": null","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"9a8f0ec2-b92b-4158-8af9-40659786b7e7"}}],"id":"9d2ec57e-6ea4-4191-a5d8-0326b9de3b61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"endpoint\": \"{{isilon_source}}\",\n    \"credentials\": {{isilon_credentials}},\n    \"backUpSMBVolumes\": true,\n    \"smbCredentials\": {{isilon_smb_credentials}}\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations","description":"<p>Registers the Isilon cluster with the Cohesity cluster.</p>\n<p>Ensure to provide the following parameters in the request body of the API</p>\n<ul>\n<li>The management IP address of the Islion source (<code>endpoint</code>) you want to protect.</li>\n<li>The username and password (<code>credentials</code>) of the Isilon source.</li>\n<li>(Optional) The local or Active Directory user credentials (<code>smbCredentials</code>) that allow read access to the Isilon SMB share you want to backup.</li>\n</ul>\n<p>The source ID from the response is required to create the Protection Group for protecting your Isilon source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"4b14b352-1c9a-4a73-afc9-575c398a9336","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"endpoint\": \"10.2.144.30\",\n    \"credentials\": {\"username\": \"admin\",\"password\": \"fr8shst8rt\"},\n    \"backUpSMBVolumes\": true,\n    \"smbCredentials\": {\"username\": \"Administrator\",\"password\": \"Fr8shst8rt\"}\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678772729"},{"key":"Date","value":"Tue, 14 Mar 2023 05:45:43 GMT"},{"key":"Content-Length","value":"276"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5207,\n    \"sourceId\": 5207,\n    \"sourceInfo\": {\n        \"id\": 5207,\n        \"name\": \"{{Isilon_source_name}}\",\n        \"environment\": \"kIsilon\",\n        \"objectType\": \"kCluster\",\n        \"protectionStats\": null,\n        \"isilonParams\": {\n            \"supportedNasMountProtocols\": null\n        }\n    },\n    \"environment\": \"kIsilon\",\n    \"isilonParams\": {\n        \"endpoint\": \"{{Isilon_IP}}\",\n        \"credentials\": {\n            \"username\": \"admin\",\n            \"password\": null\n        },\n        \"backUpSMBVolumes\": true,\n        \"smbCredentials\": {\n            \"username\": \"Administrator\",\n            \"password\": null\n        },\n        \"filterIpConfig\": {\n            \"deniedIpAddresses\": null,\n            \"allowedIpAddresses\": null\n        }\n    }\n}"}],"_postman_id":"9d2ec57e-6ea4-4191-a5d8-0326b9de3b61"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetching the Isilon Source id\", function () {","    var jsonData = pm.response.json();","    var isilon_source = pm.environment.get(\"isilon_source\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kIsilon\") {","            if (jsonData.registrations[i].sourceInfo.name === \"sv4-isilon1\") {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","            }","        }","    }","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"registrations\"","    ],","    \"properties\": {","        \"registrations\": {","            \"type\": \"array\",","            \"default\": [],","            \"title\": \"The registrations Schema\",","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"title\": \"A Schema\",","                \"required\": [","                    \"id\",","                    \"sourceId\",","                    \"sourceInfo\",","                    \"environment\",","                    \"connections\",","                    \"registrationTimeMsecs\",","                    \"lastRefreshedTimeMsecs\",","                    \"isilonParams\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The id Schema\",","                        \"examples\": [","                            1","                        ]","                    },","                    \"sourceId\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The sourceId Schema\",","                        \"examples\": [","                            1","                        ]","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"title\": \"The sourceInfo Schema\",","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\",","                            \"protectionStats\",","                            \"isilonParams\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"title\": \"The id Schema\",","                                \"examples\": [","                                    1","                                ]","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The name Schema\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The environment Schema\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The objectType Schema\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            },","                            \"protectionStats\": {","                                \"type\": \"null\",","                                \"default\": null,","                                \"title\": \"The protectionStats Schema\",","                                \"examples\": [","                                    null","                                ]","                            },","                            \"isilonParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The isilonParams Schema\",","                                \"required\": [","                                    \"supportedNasMountProtocols\"","                                ],","                                \"properties\": {","                                    \"supportedNasMountProtocols\": {","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"title\": \"The supportedNasMountProtocols Schema\",","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"supportedNasMountProtocols\": null","                                }]","                            }","                        },","                        \"examples\": [{","                            \"id\": 1,","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\",","                            \"protectionStats\": null,","                            \"isilonParams\": {","                                \"supportedNasMountProtocols\": null","                            }","                        }]","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"title\": \"The environment Schema\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"connections\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"title\": \"The connections Schema\",","                        \"items\": {},","                        \"examples\": [","                            []","                        ]","                    },","                    \"registrationTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The registrationTimeMsecs Schema\",","                        \"examples\": [","                            1669110150664","                        ]","                    },","                    \"lastRefreshedTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The lastRefreshedTimeMsecs Schema\",","                        \"examples\": [","                            1669110150664","                        ]","                    },","                    \"isilonParams\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"title\": \"The isilonParams Schema\",","                        \"required\": [","                            \"endpoint\",","                            \"credentials\",","                            \"backUpSMBVolumes\",","                            \"smbCredentials\",","                            \"filterIpConfig\"","                        ],","                        \"properties\": {","                            \"endpoint\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The endpoint Schema\",","                                \"examples\": [","                                    \"10.2.144.30\"","                                ]","                            },","                            \"credentials\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The credentials Schema\",","                                \"required\": [","                                    \"username\",","                                    \"password\"","                                ],","                                \"properties\": {","                                    \"username\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The username Schema\",","                                        \"examples\": [","                                            \"admin\"","                                        ]","                                    },","                                    \"password\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The password Schema\",","                                        \"examples\": [","                                            \"\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"username\": \"admin\",","                                    \"password\": \"\"","                                }]","                            },","                            \"backUpSMBVolumes\": {","                                \"type\": \"boolean\",","                                \"default\": false,","                                \"title\": \"The backUpSMBVolumes Schema\",","                                \"examples\": [","                                    true","                                ]","                            },","                            \"smbCredentials\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The smbCredentials Schema\",","                                \"required\": [","                                    \"username\",","                                    \"password\"","                                ],","                                \"properties\": {","                                    \"username\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The username Schema\",","                                        \"examples\": [","                                            \"Administrator\"","                                        ]","                                    },","                                    \"password\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The password Schema\",","                                        \"examples\": [","                                            \"\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"username\": \"Administrator\",","                                    \"password\": \"\"","                                }]","                            },","                            \"filterIpConfig\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The filterIpConfig Schema\",","                                \"required\": [","                                    \"deniedIpAddresses\",","                                    \"allowedIpAddresses\"","                                ],","                                \"properties\": {","                                    \"deniedIpAddresses\": {","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"title\": \"The deniedIpAddresses Schema\",","                                        \"examples\": [","                                            null","                                        ]","                                    },","                                    \"allowedIpAddresses\": {","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"title\": \"The allowedIpAddresses Schema\",","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"deniedIpAddresses\": null,","                                    \"allowedIpAddresses\": null","                                }]","                            }","                        },","                        \"examples\": [{","                            \"endpoint\": \"10.2.144.30\",","                            \"credentials\": {","                                \"username\": \"admin\",","                                \"password\": \"\"","                            },","                            \"backUpSMBVolumes\": true,","                            \"smbCredentials\": {","                                \"username\": \"Administrator\",","                                \"password\": \"\"","                            },","                            \"filterIpConfig\": {","                                \"deniedIpAddresses\": null,","                                \"allowedIpAddresses\": null","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 1,","                    \"sourceId\": 1,","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    },","                    \"environment\": \"kIsilon\",","                    \"connections\": [],","                    \"registrationTimeMsecs\": 1669110150664,","                    \"lastRefreshedTimeMsecs\": 1669110150664,","                    \"isilonParams\": {","                        \"endpoint\": \"10.2.144.30\",","                        \"credentials\": {","                            \"username\": \"admin\",","                            \"password\": \"\"","                        },","                        \"backUpSMBVolumes\": true,","                        \"smbCredentials\": {","                            \"username\": \"Administrator\",","                            \"password\": \"\"","                        },","                        \"filterIpConfig\": {","                            \"deniedIpAddresses\": null,","                            \"allowedIpAddresses\": null","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 1,","                    \"sourceId\": 1,","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    },","                    \"environment\": \"kIsilon\",","                    \"connections\": [],","                    \"registrationTimeMsecs\": 1669110150664,","                    \"lastRefreshedTimeMsecs\": 1669110150664,","                    \"isilonParams\": {","                        \"endpoint\": \"10.2.144.30\",","                        \"credentials\": {","                            \"username\": \"admin\",","                            \"password\": \"\"","                        },","                        \"backUpSMBVolumes\": true,","                        \"smbCredentials\": {","                            \"username\": \"Administrator\",","                            \"password\": \"\"","                        },","                        \"filterIpConfig\": {","                            \"deniedIpAddresses\": null,","                            \"allowedIpAddresses\": null","                        }","                    }","                }]","            ]","        }","    },","    \"examples\": [{","        \"registrations\": [{","            \"id\": 1,","            \"sourceId\": 1,","            \"sourceInfo\": {","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            },","            \"environment\": \"kIsilon\",","            \"connections\": [],","            \"registrationTimeMsecs\": 1669110150664,","            \"lastRefreshedTimeMsecs\": 1669110150664,","            \"isilonParams\": {","                \"endpoint\": \"10.2.144.30\",","                \"credentials\": {","                    \"username\": \"admin\",","                    \"password\": \"\"","                },","                \"backUpSMBVolumes\": true,","                \"smbCredentials\": {","                    \"username\": \"Administrator\",","                    \"password\": \"\"","                },","                \"filterIpConfig\": {","                    \"deniedIpAddresses\": null,","                    \"allowedIpAddresses\": null","                }","            }","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"c11a6338-a1e0-4451-8fa4-b96168caa305"}}],"id":"bfaacaf5-d755-41b9-a804-2c857707f061","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the Isilon cluster is registered with the Cohesity cluster</li>\n<li>Obtain the Id (<code>sourceId</code>) of the Isilon cluster.<br />  The <code>sourceId</code> is required for creating a Protection Group.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"f4448677-8632-416e-8be9-7af37032fcd9","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678773033"},{"key":"Date","value":"Tue, 14 Mar 2023 05:50:36 GMT"},{"key":"Content-Length","value":"772"}],"cookie":[],"responseTime":null,"body":"{\n    \"registrations\": [\n                    {\n            \"id\": 3795,\n            \"sourceId\": 3795,\n            \"sourceInfo\": {\n                \"id\": 3795,\n                \"name\": \"{{source_name}}\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kWindows\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\"\n        },\n                    {\n            \"id\": 4747,\n            \"sourceId\": 4747,\n            \"sourceInfo\": {\n                \"id\": 4747,\n               \"name\": \"{{source_name}}\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kWindows\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\"\n        },\n            {\n            \"id\": 713,\n            \"sourceId\": 713,\n            \"sourceInfo\": {\n                \"id\": 713,\n            \"name\": \"{{source_name}}\",\n\n\n                \"environment\": \"kAWS\",\n                \"objectType\": \"kIAMUser\",\n                \"protectionType\": \"kAgent\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\"\n        },\n              {\n            \"id\": 5207,\n            \"sourceId\": 5207,\n            \"sourceInfo\": {\n                \"id\": 5207,\n                \"name\": \"{{source_name}}\",\n\n\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\",\n                \"protectionStats\": null,\n                \"isilonParams\": {\n                    \"supportedNasMountProtocols\": null\n                }\n            },\n            \"environment\": \"kIsilon\",\n            \"isilonParams\": {\n                \"endpoint\": \"{{source_IP}}\",\n                \"credentials\": {\n                    \"username\": \"admin\",\n                    \"password\": null\n                },\n                \"backUpSMBVolumes\": true,\n                \"smbCredentials\": {\n                    \"username\": \"Administrator\",\n                    \"password\": null\n                },\n                \"filterIpConfig\": {\n                    \"deniedIpAddresses\": null,\n                    \"allowedIpAddresses\": null\n                }\n            }\n        }\n    ]\n}\n"}],"_postman_id":"bfaacaf5-d755-41b9-a804-2c857707f061"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"NASAPITest\"","            ]","        },","        \"backupPolicy\": {","            \"title\": \"The backupPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"regular\": {","                    \"title\": \"The regular Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"incremental\": {","                            \"title\": \"The incremental Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"schedule\": {","                                    \"title\": \"The schedule Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"unit\": {","                                            \"title\": \"The unit Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"default\": \"\",","                                            \"examples\": [","                                                \"Days\"","                                            ]","                                        },","                                        \"daySchedule\": {","                                            \"title\": \"The daySchedule Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"additionalProperties\": true,","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"title\": \"The frequency Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"integer\",","                                                    \"default\": 0,","                                                    \"examples\": [","                                                        1","                                                    ]","                                                }","                                            },","                                            \"examples\": [{","                                                \"frequency\": 1","                                            }]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"daySchedule\": {","                                            \"frequency\": 1","                                        }","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"daySchedule\": {","                                        \"frequency\": 1","                                    }","                                }","                            }]","                        },","                        \"fullBackups\": {","                            \"title\": \"The fullBackups Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"null\",","                            \"default\": null,","                            \"examples\": [","                                null","                            ]","                        },","                        \"retention\": {","                            \"title\": \"The retention Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"unit\": {","                                    \"title\": \"The unit Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"Weeks\"","                                    ]","                                },","                                \"duration\": {","                                    \"title\": \"The duration Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        2","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"unit\": \"Weeks\",","                                \"duration\": 2","                            }]","                        }","                    },","                    \"examples\": [{","                        \"incremental\": {","                            \"schedule\": {","                                \"unit\": \"Days\",","                                \"daySchedule\": {","                                    \"frequency\": 1","                                }","                            }","                        },","                        \"fullBackups\": null,","                        \"retention\": {","                            \"unit\": \"Weeks\",","                            \"duration\": 2","                        }","                    }]","                }","            },","            \"examples\": [{","                \"regular\": {","                    \"incremental\": {","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"daySchedule\": {","                                \"frequency\": 1","                            }","                        }","                    },","                    \"fullBackups\": null,","                    \"retention\": {","                        \"unit\": \"Weeks\",","                        \"duration\": 2","                    }","                }","            }]","        },","        \"description\": {","            \"title\": \"The description Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Policy for newman automation\"","            ]","        },","        \"blackoutWindow\": {","            \"title\": \"The blackoutWindow Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"extendedRetention\": {","            \"title\": \"The extendedRetention Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"cascadedTargetsConfig\": {","            \"title\": \"The cascadedTargetsConfig Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retryOptions\": {","            \"title\": \"The retryOptions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"retries\": {","                    \"title\": \"The retries Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        3","                    ]","                },","                \"retryIntervalMins\": {","                    \"title\": \"The retryIntervalMins Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        5","                    ]","                }","            },","            \"examples\": [{","                \"retries\": 3,","                \"retryIntervalMins\": 5","            }]","        },","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:720\"","            ]","        }","    },","    \"examples\": [{","        \"name\": \"NASAPITest\",","        \"backupPolicy\": {","            \"regular\": {","                \"incremental\": {","                    \"schedule\": {","                        \"unit\": \"Days\",","                        \"daySchedule\": {","                            \"frequency\": 1","                        }","                    }","                },","                \"fullBackups\": null,","                \"retention\": {","                    \"unit\": \"Weeks\",","                    \"duration\": 2","                }","            }","        },","        \"description\": \"Policy for newman automation\",","        \"blackoutWindow\": null,","        \"extendedRetention\": null,","        \"cascadedTargetsConfig\": null,","        \"retryOptions\": {","            \"retries\": 3,","            \"retryIntervalMins\": 5","        },","        \"id\": \"6706421133980411:1668680031418:720\"","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"4dd73aa7-5ee1-46f5-8fa3-ea620511d096"}}],"id":"e180e097-fbe1-4c4a-aba9-dc136e65f7b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"NASIsilon\",\n  \"description\": \"Policy for Isilon\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the response is required to create the Protection Group for protecting the Isilon source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"fcdaebf2-d8e5-4dcc-9f4f-5e45c15afe17","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"NASIsilon\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678772990"},{"key":"Date","value":"Tue, 14 Mar 2023 05:49:50 GMT"},{"key":"Content-Length","value":"260"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"NASIsilon\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for Isilon\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"1867183226494767:1669693131113:82017\"\n}"}],"_postman_id":"e180e097-fbe1-4c4a-aba9-dc136e65f7b5"},{"name":"Verify Protection Policy Creation","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains V2\");","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"policies\": {","            \"title\": \"The policies Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"Silver\"","                        ]","                    },","                    \"backupPolicy\": {","                        \"title\": \"The backupPolicy Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"regular\": {","                                \"title\": \"The regular Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"incremental\": {","                                        \"title\": \"The incremental Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"additionalProperties\": true,","                                        \"properties\": {","                                            \"schedule\": {","                                                \"title\": \"The schedule Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"additionalProperties\": true,","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"title\": \"The unit Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"string\",","                                                        \"default\": \"\",","                                                        \"examples\": [","                                                            \"Hours\"","                                                        ]","                                                    },","                                                    \"hourSchedule\": {","                                                        \"title\": \"The hourSchedule Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"object\",","                                                        \"default\": {},","                                                        \"additionalProperties\": true,","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"title\": \"The frequency Schema\",","                                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                                \"type\": \"integer\",","                                                                \"default\": 0,","                                                                \"examples\": [","                                                                    12","                                                                ]","                                                            }","                                                        },","                                                        \"examples\": [{","                                                            \"frequency\": 12","                                                        }]","                                                    }","                                                },","                                                \"examples\": [{","                                                    \"unit\": \"Hours\",","                                                    \"hourSchedule\": {","                                                        \"frequency\": 12","                                                    }","                                                }]","                                            }","                                        },","                                        \"examples\": [{","                                            \"schedule\": {","                                                \"unit\": \"Hours\",","                                                \"hourSchedule\": {","                                                    \"frequency\": 12","                                                }","                                            }","                                        }]","                                    },","                                    \"fullBackups\": {","                                        \"title\": \"The fullBackups Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    },","                                    \"retention\": {","                                        \"title\": \"The retention Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"additionalProperties\": true,","                                        \"properties\": {","                                            \"unit\": {","                                                \"title\": \"The unit Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"string\",","                                                \"default\": \"\",","                                                \"examples\": [","                                                    \"Weeks\"","                                                ]","                                            },","                                            \"duration\": {","                                                \"title\": \"The duration Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"integer\",","                                                \"default\": 0,","                                                \"examples\": [","                                                    2","                                                ]","                                            },","                                            \"dataLockConfig\": {","                                                \"title\": \"The dataLockConfig Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"additionalProperties\": true,","                                                \"properties\": {","                                                    \"mode\": {","                                                        \"title\": \"The mode Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"string\",","                                                        \"default\": \"\",","                                                        \"examples\": [","                                                            \"Compliance\"","                                                        ]","                                                    },","                                                    \"unit\": {","                                                        \"title\": \"The unit Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"string\",","                                                        \"default\": \"\",","                                                        \"examples\": [","                                                            \"Weeks\"","                                                        ]","                                                    },","                                                    \"duration\": {","                                                        \"title\": \"The duration Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"integer\",","                                                        \"default\": 0,","                                                        \"examples\": [","                                                            2","                                                        ]","                                                    },","                                                    \"enableWormOnExternalTarget\": {","                                                        \"title\": \"The enableWormOnExternalTarget Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"boolean\",","                                                        \"default\": false,","                                                        \"examples\": [","                                                            false","                                                        ]","                                                    }","                                                },","                                                \"examples\": [{","                                                    \"mode\": \"Compliance\",","                                                    \"unit\": \"Weeks\",","                                                    \"duration\": 2,","                                                    \"enableWormOnExternalTarget\": false","                                                }]","                                            }","                                        },","                                        \"examples\": [{","                                            \"unit\": \"Weeks\",","                                            \"duration\": 2,","                                            \"dataLockConfig\": {","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Weeks\",","                                                \"duration\": 2,","                                                \"enableWormOnExternalTarget\": false","                                            }","                                        }]","                                    }","                                },","                                \"examples\": [{","                                    \"incremental\": {","                                        \"schedule\": {","                                            \"unit\": \"Hours\",","                                            \"hourSchedule\": {","                                                \"frequency\": 12","                                            }","                                        }","                                    },","                                    \"fullBackups\": null,","                                    \"retention\": {","                                        \"unit\": \"Weeks\",","                                        \"duration\": 2,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Weeks\",","                                            \"duration\": 2,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    }","                                }]","                            }","                        },","                        \"examples\": [{","                            \"regular\": {","                                \"incremental\": {","                                    \"schedule\": {","                                        \"unit\": \"Hours\",","                                        \"hourSchedule\": {","                                            \"frequency\": 12","                                        }","                                    }","                                },","                                \"fullBackups\": null,","                                \"retention\": {","                                    \"unit\": \"Weeks\",","                                    \"duration\": 2,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Weeks\",","                                        \"duration\": 2,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                }","                            }","                        }]","                    },","                    \"blackoutWindow\": {","                        \"title\": \"The blackoutWindow Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"extendedRetention\": {","                        \"title\": \"The extendedRetention Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"schedule\": {","                                    \"title\": \"The schedule Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"unit\": {","                                            \"title\": \"The unit Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"examples\": [","                                                \"Days\",","                                                \"Weeks\",","                                                \"Months\"","                                            ]","                                        },","                                        \"frequency\": {","                                            \"title\": \"The frequency Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"examples\": [","                                                1","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"frequency\": 1","                                    },","                                    {","                                        \"unit\": \"Weeks\",","                                        \"frequency\": 1","                                    },","                                    {","                                        \"unit\": \"Months\",","                                        \"frequency\": 1","                                    }]","                                },","                                \"retention\": {","                                    \"title\": \"The retention Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"unit\": {","                                            \"title\": \"The unit Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"examples\": [","                                                \"Days\",","                                                \"Years\"","                                            ]","                                        },","                                        \"duration\": {","                                            \"title\": \"The duration Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"examples\": [","                                                90,","                                                1,","                                                2","                                            ]","                                        },","                                        \"dataLockConfig\": {","                                            \"title\": \"The dataLockConfig Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"object\",","                                            \"additionalProperties\": true,","                                            \"properties\": {","                                                \"mode\": {","                                                    \"title\": \"The mode Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"string\",","                                                    \"examples\": [","                                                        \"Compliance\"","                                                    ]","                                                },","                                                \"unit\": {","                                                    \"title\": \"The unit Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"string\",","                                                    \"examples\": [","                                                        \"Days\",","                                                        \"Years\"","                                                    ]","                                                },","                                                \"duration\": {","                                                    \"title\": \"The duration Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"integer\",","                                                    \"examples\": [","                                                        90,","                                                        1,","                                                        2","                                                    ]","                                                },","                                                \"enableWormOnExternalTarget\": {","                                                    \"title\": \"The enableWormOnExternalTarget Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"boolean\",","                                                    \"examples\": [","                                                        false","                                                    ]","                                                }","                                            },","                                            \"examples\": [{","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Days\",","                                                \"duration\": 90,","                                                \"enableWormOnExternalTarget\": false","                                            },","                                            {","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Years\",","                                                \"duration\": 1,","                                                \"enableWormOnExternalTarget\": false","                                            },","                                            {","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Years\",","                                                \"duration\": 2,","                                                \"enableWormOnExternalTarget\": false","                                            }]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"duration\": 90,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Days\",","                                            \"duration\": 90,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    },","                                    {","                                        \"unit\": \"Years\",","                                        \"duration\": 1,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Years\",","                                            \"duration\": 1,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    },","                                    {","                                        \"unit\": \"Years\",","                                        \"duration\": 2,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Years\",","                                            \"duration\": 2,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    }]","                                },","                                \"configId\": {","                                    \"title\": \"The configId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"examples\": [","                                        \"537417FC-842E-4913-8DD6-C2BE2B273E12\",","                                        \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\",","                                        \"C1136646-97B8-4836-9002-402C0852BB85\"","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Days\",","                                    \"duration\": 90,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Days\",","                                        \"duration\": 90,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Weeks\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 1,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 1,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Months\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 2,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 2,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                            }]","                        },","                        \"examples\": [","                            [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Days\",","                                    \"duration\": 90,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Days\",","                                        \"duration\": 90,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Weeks\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 1,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 1,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Months\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 2,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 2,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                            }]","                        ]","                    },","                    \"cascadedTargetsConfig\": {","                        \"title\": \"The cascadedTargetsConfig Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"6706421133980411:1668680031418:2\"","                        ]","                    }","                },","                \"examples\": [{","                    \"name\": \"Silver\",","                    \"backupPolicy\": {","                        \"regular\": {","                            \"incremental\": {","                                \"schedule\": {","                                    \"unit\": \"Hours\",","                                    \"hourSchedule\": {","                                        \"frequency\": 12","                                    }","                                }","                            },","                            \"fullBackups\": null,","                            \"retention\": {","                                \"unit\": \"Weeks\",","                                \"duration\": 2,","                                \"dataLockConfig\": {","                                    \"mode\": \"Compliance\",","                                    \"unit\": \"Weeks\",","                                    \"duration\": 2,","                                    \"enableWormOnExternalTarget\": false","                                }","                            }","                        }","                    },","                    \"blackoutWindow\": null,","                    \"extendedRetention\": [{","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Days\",","                            \"duration\": 90,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Days\",","                                \"duration\": 90,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Weeks\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 1,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 1,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Months\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 2,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 2,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                    }],","                    \"cascadedTargetsConfig\": null,","                    \"id\": \"6706421133980411:1668680031418:2\"","                }]","            },","            \"examples\": [","                [{","                    \"name\": \"Silver\",","                    \"backupPolicy\": {","                        \"regular\": {","                            \"incremental\": {","                                \"schedule\": {","                                    \"unit\": \"Hours\",","                                    \"hourSchedule\": {","                                        \"frequency\": 12","                                    }","                                }","                            },","                            \"fullBackups\": null,","                            \"retention\": {","                                \"unit\": \"Weeks\",","                                \"duration\": 2,","                                \"dataLockConfig\": {","                                    \"mode\": \"Compliance\",","                                    \"unit\": \"Weeks\",","                                    \"duration\": 2,","                                    \"enableWormOnExternalTarget\": false","                                }","                            }","                        }","                    },","                    \"blackoutWindow\": null,","                    \"extendedRetention\": [{","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Days\",","                            \"duration\": 90,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Days\",","                                \"duration\": 90,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Weeks\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 1,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 1,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Months\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 2,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 2,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                    }],","                    \"cascadedTargetsConfig\": null,","                    \"id\": \"6706421133980411:1668680031418:2\"","                }]","            ]","        }","    },","    \"examples\": [{","        \"policies\": [{","            \"name\": \"Silver\",","            \"backupPolicy\": {","                \"regular\": {","                    \"incremental\": {","                        \"schedule\": {","                            \"unit\": \"Hours\",","                            \"hourSchedule\": {","                                \"frequency\": 12","                            }","                        }","                    },","                    \"fullBackups\": null,","                    \"retention\": {","                        \"unit\": \"Weeks\",","                        \"duration\": 2,","                        \"dataLockConfig\": {","                            \"mode\": \"Compliance\",","                            \"unit\": \"Weeks\",","                            \"duration\": 2,","                            \"enableWormOnExternalTarget\": false","                        }","                    }","                }","            },","            \"blackoutWindow\": null,","            \"extendedRetention\": [","                {","                \"schedule\": {","                    \"unit\": \"Days\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Days\",","                    \"duration\": 90,","                    \"dataLockConfig\": {","                        \"mode\": \"Compliance\",","                        \"unit\": \"Days\",","                        \"duration\": 90,","                        \"enableWormOnExternalTarget\": false","                    }","                },","                \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","            },","            {","                \"schedule\": {","                    \"unit\": \"Weeks\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Years\",","                    \"duration\": 1,","                    \"dataLockConfig\": {","                        \"mode\": \"Compliance\",","                        \"unit\": \"Years\",","                        \"duration\": 1,","                        \"enableWormOnExternalTarget\": false","                    }","                },","                \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","            },","            {","                \"schedule\": {","                    \"unit\": \"Months\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Years\",","                    \"duration\": 2,","                    \"dataLockConfig\": {","                        \"mode\": \"Compliance\",","                        \"unit\": \"Years\",","                        \"duration\": 2,","                        \"enableWormOnExternalTarget\": false","                    }","                },","                \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","            }","            ],","            \"cascadedTargetsConfig\": null,","            \"id\": \"6706421133980411:1668680031418:2\"","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"f93ede1b-9ba3-4adf-adc5-c1d23cffa993"}}],"id":"43c7e2ad-df79-4e6c-a3d1-be25c4f775d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Returns the list of policies available on the Cohesity cluster along with their policy IDs and information on the parameters configured for the Protection Policy.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the policy you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Protection Policy you want to use for creating the Protection Group.</li>\n</ul>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"07976b96-96f2-4d0d-a1ad-ebea0a7ad8eb","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678773570"},{"key":"Date","value":"Tue, 14 Mar 2023 05:59:30 GMT"},{"key":"Content-Length","value":"539"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n        {\n            \"name\": \"NASIsilon\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for Isilon\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"1867183226494767:1669693131113:82017\"\n        },\n                   {\n            \"name\": \"Diamond\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Minutes\",\n                            \"minuteSchedule\": {\n                                \"frequency\": 10\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"1867183226494767:1669693131113:14307\"\n        }\n    ]\n}"}],"_postman_id":"43c7e2ad-df79-4e6c-a3d1-be25c4f775d0"},{"name":"Get Storage Domain List","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i=0; i< jsonData.storageDomains.length; i++){","","    console.log(jsonData.storageDomains[i]);","if (jsonData.storageDomains[i].name=== \"DefaultStorageDomain\") {","    pm.environment.set(\"viewBoxId\", jsonData.storageDomains[i].id);","}","}","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"storageDomains\": {","            \"title\": \"The storageDomains Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            5","                        ]","                    },","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"DefaultStorageDomain\"","                        ]","                    },","                    \"clusterPartitionId\": {","                        \"title\": \"The clusterPartitionId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            3","                        ]","                    },","                    \"clusterPartitionName\": {","                        \"title\": \"The clusterPartitionName Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"DefaultPartition\"","                        ]","                    },","                    \"subnetWhitelist\": {","                        \"title\": \"The subnetWhitelist Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"nisDomainNames\": {","                        \"title\": \"The nisDomainNames Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"tenantIds\": {","                        \"title\": \"The tenantIds Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"schemas\": {","                        \"title\": \"The schemas Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"fileCountBySize\": {","                        \"title\": \"The fileCountBySize Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"storagePolicy\": {","                        \"title\": \"The storagePolicy Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"title\": \"The deduplicationCompressionDelaySecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"numDiskFailuresTolerated\": {","                                \"title\": \"The numDiskFailuresTolerated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"numNodeFailuresTolerated\": {","                                \"title\": \"The numNodeFailuresTolerated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"compressionParams\": {","                                \"title\": \"The compressionParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"type\": {","                                        \"title\": \"The type Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"Low\"","                                        ]","                                    },","                                    \"inlineEnabled\": {","                                        \"title\": \"The inlineEnabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"type\": \"Low\",","                                    \"inlineEnabled\": true","                                }]","                            },","                            \"deduplicationParams\": {","                                \"title\": \"The deduplicationParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"enabled\": {","                                        \"title\": \"The enabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    },","                                    \"inlineEnabled\": {","                                        \"title\": \"The inlineEnabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"enabled\": true,","                                    \"inlineEnabled\": true","                                }]","                            }","                        },","                        \"examples\": [{","                            \"deduplicationCompressionDelaySecs\": 0,","                            \"numDiskFailuresTolerated\": 0,","                            \"numNodeFailuresTolerated\": 0,","                            \"compressionParams\": {","                                \"type\": \"Low\",","                                \"inlineEnabled\": true","                            },","                            \"deduplicationParams\": {","                                \"enabled\": true,","                                \"inlineEnabled\": true","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 5,","                    \"name\": \"DefaultStorageDomain\",","                    \"clusterPartitionId\": 3,","                    \"clusterPartitionName\": \"DefaultPartition\",","                    \"subnetWhitelist\": null,","                    \"nisDomainNames\": null,","                    \"tenantIds\": null,","                    \"schemas\": null,","                    \"fileCountBySize\": null,","                    \"storagePolicy\": {","                        \"deduplicationCompressionDelaySecs\": 0,","                        \"numDiskFailuresTolerated\": 0,","                        \"numNodeFailuresTolerated\": 0,","                        \"compressionParams\": {","                            \"type\": \"Low\",","                            \"inlineEnabled\": true","                        },","                        \"deduplicationParams\": {","                            \"enabled\": true,","                            \"inlineEnabled\": true","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 5,","                    \"name\": \"DefaultStorageDomain\",","                    \"clusterPartitionId\": 3,","                    \"clusterPartitionName\": \"DefaultPartition\",","                    \"subnetWhitelist\": null,","                    \"nisDomainNames\": null,","                    \"tenantIds\": null,","                    \"schemas\": null,","                    \"fileCountBySize\": null,","                    \"storagePolicy\": {","                        \"deduplicationCompressionDelaySecs\": 0,","                        \"numDiskFailuresTolerated\": 0,","                        \"numNodeFailuresTolerated\": 0,","                        \"compressionParams\": {","                            \"type\": \"Low\",","                            \"inlineEnabled\": true","                        },","                        \"deduplicationParams\": {","                            \"enabled\": true,","                            \"inlineEnabled\": true","                        }","                    }","                }]","            ]","        }","    },","    \"examples\": [{","        \"storageDomains\": [{","            \"id\": 5,","            \"name\": \"DefaultStorageDomain\",","            \"clusterPartitionId\": 3,","            \"clusterPartitionName\": \"DefaultPartition\",","            \"subnetWhitelist\": null,","            \"nisDomainNames\": null,","            \"tenantIds\": null,","            \"schemas\": null,","            \"fileCountBySize\": null,","            \"storagePolicy\": {","                \"deduplicationCompressionDelaySecs\": 0,","                \"numDiskFailuresTolerated\": 0,","                \"numNodeFailuresTolerated\": 0,","                \"compressionParams\": {","                    \"type\": \"Low\",","                    \"inlineEnabled\": true","                },","                \"deduplicationParams\": {","                    \"enabled\": true,","                    \"inlineEnabled\": true","                }","            }","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"9ba6dbd3-f3ef-4c79-aaa9-06b25d33315b"}}],"id":"1afdaab8-4e62-4df6-8929-7cad4112cbcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>The Storage Domain ID is required when you are creating the Protection Group for protecting your Isilon cluster.</p>\n","urlObject":{"protocol":"https","path":["storage-domains"],"host":["{{cluster_vip}}v2"],"query":[],"variable":[]}},"response":[{"id":"809581a8-4a5e-4a19-b551-eeab8666ed5f","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678773698"},{"key":"Date","value":"Tue, 14 Mar 2023 06:01:37 GMT"},{"key":"Content-Length","value":"401"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 6246697,\n            \"name\": \"Storage_Domain\",\n            \"clusterPartitionId\": 3,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": false,\n            \"nisDomainNames\": [\n                \"\"\n            ],\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"cloudDownWaterFallParams\": {\n                \"thresholdSecs\": 5184000\n            },\n            \"defaultViewQuota\": {},\n            \"physicalQuota\": {},\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        },\n        {\n            \"id\": 5,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 3,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"nisDomainNames\": null,\n            \"tenantIds\": [\n                \"org1/\"\n            ],\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\"\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"1afdaab8-4e62-4df6-8929-7cad4112cbcd"},{"name":"Get Objects Lists","event":[{"listen":"test","script":{"exec":["tests[\"Fetching NAS mountpoint, Status code is 200\"] = responseCode.code === 200;","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null && jsonData !== undefined && jsonData.objects !== undefined) {","    var nodes = jsonData.objects;","    for (var i = 0; i < nodes.length; i++) {","        var source_id = pm.environment.get('sourceId');","        if (nodes[i].name === \"/ifs/fileFolderRestoreTest\")","         {","            pm.environment.set(\"mountPointId\", nodes[i].objectProtectionInfos[0].objectId)","            break;","        }","    }","}","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"objects\": {","            \"title\": \"The objects Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\"","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"objectType\": {","                        \"title\": \"The objectType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kMountPoint\"","                        ]","                    },","                    \"logicalSizeBytes\": {","                        \"title\": \"The logicalSizeBytes Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            0","                        ]","                    },","                    \"globalId\": {","                        \"title\": \"The globalId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\"","                        ]","                    },","                    \"protectionStats\": {","                        \"title\": \"The protectionStats Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"isilonParams\": {","                        \"title\": \"The isilonParams Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"title\": \"The supportedNasMountProtocols Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            }","                        },","                        \"examples\": [{","                            \"supportedNasMountProtocols\": null","                        }]","                    },","                    \"tags\": {","                        \"title\": \"The tags Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"snapshotTags\": {","                        \"title\": \"The snapshotTags Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"objectProtectionInfos\": {","                        \"title\": \"The objectProtectionInfos Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"objectId\": {","                                    \"title\": \"The objectId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        64","                                    ]","                                },","                                \"sourceId\": {","                                    \"title\": \"The sourceId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1","                                    ]","                                },","                                \"clusterId\": {","                                    \"title\": \"The clusterId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        6706421133980411","                                    ]","                                },","                                \"clusterIncarnationId\": {","                                    \"title\": \"The clusterIncarnationId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1668680031418","                                    ]","                                },","                                \"tenantIds\": {","                                    \"title\": \"The tenantIds Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"isDeleted\": {","                                    \"title\": \"The isDeleted Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"protectionGroups\": {","                                    \"title\": \"The protectionGroups Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"objectBackupConfiguration\": {","                                    \"title\": \"The objectBackupConfiguration Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"objectId\": 64,","                                \"sourceId\": 1,","                                \"clusterId\": 6706421133980411,","                                \"clusterIncarnationId\": 1668680031418,","                                \"tenantIds\": null,","                                \"isDeleted\": false,","                                \"protectionGroups\": null,","                                \"objectBackupConfiguration\": null","                            }]","                        },","                        \"examples\": [","                            [{","                                \"objectId\": 64,","                                \"sourceId\": 1,","                                \"clusterId\": 6706421133980411,","                                \"clusterIncarnationId\": 1668680031418,","                                \"tenantIds\": null,","                                \"isDeleted\": false,","                                \"protectionGroups\": null,","                                \"objectBackupConfiguration\": null","                            }]","                        ]","                    },","                    \"sourceInfo\": {","                        \"title\": \"The sourceInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"title\": \"The environment Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"title\": \"The objectType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            },","                            \"uuid\": {","                                \"title\": \"The uuid Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\"","                                ]","                            },","                            \"protectionStats\": {","                                \"title\": \"The protectionStats Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"isilonParams\": {","                                \"title\": \"The isilonParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"supportedNasMountProtocols\": {","                                        \"title\": \"The supportedNasMountProtocols Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"supportedNasMountProtocols\": null","                                }]","                            }","                        },","                        \"examples\": [{","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\",","                            \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                            \"protectionStats\": null,","                            \"isilonParams\": {","                                \"supportedNasMountProtocols\": null","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"name\": \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"logicalSizeBytes\": 0,","                    \"globalId\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": null","                    },","                    \"tags\": null,","                    \"snapshotTags\": null,","                    \"objectProtectionInfos\": [{","                        \"objectId\": 64,","                        \"sourceId\": 1,","                        \"clusterId\": 6706421133980411,","                        \"clusterIncarnationId\": 1668680031418,","                        \"tenantIds\": null,","                        \"isDeleted\": false,","                        \"protectionGroups\": null,","                        \"objectBackupConfiguration\": null","                    }],","                    \"sourceInfo\": {","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"name\": \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"logicalSizeBytes\": 0,","                    \"globalId\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": null","                    },","                    \"tags\": null,","                    \"snapshotTags\": null,","                    \"objectProtectionInfos\": [{","                        \"objectId\": 64,","                        \"sourceId\": 1,","                        \"clusterId\": 6706421133980411,","                        \"clusterIncarnationId\": 1668680031418,","                        \"tenantIds\": null,","                        \"isDeleted\": false,","                        \"protectionGroups\": null,","                        \"objectBackupConfiguration\": null","                    }],","                    \"sourceInfo\": {","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    }","                }]","            ]","        },","        \"paginationCookie\": {","            \"title\": \"The paginationCookie Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"500\"","            ]","        },","        \"count\": {","            \"title\": \"The count Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                772","            ]","        }","    },","    \"examples\": [{","        \"objects\": [{","            \"name\": \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\",","            \"environment\": \"kIsilon\",","            \"objectType\": \"kMountPoint\",","            \"logicalSizeBytes\": 0,","            \"globalId\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": null","            },","            \"tags\": null,","            \"snapshotTags\": null,","            \"objectProtectionInfos\": [{","                \"objectId\": 64,","                \"sourceId\": 1,","                \"clusterId\": 6706421133980411,","                \"clusterIncarnationId\": 1668680031418,","                \"tenantIds\": null,","                \"isDeleted\": false,","                \"protectionGroups\": null,","                \"objectBackupConfiguration\": null","            }],","            \"sourceInfo\": {","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            }","        }],","        \"paginationCookie\": \"500\",","        \"count\": 772","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"60e08826-8795-4d14-b77a-f2d4f4046603"}}],"id":"7fa7679e-06c0-4070-91fe-37cba645bd14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/objects","description":"<p>Gets the list of objects available on the Cohesity cluster for protection.</p>\n<p>You can use this information for creating the Protection Group.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","objects"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"244f0254-048a-4bdc-93d9-7a6d8dbdd302","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster_vip}}irisservices/api/v1/public/protectionSources/objects?id={{sourceId}}","protocol":"https","host":["{{cluster_vip}}irisservices"],"path":["api","v1","public","protectionSources","objects"],"query":[{"key":"id","value":"{{sourceId}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 5388,\n    \"parentId\": 5207,\n    \"name\": \"/ifs/akshay_test/Foo\",\n    \"environment\": \"kIsilon\",\n    \"isilonProtectionSource\": {\n      \"type\": \"kMountPoint\",\n      \"mountPoint\": {\n        \"protocols\": [\n          \"kNfs\"\n        ],\n        \"nfsMountPoint\": {\n          \"id\": 933,\n          \"description\": \"\",\n          \"accessZoneName\": \"System\"\n        },\n        \"path\": \"/ifs/akshay_test/Foo\",\n        \"accessZoneName\": \"System\"\n      }\n    }\n  },\n  {\n    \"id\": 5986,\n    \"parentId\": 5207,\n    \"name\": \"/ifs/magneto/isilon_tester/nfs_share\",\n    \"environment\": \"kIsilon\",\n    \"isilonProtectionSource\": {\n      \"type\": \"kMountPoint\",\n      \"mountPoint\": {\n        \"protocols\": [\n          \"kNfs\"\n        ],\n        \"nfsMountPoint\": {\n          \"id\": 1,\n          \"description\": \"\",\n          \"accessZoneName\": \"isilon-tester-zone\"\n        },\n        \"path\": \"/ifs/magneto/isilon_tester/nfs_share\",\n        \"accessZoneName\": \"isilon-tester-zone\"\n      }\n    }\n  },\n  {\n    \"id\": 4077,\n    \"parentId\": 69,\n    \"name\": \"cirros-dmaas-test-12\",\n    \"environment\": \"kVMware\",\n    \"vmWareProtectionSource\": {\n      \"type\": \"kVirtualMachine\",\n      \"name\": \"cirros-dmaas-test-12\",\n      \"id\": {\n        \"uuid\": \"{{uuid}}\",\n        \"morItem\": \"vm-212245\",\n        \"morType\": \"VirtualMachine\"\n      },\n      \"connectionState\": \"kInaccessible\",\n      \"toolsRunningStatus\": \"kUnknown\",\n      \"hostType\": \"kLinux\",\n      \"virtualDisks\": [\n        {\n          \"filename\": \"[Backup-View] Clone-Vms/cohesity_int_3/dmaas/dmaas-12_2.vmdk\",\n          \"logicalSizeBytes\": 46137344,\n          \"controllerType\": \"SCSI\",\n          \"busNumber\": 0,\n          \"unitNumber\": 0\n        }\n      ],\n      \"version\": \"vmx-13\"\n    }\n  }\n]"}],"_postman_id":"7fa7679e-06c0-4070-91fe-37cba645bd14"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.abortInBlackouts).to.be.a('boolean')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.sourceId).to.be.a('number')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].name).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.sourceName).to.be.a('string')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    for (var i = 0; i < jsonData.alertPolicy.alertTargets.length; i++) {","        pm.expect(jsonData.alertPolicy.alertTargets[i].emailAddress).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].recipientType).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].language).to.be.a('string')","    }","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:722\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"NAS_ProtectionJob\"","            ]","        },","        \"policyId\": {","            \"title\": \"The policyId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:721\"","            ]","        },","        \"priority\": {","            \"title\": \"The priority Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kLow\"","            ]","        },","        \"storageDomainId\": {","            \"title\": \"The storageDomainId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                5","            ]","        },","        \"description\": {","            \"title\": \"The description Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"string\"","            ]","        },","        \"startTime\": {","            \"title\": \"The startTime Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"hour\": {","                    \"title\": \"The hour Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        0","                    ]","                },","                \"minute\": {","                    \"title\": \"The minute Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        0","                    ]","                },","                \"timeZone\": {","                    \"title\": \"The timeZone Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"America/Los_Angeles\"","                    ]","                }","            },","            \"examples\": [{","                \"hour\": 0,","                \"minute\": 0,","                \"timeZone\": \"America/Los_Angeles\"","            }]","        },","        \"endTimeUsecs\": {","            \"title\": \"The endTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                0","            ]","        },","        \"alertPolicy\": {","            \"title\": \"The alertPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"backupRunStatus\": {","                    \"title\": \"The backupRunStatus Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kSuccess\"","                        ]","                    },","                    \"examples\": [","                        [","                            \"kSuccess\"]","                    ]","                },","                \"alertTargets\": {","                    \"title\": \"The alertTargets Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {},","                    \"examples\": [","                        []","                    ]","                }","            },","            \"examples\": [{","                \"backupRunStatus\": [","                    \"kSuccess\"","                ],","                \"alertTargets\": []","            }]","        },","        \"sla\": {","            \"title\": \"The sla Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"additionalProperties\": true,","                \"properties\": {","                    \"backupRunType\": {","                        \"title\": \"The backupRunType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"examples\": [","                            \"kIncremental\",","                            \"kFull\"","                        ]","                    },","                    \"slaMinutes\": {","                        \"title\": \"The slaMinutes Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"examples\": [","                            1,","                            120","                        ]","                    }","                },","                \"examples\": [{","                    \"backupRunType\": \"kIncremental\",","                    \"slaMinutes\": 1","                },","                {","                    \"backupRunType\": \"kFull\",","                    \"slaMinutes\": 120","                }]","            },","            \"examples\": [","                [{","                    \"backupRunType\": \"kIncremental\",","                    \"slaMinutes\": 1","                },","                {","                    \"backupRunType\": \"kFull\",","                    \"slaMinutes\": 120","                }]","            ]","        },","        \"qosPolicy\": {","            \"title\": \"The qosPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kBackupHDD\"","            ]","        },","        \"abortInBlackouts\": {","            \"title\": \"The abortInBlackouts Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"isActive\": {","            \"title\": \"The isActive Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"isPaused\": {","            \"title\": \"The isPaused Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"environment\": {","            \"title\": \"The environment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"missingEntities\": {","            \"title\": \"The missingEntities Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"id\": {","                                \"title\": \"The id Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    26","                                ]","                            },","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"/ifs/fileFolderRestoreTest\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"id\": 26,","                            \"name\": \"/ifs/fileFolderRestoreTest\"","                        }]","                    },","                    \"examples\": [","                        [{","                            \"id\": 26,","                            \"name\": \"/ifs/fileFolderRestoreTest\"","                        }]","                    ]","                },","                \"protocol\": {","                    \"title\": \"The protocol Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"kNfs3\"","                    ]","                },","                \"sourceId\": {","                    \"title\": \"The sourceId Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        1","                    ]","                },","                \"sourceName\": {","                    \"title\": \"The sourceName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\"","                }],","                \"protocol\": \"kNfs3\",","                \"sourceId\": 1,","                \"sourceName\": \"sv4-isilon1\"","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:722\",","        \"name\": \"NAS_ProtectionJob\",","        \"policyId\": \"6706421133980411:1668680031418:721\",","        \"priority\": \"kLow\",","        \"storageDomainId\": 5,","        \"description\": \"string\",","        \"startTime\": {","            \"hour\": 0,","            \"minute\": 0,","            \"timeZone\": \"America/Los_Angeles\"","        },","        \"endTimeUsecs\": 0,","        \"alertPolicy\": {","            \"backupRunStatus\": [","                \"kSuccess\"","            ],","            \"alertTargets\": []","        },","        \"sla\": [{","            \"backupRunType\": \"kIncremental\",","            \"slaMinutes\": 1","        },","        {","            \"backupRunType\": \"kFull\",","            \"slaMinutes\": 120","        }],","        \"qosPolicy\": \"kBackupHDD\",","        \"abortInBlackouts\": true,","        \"isActive\": true,","        \"isPaused\": true,","        \"environment\": \"kIsilon\",","        \"permissions\": null,","        \"missingEntities\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"id\": 26,","                \"name\": \"/ifs/fileFolderRestoreTest\"","            }],","            \"protocol\": \"kNfs3\",","            \"sourceId\": 1,","            \"sourceName\": \"sv4-isilon1\"","        }","    }]","}"," var response = pm.response.json()","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});"],"type":"text/javascript","id":"9c32fcc2-6ea4-404e-9abb-cb8916e83dcf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8f5cdd1d-ea79-4258-9e44-d580675a776a"}}],"id":"3a67e727-9b07-40cc-8a7a-1bd4011a8951","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"policyId\": \"1867183226494767:1669693131113:14307\",\n  \"startTime\": {\n    \"hour\": 11,\n    \"minute\": 41,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"priority\": \"kMedium\",\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": false,\n  \"storageDomainId\": 5,\n  \"name\": \"Isilon_API\",\n  \"environment\": \"kIsilon\",\n  \"isPaused\": false,\n  \"description\": \"\",\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"id\": 5986\n      },\n      {\n        \"id\": 5388\n      }\n    ],\n    \"directCloudArchive\": false,\n    \"nativeFormat\": true,\n    \"indexingPolicy\": {\n      \"enableIndexing\": true,\n      \"includePaths\": [\n        \"/\"\n      ],\n      \"excludePaths\": []\n    },\n    \"protocol\": \"kNfs3\",\n    \"continueOnError\": true,\n    \"useChangelist\": false,\n    \"encryptionEnabled\": false,\n    \"backupExistingSnapshot\": true,\n    \"excludeObjectIds\": []\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a Protection Group for protecting Isilon.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the Isilon source to be protected are required in the request body for running this API.</li>\n<li>For protecting Iislon volumes of type NFS, ensure to enter the <code>protocol</code> value as kNfs3 or kNfs4_1 in the request body.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the Isilon source.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"91f4d3f2-480d-4718-a38b-96b830e02f92","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"NAS_ProtectionJob\",\n  \"policyId\": \"{{policyId}}\",\n  \"storageDomainId\": {{viewBoxId}},\n  \"environment\": \"kIsilon\",\n  \"isPaused\": true,\n  \"priority\": \"kLow\",\n  \"description\": \"string\",\n  \"startTime\": {\n    \"hour\": 0,\n    \"minute\": 0,\n    \"timeZone\": \"America/Los_Angeles\"\n  },\n  \"endTimeUsecs\": 0,\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kSuccess\"\n    ]\n  },\n  \"sla\": [\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 1\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": true,\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"id\":322\n      }\n    ],\n    \"protocol\": \"kNfs3\"\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1867183226494767:1669693131113:82070\",\n    \"name\": \"Isilon_API\",\n    \"policyId\": \"1867183226494767:1669693131113:14307\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 5,\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 41,\n        \"timeZone\": \"Asia/Calcutta\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        },\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kIsilon\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"id\": 5986,\n                \"name\": \"/ifs/magneto/isilon_tester/nfs_share\"\n            },\n            {\n                \"id\": 5388,\n                \"name\": \"/ifs/akshay_test/Foo\"\n            }\n        ],\n        \"directCloudArchive\": false,\n        \"nativeFormat\": true,\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": null\n        },\n        \"protocol\": \"kNfs3\",\n        \"continueOnError\": true,\n        \"encryptionEnabled\": false,\n        \"useChangelist\": false,\n        \"sourceId\": 5207,\n        \"sourceName\": \"sv4-isilon1\"\n    }\n}"}],"_postman_id":"3a67e727-9b07-40cc-8a7a-1bd4011a8951"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"dbacc7e9-9bc0-44d9-adbb-db36281330e5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"43a46818-804f-404f-98a6-fde776c1c47d"}}],"id":"926421ce-d707-4a07-b32b-e85aae28dea9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting the Isilon source.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"43ba1389-5e05-41ab-a6bb-2df1796c8a5f","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"1867183226494767:1669693131113:82070\"\n}"}],"_postman_id":"926421ce-d707-4a07-b32b-e85aae28dea9"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function() {}, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","     var resp = pm.response.json();","     var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if((status==\"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","     setTimeout(function() {}, 10000);","     postman.setNextRequest(request.name)"," }    ","    else {","        // Sleep for 5 seconds.","     setTimeout(function() {}, 5000);","        jsonData = resp.runs;","        pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","        pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","        pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","","    jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"runs\": {","            \"title\": \"The runs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"726:1669113200103871\"","                        ]","                    },","                    \"protectionGroupInstanceId\": {","                        \"title\": \"The protectionGroupInstanceId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            729","                        ]","                    },","                    \"protectionGroupId\": {","                        \"title\": \"The protectionGroupId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"6706421133980411:1668680031418:726\"","                        ]","                    },","                    \"isReplicationRun\": {","                        \"title\": \"The isReplicationRun Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            false","                        ]","                    },","                    \"protectionGroupName\": {","                        \"title\": \"The protectionGroupName Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"NAS_ProtectionJob\"","                        ]","                    },","                    \"objects\": {","                        \"title\": \"The objects Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"localBackupInfo\": {","                        \"title\": \"The localBackupInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"runType\": {","                                \"title\": \"The runType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kRegular\"","                                ]","                            },","                            \"isSlaViolated\": {","                                \"title\": \"The isSlaViolated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"boolean\",","                                \"default\": false,","                                \"examples\": [","                                    false","                                ]","                            },","                            \"startTimeUsecs\": {","                                \"title\": \"The startTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"endTimeUsecs\": {","                                \"title\": \"The endTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113210105922","                                ]","                            },","                            \"status\": {","                                \"title\": \"The status Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Succeeded\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"successfulObjectsCount\": {","                                \"title\": \"The successfulObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1","                                ]","                            },","                            \"failedObjectsCount\": {","                                \"title\": \"The failedObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"cancelledObjectsCount\": {","                                \"title\": \"The cancelledObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"successfulAppObjectsCount\": {","                                \"title\": \"The successfulAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"failedAppObjectsCount\": {","                                \"title\": \"The failedAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"cancelledAppObjectsCount\": {","                                \"title\": \"The cancelledAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"localSnapshotStats\": {","                                \"title\": \"The localSnapshotStats Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"title\": \"The logicalSizeBytes Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    },","                                    \"bytesWritten\": {","                                        \"title\": \"The bytesWritten Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    },","                                    \"bytesRead\": {","                                        \"title\": \"The bytesRead Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"logicalSizeBytes\": 0,","                                    \"bytesWritten\": 0,","                                    \"bytesRead\": 0","                                }]","                            },","                            \"indexingTaskId\": {","                                \"title\": \"The indexingTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"indexing_726_729\"","                                ]","                            },","                            \"localTaskId\": {","                                \"title\": \"The localTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:27495\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"runType\": \"kRegular\",","                            \"isSlaViolated\": false,","                            \"startTimeUsecs\": 1669113200103871,","                            \"endTimeUsecs\": 1669113210105922,","                            \"status\": \"Succeeded\",","                            \"messages\": null,","                            \"successfulObjectsCount\": 1,","                            \"failedObjectsCount\": 0,","                            \"cancelledObjectsCount\": 0,","                            \"successfulAppObjectsCount\": 0,","                            \"failedAppObjectsCount\": 0,","                            \"cancelledAppObjectsCount\": 0,","                            \"localSnapshotStats\": {","                                \"logicalSizeBytes\": 0,","                                \"bytesWritten\": 0,","                                \"bytesRead\": 0","                            },","                            \"indexingTaskId\": \"indexing_726_729\",","                            \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                        }]","                    },","                    \"onLegalHold\": {","                        \"title\": \"The onLegalHold Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            false","                        ]","                    },","                    \"permissions\": {","                        \"title\": \"The permissions Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {},","                        \"examples\": [","                            []","                        ]","                    },","                    \"hasLocalSnapshot\": {","                        \"title\": \"The hasLocalSnapshot Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            true","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    }","                },","                \"examples\": [{","                    \"id\": \"726:1669113200103871\",","                    \"protectionGroupInstanceId\": 729,","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"isReplicationRun\": false,","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"objects\": null,","                    \"localBackupInfo\": {","                        \"runType\": \"kRegular\",","                        \"isSlaViolated\": false,","                        \"startTimeUsecs\": 1669113200103871,","                        \"endTimeUsecs\": 1669113210105922,","                        \"status\": \"Succeeded\",","                        \"messages\": null,","                        \"successfulObjectsCount\": 1,","                        \"failedObjectsCount\": 0,","                        \"cancelledObjectsCount\": 0,","                        \"successfulAppObjectsCount\": 0,","                        \"failedAppObjectsCount\": 0,","                        \"cancelledAppObjectsCount\": 0,","                        \"localSnapshotStats\": {","                            \"logicalSizeBytes\": 0,","                            \"bytesWritten\": 0,","                            \"bytesRead\": 0","                        },","                        \"indexingTaskId\": \"indexing_726_729\",","                        \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                    },","                    \"onLegalHold\": false,","                    \"permissions\": [],","                    \"hasLocalSnapshot\": true,","                    \"environment\": \"kIsilon\"","                }]","            },","            \"examples\": [","                [{","                    \"id\": \"726:1669113200103871\",","                    \"protectionGroupInstanceId\": 729,","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"isReplicationRun\": false,","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"objects\": null,","                    \"localBackupInfo\": {","                        \"runType\": \"kRegular\",","                        \"isSlaViolated\": false,","                        \"startTimeUsecs\": 1669113200103871,","                        \"endTimeUsecs\": 1669113210105922,","                        \"status\": \"Succeeded\",","                        \"messages\": null,","                        \"successfulObjectsCount\": 1,","                        \"failedObjectsCount\": 0,","                        \"cancelledObjectsCount\": 0,","                        \"successfulAppObjectsCount\": 0,","                        \"failedAppObjectsCount\": 0,","                        \"cancelledAppObjectsCount\": 0,","                        \"localSnapshotStats\": {","                            \"logicalSizeBytes\": 0,","                            \"bytesWritten\": 0,","                            \"bytesRead\": 0","                        },","                        \"indexingTaskId\": \"indexing_726_729\",","                        \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                    },","                    \"onLegalHold\": false,","                    \"permissions\": [],","                    \"hasLocalSnapshot\": true,","                    \"environment\": \"kIsilon\"","                }]","            ]","        },","        \"totalRuns\": {","            \"title\": \"The totalRuns Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1","            ]","        }","    },","    \"examples\": [{","        \"runs\": [{","            \"id\": \"726:1669113200103871\",","            \"protectionGroupInstanceId\": 729,","            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","            \"isReplicationRun\": false,","            \"protectionGroupName\": \"NAS_ProtectionJob\",","            \"objects\": null,","            \"localBackupInfo\": {","                \"runType\": \"kRegular\",","                \"isSlaViolated\": false,","                \"startTimeUsecs\": 1669113200103871,","                \"endTimeUsecs\": 1669113210105922,","                \"status\": \"Succeeded\",","                \"messages\": null,","                \"successfulObjectsCount\": 1,","                \"failedObjectsCount\": 0,","                \"cancelledObjectsCount\": 0,","                \"successfulAppObjectsCount\": 0,","                \"failedAppObjectsCount\": 0,","                \"cancelledAppObjectsCount\": 0,","                \"localSnapshotStats\": {","                    \"logicalSizeBytes\": 0,","                    \"bytesWritten\": 0,","                    \"bytesRead\": 0","                },","                \"indexingTaskId\": \"indexing_726_729\",","                \"localTaskId\": \"6706421133980411:1668680031418:27495\"","            },","            \"onLegalHold\": false,","            \"permissions\": [],","            \"hasLocalSnapshot\": true,","            \"environment\": \"kIsilon\"","        }],","        \"totalRuns\": 1","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"31c193be-6d2b-4ada-800d-9c5739de5a35"}}],"id":"60fbf008-0329-4df3-8a43-e6f6b8003430","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is <code>Succeeded</code>, you can recover the volumes of the Isilon source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"d24f75a6-5491-4d0c-817a-c6ec9e92f5e6","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/1867183226494767:1669693131113:82070/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678784676"},{"key":"Date","value":"Tue, 14 Mar 2023 09:04:38 GMT"},{"key":"Content-Length","value":"702"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n      \n             {\n            \"id\": \"82070:1678779061510384\",\n            \"protectionGroupInstanceId\": 82278,\n            \"protectionGroupId\": \"1867183226494767:1669693131113:82070\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Isilon_API\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"isSlaViolated\": true,\n                \"startTimeUsecs\": 1678779061510384,\n                \"endTimeUsecs\": 1678780919068654,\n                \"status\": \"Failed\",\n                \"messages\": [\n                    \"Invalid request 'snapshot path '/ifs/akshay_test/Foo' does not exist'\"\n                ],\n                \"successfulObjectsCount\": 1,\n                \"failedObjectsCount\": 1,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 0,\n                    \"bytesWritten\": 0,\n                    \"bytesRead\": 0\n                },\n                \"indexingTaskId\": \"indexing_82070_82278\",\n                \"localTaskId\": \"1867183226494767:1669693131113:3050580535\"\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kIsilon\"\n        },\n               {\n            \"id\": \"82070:1678774327730267\",\n            \"protectionGroupInstanceId\": 82071,\n            \"protectionGroupId\": \"1867183226494767:1669693131113:82070\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Isilon_API\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"isSlaViolated\": true,\n                \"startTimeUsecs\": 1678774327730267,\n                \"endTimeUsecs\": 1678776717078839,\n                \"status\": \"Failed\",\n                \"messages\": [\n                    \"Invalid request 'snapshot path '/ifs/akshay_test/Foo' does not exist'\"\n                ],\n                \"successfulObjectsCount\": 1,\n                \"failedObjectsCount\": 1,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 0,\n                    \"bytesWritten\": 7942519,\n                    \"bytesRead\": 7940335\n                },\n                \"indexingTaskId\": \"indexing_82070_82071\",\n                \"localTaskId\": \"1867183226494767:1669693131113:3050508592\"\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kIsilon\"\n        }\n    ],\n    \"totalRuns\": 2\n}"}],"_postman_id":"60fbf008-0329-4df3-8a43-e6f6b8003430"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"objects\": {","            \"title\": \"The objects Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            26","                        ]","                    },","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"/ifs/fileFolderRestoreTest\"","                        ]","                    },","                    \"sourceId\": {","                        \"title\": \"The sourceId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            1","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"objectType\": {","                        \"title\": \"The objectType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kMountPoint\"","                        ]","                    },","                    \"osType\": {","                        \"title\": \"The osType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kOther\"","                        ]","                    },","                    \"protectionStats\": {","                        \"title\": \"The protectionStats Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"isilonParams\": {","                        \"title\": \"The isilonParams Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"title\": \"The supportedNasMountProtocols Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"array\",","                                \"default\": [],","                                \"additionalItems\": true,","                                \"items\": {","                                    \"title\": \"A Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"examples\": [","                                        \"kNfs\",","                                        \"kSmb\"","                                    ]","                                },","                                \"examples\": [","                                    [\"kNfs\",","                                        \"kSmb\"","                                    ]","                                ]","                            }","                        },","                        \"examples\": [{","                            \"supportedNasMountProtocols\": [","                                \"kNfs\",","                                \"kSmb\"","                            ]","                        }]","                    },","                    \"latestSnapshotsInfo\": {","                        \"title\": \"The latestSnapshotsInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"archivalSnapshotsInfo\": {","                                    \"title\": \"The archivalSnapshotsInfo Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"indexingStatus\": {","                                    \"title\": \"The indexingStatus Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"Done\"","                                    ]","                                },","                                \"protectionGroupId\": {","                                    \"title\": \"The protectionGroupId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"6706421133980411:1668680031418:726\"","                                    ]","                                },","                                \"protectionGroupName\": {","                                    \"title\": \"The protectionGroupName Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"NAS_ProtectionJob\"","                                    ]","                                },","                                \"runInstanceId\": {","                                    \"title\": \"The runInstanceId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        729","                                    ]","                                },","                                \"storageDomainId\": {","                                    \"title\": \"The storageDomainId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        5","                                    ]","                                },","                                \"protectionRunId\": {","                                    \"title\": \"The protectionRunId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"726:1669113200103871\"","                                    ]","                                },","                                \"runType\": {","                                    \"title\": \"The runType Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"kRegular\"","                                    ]","                                },","                                \"protectionRunStartTimeUsecs\": {","                                    \"title\": \"The protectionRunStartTimeUsecs Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1669113200103871","                                    ]","                                },","                                \"localSnapshotInfo\": {","                                    \"title\": \"The localSnapshotInfo Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"snapshotId\": {","                                            \"title\": \"The snapshotId Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"default\": \"\",","                                            \"examples\": [","                                                \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                            ]","                                        },","                                        \"logicalSizeBytes\": {","                                            \"title\": \"The logicalSizeBytes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"default\": 0,","                                            \"examples\": [","                                                456233279","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                        \"logicalSizeBytes\": 456233279","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"archivalSnapshotsInfo\": null,","                                \"indexingStatus\": \"Done\",","                                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                                \"protectionGroupName\": \"NAS_ProtectionJob\",","                                \"runInstanceId\": 729,","                                \"storageDomainId\": 5,","                                \"protectionRunId\": \"726:1669113200103871\",","                                \"runType\": \"kRegular\",","                                \"protectionRunStartTimeUsecs\": 1669113200103871,","                                \"localSnapshotInfo\": {","                                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                    \"logicalSizeBytes\": 456233279","                                }","                            }]","                        },","                        \"examples\": [","                            [{","                                \"archivalSnapshotsInfo\": null,","                                \"indexingStatus\": \"Done\",","                                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                                \"protectionGroupName\": \"NAS_ProtectionJob\",","                                \"runInstanceId\": 729,","                                \"storageDomainId\": 5,","                                \"protectionRunId\": \"726:1669113200103871\",","                                \"runType\": \"kRegular\",","                                \"protectionRunStartTimeUsecs\": 1669113200103871,","                                \"localSnapshotInfo\": {","                                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                    \"logicalSizeBytes\": 456233279","                                }","                            }]","                        ]","                    },","                    \"sourceInfo\": {","                        \"title\": \"The sourceInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"id\": {","                                \"title\": \"The id Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1","                                ]","                            },","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"title\": \"The environment Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"title\": \"The objectType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"id\": 1,","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\"","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"osType\": \"kOther\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": [","                            \"kNfs\",","                            \"kSmb\"","                        ]","                    },","                    \"latestSnapshotsInfo\": [{","                        \"archivalSnapshotsInfo\": null,","                        \"indexingStatus\": \"Done\",","                        \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                        \"protectionGroupName\": \"NAS_ProtectionJob\",","                        \"runInstanceId\": 729,","                        \"storageDomainId\": 5,","                        \"protectionRunId\": \"726:1669113200103871\",","                        \"runType\": \"kRegular\",","                        \"protectionRunStartTimeUsecs\": 1669113200103871,","                        \"localSnapshotInfo\": {","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"logicalSizeBytes\": 456233279","                        }","                    }],","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\"","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"osType\": \"kOther\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": [","                            \"kNfs\",","                            \"kSmb\"","                        ]","                    },","                    \"latestSnapshotsInfo\": [{","                        \"archivalSnapshotsInfo\": null,","                        \"indexingStatus\": \"Done\",","                        \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                        \"protectionGroupName\": \"NAS_ProtectionJob\",","                        \"runInstanceId\": 729,","                        \"storageDomainId\": 5,","                        \"protectionRunId\": \"726:1669113200103871\",","                        \"runType\": \"kRegular\",","                        \"protectionRunStartTimeUsecs\": 1669113200103871,","                        \"localSnapshotInfo\": {","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"logicalSizeBytes\": 456233279","                        }","                    }],","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\"","                    }","                }]","            ]","        },","        \"numResults\": {","            \"title\": \"The numResults Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1","            ]","        },","        \"metadata\": {","            \"title\": \"The metadata Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"uniqueProtectionGroupIdentifiers\": {","                    \"title\": \"The uniqueProtectionGroupIdentifiers Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"protectionGroupName\": {","                                \"title\": \"The protectionGroupName Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"NAS_ProtectionJob\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\"","                        }]","                    },","                    \"examples\": [","                        [{","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\"","                        }]","                    ]","                }","            },","            \"examples\": [{","                \"uniqueProtectionGroupIdentifiers\": [{","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"protectionGroupName\": \"NAS_ProtectionJob\"","                }]","            }]","        }","    },","    \"examples\": [{","        \"objects\": [{","            \"id\": 26,","            \"name\": \"/ifs/fileFolderRestoreTest\",","            \"sourceId\": 1,","            \"environment\": \"kIsilon\",","            \"objectType\": \"kMountPoint\",","            \"osType\": \"kOther\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": [","                    \"kNfs\",","                    \"kSmb\"","                ]","            },","            \"latestSnapshotsInfo\": [{","                \"archivalSnapshotsInfo\": null,","                \"indexingStatus\": \"Done\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\",","                \"runInstanceId\": 729,","                \"storageDomainId\": 5,","                \"protectionRunId\": \"726:1669113200103871\",","                \"runType\": \"kRegular\",","                \"protectionRunStartTimeUsecs\": 1669113200103871,","                \"localSnapshotInfo\": {","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"logicalSizeBytes\": 456233279","                }","            }],","            \"sourceInfo\": {","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\"","            }","        }],","        \"numResults\": 1,","        \"metadata\": {","            \"uniqueProtectionGroupIdentifiers\": [{","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\"","            }]","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"5c55be61-7a7a-4f97-94f9-09035ca9ae8a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"30bf576b-eaaf-4502-9c03-670f75267470"}}],"id":"881d15de-9f2b-4cf4-9803-ceb2e6e54232","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionGroupId}}&environments=kIsilon","description":"<p>StartFragment</p>\n<p>eturns information on the latest snapshots of the objects that are being protected in the Protection Group specified in the API URL.</p>\n<p>The snapshot ID <code>snapshotId</code> of a volume from the response is required for recovering that volume.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionGroupId}}"},{"key":"environments","value":"kIsilon"}],"variable":[]}},"response":[{"id":"bec7f1e3-516c-4a5a-931c-c1d365aa06ba","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds=1867183226494767:1669693131113:82070&environments=kIsilon","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","search","protected-objects"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"1867183226494767:1669693131113:82070"},{"key":"environments","value":"kIsilon"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678784893"},{"key":"Date","value":"Tue, 14 Mar 2023 09:08:13 GMT"},{"key":"Content-Length","value":"648"}],"cookie":[],"responseTime":null,"body":"{\n    \"objects\": [\n        {\n            \"id\": 5986,\n            \"name\": \"/ifs/magneto/isilon_tester/nfs_share\",\n            \"sourceId\": 5207,\n            \"environment\": \"kIsilon\",\n            \"objectType\": \"kMountPoint\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"isilonParams\": {\n                \"supportedNasMountProtocols\": [\n                    \"kNfs\"\n                ]\n            },\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"1867183226494767:1669693131113:82070\",\n                    \"protectionGroupName\": \"Isilon_API\",\n                    \"runInstanceId\": 82359,\n                    \"storageDomainId\": 5,\n                    \"protectionRunId\": \"82070:1678780920068728\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1678780920068728,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snapshotid}}\",\n                        \"logicalSizeBytes\": 7940593\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 5207,\n                \"name\": \"sv4-isilon1\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\"\n            }\n        }\n    ],\n    \"numResults\": 1,\n    \"metadata\": {\n        \"uniqueProtectionGroupIdentifiers\": [\n            {\n                \"protectionGroupId\": \"1867183226494767:1669693131113:82070\",\n                \"protectionGroupName\": \"Isilon_API\"\n            }\n        ]\n    }\n}\n"}],"_postman_id":"881d15de-9f2b-4cf4-9803-ceb2e6e54232"},{"name":"Recover Isilon Volume","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"0173b683-397c-430c-b6aa-04a2a7a4c276"}}],"id":"5403093d-6c18-4fd6-9ae1-546fd3676941","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Recover_Isilon_NFS\",\n  \"snapshotEnvironment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{snapshotId}}\"\n      }\n    ],\n    \"recoveryAction\": \"RecoverNasVolume\",\n    \"recoverNasVolumeParams\": {\n      \"targetEnvironment\": \"kIsilon\",\n      \"isilonTargetParams\": {\n        \"recoverToNewSource\": true,\n        \"newSourceConfig\": {\n          \"overwriteExistingFile\": false,\n          \"preserveFileAttributes\": true,\n          \"continueOnError\": true,\n          \"encryptionEnabled\": false,\n          \"volume\": {\n            \"id\": 5996\n          }\n        }\n      }\n    }\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries","description":"<p>Recovers the object from the snapshot ID specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID from where you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>restoreId</code> from the response is required for obtaining the status of the recovery task.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"27db5287-4e62-4f47-acdc-3f5540db1f76","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kIsilon\",\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \" {{protectionJobId}}\",\n                \"protectionGroupName\": \" {{protectionJobName}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kIsilon\",\n            \"isilonTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": true,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1867183226494767:1669693131113:82563\",\n    \"name\": \"Recover_Isilon_NFS\",\n    \"startTimeUsecs\": 1678785713775333,\n    \"status\": \"Accepted\",\n    \"snapshotEnvironment\": \"kIsilon\",\n    \"recoveryAction\": \"RecoverNasVolume\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"admin\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \"1867183226494767:1669693131113:82070\",\n                \"snapshotCreationTimeUsecs\": 1678783598476846,\n                \"snapshotTargetType\": \"Local\",\n                \"storageDomainId\": 5,\n                \"progressTaskId\": \"\",\n                \"messages\": null,\n                \"objectInfo\": {\n                    \"id\": 5986,\n                    \"name\": \"/ifs/magneto/isilon_tester/nfs_share\",\n                    \"sourceId\": 5207,\n                    \"sourceName\": \"sv4-isilon1\",\n                    \"environment\": \"kIsilon\",\n                    \"objectType\": \"kMountPoint\"\n                }\n            }\n        ],\n        \"recoveryAction\": \"RecoverNasVolume\",\n        \"recoverNasVolumeParams\": {\n            \"targetEnvironment\": \"kIsilon\",\n            \"isilonTargetParams\": {\n                \"recoverToNewSource\": true,\n                \"newSourceConfig\": {\n                    \"overwriteExistingFile\": false,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": true,\n                    \"encryptionEnabled\": false,\n                    \"parentSource\": {\n                        \"id\": 5207,\n                        \"name\": \"sv4-isilon1\"\n                    },\n                    \"volume\": {\n                        \"id\": 5996,\n                        \"name\": \"/ifs/pttest\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"5403093d-6c18-4fd6-9ae1-546fd3676941"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","var response = pm.response.json()","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.progressTaskId).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","","    if (jsonData.status === \"Running\") {","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:745\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115603532122","            ]","        },","        \"endTimeUsecs\": {","            \"title\": \"The endTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115609532809","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Succeeded\"","            ]","        },","        \"progressTaskId\": {","            \"title\": \"The progressTaskId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"restore_files_745\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"protectionGroupName\": {","                                \"title\": \"The protectionGroupName Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"NAS_ProtectionJob\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/directory2/7606d3f6466114916c4a304b7f28527f\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"Finished\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                                    \"isDirectory\": false,","                                    \"status\": \"Finished\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                                    \"isDirectory\": false,","                                    \"status\": \"Finished\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                            \"isDirectory\": false,","                            \"status\": \"Finished\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                        \"isDirectory\": false,","                        \"status\": \"Finished\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:745\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115603532122,","        \"endTimeUsecs\": 1669115609532809,","        \"status\": \"Succeeded\",","        \"progressTaskId\": \"restore_files_745\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                    \"isDirectory\": false,","                    \"status\": \"Finished\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"cf9ea79f-238d-43b4-ba35-2533ee7373aa"}}],"id":"55a10478-b586-42e3-95ea-7976a122a321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/data-protect/recoveries/{{restoreId}}","description":"<p>Returns the status of the recovery task.</p>\n<p>You can fetch the <code>restoreId</code> of the recovery task to be specified in the API URL from the <strong>Recover Isilon Volume</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"8fd5c47b-63aa-4415-8984-c2fc2034b7bc","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/data-protect/recoveries/{{restoreId}}"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"recoveries\": [\r\n        {\r\n            \"id\": \"1867183226494767:1669693131113:82563\",\r\n            \"name\": \"Recover_Isilon_NFS\",\r\n            \"startTimeUsecs\": 1678785713775333,\r\n            \"endTimeUsecs\": 1678785903076250,\r\n            \"status\": \"Succeeded\",\r\n            \"progressTaskId\": \"restore_files_82563\",\r\n            \"snapshotEnvironment\": \"kIsilon\",\r\n            \"recoveryAction\": \"RecoverNasVolume\",\r\n            \"permissions\": [],\r\n            \"creationInfo\": {\r\n                \"userName\": \"admin\"\r\n            },\r\n            \"canTearDown\": false,\r\n            \"messages\": null,\r\n            \"isilonParams\": {\r\n                \"objects\": [\r\n                    {\r\n                        \"snapshotId\": \"{{snapshotID}}\",\r\n                        \"protectionGroupId\": \"1867183226494767:1669693131113:82070\",\r\n                        \"snapshotCreationTimeUsecs\": 1678783598476846,\r\n                        \"snapshotTargetType\": \"Local\",\r\n                        \"storageDomainId\": 5,\r\n                        \"progressTaskId\": \"\",\r\n                        \"messages\": null,\r\n                        \"objectInfo\": {\r\n                            \"id\": 5986,\r\n                            \"name\": \"/ifs/magneto/isilon_tester/nfs_share\",\r\n                            \"sourceId\": 5207,\r\n                            \"sourceName\": \"sv4-isilon1\",\r\n                            \"environment\": \"kIsilon\",\r\n                            \"objectType\": \"kMountPoint\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"recoveryAction\": \"RecoverNasVolume\",\r\n                \"recoverNasVolumeParams\": {\r\n                    \"targetEnvironment\": \"kIsilon\",\r\n                    \"isilonTargetParams\": {\r\n                        \"recoverToNewSource\": true,\r\n                        \"newSourceConfig\": {\r\n                            \"overwriteExistingFile\": false,\r\n                            \"preserveFileAttributes\": true,\r\n                            \"continueOnError\": true,\r\n                            \"encryptionEnabled\": false,\r\n                            \"parentSource\": {\r\n                                \"id\": 5207,\r\n                                \"name\": \"sv4-isilon1\"\r\n                            },\r\n                            \"volume\": {\r\n                                \"id\": 5996,\r\n                                \"name\": \"/ifs/pttest\"\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        },"}],"_postman_id":"55a10478-b586-42e3-95ea-7976a122a321"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"77642bd8-d8ab-4c28-b86b-cc08c6311de6"}}],"id":"40147551-726d-4689-aea8-4716d123c101","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster_vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"1262846e-ab2c-45bb-822c-5b16c13a759b","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_vip}}"],"path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"40147551-726d-4689-aea8-4716d123c101"},{"name":"Unregister Isilon Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"61a1dbbe-03e9-4c7e-bdf6-4018a7b4e282"}}],"id":"508fb2e3-725d-4b51-a540-55ae745e97dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceId}}","description":"<p>Unregisters the Isilon cluster source from the Cohesity cluster.</p>\n<p>You can fetch the <code>sourceId</code> to be specified in the API URL from the <strong>Register Isilon Source</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"7cf9dbab-50ae-405e-bcf5-443a829ffdf1","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceId}}"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"508fb2e3-725d-4b51-a540-55ae745e97dd"}],"id":"bfeb8e4a-ff3c-4dd7-bd60-f3b10b5bad0d","description":"<p>To protect Isilon with NFS share using Cohesity, perform the following steps using the API operations:</p>\n<ul>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Isilon as a source with the Cohesity cluster.</li>\n<li>Verify whether the Isilon is available as a source on the Cohesity cluster and get the source ID required for creating the Protection Group.</li>\n<li>Create a new Protection Policy and get the policy ID required for creating the Protection Group.</li>\n<li>Get the list of Storage Domains available on the Cohesity cluster. You can either use an existing Storage Domain or create a new Storage Domain.</li>\n<li>Get the list of objects available on the Cohesity cluster for protection and obtain the ID of the Isilon volume you want to protect.</li>\n<li>Create a Protection Group for protecting Isilon volume of type NFS.</li>\n<li>Run the Protection Group.</li>\n<li>Get the Protection Group run status.</li>\n<li>Get the latest snapshot of the volume you want to recover.</li>\n<li>Recover the volume from the snapshot.</li>\n<li>Get the recovery status.</li>\n<li>Once the recovery is successful, delete the Protection Group.</li>\n<li>Unregister the Isilon source from the Cohesity cluster.</li>\n</ul>\n","_postman_id":"bfeb8e4a-ff3c-4dd7-bd60-f3b10b5bad0d"},{"name":"NAS (Isilon) SMB Protection Workflow","item":[{"name":"Generate Aceess Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"526e9e37-c98e-4ad3-82b9-fa9ebaa3e941"}}],"id":"1a3e6719-6c7e-41f8-a5cb-847c3a52283d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"c35aa809-c5b6-4016-ba48-938cf31a4979","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\": \"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/accessTokens"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"1a3e6719-6c7e-41f8-a5cb-847c3a52283d"},{"name":"Register Isilon Source","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","//Add not null","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"id\",","        \"sourceId\",","        \"sourceInfo\",","        \"environment\",","        \"connections\",","        \"registrationTimeMsecs\",","        \"lastRefreshedTimeMsecs\",","        \"isilonParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The id Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceId\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The sourceId Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceInfo\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The sourceInfo Schema\",","            \"required\": [","                \"id\",","                \"name\",","                \"environment\",","                \"objectType\",","                \"protectionStats\",","                \"isilonParams\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"title\": \"The id Schema\",","                    \"examples\": [","                        1","                    ]","                },","                \"name\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The name Schema\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                },","                \"environment\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The environment Schema\",","                    \"examples\": [","                        \"kIsilon\"","                    ]","                },","                \"objectType\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The objectType Schema\",","                    \"examples\": [","                        \"kCluster\"","                    ]","                },","                \"protectionStats\": {","                    \"type\": \"null\",","                    \"default\": null,","                    \"title\": \"The protectionStats Schema\",","                    \"examples\": [","                        null","                    ]","                },","                \"isilonParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The isilonParams Schema\",","                    \"required\": [","                        \"supportedNasMountProtocols\"","                    ],","                    \"properties\": {","                        \"supportedNasMountProtocols\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The supportedNasMountProtocols Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"supportedNasMountProtocols\": null","                    }]","                }","            },","            \"examples\": [{","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            }]","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The environment Schema\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"connections\": {","            \"type\": \"array\",","            \"default\": [],","            \"title\": \"The connections Schema\",","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"registrationTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The registrationTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"lastRefreshedTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The lastRefreshedTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"isilonParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The isilonParams Schema\",","            \"required\": [","                \"endpoint\",","                \"credentials\",","                \"backUpSMBVolumes\",","                \"smbCredentials\",","                \"filterIpConfig\"","            ],","            \"properties\": {","                \"endpoint\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The endpoint Schema\",","                    \"examples\": [","                        \"10.2.144.30\"","                    ]","                },","                \"credentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The credentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"admin\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"admin\",","                        \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                    }]","                },","                \"backUpSMBVolumes\": {","                    \"type\": \"boolean\",","                    \"default\": false,","                    \"title\": \"The backUpSMBVolumes Schema\",","                    \"examples\": [","                        true","                    ]","                },","                \"smbCredentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The smbCredentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"Administrator\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"Administrator\",","                        \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                    }]","                },","                \"filterIpConfig\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The filterIpConfig Schema\",","                    \"required\": [","                        \"deniedIpAddresses\",","                        \"allowedIpAddresses\"","                    ],","                    \"properties\": {","                        \"deniedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The deniedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        },","                        \"allowedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The allowedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"deniedIpAddresses\": null,","                        \"allowedIpAddresses\": null","                    }]","                }","            },","            \"examples\": [{","                \"endpoint\": \"10.2.144.30\",","                \"credentials\": {","                    \"username\": \"admin\",","                    \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                },","                \"backUpSMBVolumes\": true,","                \"smbCredentials\": {","                    \"username\": \"Administrator\",","                    \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                },","                \"filterIpConfig\": {","                    \"deniedIpAddresses\": null,","                    \"allowedIpAddresses\": null","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": 1,","        \"sourceId\": 1,","        \"sourceInfo\": {","            \"id\": 1,","            \"name\": \"sv4-isilon1\",","            \"environment\": \"kIsilon\",","            \"objectType\": \"kCluster\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": null","            }","        },","        \"environment\": \"kIsilon\",","        \"connections\": [],","        \"registrationTimeMsecs\": 1669110005645,","        \"lastRefreshedTimeMsecs\": 1669110005645,","        \"isilonParams\": {","            \"endpoint\": \"10.2.144.30\",","            \"credentials\": {","                \"username\": \"admin\",","                \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","            },","            \"backUpSMBVolumes\": true,","            \"smbCredentials\": {","                \"username\": \"Administrator\",","                \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","            },","            \"filterIpConfig\": {","                \"deniedIpAddresses\": null,","                \"allowedIpAddresses\": null","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"1a303902-c133-4e04-b83e-2229edd52d0b"}}],"id":"0a5ab1e8-3582-4ea6-9216-4c63722653a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"endpoint\": \"{{isilon_source}}\",\n    \"credentials\": {{isilon_credentials}},\n    \"backUpSMBVolumes\": true,\n    \"smbCredentials\": {{isilon_smb_credentials}}\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations","description":"<p>Registers Isilon with the Cohesity cluster.</p>\n<p>Ensure to provide the following parameters in the request body of the API</p>\n<ul>\n<li>The management IP address of the Islion source (<code>endpoint</code>) you want to protect.</li>\n<li>The username and password (<code>credentials</code>) of the Isilon source.</li>\n<li>The local or Active Directory user credentials (<code>smbCredentials</code>) that allow read access to the Isilon SMB share you want to backup.</li>\n</ul>\n<p>The source ID from the response is required to create the Protection Group for protecting your Isilon source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ff26685a-265d-4318-a2d8-3ac487b0db9a","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"environment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"endpoint\": \"10.2.144.30\",\n    \"credentials\": {\"username\": \"admin\",\"password\": \"fr8shst8rt\"},\n    \"backUpSMBVolumes\": true,\n    \"smbCredentials\": {\"username\": \"Administrator\",\"password\": \"Fr8shst8rt\"}\n  }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678772729"},{"key":"Date","value":"Tue, 14 Mar 2023 05:45:43 GMT"},{"key":"Content-Length","value":"276"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5207,\n    \"sourceId\": 5207,\n    \"sourceInfo\": {\n        \"id\": 5207,\n        \"name\": \"{{Isilon_source_name}}\",\n        \"environment\": \"kIsilon\",\n        \"objectType\": \"kCluster\",\n        \"protectionStats\": null,\n        \"isilonParams\": {\n            \"supportedNasMountProtocols\": null\n        }\n    },\n    \"environment\": \"kIsilon\",\n    \"isilonParams\": {\n        \"endpoint\": \"{{Isilon_IP}}\",\n        \"credentials\": {\n            \"username\": \"admin\",\n            \"password\": null\n        },\n        \"backUpSMBVolumes\": true,\n        \"smbCredentials\": {\n            \"username\": \"Administrator\",\n            \"password\": null\n        },\n        \"filterIpConfig\": {\n            \"deniedIpAddresses\": null,\n            \"allowedIpAddresses\": null\n        }\n    }\n}"}],"_postman_id":"0a5ab1e8-3582-4ea6-9216-4c63722653a7"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetching the Isilon Source id\", function () {","    var jsonData = pm.response.json();","    var isilon_source = pm.environment.get(\"isilon_source\");","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kIsilon\") {","            if (jsonData.registrations[i].sourceInfo.name === \"sv4-isilon1\") {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].sourceInfo.id);","            }","        }","    }","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"registrations\"","    ],","    \"properties\": {","        \"registrations\": {","            \"type\": \"array\",","            \"default\": [],","            \"title\": \"The registrations Schema\",","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"title\": \"A Schema\",","                \"required\": [","                    \"id\",","                    \"sourceId\",","                    \"sourceInfo\",","                    \"environment\",","                    \"connections\",","                    \"registrationTimeMsecs\",","                    \"lastRefreshedTimeMsecs\",","                    \"isilonParams\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The id Schema\",","                        \"examples\": [","                            1","                        ]","                    },","                    \"sourceId\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The sourceId Schema\",","                        \"examples\": [","                            1","                        ]","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"title\": \"The sourceInfo Schema\",","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\",","                            \"protectionStats\",","                            \"isilonParams\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"title\": \"The id Schema\",","                                \"examples\": [","                                    1","                                ]","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The name Schema\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The environment Schema\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The objectType Schema\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            },","                            \"protectionStats\": {","                                \"type\": \"null\",","                                \"default\": null,","                                \"title\": \"The protectionStats Schema\",","                                \"examples\": [","                                    null","                                ]","                            },","                            \"isilonParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The isilonParams Schema\",","                                \"required\": [","                                    \"supportedNasMountProtocols\"","                                ],","                                \"properties\": {","                                    \"supportedNasMountProtocols\": {","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"title\": \"The supportedNasMountProtocols Schema\",","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"supportedNasMountProtocols\": null","                                }]","                            }","                        },","                        \"examples\": [{","                            \"id\": 1,","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\",","                            \"protectionStats\": null,","                            \"isilonParams\": {","                                \"supportedNasMountProtocols\": null","                            }","                        }]","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"title\": \"The environment Schema\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"connections\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"title\": \"The connections Schema\",","                        \"items\": {},","                        \"examples\": [","                            []","                        ]","                    },","                    \"registrationTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The registrationTimeMsecs Schema\",","                        \"examples\": [","                            1669110150664","                        ]","                    },","                    \"lastRefreshedTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"title\": \"The lastRefreshedTimeMsecs Schema\",","                        \"examples\": [","                            1669110150664","                        ]","                    },","                    \"isilonParams\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"title\": \"The isilonParams Schema\",","                        \"required\": [","                            \"endpoint\",","                            \"credentials\",","                            \"backUpSMBVolumes\",","                            \"smbCredentials\",","                            \"filterIpConfig\"","                        ],","                        \"properties\": {","                            \"endpoint\": {","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"title\": \"The endpoint Schema\",","                                \"examples\": [","                                    \"10.2.144.30\"","                                ]","                            },","                            \"credentials\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The credentials Schema\",","                                \"required\": [","                                    \"username\",","                                    \"password\"","                                ],","                                \"properties\": {","                                    \"username\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The username Schema\",","                                        \"examples\": [","                                            \"admin\"","                                        ]","                                    },","                                    \"password\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The password Schema\",","                                        \"examples\": [","                                            \"\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"username\": \"admin\",","                                    \"password\": \"\"","                                }]","                            },","                            \"backUpSMBVolumes\": {","                                \"type\": \"boolean\",","                                \"default\": false,","                                \"title\": \"The backUpSMBVolumes Schema\",","                                \"examples\": [","                                    true","                                ]","                            },","                            \"smbCredentials\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The smbCredentials Schema\",","                                \"required\": [","                                    \"username\",","                                    \"password\"","                                ],","                                \"properties\": {","                                    \"username\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The username Schema\",","                                        \"examples\": [","                                            \"Administrator\"","                                        ]","                                    },","                                    \"password\": {","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"title\": \"The password Schema\",","                                        \"examples\": [","                                            \"\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"username\": \"Administrator\",","                                    \"password\": \"\"","                                }]","                            },","                            \"filterIpConfig\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"title\": \"The filterIpConfig Schema\",","                                \"required\": [","                                    \"deniedIpAddresses\",","                                    \"allowedIpAddresses\"","                                ],","                                \"properties\": {","                                    \"deniedIpAddresses\": {","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"title\": \"The deniedIpAddresses Schema\",","                                        \"examples\": [","                                            null","                                        ]","                                    },","                                    \"allowedIpAddresses\": {","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"title\": \"The allowedIpAddresses Schema\",","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"deniedIpAddresses\": null,","                                    \"allowedIpAddresses\": null","                                }]","                            }","                        },","                        \"examples\": [{","                            \"endpoint\": \"10.2.144.30\",","                            \"credentials\": {","                                \"username\": \"admin\",","                                \"password\": \"\"","                            },","                            \"backUpSMBVolumes\": true,","                            \"smbCredentials\": {","                                \"username\": \"Administrator\",","                                \"password\": \"\"","                            },","                            \"filterIpConfig\": {","                                \"deniedIpAddresses\": null,","                                \"allowedIpAddresses\": null","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 1,","                    \"sourceId\": 1,","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    },","                    \"environment\": \"kIsilon\",","                    \"connections\": [],","                    \"registrationTimeMsecs\": 1669110150664,","                    \"lastRefreshedTimeMsecs\": 1669110150664,","                    \"isilonParams\": {","                        \"endpoint\": \"10.2.144.30\",","                        \"credentials\": {","                            \"username\": \"admin\",","                            \"password\": \"\"","                        },","                        \"backUpSMBVolumes\": true,","                        \"smbCredentials\": {","                            \"username\": \"Administrator\",","                            \"password\": \"\"","                        },","                        \"filterIpConfig\": {","                            \"deniedIpAddresses\": null,","                            \"allowedIpAddresses\": null","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 1,","                    \"sourceId\": 1,","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    },","                    \"environment\": \"kIsilon\",","                    \"connections\": [],","                    \"registrationTimeMsecs\": 1669110150664,","                    \"lastRefreshedTimeMsecs\": 1669110150664,","                    \"isilonParams\": {","                        \"endpoint\": \"10.2.144.30\",","                        \"credentials\": {","                            \"username\": \"admin\",","                            \"password\": \"\"","                        },","                        \"backUpSMBVolumes\": true,","                        \"smbCredentials\": {","                            \"username\": \"Administrator\",","                            \"password\": \"\"","                        },","                        \"filterIpConfig\": {","                            \"deniedIpAddresses\": null,","                            \"allowedIpAddresses\": null","                        }","                    }","                }]","            ]","        }","    },","    \"examples\": [{","        \"registrations\": [{","            \"id\": 1,","            \"sourceId\": 1,","            \"sourceInfo\": {","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            },","            \"environment\": \"kIsilon\",","            \"connections\": [],","            \"registrationTimeMsecs\": 1669110150664,","            \"lastRefreshedTimeMsecs\": 1669110150664,","            \"isilonParams\": {","                \"endpoint\": \"10.2.144.30\",","                \"credentials\": {","                    \"username\": \"admin\",","                    \"password\": \"\"","                },","                \"backUpSMBVolumes\": true,","                \"smbCredentials\": {","                    \"username\": \"Administrator\",","                    \"password\": \"\"","                },","                \"filterIpConfig\": {","                    \"deniedIpAddresses\": null,","                    \"allowedIpAddresses\": null","                }","            }","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"b0f7dfa7-58da-457d-a73f-469ef0f25443"}}],"id":"b7b8f031-d6a0-4e02-90f3-05026910ef25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the Isilon cluster is registered with the Cohesity cluster</li>\n<li>Obtain the Id (<code>sourceId</code>) of the Isilon cluster.<br />  The <code>sourceId</code> is required for creating a Protection Group.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"5a1de5f0-4e35-45ba-a0e8-905ee55767a6","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678773033"},{"key":"Date","value":"Tue, 14 Mar 2023 05:50:36 GMT"},{"key":"Content-Length","value":"772"}],"cookie":[],"responseTime":null,"body":"{\n    \"registrations\": [\n                       {\n            \"id\": 4747,\n            \"sourceId\": 4747,\n            \"sourceInfo\": {\n                \"id\": 4747,\n                \"name\": \"{{source_name}}\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kWindows\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\"\n        },\n                     {\n            \"id\": 4725,\n            \"sourceId\": 4725,\n            \"sourceInfo\": {\n                \"id\": 4725,\n                \"name\": \"{{source_name}}\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kLinux\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\"\n        },\n        {\n            \"id\": 3586,\n            \"sourceId\": 3586,\n            \"sourceInfo\": {\n                \"id\": 3586,\n                \"name\": \"{{source_name}}\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kLinux\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\"\n        },\n              {\n            \"id\": 5207,\n            \"sourceId\": 5207,\n            \"sourceInfo\": {\n                \"id\": 5207,\n                \"Name\": \"{{source_name}}\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\",\n                \"protectionStats\": null,\n                \"isilonParams\": {\n                    \"supportedNasMountProtocols\": null\n                }\n            },\n            \"environment\": \"kIsilon\",\n            \"isilonParams\": {\n                \"endpoint\": \"{{source_ip}}\",\n                \"credentials\": {\n                    \"username\": \"admin\",\n                    \"password\": null\n                },\n                \"backUpSMBVolumes\": true,\n                \"smbCredentials\": {\n                    \"username\": \"{{user_name}}\",\n                    \"password\": null\n                },\n                \"filterIpConfig\": {\n                    \"deniedIpAddresses\": null,\n                    \"allowedIpAddresses\": null\n                }\n            }\n        }\n    ]\n}\n\n\n"}],"_postman_id":"b7b8f031-d6a0-4e02-90f3-05026910ef25"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"NASAPITest\"","            ]","        },","        \"backupPolicy\": {","            \"title\": \"The backupPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"regular\": {","                    \"title\": \"The regular Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"incremental\": {","                            \"title\": \"The incremental Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"schedule\": {","                                    \"title\": \"The schedule Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"unit\": {","                                            \"title\": \"The unit Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"default\": \"\",","                                            \"examples\": [","                                                \"Days\"","                                            ]","                                        },","                                        \"daySchedule\": {","                                            \"title\": \"The daySchedule Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"additionalProperties\": true,","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"title\": \"The frequency Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"integer\",","                                                    \"default\": 0,","                                                    \"examples\": [","                                                        1","                                                    ]","                                                }","                                            },","                                            \"examples\": [{","                                                \"frequency\": 1","                                            }]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"daySchedule\": {","                                            \"frequency\": 1","                                        }","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"daySchedule\": {","                                        \"frequency\": 1","                                    }","                                }","                            }]","                        },","                        \"fullBackups\": {","                            \"title\": \"The fullBackups Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"null\",","                            \"default\": null,","                            \"examples\": [","                                null","                            ]","                        },","                        \"retention\": {","                            \"title\": \"The retention Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"unit\": {","                                    \"title\": \"The unit Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"Weeks\"","                                    ]","                                },","                                \"duration\": {","                                    \"title\": \"The duration Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        2","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"unit\": \"Weeks\",","                                \"duration\": 2","                            }]","                        }","                    },","                    \"examples\": [{","                        \"incremental\": {","                            \"schedule\": {","                                \"unit\": \"Days\",","                                \"daySchedule\": {","                                    \"frequency\": 1","                                }","                            }","                        },","                        \"fullBackups\": null,","                        \"retention\": {","                            \"unit\": \"Weeks\",","                            \"duration\": 2","                        }","                    }]","                }","            },","            \"examples\": [{","                \"regular\": {","                    \"incremental\": {","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"daySchedule\": {","                                \"frequency\": 1","                            }","                        }","                    },","                    \"fullBackups\": null,","                    \"retention\": {","                        \"unit\": \"Weeks\",","                        \"duration\": 2","                    }","                }","            }]","        },","        \"description\": {","            \"title\": \"The description Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Policy for newman automation\"","            ]","        },","        \"blackoutWindow\": {","            \"title\": \"The blackoutWindow Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"extendedRetention\": {","            \"title\": \"The extendedRetention Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"cascadedTargetsConfig\": {","            \"title\": \"The cascadedTargetsConfig Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retryOptions\": {","            \"title\": \"The retryOptions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"retries\": {","                    \"title\": \"The retries Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        3","                    ]","                },","                \"retryIntervalMins\": {","                    \"title\": \"The retryIntervalMins Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        5","                    ]","                }","            },","            \"examples\": [{","                \"retries\": 3,","                \"retryIntervalMins\": 5","            }]","        },","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:720\"","            ]","        }","    },","    \"examples\": [{","        \"name\": \"NASAPITest\",","        \"backupPolicy\": {","            \"regular\": {","                \"incremental\": {","                    \"schedule\": {","                        \"unit\": \"Days\",","                        \"daySchedule\": {","                            \"frequency\": 1","                        }","                    }","                },","                \"fullBackups\": null,","                \"retention\": {","                    \"unit\": \"Weeks\",","                    \"duration\": 2","                }","            }","        },","        \"description\": \"Policy for newman automation\",","        \"blackoutWindow\": null,","        \"extendedRetention\": null,","        \"cascadedTargetsConfig\": null,","        \"retryOptions\": {","            \"retries\": 3,","            \"retryIntervalMins\": 5","        },","        \"id\": \"6706421133980411:1668680031418:720\"","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"7bbb3a46-71bd-480a-970b-b65a33cda7ff"}}],"id":"014bec5a-5802-4035-b7f5-52312e7c0679","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"NASIsilon\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the output is required to create the Protection Group for protecting the Isilon source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"7228509d-1fa8-4c03-aea9-f67221068aae","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"NASIsilon\",\n  \"description\": \"Policy for newman automation\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678772990"},{"key":"Date","value":"Tue, 14 Mar 2023 05:49:50 GMT"},{"key":"Content-Length","value":"260"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"NASIsilon\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for newman automation\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"1867183226494767:1669693131113:82017\"\n}"}],"_postman_id":"014bec5a-5802-4035-b7f5-52312e7c0679"},{"name":"Verify Protection Policy Creation","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","            pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","        }","        postman.setNextRequest(\"Get Storage Domains V2\");","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"policies\": {","            \"title\": \"The policies Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"Silver\"","                        ]","                    },","                    \"backupPolicy\": {","                        \"title\": \"The backupPolicy Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"regular\": {","                                \"title\": \"The regular Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"incremental\": {","                                        \"title\": \"The incremental Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"additionalProperties\": true,","                                        \"properties\": {","                                            \"schedule\": {","                                                \"title\": \"The schedule Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"additionalProperties\": true,","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"title\": \"The unit Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"string\",","                                                        \"default\": \"\",","                                                        \"examples\": [","                                                            \"Hours\"","                                                        ]","                                                    },","                                                    \"hourSchedule\": {","                                                        \"title\": \"The hourSchedule Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"object\",","                                                        \"default\": {},","                                                        \"additionalProperties\": true,","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"title\": \"The frequency Schema\",","                                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                                \"type\": \"integer\",","                                                                \"default\": 0,","                                                                \"examples\": [","                                                                    12","                                                                ]","                                                            }","                                                        },","                                                        \"examples\": [{","                                                            \"frequency\": 12","                                                        }]","                                                    }","                                                },","                                                \"examples\": [{","                                                    \"unit\": \"Hours\",","                                                    \"hourSchedule\": {","                                                        \"frequency\": 12","                                                    }","                                                }]","                                            }","                                        },","                                        \"examples\": [{","                                            \"schedule\": {","                                                \"unit\": \"Hours\",","                                                \"hourSchedule\": {","                                                    \"frequency\": 12","                                                }","                                            }","                                        }]","                                    },","                                    \"fullBackups\": {","                                        \"title\": \"The fullBackups Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    },","                                    \"retention\": {","                                        \"title\": \"The retention Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"additionalProperties\": true,","                                        \"properties\": {","                                            \"unit\": {","                                                \"title\": \"The unit Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"string\",","                                                \"default\": \"\",","                                                \"examples\": [","                                                    \"Weeks\"","                                                ]","                                            },","                                            \"duration\": {","                                                \"title\": \"The duration Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"integer\",","                                                \"default\": 0,","                                                \"examples\": [","                                                    2","                                                ]","                                            },","                                            \"dataLockConfig\": {","                                                \"title\": \"The dataLockConfig Schema\",","                                                \"description\": \"An explanation about the purpose of this instance.\",","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"additionalProperties\": true,","                                                \"properties\": {","                                                    \"mode\": {","                                                        \"title\": \"The mode Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"string\",","                                                        \"default\": \"\",","                                                        \"examples\": [","                                                            \"Compliance\"","                                                        ]","                                                    },","                                                    \"unit\": {","                                                        \"title\": \"The unit Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"string\",","                                                        \"default\": \"\",","                                                        \"examples\": [","                                                            \"Weeks\"","                                                        ]","                                                    },","                                                    \"duration\": {","                                                        \"title\": \"The duration Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"integer\",","                                                        \"default\": 0,","                                                        \"examples\": [","                                                            2","                                                        ]","                                                    },","                                                    \"enableWormOnExternalTarget\": {","                                                        \"title\": \"The enableWormOnExternalTarget Schema\",","                                                        \"description\": \"An explanation about the purpose of this instance.\",","                                                        \"type\": \"boolean\",","                                                        \"default\": false,","                                                        \"examples\": [","                                                            false","                                                        ]","                                                    }","                                                },","                                                \"examples\": [{","                                                    \"mode\": \"Compliance\",","                                                    \"unit\": \"Weeks\",","                                                    \"duration\": 2,","                                                    \"enableWormOnExternalTarget\": false","                                                }]","                                            }","                                        },","                                        \"examples\": [{","                                            \"unit\": \"Weeks\",","                                            \"duration\": 2,","                                            \"dataLockConfig\": {","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Weeks\",","                                                \"duration\": 2,","                                                \"enableWormOnExternalTarget\": false","                                            }","                                        }]","                                    }","                                },","                                \"examples\": [{","                                    \"incremental\": {","                                        \"schedule\": {","                                            \"unit\": \"Hours\",","                                            \"hourSchedule\": {","                                                \"frequency\": 12","                                            }","                                        }","                                    },","                                    \"fullBackups\": null,","                                    \"retention\": {","                                        \"unit\": \"Weeks\",","                                        \"duration\": 2,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Weeks\",","                                            \"duration\": 2,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    }","                                }]","                            }","                        },","                        \"examples\": [{","                            \"regular\": {","                                \"incremental\": {","                                    \"schedule\": {","                                        \"unit\": \"Hours\",","                                        \"hourSchedule\": {","                                            \"frequency\": 12","                                        }","                                    }","                                },","                                \"fullBackups\": null,","                                \"retention\": {","                                    \"unit\": \"Weeks\",","                                    \"duration\": 2,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Weeks\",","                                        \"duration\": 2,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                }","                            }","                        }]","                    },","                    \"blackoutWindow\": {","                        \"title\": \"The blackoutWindow Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"extendedRetention\": {","                        \"title\": \"The extendedRetention Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"schedule\": {","                                    \"title\": \"The schedule Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"unit\": {","                                            \"title\": \"The unit Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"examples\": [","                                                \"Days\",","                                                \"Weeks\",","                                                \"Months\"","                                            ]","                                        },","                                        \"frequency\": {","                                            \"title\": \"The frequency Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"examples\": [","                                                1","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"frequency\": 1","                                    },","                                    {","                                        \"unit\": \"Weeks\",","                                        \"frequency\": 1","                                    },","                                    {","                                        \"unit\": \"Months\",","                                        \"frequency\": 1","                                    }]","                                },","                                \"retention\": {","                                    \"title\": \"The retention Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"unit\": {","                                            \"title\": \"The unit Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"examples\": [","                                                \"Days\",","                                                \"Years\"","                                            ]","                                        },","                                        \"duration\": {","                                            \"title\": \"The duration Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"examples\": [","                                                90,","                                                1,","                                                2","                                            ]","                                        },","                                        \"dataLockConfig\": {","                                            \"title\": \"The dataLockConfig Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"object\",","                                            \"additionalProperties\": true,","                                            \"properties\": {","                                                \"mode\": {","                                                    \"title\": \"The mode Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"string\",","                                                    \"examples\": [","                                                        \"Compliance\"","                                                    ]","                                                },","                                                \"unit\": {","                                                    \"title\": \"The unit Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"string\",","                                                    \"examples\": [","                                                        \"Days\",","                                                        \"Years\"","                                                    ]","                                                },","                                                \"duration\": {","                                                    \"title\": \"The duration Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"integer\",","                                                    \"examples\": [","                                                        90,","                                                        1,","                                                        2","                                                    ]","                                                },","                                                \"enableWormOnExternalTarget\": {","                                                    \"title\": \"The enableWormOnExternalTarget Schema\",","                                                    \"description\": \"An explanation about the purpose of this instance.\",","                                                    \"type\": \"boolean\",","                                                    \"examples\": [","                                                        false","                                                    ]","                                                }","                                            },","                                            \"examples\": [{","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Days\",","                                                \"duration\": 90,","                                                \"enableWormOnExternalTarget\": false","                                            },","                                            {","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Years\",","                                                \"duration\": 1,","                                                \"enableWormOnExternalTarget\": false","                                            },","                                            {","                                                \"mode\": \"Compliance\",","                                                \"unit\": \"Years\",","                                                \"duration\": 2,","                                                \"enableWormOnExternalTarget\": false","                                            }]","                                        }","                                    },","                                    \"examples\": [{","                                        \"unit\": \"Days\",","                                        \"duration\": 90,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Days\",","                                            \"duration\": 90,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    },","                                    {","                                        \"unit\": \"Years\",","                                        \"duration\": 1,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Years\",","                                            \"duration\": 1,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    },","                                    {","                                        \"unit\": \"Years\",","                                        \"duration\": 2,","                                        \"dataLockConfig\": {","                                            \"mode\": \"Compliance\",","                                            \"unit\": \"Years\",","                                            \"duration\": 2,","                                            \"enableWormOnExternalTarget\": false","                                        }","                                    }]","                                },","                                \"configId\": {","                                    \"title\": \"The configId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"examples\": [","                                        \"537417FC-842E-4913-8DD6-C2BE2B273E12\",","                                        \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\",","                                        \"C1136646-97B8-4836-9002-402C0852BB85\"","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Days\",","                                    \"duration\": 90,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Days\",","                                        \"duration\": 90,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Weeks\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 1,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 1,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Months\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 2,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 2,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                            }]","                        },","                        \"examples\": [","                            [{","                                \"schedule\": {","                                    \"unit\": \"Days\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Days\",","                                    \"duration\": 90,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Days\",","                                        \"duration\": 90,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Weeks\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 1,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 1,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                            },","                            {","                                \"schedule\": {","                                    \"unit\": \"Months\",","                                    \"frequency\": 1","                                },","                                \"retention\": {","                                    \"unit\": \"Years\",","                                    \"duration\": 2,","                                    \"dataLockConfig\": {","                                        \"mode\": \"Compliance\",","                                        \"unit\": \"Years\",","                                        \"duration\": 2,","                                        \"enableWormOnExternalTarget\": false","                                    }","                                },","                                \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                            }]","                        ]","                    },","                    \"cascadedTargetsConfig\": {","                        \"title\": \"The cascadedTargetsConfig Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"6706421133980411:1668680031418:2\"","                        ]","                    }","                },","                \"examples\": [{","                    \"name\": \"Silver\",","                    \"backupPolicy\": {","                        \"regular\": {","                            \"incremental\": {","                                \"schedule\": {","                                    \"unit\": \"Hours\",","                                    \"hourSchedule\": {","                                        \"frequency\": 12","                                    }","                                }","                            },","                            \"fullBackups\": null,","                            \"retention\": {","                                \"unit\": \"Weeks\",","                                \"duration\": 2,","                                \"dataLockConfig\": {","                                    \"mode\": \"Compliance\",","                                    \"unit\": \"Weeks\",","                                    \"duration\": 2,","                                    \"enableWormOnExternalTarget\": false","                                }","                            }","                        }","                    },","                    \"blackoutWindow\": null,","                    \"extendedRetention\": [{","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Days\",","                            \"duration\": 90,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Days\",","                                \"duration\": 90,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Weeks\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 1,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 1,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Months\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 2,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 2,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                    }],","                    \"cascadedTargetsConfig\": null,","                    \"id\": \"6706421133980411:1668680031418:2\"","                }]","            },","            \"examples\": [","                [{","                    \"name\": \"Silver\",","                    \"backupPolicy\": {","                        \"regular\": {","                            \"incremental\": {","                                \"schedule\": {","                                    \"unit\": \"Hours\",","                                    \"hourSchedule\": {","                                        \"frequency\": 12","                                    }","                                }","                            },","                            \"fullBackups\": null,","                            \"retention\": {","                                \"unit\": \"Weeks\",","                                \"duration\": 2,","                                \"dataLockConfig\": {","                                    \"mode\": \"Compliance\",","                                    \"unit\": \"Weeks\",","                                    \"duration\": 2,","                                    \"enableWormOnExternalTarget\": false","                                }","                            }","                        }","                    },","                    \"blackoutWindow\": null,","                    \"extendedRetention\": [{","                        \"schedule\": {","                            \"unit\": \"Days\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Days\",","                            \"duration\": 90,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Days\",","                                \"duration\": 90,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Weeks\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 1,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 1,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","                    },","                    {","                        \"schedule\": {","                            \"unit\": \"Months\",","                            \"frequency\": 1","                        },","                        \"retention\": {","                            \"unit\": \"Years\",","                            \"duration\": 2,","                            \"dataLockConfig\": {","                                \"mode\": \"Compliance\",","                                \"unit\": \"Years\",","                                \"duration\": 2,","                                \"enableWormOnExternalTarget\": false","                            }","                        },","                        \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","                    }],","                    \"cascadedTargetsConfig\": null,","                    \"id\": \"6706421133980411:1668680031418:2\"","                }]","            ]","        }","    },","    \"examples\": [{","        \"policies\": [{","            \"name\": \"Silver\",","            \"backupPolicy\": {","                \"regular\": {","                    \"incremental\": {","                        \"schedule\": {","                            \"unit\": \"Hours\",","                            \"hourSchedule\": {","                                \"frequency\": 12","                            }","                        }","                    },","                    \"fullBackups\": null,","                    \"retention\": {","                        \"unit\": \"Weeks\",","                        \"duration\": 2,","                        \"dataLockConfig\": {","                            \"mode\": \"Compliance\",","                            \"unit\": \"Weeks\",","                            \"duration\": 2,","                            \"enableWormOnExternalTarget\": false","                        }","                    }","                }","            },","            \"blackoutWindow\": null,","            \"extendedRetention\": [","                {","                \"schedule\": {","                    \"unit\": \"Days\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Days\",","                    \"duration\": 90,","                    \"dataLockConfig\": {","                        \"mode\": \"Compliance\",","                        \"unit\": \"Days\",","                        \"duration\": 90,","                        \"enableWormOnExternalTarget\": false","                    }","                },","                \"configId\": \"537417FC-842E-4913-8DD6-C2BE2B273E12\"","            },","            {","                \"schedule\": {","                    \"unit\": \"Weeks\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Years\",","                    \"duration\": 1,","                    \"dataLockConfig\": {","                        \"mode\": \"Compliance\",","                        \"unit\": \"Years\",","                        \"duration\": 1,","                        \"enableWormOnExternalTarget\": false","                    }","                },","                \"configId\": \"4C6C20D0-00AA-40F8-BAE1-B5659C02AFCA\"","            },","            {","                \"schedule\": {","                    \"unit\": \"Months\",","                    \"frequency\": 1","                },","                \"retention\": {","                    \"unit\": \"Years\",","                    \"duration\": 2,","                    \"dataLockConfig\": {","                        \"mode\": \"Compliance\",","                        \"unit\": \"Years\",","                        \"duration\": 2,","                        \"enableWormOnExternalTarget\": false","                    }","                },","                \"configId\": \"C1136646-97B8-4836-9002-402C0852BB85\"","            }","            ],","            \"cascadedTargetsConfig\": null,","            \"id\": \"6706421133980411:1668680031418:2\"","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"d1110456-410e-45c9-a49c-ad26f3689184"}}],"id":"e0629302-b626-412d-8bb1-9d865ab4b97e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Returns the list of policies available on the Cohesity cluster along with their policy IDs and information on the parameters configured for the Protection Policy.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the policy you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Protection Policy you want to use for creating the Protection Group.</li>\n</ul>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"1d50e67c-6f80-4bc1-a58c-2a9b0f7a23ba","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678773570"},{"key":"Date","value":"Tue, 14 Mar 2023 05:59:30 GMT"},{"key":"Content-Length","value":"539"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n        {\n            \"name\": \"NASIsilon\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for newman automation\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"1867183226494767:1669693131113:82017\"\n        },\n   \n        {\n            \"name\": \"Diamond\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Minutes\",\n                            \"minuteSchedule\": {\n                                \"frequency\": 10\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"1867183226494767:1669693131113:14307\"\n        }\n    ]\n}\n"}],"_postman_id":"e0629302-b626-412d-8bb1-9d865ab4b97e"},{"name":"Get Storage Domain List","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i=0; i< jsonData.storageDomains.length; i++){","","    console.log(jsonData.storageDomains[i]);","if (jsonData.storageDomains[i].name=== \"DefaultStorageDomain\") {","    pm.environment.set(\"viewBoxId\", jsonData.storageDomains[i].id);","}","}","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"storageDomains\": {","            \"title\": \"The storageDomains Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            5","                        ]","                    },","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"DefaultStorageDomain\"","                        ]","                    },","                    \"clusterPartitionId\": {","                        \"title\": \"The clusterPartitionId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            3","                        ]","                    },","                    \"clusterPartitionName\": {","                        \"title\": \"The clusterPartitionName Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"DefaultPartition\"","                        ]","                    },","                    \"subnetWhitelist\": {","                        \"title\": \"The subnetWhitelist Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"nisDomainNames\": {","                        \"title\": \"The nisDomainNames Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"tenantIds\": {","                        \"title\": \"The tenantIds Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"schemas\": {","                        \"title\": \"The schemas Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"fileCountBySize\": {","                        \"title\": \"The fileCountBySize Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"storagePolicy\": {","                        \"title\": \"The storagePolicy Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"title\": \"The deduplicationCompressionDelaySecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"numDiskFailuresTolerated\": {","                                \"title\": \"The numDiskFailuresTolerated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"numNodeFailuresTolerated\": {","                                \"title\": \"The numNodeFailuresTolerated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"compressionParams\": {","                                \"title\": \"The compressionParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"type\": {","                                        \"title\": \"The type Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"Low\"","                                        ]","                                    },","                                    \"inlineEnabled\": {","                                        \"title\": \"The inlineEnabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"type\": \"Low\",","                                    \"inlineEnabled\": true","                                }]","                            },","                            \"deduplicationParams\": {","                                \"title\": \"The deduplicationParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"enabled\": {","                                        \"title\": \"The enabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    },","                                    \"inlineEnabled\": {","                                        \"title\": \"The inlineEnabled Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            true","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"enabled\": true,","                                    \"inlineEnabled\": true","                                }]","                            }","                        },","                        \"examples\": [{","                            \"deduplicationCompressionDelaySecs\": 0,","                            \"numDiskFailuresTolerated\": 0,","                            \"numNodeFailuresTolerated\": 0,","                            \"compressionParams\": {","                                \"type\": \"Low\",","                                \"inlineEnabled\": true","                            },","                            \"deduplicationParams\": {","                                \"enabled\": true,","                                \"inlineEnabled\": true","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 5,","                    \"name\": \"DefaultStorageDomain\",","                    \"clusterPartitionId\": 3,","                    \"clusterPartitionName\": \"DefaultPartition\",","                    \"subnetWhitelist\": null,","                    \"nisDomainNames\": null,","                    \"tenantIds\": null,","                    \"schemas\": null,","                    \"fileCountBySize\": null,","                    \"storagePolicy\": {","                        \"deduplicationCompressionDelaySecs\": 0,","                        \"numDiskFailuresTolerated\": 0,","                        \"numNodeFailuresTolerated\": 0,","                        \"compressionParams\": {","                            \"type\": \"Low\",","                            \"inlineEnabled\": true","                        },","                        \"deduplicationParams\": {","                            \"enabled\": true,","                            \"inlineEnabled\": true","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 5,","                    \"name\": \"DefaultStorageDomain\",","                    \"clusterPartitionId\": 3,","                    \"clusterPartitionName\": \"DefaultPartition\",","                    \"subnetWhitelist\": null,","                    \"nisDomainNames\": null,","                    \"tenantIds\": null,","                    \"schemas\": null,","                    \"fileCountBySize\": null,","                    \"storagePolicy\": {","                        \"deduplicationCompressionDelaySecs\": 0,","                        \"numDiskFailuresTolerated\": 0,","                        \"numNodeFailuresTolerated\": 0,","                        \"compressionParams\": {","                            \"type\": \"Low\",","                            \"inlineEnabled\": true","                        },","                        \"deduplicationParams\": {","                            \"enabled\": true,","                            \"inlineEnabled\": true","                        }","                    }","                }]","            ]","        }","    },","    \"examples\": [{","        \"storageDomains\": [{","            \"id\": 5,","            \"name\": \"DefaultStorageDomain\",","            \"clusterPartitionId\": 3,","            \"clusterPartitionName\": \"DefaultPartition\",","            \"subnetWhitelist\": null,","            \"nisDomainNames\": null,","            \"tenantIds\": null,","            \"schemas\": null,","            \"fileCountBySize\": null,","            \"storagePolicy\": {","                \"deduplicationCompressionDelaySecs\": 0,","                \"numDiskFailuresTolerated\": 0,","                \"numNodeFailuresTolerated\": 0,","                \"compressionParams\": {","                    \"type\": \"Low\",","                    \"inlineEnabled\": true","                },","                \"deduplicationParams\": {","                    \"enabled\": true,","                    \"inlineEnabled\": true","                }","            }","        }]","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"464d1d61-33f1-4d3c-a620-e2571833e29a"}}],"id":"9bdfddca-97ba-440e-9531-7c54637e1f19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>The Storage Domain ID is required when you are creating the Protection Group for protecting your Isilon cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"3ab2b854-e352-41fb-af9b-83ba58601596","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678773698"},{"key":"Date","value":"Tue, 14 Mar 2023 06:01:37 GMT"},{"key":"Content-Length","value":"401"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 6246697,\n            \"name\": \"Storage_Domain\",\n            \"clusterPartitionId\": 3,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": false,\n            \"nisDomainNames\": [\n                \"\"\n            ],\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"cloudDownWaterFallParams\": {\n                \"thresholdSecs\": 5184000\n            },\n            \"defaultViewQuota\": {},\n            \"physicalQuota\": {},\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        },\n        {\n            \"id\": 5,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 3,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"nisDomainNames\": null,\n            \"tenantIds\": [\n                \"org1/\"\n            ],\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\"\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"9bdfddca-97ba-440e-9531-7c54637e1f19"},{"name":"Get Objects Lists","event":[{"listen":"test","script":{"exec":["tests[\"Fetching NAS mountpoint, Status code is 200\"] = responseCode.code === 200;","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","if (jsonData !== null && jsonData !== undefined && jsonData.objects !== undefined) {","    var nodes = jsonData.objects;","    for (var i = 0; i < nodes.length; i++) {","        var source_id = pm.environment.get('sourceId');","        if (nodes[i].name === \"/ifs/fileFolderRestoreTest\")","         {","            pm.environment.set(\"mountPointId\", nodes[i].objectProtectionInfos[0].objectId)","            break;","        }","    }","}","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"objects\": {","            \"title\": \"The objects Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\"","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"objectType\": {","                        \"title\": \"The objectType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kMountPoint\"","                        ]","                    },","                    \"logicalSizeBytes\": {","                        \"title\": \"The logicalSizeBytes Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            0","                        ]","                    },","                    \"globalId\": {","                        \"title\": \"The globalId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\"","                        ]","                    },","                    \"protectionStats\": {","                        \"title\": \"The protectionStats Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"isilonParams\": {","                        \"title\": \"The isilonParams Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"title\": \"The supportedNasMountProtocols Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            }","                        },","                        \"examples\": [{","                            \"supportedNasMountProtocols\": null","                        }]","                    },","                    \"tags\": {","                        \"title\": \"The tags Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"snapshotTags\": {","                        \"title\": \"The snapshotTags Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"objectProtectionInfos\": {","                        \"title\": \"The objectProtectionInfos Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"objectId\": {","                                    \"title\": \"The objectId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        64","                                    ]","                                },","                                \"sourceId\": {","                                    \"title\": \"The sourceId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1","                                    ]","                                },","                                \"clusterId\": {","                                    \"title\": \"The clusterId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        6706421133980411","                                    ]","                                },","                                \"clusterIncarnationId\": {","                                    \"title\": \"The clusterIncarnationId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1668680031418","                                    ]","                                },","                                \"tenantIds\": {","                                    \"title\": \"The tenantIds Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"isDeleted\": {","                                    \"title\": \"The isDeleted Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"protectionGroups\": {","                                    \"title\": \"The protectionGroups Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"objectBackupConfiguration\": {","                                    \"title\": \"The objectBackupConfiguration Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                }","                            },","                            \"examples\": [{","                                \"objectId\": 64,","                                \"sourceId\": 1,","                                \"clusterId\": 6706421133980411,","                                \"clusterIncarnationId\": 1668680031418,","                                \"tenantIds\": null,","                                \"isDeleted\": false,","                                \"protectionGroups\": null,","                                \"objectBackupConfiguration\": null","                            }]","                        },","                        \"examples\": [","                            [{","                                \"objectId\": 64,","                                \"sourceId\": 1,","                                \"clusterId\": 6706421133980411,","                                \"clusterIncarnationId\": 1668680031418,","                                \"tenantIds\": null,","                                \"isDeleted\": false,","                                \"protectionGroups\": null,","                                \"objectBackupConfiguration\": null","                            }]","                        ]","                    },","                    \"sourceInfo\": {","                        \"title\": \"The sourceInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"title\": \"The environment Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"title\": \"The objectType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            },","                            \"uuid\": {","                                \"title\": \"The uuid Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\"","                                ]","                            },","                            \"protectionStats\": {","                                \"title\": \"The protectionStats Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"isilonParams\": {","                                \"title\": \"The isilonParams Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"supportedNasMountProtocols\": {","                                        \"title\": \"The supportedNasMountProtocols Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"supportedNasMountProtocols\": null","                                }]","                            }","                        },","                        \"examples\": [{","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\",","                            \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                            \"protectionStats\": null,","                            \"isilonParams\": {","                                \"supportedNasMountProtocols\": null","                            }","                        }]","                    }","                },","                \"examples\": [{","                    \"name\": \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"logicalSizeBytes\": 0,","                    \"globalId\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": null","                    },","                    \"tags\": null,","                    \"snapshotTags\": null,","                    \"objectProtectionInfos\": [{","                        \"objectId\": 64,","                        \"sourceId\": 1,","                        \"clusterId\": 6706421133980411,","                        \"clusterIncarnationId\": 1668680031418,","                        \"tenantIds\": null,","                        \"isDeleted\": false,","                        \"protectionGroups\": null,","                        \"objectBackupConfiguration\": null","                    }],","                    \"sourceInfo\": {","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    }","                }]","            },","            \"examples\": [","                [{","                    \"name\": \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"logicalSizeBytes\": 0,","                    \"globalId\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": null","                    },","                    \"tags\": null,","                    \"snapshotTags\": null,","                    \"objectProtectionInfos\": [{","                        \"objectId\": 64,","                        \"sourceId\": 1,","                        \"clusterId\": 6706421133980411,","                        \"clusterIncarnationId\": 1668680031418,","                        \"tenantIds\": null,","                        \"isDeleted\": false,","                        \"protectionGroups\": null,","                        \"objectBackupConfiguration\": null","                    }],","                    \"sourceInfo\": {","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\",","                        \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                        \"protectionStats\": null,","                        \"isilonParams\": {","                            \"supportedNasMountProtocols\": null","                        }","                    }","                }]","            ]","        },","        \"paginationCookie\": {","            \"title\": \"The paginationCookie Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"500\"","            ]","        },","        \"count\": {","            \"title\": \"The count Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                772","            ]","        }","    },","    \"examples\": [{","        \"objects\": [{","            \"name\": \"/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files\",","            \"environment\": \"kIsilon\",","            \"objectType\": \"kMountPoint\",","            \"logicalSizeBytes\": 0,","            \"globalId\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7_kMountPoint_/ifs/TwoBillionSmall_15G/dataset_10x10_5million_files_System\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": null","            },","            \"tags\": null,","            \"snapshotTags\": null,","            \"objectProtectionInfos\": [{","                \"objectId\": 64,","                \"sourceId\": 1,","                \"clusterId\": 6706421133980411,","                \"clusterIncarnationId\": 1668680031418,","                \"tenantIds\": null,","                \"isDeleted\": false,","                \"protectionGroups\": null,","                \"objectBackupConfiguration\": null","            }],","            \"sourceInfo\": {","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"uuid\": \"kCluster_000e1ea554804610cd5a301378b27af1ebd7\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            }","        }],","        \"paginationCookie\": \"500\",","        \"count\": 772","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"00e50e73-ff13-4d8d-950a-b3ac43369b67"}}],"id":"42ab4c62-661d-4f0b-95e9-133066221a64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/objects","description":"<p>Returns the list of objects available on the Cohesity cluster for protection.</p>\n<p>You can use this information for creating the Protection Group for protecting the objects.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","objects"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"9ba3ef80-9520-4fa5-833b-3675af5e3d19","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster_1-ip}}irisservices/api/v1/public/protectionSources/objects?id={{sourceId}}","protocol":"https","host":["{{cluster_1-ip}}irisservices"],"path":["api","v1","public","protectionSources","objects"],"query":[{"key":"id","value":"{{sourceId}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5984,\n        \"parentId\": 5207,\n        \"name\": \"/ifs/SMB-Only/jn_test\",\n        \"environment\": \"kIsilon\",\n        \"isilonProtectionSource\": {\n            \"type\": \"kMountPoint\",\n            \"mountPoint\": {\n                \"protocols\": [\n                    \"kSmb\"\n                ],\n                \"smbMountPoints\": [\n                    {\n                        \"shareName\": \"jn_test_smb\",\n                        \"description\": \"\",\n                        \"accessZoneId\": 3\n                    }\n                ],\n                \"path\": \"/ifs/SMB-Only/jn_test\",\n                \"accessZoneName\": \"SMB-Only\"\n            }\n        }\n    },\n    {\n        \"id\": 5985,\n        \"parentId\": 5207,\n        \"name\": \"/ifs/SMB-Only/kavita\",\n        \"environment\": \"kIsilon\",\n        \"isilonProtectionSource\": {\n            \"type\": \"kMountPoint\",\n            \"mountPoint\": {\n                \"protocols\": [\n                    \"kSmb\"\n                ],\n                \"smbMountPoints\": [\n                    {\n                        \"shareName\": \"kavita\",\n                        \"description\": \"\",\n                        \"accessZoneId\": 3\n                    }\n                ],\n                \"path\": \"/ifs/SMB-Only/kavita\",\n                \"accessZoneName\": \"SMB-Only\"\n            }\n        }\n    },\n    {\n        \"id\": 5997,\n        \"parentId\": 5207,\n        \"name\": \"/ifs/pttest/fitest\",\n        \"environment\": \"kIsilon\",\n        \"isilonProtectionSource\": {\n            \"type\": \"kMountPoint\",\n            \"mountPoint\": {\n                \"protocols\": [\n                    \"kSmb\"\n                ],\n                \"smbMountPoints\": [\n                    {\n                        \"shareName\": \"fitest\",\n                        \"description\": \"\",\n                        \"accessZoneId\": 19\n                    }\n                ],\n                \"path\": \"/ifs/pttest/fitest\",\n                \"accessZoneName\": \"ptzone\"\n            }\n        }\n    },\n    {\n        \"id\": 5998,\n        \"parentId\": 5207,\n        \"name\": \"/ifs/QA-CCT-VE-Cluster\",\n        \"environment\": \"kIsilon\",\n        \"isilonProtectionSource\": {\n            \"type\": \"kMountPoint\",\n            \"mountPoint\": {\n                \"protocols\": [\n                    \"kSmb\"\n                ],\n                \"smbMountPoints\": [\n                    {\n                        \"shareName\": \"QA-CCT-VE-Cluster\",\n                        \"description\": \"\",\n                        \"accessZoneId\": 22\n                    }\n                ],\n                \"path\": \"/ifs/QA-CCT-VE-Cluster\",\n                \"accessZoneName\": \"QA-CCT-Patch\"\n            }\n        }\n    },\n    {\n        \"id\": 4077,\n        \"parentId\": 69,\n        \"name\": \"cirros-dmaas-test-12\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"cirros-dmaas-test-12\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-212245\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kInaccessible\",\n            \"toolsRunningStatus\": \"kUnknown\",\n            \"hostType\": \"kLinux\",\n            \"virtualDisks\": [\n                {\n                    \"filename\": \"[Backup-View] Clone-Vms/cohesity_int_3/dmaas/dmaas-12_2.vmdk\",\n                    \"logicalSizeBytes\": 46137344,\n                    \"controllerType\": \"SCSI\",\n                    \"busNumber\": 0,\n                    \"unitNumber\": 0\n                }\n            ],\n            \"version\": \"vmx-13\"\n        }\n    }\n]"}],"_postman_id":"42ab4c62-661d-4f0b-95e9-133066221a64"},{"name":"Create Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var jsonData = pm.response.json();","    pm.environment.set(\"protectionJobId\", jsonData.id);","    pm.environment.set(\"protectionJobName\", jsonData.name);","    pm.expect(jsonData.description).to.be.a('string')","    pm.expect(jsonData.isActive).to.be.a('boolean')","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.abortInBlackouts).to.be.a('boolean')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.priority).to.be.a('string')","    pm.expect(jsonData.environment).to.be.a('string')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.sourceId).to.be.a('number')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].name).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.sourceName).to.be.a('string')","    pm.expect(jsonData.isPaused).to.be.a('boolean')","    pm.expect(jsonData.qosPolicy).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.storageDomainId).to.be.a('number')","    pm.expect(jsonData.policyId).to.be.a('string')","    pm.expect(jsonData.startTime).to.be.an('object')","    pm.expect(jsonData.startTime.timeZone).to.be.a('string')","    pm.expect(jsonData.startTime.minute).to.be.a('number')","    pm.expect(jsonData.startTime.hour).to.be.a('number')","    pm.expect(jsonData.alertPolicy).to.be.an('object')","    pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","    pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","    for (var i = 0; i < jsonData.alertPolicy.alertTargets.length; i++) {","        pm.expect(jsonData.alertPolicy.alertTargets[i].emailAddress).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].recipientType).to.be.a('string')","        pm.expect(jsonData.alertPolicy.alertTargets[i].language).to.be.a('string')","    }","    pm.expect(jsonData.sla).to.be.an('array')","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","    for (var i = 0; i < jsonData.sla.length; i++) {","        pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","        pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:722\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"NAS_ProtectionJob\"","            ]","        },","        \"policyId\": {","            \"title\": \"The policyId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:721\"","            ]","        },","        \"priority\": {","            \"title\": \"The priority Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kLow\"","            ]","        },","        \"storageDomainId\": {","            \"title\": \"The storageDomainId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                5","            ]","        },","        \"description\": {","            \"title\": \"The description Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"string\"","            ]","        },","        \"startTime\": {","            \"title\": \"The startTime Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"hour\": {","                    \"title\": \"The hour Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        0","                    ]","                },","                \"minute\": {","                    \"title\": \"The minute Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        0","                    ]","                },","                \"timeZone\": {","                    \"title\": \"The timeZone Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"America/Los_Angeles\"","                    ]","                }","            },","            \"examples\": [{","                \"hour\": 0,","                \"minute\": 0,","                \"timeZone\": \"America/Los_Angeles\"","            }]","        },","        \"endTimeUsecs\": {","            \"title\": \"The endTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                0","            ]","        },","        \"alertPolicy\": {","            \"title\": \"The alertPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"backupRunStatus\": {","                    \"title\": \"The backupRunStatus Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kSuccess\"","                        ]","                    },","                    \"examples\": [","                        [","                            \"kSuccess\"]","                    ]","                },","                \"alertTargets\": {","                    \"title\": \"The alertTargets Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {},","                    \"examples\": [","                        []","                    ]","                }","            },","            \"examples\": [{","                \"backupRunStatus\": [","                    \"kSuccess\"","                ],","                \"alertTargets\": []","            }]","        },","        \"sla\": {","            \"title\": \"The sla Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"additionalProperties\": true,","                \"properties\": {","                    \"backupRunType\": {","                        \"title\": \"The backupRunType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"examples\": [","                            \"kIncremental\",","                            \"kFull\"","                        ]","                    },","                    \"slaMinutes\": {","                        \"title\": \"The slaMinutes Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"examples\": [","                            1,","                            120","                        ]","                    }","                },","                \"examples\": [{","                    \"backupRunType\": \"kIncremental\",","                    \"slaMinutes\": 1","                },","                {","                    \"backupRunType\": \"kFull\",","                    \"slaMinutes\": 120","                }]","            },","            \"examples\": [","                [{","                    \"backupRunType\": \"kIncremental\",","                    \"slaMinutes\": 1","                },","                {","                    \"backupRunType\": \"kFull\",","                    \"slaMinutes\": 120","                }]","            ]","        },","        \"qosPolicy\": {","            \"title\": \"The qosPolicy Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kBackupHDD\"","            ]","        },","        \"abortInBlackouts\": {","            \"title\": \"The abortInBlackouts Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"isActive\": {","            \"title\": \"The isActive Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"isPaused\": {","            \"title\": \"The isPaused Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"environment\": {","            \"title\": \"The environment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"missingEntities\": {","            \"title\": \"The missingEntities Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"id\": {","                                \"title\": \"The id Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    26","                                ]","                            },","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"/ifs/fileFolderRestoreTest\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"id\": 26,","                            \"name\": \"/ifs/fileFolderRestoreTest\"","                        }]","                    },","                    \"examples\": [","                        [{","                            \"id\": 26,","                            \"name\": \"/ifs/fileFolderRestoreTest\"","                        }]","                    ]","                },","                \"protocol\": {","                    \"title\": \"The protocol Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"kNfs3\"","                    ]","                },","                \"sourceId\": {","                    \"title\": \"The sourceId Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"examples\": [","                        1","                    ]","                },","                \"sourceName\": {","                    \"title\": \"The sourceName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\"","                }],","                \"protocol\": \"kNfs3\",","                \"sourceId\": 1,","                \"sourceName\": \"sv4-isilon1\"","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:722\",","        \"name\": \"NAS_ProtectionJob\",","        \"policyId\": \"6706421133980411:1668680031418:721\",","        \"priority\": \"kLow\",","        \"storageDomainId\": 5,","        \"description\": \"string\",","        \"startTime\": {","            \"hour\": 0,","            \"minute\": 0,","            \"timeZone\": \"America/Los_Angeles\"","        },","        \"endTimeUsecs\": 0,","        \"alertPolicy\": {","            \"backupRunStatus\": [","                \"kSuccess\"","            ],","            \"alertTargets\": []","        },","        \"sla\": [{","            \"backupRunType\": \"kIncremental\",","            \"slaMinutes\": 1","        },","        {","            \"backupRunType\": \"kFull\",","            \"slaMinutes\": 120","        }],","        \"qosPolicy\": \"kBackupHDD\",","        \"abortInBlackouts\": true,","        \"isActive\": true,","        \"isPaused\": true,","        \"environment\": \"kIsilon\",","        \"permissions\": null,","        \"missingEntities\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"id\": 26,","                \"name\": \"/ifs/fileFolderRestoreTest\"","            }],","            \"protocol\": \"kNfs3\",","            \"sourceId\": 1,","            \"sourceName\": \"sv4-isilon1\"","        }","    }]","}"," var response = pm.response.json()","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});"],"type":"text/javascript","id":"fee20cc7-977a-4b70-8964-25edbe71c36b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f3727ab0-99c5-46e1-9c34-dfaf7cbc0867"}}],"id":"e0682d16-3e74-4c32-8a15-0dbcf7754ccb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"policyId\": \"1867183226494767:1669693131113:3\",\n  \"startTime\": {\n    \"hour\": 15,\n    \"minute\": 42,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"priority\": \"kMedium\",\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": false,\n  \"storageDomainId\": 5,\n  \"name\": \"Isilon_SMB\",\n  \"environment\": \"kIsilon\",\n  \"isPaused\": false,\n  \"description\": \"\",\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"id\": 5997\n      },\n      {\n        \"id\": 5984\n      }\n    ],\n    \"directCloudArchive\": false,\n    \"nativeFormat\": true,\n    \"indexingPolicy\": {\n      \"enableIndexing\": true,\n      \"includePaths\": [\n        \"/\"\n      ],\n      \"excludePaths\": []\n    },\n    \"protocol\": \"kCifs1\",\n    \"continueOnError\": true,\n    \"useChangelist\": false,\n    \"encryptionEnabled\": true,\n    \"backupExistingSnapshot\": true,\n    \"excludeObjectIds\": []\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a Protection Group for protecting Isilon.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the Isilon source to be protected are required in the request body for running this API.</li>\n<li>For protecting Iislon volumes of type SMB, ensure to enter the <code>protocol</code> value as kCifs1, kCifs2, or kCifs3 in the request body.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the Isilon source.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"205da22a-2c12-420e-a5fe-01a9a3c3dbb0","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"policyId\": \"1867183226494767:1669693131113:3\",\n  \"startTime\": {\n    \"hour\": 15,\n    \"minute\": 42,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"priority\": \"kMedium\",\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": false,\n  \"storageDomainId\": 5,\n  \"name\": \"Isilon_SMB_API2\",\n  \"environment\": \"kIsilon\",\n  \"isPaused\": false,\n  \"description\": \"\",\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"id\": 5997\n      },\n      {\n        \"id\": 5984\n      }\n    ],\n    \"directCloudArchive\": false,\n    \"nativeFormat\": true,\n    \"indexingPolicy\": {\n      \"enableIndexing\": true,\n      \"includePaths\": [\n        \"/\"\n      ],\n      \"excludePaths\": []\n    },\n    \"protocol\": \"kCifs1\",\n    \"continueOnError\": true,\n    \"useChangelist\": false,\n    \"encryptionEnabled\": true,\n    \"backupExistingSnapshot\": true,\n    \"excludeObjectIds\": []\n  }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678790903"},{"key":"Date","value":"Tue, 14 Mar 2023 10:48:22 GMT"},{"key":"Content-Length","value":"546"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1867183226494767:1669693131113:82780\",\n    \"name\": \"Isilon_SMB\",\n    \"policyId\": \"1867183226494767:1669693131113:3\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 5,\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 15,\n        \"minute\": 42,\n        \"timeZone\": \"Asia/Calcutta\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        },\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kIsilon\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"id\": 5997,\n                \"name\": \"/ifs/pttest/fitest\"\n            },\n            {\n                \"id\": 5984,\n                \"name\": \"/ifs/SMB-Only/jn_test\"\n            }\n        ],\n        \"directCloudArchive\": false,\n        \"nativeFormat\": true,\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": null\n        },\n        \"protocol\": \"kCifs1\",\n        \"continueOnError\": true,\n        \"encryptionEnabled\": true,\n        \"useChangelist\": false,\n        \"sourceId\": 5207,\n        \"sourceName\": \"sv4-isilon1\"\n    }\n}"}],"_postman_id":"e0682d16-3e74-4c32-8a15-0dbcf7754ccb"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"ed2aaac2-f847-4b7b-a7ea-ae18125d675e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"63a6ffb5-408f-4313-ae8f-94e67134b64e"}}],"id":"b47eb83b-8557-483f-b3d0-c63adfed395e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs","description":"<p>Runs the Protection Group created for protecting the Isilon source.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionJobId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ffca2513-64a6-4e7b-9a43-e09c349f04db","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"1867183226494767:1669693131113:82780\"\n}"}],"_postman_id":"b47eb83b-8557-483f-b3d0-c63adfed395e"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function() {}, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","     var resp = pm.response.json();","     var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if((status==\"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","     setTimeout(function() {}, 10000);","     postman.setNextRequest(request.name)"," }    ","    else {","        // Sleep for 5 seconds.","     setTimeout(function() {}, 5000);","        jsonData = resp.runs;","        pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","        pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","        pm.environment.set(\"jobId\", Number(resp.runs[0].id.split(\":\")[0]));","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","","    jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"runs\": {","            \"title\": \"The runs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"726:1669113200103871\"","                        ]","                    },","                    \"protectionGroupInstanceId\": {","                        \"title\": \"The protectionGroupInstanceId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            729","                        ]","                    },","                    \"protectionGroupId\": {","                        \"title\": \"The protectionGroupId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"6706421133980411:1668680031418:726\"","                        ]","                    },","                    \"isReplicationRun\": {","                        \"title\": \"The isReplicationRun Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            false","                        ]","                    },","                    \"protectionGroupName\": {","                        \"title\": \"The protectionGroupName Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"NAS_ProtectionJob\"","                        ]","                    },","                    \"objects\": {","                        \"title\": \"The objects Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"localBackupInfo\": {","                        \"title\": \"The localBackupInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"runType\": {","                                \"title\": \"The runType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kRegular\"","                                ]","                            },","                            \"isSlaViolated\": {","                                \"title\": \"The isSlaViolated Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"boolean\",","                                \"default\": false,","                                \"examples\": [","                                    false","                                ]","                            },","                            \"startTimeUsecs\": {","                                \"title\": \"The startTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"endTimeUsecs\": {","                                \"title\": \"The endTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113210105922","                                ]","                            },","                            \"status\": {","                                \"title\": \"The status Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Succeeded\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"successfulObjectsCount\": {","                                \"title\": \"The successfulObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1","                                ]","                            },","                            \"failedObjectsCount\": {","                                \"title\": \"The failedObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"cancelledObjectsCount\": {","                                \"title\": \"The cancelledObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"successfulAppObjectsCount\": {","                                \"title\": \"The successfulAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"failedAppObjectsCount\": {","                                \"title\": \"The failedAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"cancelledAppObjectsCount\": {","                                \"title\": \"The cancelledAppObjectsCount Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    0","                                ]","                            },","                            \"localSnapshotStats\": {","                                \"title\": \"The localSnapshotStats Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"title\": \"The logicalSizeBytes Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    },","                                    \"bytesWritten\": {","                                        \"title\": \"The bytesWritten Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    },","                                    \"bytesRead\": {","                                        \"title\": \"The bytesRead Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            0","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"logicalSizeBytes\": 0,","                                    \"bytesWritten\": 0,","                                    \"bytesRead\": 0","                                }]","                            },","                            \"indexingTaskId\": {","                                \"title\": \"The indexingTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"indexing_726_729\"","                                ]","                            },","                            \"localTaskId\": {","                                \"title\": \"The localTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:27495\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"runType\": \"kRegular\",","                            \"isSlaViolated\": false,","                            \"startTimeUsecs\": 1669113200103871,","                            \"endTimeUsecs\": 1669113210105922,","                            \"status\": \"Succeeded\",","                            \"messages\": null,","                            \"successfulObjectsCount\": 1,","                            \"failedObjectsCount\": 0,","                            \"cancelledObjectsCount\": 0,","                            \"successfulAppObjectsCount\": 0,","                            \"failedAppObjectsCount\": 0,","                            \"cancelledAppObjectsCount\": 0,","                            \"localSnapshotStats\": {","                                \"logicalSizeBytes\": 0,","                                \"bytesWritten\": 0,","                                \"bytesRead\": 0","                            },","                            \"indexingTaskId\": \"indexing_726_729\",","                            \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                        }]","                    },","                    \"onLegalHold\": {","                        \"title\": \"The onLegalHold Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            false","                        ]","                    },","                    \"permissions\": {","                        \"title\": \"The permissions Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {},","                        \"examples\": [","                            []","                        ]","                    },","                    \"hasLocalSnapshot\": {","                        \"title\": \"The hasLocalSnapshot Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"boolean\",","                        \"default\": false,","                        \"examples\": [","                            true","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    }","                },","                \"examples\": [{","                    \"id\": \"726:1669113200103871\",","                    \"protectionGroupInstanceId\": 729,","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"isReplicationRun\": false,","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"objects\": null,","                    \"localBackupInfo\": {","                        \"runType\": \"kRegular\",","                        \"isSlaViolated\": false,","                        \"startTimeUsecs\": 1669113200103871,","                        \"endTimeUsecs\": 1669113210105922,","                        \"status\": \"Succeeded\",","                        \"messages\": null,","                        \"successfulObjectsCount\": 1,","                        \"failedObjectsCount\": 0,","                        \"cancelledObjectsCount\": 0,","                        \"successfulAppObjectsCount\": 0,","                        \"failedAppObjectsCount\": 0,","                        \"cancelledAppObjectsCount\": 0,","                        \"localSnapshotStats\": {","                            \"logicalSizeBytes\": 0,","                            \"bytesWritten\": 0,","                            \"bytesRead\": 0","                        },","                        \"indexingTaskId\": \"indexing_726_729\",","                        \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                    },","                    \"onLegalHold\": false,","                    \"permissions\": [],","                    \"hasLocalSnapshot\": true,","                    \"environment\": \"kIsilon\"","                }]","            },","            \"examples\": [","                [{","                    \"id\": \"726:1669113200103871\",","                    \"protectionGroupInstanceId\": 729,","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"isReplicationRun\": false,","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"objects\": null,","                    \"localBackupInfo\": {","                        \"runType\": \"kRegular\",","                        \"isSlaViolated\": false,","                        \"startTimeUsecs\": 1669113200103871,","                        \"endTimeUsecs\": 1669113210105922,","                        \"status\": \"Succeeded\",","                        \"messages\": null,","                        \"successfulObjectsCount\": 1,","                        \"failedObjectsCount\": 0,","                        \"cancelledObjectsCount\": 0,","                        \"successfulAppObjectsCount\": 0,","                        \"failedAppObjectsCount\": 0,","                        \"cancelledAppObjectsCount\": 0,","                        \"localSnapshotStats\": {","                            \"logicalSizeBytes\": 0,","                            \"bytesWritten\": 0,","                            \"bytesRead\": 0","                        },","                        \"indexingTaskId\": \"indexing_726_729\",","                        \"localTaskId\": \"6706421133980411:1668680031418:27495\"","                    },","                    \"onLegalHold\": false,","                    \"permissions\": [],","                    \"hasLocalSnapshot\": true,","                    \"environment\": \"kIsilon\"","                }]","            ]","        },","        \"totalRuns\": {","            \"title\": \"The totalRuns Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1","            ]","        }","    },","    \"examples\": [{","        \"runs\": [{","            \"id\": \"726:1669113200103871\",","            \"protectionGroupInstanceId\": 729,","            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","            \"isReplicationRun\": false,","            \"protectionGroupName\": \"NAS_ProtectionJob\",","            \"objects\": null,","            \"localBackupInfo\": {","                \"runType\": \"kRegular\",","                \"isSlaViolated\": false,","                \"startTimeUsecs\": 1669113200103871,","                \"endTimeUsecs\": 1669113210105922,","                \"status\": \"Succeeded\",","                \"messages\": null,","                \"successfulObjectsCount\": 1,","                \"failedObjectsCount\": 0,","                \"cancelledObjectsCount\": 0,","                \"successfulAppObjectsCount\": 0,","                \"failedAppObjectsCount\": 0,","                \"cancelledAppObjectsCount\": 0,","                \"localSnapshotStats\": {","                    \"logicalSizeBytes\": 0,","                    \"bytesWritten\": 0,","                    \"bytesRead\": 0","                },","                \"indexingTaskId\": \"indexing_726_729\",","                \"localTaskId\": \"6706421133980411:1668680031418:27495\"","            },","            \"onLegalHold\": false,","            \"permissions\": [],","            \"hasLocalSnapshot\": true,","            \"environment\": \"kIsilon\"","        }],","        \"totalRuns\": 1","    }]","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"e29a3860-8a7e-41c8-9e9f-91b8dae83daf"}}],"id":"39664ed5-0c58-496f-a064-4320894aa788","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is <code>Succeeded</code>, you can recover the volumes of the Isilon source.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"54438431-d259-4f26-866c-884b30f8d58d","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/1867183226494767:1669693131113:82070/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678784676"},{"key":"Date","value":"Tue, 14 Mar 2023 09:04:38 GMT"},{"key":"Content-Length","value":"702"}],"cookie":[],"responseTime":null,"body":"{\n  \"runs\": [\n    {\n      \"id\": \"338:1678780082422982\",\n      \"protectionGroupInstanceId\": 949,\n      \"protectionGroupId\": \"1867183226494767:1669693131113:82780\",\n      \"isReplicationRun\": false,\n      \"protectionGroupName\": \"Isilon_SMB\",\n      \"objects\": null,\n      \"localBackupInfo\": {\n        \"runType\": \"kRegular\",\n        \"isSlaViolated\": false,\n        \"startTimeUsecs\": 1678780082422982,\n        \"endTimeUsecs\": 1678780131429708,\n        \"status\": \"Succeeded\",\n        \"messages\": null,\n        \"successfulObjectsCount\": 1,\n        \"failedObjectsCount\": 0,\n        \"cancelledObjectsCount\": 0,\n        \"successfulAppObjectsCount\": 0,\n        \"failedAppObjectsCount\": 0,\n        \"cancelledAppObjectsCount\": 0,\n        \"localSnapshotStats\": {\n          \"logicalSizeBytes\": 0,\n          \"bytesWritten\": 3060112,\n          \"bytesRead\": 560634880\n        },\n        \"indexingTaskId\": \"indexing_338_949\",\n        \"localTaskId\": \"8935240469768886:1678732323491:2142171\"\n      },\n     \n      \"onLegalHold\": false,\n      \"permissions\": [],\n      \"hasLocalSnapshot\": true,\n      \"environment\": \"kIsilon\"\n    }\n  ],\n  \"totalRuns\": 1\n}"}],"_postman_id":"39664ed5-0c58-496f-a064-4320894aa788"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"objects\": {","            \"title\": \"The objects Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {","                \"title\": \"A Schema\",","                \"description\": \"An explanation about the purpose of this instance.\",","                \"type\": \"object\",","                \"default\": {},","                \"additionalProperties\": true,","                \"properties\": {","                    \"id\": {","                        \"title\": \"The id Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            26","                        ]","                    },","                    \"name\": {","                        \"title\": \"The name Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"/ifs/fileFolderRestoreTest\"","                        ]","                    },","                    \"sourceId\": {","                        \"title\": \"The sourceId Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"integer\",","                        \"default\": 0,","                        \"examples\": [","                            1","                        ]","                    },","                    \"environment\": {","                        \"title\": \"The environment Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kIsilon\"","                        ]","                    },","                    \"objectType\": {","                        \"title\": \"The objectType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kMountPoint\"","                        ]","                    },","                    \"osType\": {","                        \"title\": \"The osType Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"string\",","                        \"default\": \"\",","                        \"examples\": [","                            \"kOther\"","                        ]","                    },","                    \"protectionStats\": {","                        \"title\": \"The protectionStats Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"null\",","                        \"default\": null,","                        \"examples\": [","                            null","                        ]","                    },","                    \"isilonParams\": {","                        \"title\": \"The isilonParams Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"supportedNasMountProtocols\": {","                                \"title\": \"The supportedNasMountProtocols Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"array\",","                                \"default\": [],","                                \"additionalItems\": true,","                                \"items\": {","                                    \"title\": \"A Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"examples\": [","                                        \"kNfs\",","                                        \"kSmb\"","                                    ]","                                },","                                \"examples\": [","                                    [\"kNfs\",","                                        \"kSmb\"","                                    ]","                                ]","                            }","                        },","                        \"examples\": [{","                            \"supportedNasMountProtocols\": [","                                \"kNfs\",","                                \"kSmb\"","                            ]","                        }]","                    },","                    \"latestSnapshotsInfo\": {","                        \"title\": \"The latestSnapshotsInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"array\",","                        \"default\": [],","                        \"additionalItems\": true,","                        \"items\": {","                            \"title\": \"A Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"archivalSnapshotsInfo\": {","                                    \"title\": \"The archivalSnapshotsInfo Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"null\",","                                    \"default\": null,","                                    \"examples\": [","                                        null","                                    ]","                                },","                                \"indexingStatus\": {","                                    \"title\": \"The indexingStatus Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"Done\"","                                    ]","                                },","                                \"protectionGroupId\": {","                                    \"title\": \"The protectionGroupId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"6706421133980411:1668680031418:726\"","                                    ]","                                },","                                \"protectionGroupName\": {","                                    \"title\": \"The protectionGroupName Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"NAS_ProtectionJob\"","                                    ]","                                },","                                \"runInstanceId\": {","                                    \"title\": \"The runInstanceId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        729","                                    ]","                                },","                                \"storageDomainId\": {","                                    \"title\": \"The storageDomainId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        5","                                    ]","                                },","                                \"protectionRunId\": {","                                    \"title\": \"The protectionRunId Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"726:1669113200103871\"","                                    ]","                                },","                                \"runType\": {","                                    \"title\": \"The runType Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"string\",","                                    \"default\": \"\",","                                    \"examples\": [","                                        \"kRegular\"","                                    ]","                                },","                                \"protectionRunStartTimeUsecs\": {","                                    \"title\": \"The protectionRunStartTimeUsecs Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"integer\",","                                    \"default\": 0,","                                    \"examples\": [","                                        1669113200103871","                                    ]","                                },","                                \"localSnapshotInfo\": {","                                    \"title\": \"The localSnapshotInfo Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"snapshotId\": {","                                            \"title\": \"The snapshotId Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"string\",","                                            \"default\": \"\",","                                            \"examples\": [","                                                \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                            ]","                                        },","                                        \"logicalSizeBytes\": {","                                            \"title\": \"The logicalSizeBytes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"integer\",","                                            \"default\": 0,","                                            \"examples\": [","                                                456233279","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                        \"logicalSizeBytes\": 456233279","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"archivalSnapshotsInfo\": null,","                                \"indexingStatus\": \"Done\",","                                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                                \"protectionGroupName\": \"NAS_ProtectionJob\",","                                \"runInstanceId\": 729,","                                \"storageDomainId\": 5,","                                \"protectionRunId\": \"726:1669113200103871\",","                                \"runType\": \"kRegular\",","                                \"protectionRunStartTimeUsecs\": 1669113200103871,","                                \"localSnapshotInfo\": {","                                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                    \"logicalSizeBytes\": 456233279","                                }","                            }]","                        },","                        \"examples\": [","                            [{","                                \"archivalSnapshotsInfo\": null,","                                \"indexingStatus\": \"Done\",","                                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                                \"protectionGroupName\": \"NAS_ProtectionJob\",","                                \"runInstanceId\": 729,","                                \"storageDomainId\": 5,","                                \"protectionRunId\": \"726:1669113200103871\",","                                \"runType\": \"kRegular\",","                                \"protectionRunStartTimeUsecs\": 1669113200103871,","                                \"localSnapshotInfo\": {","                                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                                    \"logicalSizeBytes\": 456233279","                                }","                            }]","                        ]","                    },","                    \"sourceInfo\": {","                        \"title\": \"The sourceInfo Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"id\": {","                                \"title\": \"The id Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1","                                ]","                            },","                            \"name\": {","                                \"title\": \"The name Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"sv4-isilon1\"","                                ]","                            },","                            \"environment\": {","                                \"title\": \"The environment Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kIsilon\"","                                ]","                            },","                            \"objectType\": {","                                \"title\": \"The objectType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"kCluster\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"id\": 1,","                            \"name\": \"sv4-isilon1\",","                            \"environment\": \"kIsilon\",","                            \"objectType\": \"kCluster\"","                        }]","                    }","                },","                \"examples\": [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"osType\": \"kOther\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": [","                            \"kNfs\",","                            \"kSmb\"","                        ]","                    },","                    \"latestSnapshotsInfo\": [{","                        \"archivalSnapshotsInfo\": null,","                        \"indexingStatus\": \"Done\",","                        \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                        \"protectionGroupName\": \"NAS_ProtectionJob\",","                        \"runInstanceId\": 729,","                        \"storageDomainId\": 5,","                        \"protectionRunId\": \"726:1669113200103871\",","                        \"runType\": \"kRegular\",","                        \"protectionRunStartTimeUsecs\": 1669113200103871,","                        \"localSnapshotInfo\": {","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"logicalSizeBytes\": 456233279","                        }","                    }],","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\"","                    }","                }]","            },","            \"examples\": [","                [{","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\",","                    \"osType\": \"kOther\",","                    \"protectionStats\": null,","                    \"isilonParams\": {","                        \"supportedNasMountProtocols\": [","                            \"kNfs\",","                            \"kSmb\"","                        ]","                    },","                    \"latestSnapshotsInfo\": [{","                        \"archivalSnapshotsInfo\": null,","                        \"indexingStatus\": \"Done\",","                        \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                        \"protectionGroupName\": \"NAS_ProtectionJob\",","                        \"runInstanceId\": 729,","                        \"storageDomainId\": 5,","                        \"protectionRunId\": \"726:1669113200103871\",","                        \"runType\": \"kRegular\",","                        \"protectionRunStartTimeUsecs\": 1669113200103871,","                        \"localSnapshotInfo\": {","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"logicalSizeBytes\": 456233279","                        }","                    }],","                    \"sourceInfo\": {","                        \"id\": 1,","                        \"name\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kCluster\"","                    }","                }]","            ]","        },","        \"numResults\": {","            \"title\": \"The numResults Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1","            ]","        },","        \"metadata\": {","            \"title\": \"The metadata Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"uniqueProtectionGroupIdentifiers\": {","                    \"title\": \"The uniqueProtectionGroupIdentifiers Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"protectionGroupName\": {","                                \"title\": \"The protectionGroupName Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"NAS_ProtectionJob\"","                                ]","                            }","                        },","                        \"examples\": [{","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\"","                        }]","                    },","                    \"examples\": [","                        [{","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\"","                        }]","                    ]","                }","            },","            \"examples\": [{","                \"uniqueProtectionGroupIdentifiers\": [{","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"protectionGroupName\": \"NAS_ProtectionJob\"","                }]","            }]","        }","    },","    \"examples\": [{","        \"objects\": [{","            \"id\": 26,","            \"name\": \"/ifs/fileFolderRestoreTest\",","            \"sourceId\": 1,","            \"environment\": \"kIsilon\",","            \"objectType\": \"kMountPoint\",","            \"osType\": \"kOther\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": [","                    \"kNfs\",","                    \"kSmb\"","                ]","            },","            \"latestSnapshotsInfo\": [{","                \"archivalSnapshotsInfo\": null,","                \"indexingStatus\": \"Done\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\",","                \"runInstanceId\": 729,","                \"storageDomainId\": 5,","                \"protectionRunId\": \"726:1669113200103871\",","                \"runType\": \"kRegular\",","                \"protectionRunStartTimeUsecs\": 1669113200103871,","                \"localSnapshotInfo\": {","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"logicalSizeBytes\": 456233279","                }","            }],","            \"sourceInfo\": {","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\"","            }","        }],","        \"numResults\": 1,","        \"metadata\": {","            \"uniqueProtectionGroupIdentifiers\": [{","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\"","            }]","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"190671f6-372e-4475-bdf4-7275777a48be"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ef429401-0499-41a0-99fc-097c7d56f6f9"}}],"id":"e631674c-06ff-4469-8153-230a8c2a1938","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds={{protectionGroupId}}&environments=kIsilon","description":"<p>Returns information on the latest snapshots of the objects that are being protected in the Protection Group specified in the API URL.</p>\n<p>The snapshot ID <code>snapshotId</code> of a volume from the response is required for recovering that volume.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"{{protectionGroupId}}"},{"key":"environments","value":"kIsilon"}],"variable":[]}},"response":[{"id":"6ea4d0e6-fb9a-4e8c-be54-dc0844cd5457","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverObjects&searchString=*&protectionGroupIds=8935240469768886:1678732323491:338&environments=kIsilon","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","search","protected-objects"],"query":[{"key":"snapshotActions","value":"RecoverObjects"},{"key":"searchString","value":"*"},{"key":"protectionGroupIds","value":"8935240469768886:1678732323491:338"},{"key":"environments","value":"kIsilon"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678845045"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 15 Mar 2023 01:50:44 GMT"},{"key":"Content-Length","value":"650"}],"cookie":[],"responseTime":null,"body":"{\n    \"objects\": [\n        {\n            \"id\": 5699,\n            \"name\": \"/ifs/UI_Master_Isilon_Mixed\",\n            \"sourceId\": 5558,\n            \"environment\": \"kIsilon\",\n            \"objectType\": \"kMountPoint\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"isilonParams\": {\n                \"supportedNasMountProtocols\": [\n                    \"kNfs\",\n                    \"kSmb\"\n                ]\n            },\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"8935240469768886:1678732323491:337\",\n                    \"protectionGroupName\": \"isilon_changelist_nfs\",\n                    \"runInstanceId\": 947,\n                    \"storageDomainId\": 23630,\n                    \"protectionRunId\": \"337:1678780020414960\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1678780020414960,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snaphotId}}\",\n                        \"logicalSizeBytes\": 560634880\n                    }\n                },\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"8935240469768886:1678732323491:338\",\n                    \"protectionGroupName\": \"isilon_changelist_smb\",\n                    \"runInstanceId\": 949,\n                    \"storageDomainId\": 23630,\n                    \"protectionRunId\": \"338:1678780082422982\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1678780082422982,\n                    \"localSnapshotInfo\": {\n                      \"snapshotId\": \"{{snaphotId}}\",\n\n\n                        \"logicalSizeBytes\": 560634880\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 5558,\n                \"name\": \"sv4-isilon1\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\"\n            }\n        },\n        {\n            \"id\": 5583,\n            \"name\": \"/ifs/fileFolderRestoreTest\",\n            \"sourceId\": 5558,\n            \"environment\": \"kIsilon\",\n            \"objectType\": \"kMountPoint\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"isilonParams\": {\n                \"supportedNasMountProtocols\": [\n                    \"kNfs\",\n                    \"kSmb\"\n                ]\n            },\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"8935240469768886:1678732323491:79\",\n                    \"protectionGroupName\": \"isilon_file_folder_restore_job\",\n                    \"runInstanceId\": 1506,\n                    \"storageDomainId\": 22463,\n                    \"protectionRunId\": \"79:1678827720067853\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1678827720067853,\n                    \"localSnapshotInfo\": {\n                          \"snapshotId\": \"{{snaphotId}}\",\n\n\n                        \"logicalSizeBytes\": 10396812\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 5558,\n                \"name\": \"sv4-isilon1\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\"\n            }\n        },\n        {\n            \"id\": 5586,\n            \"name\": \"/ifs/fileFolderRestoreTest2\",\n            \"sourceId\": 5558,\n            \"environment\": \"kIsilon\",\n            \"objectType\": \"kMountPoint\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"isilonParams\": {\n                \"supportedNasMountProtocols\": [\n                    \"kNfs\"\n                ]\n            },\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"8935240469768886:1678732323491:87\",\n                    \"protectionGroupName\": \"isilon_file_folder_restore_job2\",\n                    \"runInstanceId\": 1594,\n                    \"storageDomainId\": 22463,\n                    \"protectionRunId\": \"87:1678835942260545\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1678835942260545,\n                    \"localSnapshotInfo\": {\n                       \"snapshotId\": \"{{snaphotId}}\",\n\n\n                        \"logicalSizeBytes\": 10396812\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 5558,\n                \"name\": \"sv4-isilon1\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\"\n            }\n        }\n    ],\n    \"numResults\": 4,\n    \"metadata\": {\n        \"uniqueProtectionGroupIdentifiers\": [\n            {\n                \"protectionGroupId\": \"8935240469768886:1678732323491:337\",\n                \"protectionGroupName\": \"isilon_changelist_nfs\"\n            },\n            {\n                \"protectionGroupId\": \"8935240469768886:1678732323491:338\",\n                \"protectionGroupName\": \"isilon_changelist_smb\"\n            },\n            {\n                \"protectionGroupId\": \"8935240469768886:1678732323491:79\",\n                \"protectionGroupName\": \"isilon_file_folder_restore_job\"\n            },\n            {\n                \"protectionGroupId\": \"8935240469768886:1678732323491:87\",\n                \"protectionGroupName\": \"isilon_file_folder_restore_job2\"\n            }\n        ]\n    }\n}\n\n\n\n"}],"_postman_id":"e631674c-06ff-4469-8153-230a8c2a1938"},{"name":"Recover Isilon Volume","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","var response = pm.response.json()","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"918ccd17-21f4-4684-8244-90085075a067"}}],"id":"a2bb4b3d-6726-4d5d-aa89-15c26832429f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Recover_SMB_Org\",\n  \"snapshotEnvironment\": \"kIsilon\",\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{snapshotId}}\"\n      }\n    ],\n    \"recoveryAction\": \"RecoverNasVolume\",\n    \"recoverNasVolumeParams\": {\n      \"targetEnvironment\": \"kIsilon\",\n      \"isilonTargetParams\": {\n        \"recoverToNewSource\": false,\n        \"originalSourceConfig\": {\n          \"overwriteExistingFile\": false,\n          \"preserveFileAttributes\": true,\n          \"continueOnError\": true,\n          \"encryptionEnabled\": false\n        }\n      }\n    }\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries","description":"<p>Recovers the object from the snapshot ID specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID from where you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>restoreId</code> from the response is required for obtaining the status of the recovery task.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"c9fe8778-551e-412b-bd93-6c2d246b0e95","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Recovery_{{protectionJobName}}\",\n    \"snapshotEnvironment\": \"kIsilon\",\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \" {{protectionJobId}}\",\n                \"protectionGroupName\": \" {{protectionJobName}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kIsilon\",\n            \"isilonTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": true,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": false,\n                    \"recoverToOriginalPath\": true\n                }\n            }\n        }\n    }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/recoveries"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"8935240469768886:1678732323491:1686\",\n  \"name\": \"Recover_SMB_Org\",\n  \"startTimeUsecs\": 1678845851647055,\n  \"status\": \"Accepted\",\n  \"snapshotEnvironment\": \"kIsilon\",\n  \"recoveryAction\": \"RecoverNasVolume\",\n  \"permissions\": [],\n  \"creationInfo\": {\n    \"userName\": \"admin\"\n  },\n  \"canTearDown\": false,\n  \"messages\": null,\n  \"isilonParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{snapshotId}}\",\n        \"protectionGroupId\": \"8935240469768886:1678732323491:338\",\n        \"snapshotCreationTimeUsecs\": 1678780082422982,\n        \"snapshotTargetType\": \"Local\",\n        \"storageDomainId\": 23630,\n        \"progressTaskId\": \"\",\n        \"messages\": null,\n        \"objectInfo\": {\n          \"id\": 5699,\n          \"name\": \"/ifs/UI_Master_Isilon_Mixed\",\n          \"sourceId\": 5558,\n          \"sourceName\": \"sv4-isilon1\",\n          \"environment\": \"kIsilon\",\n          \"objectType\": \"kMountPoint\"\n        }\n      }\n    ],\n    \"recoveryAction\": \"RecoverNasVolume\",\n    \"recoverNasVolumeParams\": {\n      \"targetEnvironment\": \"kIsilon\",\n      \"isilonTargetParams\": {\n        \"recoverToNewSource\": false,\n        \"originalSourceConfig\": {\n          \"overwriteExistingFile\": false,\n          \"preserveFileAttributes\": true,\n          \"continueOnError\": true,\n          \"encryptionEnabled\": false\n        }\n      }\n    }\n  }\n}"}],"_postman_id":"a2bb4b3d-6726-4d5d-aa89-15c26832429f"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","var response = pm.response.json()","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.endTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.progressTaskId).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.isilonParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.objects.length; i++) {","        pm.expect(jsonData.isilonParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].pointInTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].protectionGroupName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceId).to.be.a('number')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.isilonParams.objects[i].objectInfo.environment).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.recoverToNewSource).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig).to.be.an('object')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.recoverToOriginalPath).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.overwriteExistingFile).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.preserveFileAttributes).to.be.a('boolean')","    pm.expect(jsonData.isilonParams.recoverFileAndFolderParams.isilonTargetParams.originalSourceConfig.continueOnError).to.be.a('boolean')","","","    if (jsonData.status === \"Running\") {","        sleep(30000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:745\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115603532122","            ]","        },","        \"endTimeUsecs\": {","            \"title\": \"The endTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115609532809","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Succeeded\"","            ]","        },","        \"progressTaskId\": {","            \"title\": \"The progressTaskId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"restore_files_745\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"protectionGroupName\": {","                                \"title\": \"The protectionGroupName Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"NAS_ProtectionJob\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"protectionGroupName\": \"NAS_ProtectionJob\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/directory2/7606d3f6466114916c4a304b7f28527f\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"Finished\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                                    \"isDirectory\": false,","                                    \"status\": \"Finished\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                                    \"isDirectory\": false,","                                    \"status\": \"Finished\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                            \"isDirectory\": false,","                            \"status\": \"Finished\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"protectionGroupName\": \"NAS_ProtectionJob\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                        \"isDirectory\": false,","                        \"status\": \"Finished\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:745\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115603532122,","        \"endTimeUsecs\": 1669115609532809,","        \"status\": \"Succeeded\",","        \"progressTaskId\": \"restore_files_745\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"protectionGroupName\": \"NAS_ProtectionJob\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/directory2/7606d3f6466114916c4a304b7f28527f\",","                    \"isDirectory\": false,","                    \"status\": \"Finished\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"3ec4a801-1331-4cab-9c79-3a6cd1aeaf23"}}],"id":"2fbba4a4-cc42-4203-bc72-643301740a61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/data-protect/recoveries/{{restoreId}}","description":"<p>Returns the status of the recovery task.</p>\n<p>You can fetch the <code>restoreId</code> of the recovery task to be specified in the API URL from the <strong>Recover Isilon Volume</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"54b6ded9-b8ba-46af-92ae-1a06ab4feccd","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/recoveries/8935240469768886:1678732323491:1686"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1678858201"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 15 Mar 2023 05:30:00 GMT"},{"key":"Content-Length","value":"744"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8935240469768886:1678732323491:1686\",\n    \"name\": \"Recover_SMB_Org\",\n    \"startTimeUsecs\": 1678845851647055,\n    \"endTimeUsecs\": 1678846089689621,\n    \"status\": \"Succeeded\",\n    \"progressTaskId\": \"restore_files_1686\",\n    \"snapshotEnvironment\": \"kIsilon\",\n    \"recoveryAction\": \"RecoverNasVolume\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"admin\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"isilonParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \"8935240469768886:1678732323491:338\",\n                \"protectionGroupName\": \"isilon_changelist_smb\",\n                \"snapshotCreationTimeUsecs\": 1678780082422982,\n                \"snapshotTargetType\": \"Local\",\n                \"storageDomainId\": 23630,\n                \"progressTaskId\": \"\",\n                \"messages\": null,\n                \"objectInfo\": {\n                    \"id\": 5699,\n                    \"name\": \"/ifs/UI_Master_Isilon_Mixed\",\n                    \"sourceId\": 5558,\n                    \"sourceName\": \"sv4-isilon1\",\n                    \"environment\": \"kIsilon\",\n                    \"objectType\": \"kMountPoint\"\n                }\n            }\n        ],\n        \"recoveryAction\": \"RecoverNasVolume\",\n        \"recoverNasVolumeParams\": {\n            \"targetEnvironment\": \"kIsilon\",\n            \"isilonTargetParams\": {\n                \"recoverToNewSource\": false,\n                \"originalSourceConfig\": {\n                    \"overwriteExistingFile\": false,\n                    \"preserveFileAttributes\": true,\n                    \"continueOnError\": true,\n                    \"encryptionEnabled\": false\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"2fbba4a4-cc42-4203-bc72-643301740a61"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"1d5bbf14-b45e-4d6d-83f4-432b5bad6c91"}}],"id":"71c22ba8-1a68-461e-aec8-ec3b1521d3cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster_vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"74a6a057-bdd5-4855-b77e-57d8b4e93382","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionJobId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_vip}}"],"path":["v2","data-protect","protection-groups","{{protectionJobId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"71c22ba8-1a68-461e-aec8-ec3b1521d3cc"},{"name":"Unregister Isilon Source Copy","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"db370957-c19a-46ec-9254-4d317a6d54d1"}}],"id":"7aeffa0d-bfea-4cb4-8227-06a9b3464e87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceId}}","description":"<p>Unregisters the Isilon cluster source from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceId}}"],"host":["{{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"383c607c-6840-4549-8559-f4255f85c89e","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceId}}"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"7aeffa0d-bfea-4cb4-8227-06a9b3464e87"}],"id":"c4b9c7b9-6eec-4fd8-a349-0c9ee61f3b14","description":"<p>To protect Isilon with SMB export using Cohesity, perform the following steps using the API operations:</p>\n<ul>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Isilon as a source with the Cohesity cluster.</li>\n<li>Verify whether the Isilon is available as a source on the Cohesity cluster and get the source ID required for creating the Protection Group.</li>\n<li>Create a new Protection Policy and get the policy ID required for creating the Protection Group.</li>\n<li>Get the list of Storage Domains available on the Cohesity cluster. You can use an existing Storage Domain or create a new Storage Domain for creating the Protection Group. Obtain the Storage Domain ID for creating the Protection Group.</li>\n<li>Get the list of objects available on the Cohesity cluster for protection and obtain the ID of the volume you want to protect.</li>\n<li>Create a Protection Group for protecting Isilon volume of type SMB.</li>\n<li>Get the Protection Group run status.</li>\n<li>Get the list of objects being protected on the Cohesity cluster and obtain the ID of the object you want to recover.</li>\n<li>Get the latest snapshot of the object you want to recover.</li>\n<li>Recover the Isilon volume.</li>\n<li>Get the recovery status.</li>\n<li>Once the reovery is successful, delete the Protection Group.</li>\n<li>Unregister the Isilon source from the Cohesity cluster.</li>\n</ul>\n","_postman_id":"c4b9c7b9-6eec-4fd8-a349-0c9ee61f3b14"},{"name":"Pave-Repave a Cohesity Cluster","item":[{"name":"Discover Cohesity Cluster Nodes","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(null);","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"fd3ba006-0dae-47ba-8db0-48842f73b180"}}],"id":"7b691918-c4ad-4982-b9cc-c1be831da8ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the admin to the Cohesity cluster resources. The default username is <em>admin</em> and the password is <em>admin.</em></p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"0a3e9090-d31b-489b-afde-e0dcc081a6a3","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"domain\": \"LOCAL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674681513"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:18:32 GMT"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{cluster_access_token}}\",\n    \"tokenType\": \"Bearer\",\n    \"privileges\": [\n        \"CLUSTER_CREATE\",\n        \"NODE_VIEW\"\n    ]\n}"}],"_postman_id":"7b691918-c4ad-4982-b9cc-c1be831da8ff"},{"name":"Check for Free Cohesity Nodes","event":[{"listen":"test","script":{"id":"0fb64939-394c-46d5-ab17-9719e6ee1a44","exec":["console.log(\"Test to fetch available free nodes in the network\")","","var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"freeNodes response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var node_list = response","","node_list.forEach(nodeIterator)","","function nodeIterator(node){","    var expected_response_data_types=[\"number\", \"string\", \"object\", \"string\", \"string\", \"string\", \"string\", \"string\", \"boolean\", \"string\", \"number\", \"string\", \"string\",]","    var response_data_types=[]","    for (const [key, value] of Object.entries(node)) {","        response_data_types.push(typeof(value))","        pm.test(\"Validating the response body element(\"+key+\"-\"+value+\") for non-null value\",function(){","            pm.expect(value).to.not.eql(null)","        });","    }","    var is_same = true","    is_same = is_same && (expected_response_data_types.length == response_data_types.length) && expected_response_data_types.every(function(element, index) {","    return element === response_data_types[index]; ","    });","    pm.test(\"Validating the response body data types\",function(){","       pm.expect(is_same).to.eql(true)","    });","    response_data_types=[]","    is_same = true","}","","//schema validation","const response_schema = {","    \"type\": \"array\",","    \"additionalItems\": false,","    \"items\": {","        \"type\": \"object\",","        \"required\": [","            \"id\",","            \"ip\",","            \"ips\",","            \"softwareVersion\",","            \"chassisSerial\",","            \"productModel\",","            \"nodeSerial\",","            \"slotNumber\",","            \"connectedTo\",","            \"ipmiIp\",","            \"numSlotsInChassis\",","            \"nodeUiSlot\",","            \"hostname\"","        ],","        \"additionalProperties\": false,","        \"properties\": {","            \"id\": {","                \"type\": \"integer\"","            },","            \"ip\": {","                \"type\": \"string\"","            },","            \"ips\": {","                \"type\": \"array\",","                \"additionalItems\": true,","                \"items\": {","                    \"type\": \"string\"","                },","                \"uniqueItems\": true","            },","            \"softwareVersion\": {","                \"type\": \"string\"","            },","            \"chassisSerial\": {","                \"type\": \"string\"","            },","            \"productModel\": {","                \"type\": \"string\"","            },","            \"nodeSerial\": {","                \"type\": \"string\"","            },","            \"slotNumber\": {","                \"type\": \"string\"","            },","            \"connectedTo\": {","                \"type\": \"boolean\"","            },","            \"ipmiIp\": {","                \"type\": \"string\"","            },","            \"numSlotsInChassis\": {","                \"type\": \"integer\"","            },","            \"nodeUiSlot\": {","                \"type\": \"string\"","            },","            \"hostname\": {","                \"type\": \"string\"","            }","        }","    },","    \"uniqueItems\": true,","    \"minItems\": 0,","    \"maxItems\": 1000,","","};","","pm.test(\"Validate response schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")",""],"type":"text/javascript","packages":{}}}],"id":"0892d829-bb45-460d-87f6-6ca193c4dbce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/freeNodes","description":"<p>Returns information on the free Cohesity cluster nodes available. You can use the free Cohesity cluster nodes for creating the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","freeNodes"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"2e9523fa-07ad-462d-95db-7728b7c70a7e","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{{cluster-vip}}/irisservices/api/v1/public/freeNodes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675796016"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 07 Feb 2023 18:53:35 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 181140265563144,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"5.0.2c_release-20180712_b8a9345c\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2505\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 181140266820052,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"5.0.2c_release-20180712_b8a9345c\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2505\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"3\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:1\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 181140266820052,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n         \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"5.0.2c_release-20180712_b8a9345c\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2505\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"3\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:1\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n\n\n\n\n    {\n        \"id\": 181140266590160,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n             \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.1.1g_release-20191009_ad53fd27\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2515\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"3\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:1\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 181140265580532,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.1.1g_release-20191009_ad53fd27\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2515\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"2\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"1:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 181140266591852,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n             \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.1.1g_release-20191009_ad53fd27\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2515\",\n        \"nodeSerial\": \"BQTP81500351\",\n        \"slotNumber\": \"1\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"1:1\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 181140265580992,\n        \"ip\":\"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.1.1g_release-20191009_ad53fd27\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2515\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 3214055435548559,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.5.1d_release-20201226_1fee0cd5\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"Unknown Platform\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"1\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 1,\n        \"nodeUiSlot\": \"\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 114374083687644,\n        \"ip\":\"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n          \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.5.1e_p1_release-20210726_9bccfec0\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C4600\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 114374083686964,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n               \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.5.1e_p1_release-20210726_9bccfec0\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C4600\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"2\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:1\",\n        \"hostname\": \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 114374087861336,\n        \"ip\":   \"{{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.6.0c_release-20210801_586f4a56\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"Unknown Platform\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063990661,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n             \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.6.0d_ent_release-20220831_03eb9402\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C5026\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063994063,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n               \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.6.0d_ent_release-20230127_14570016\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C5026\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"3\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"1:0\",\n        \"hostname\": \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063646792,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n          \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.6.0d_u2_release-20220218_2e4ae870\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C4500\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063991035,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n             \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.6.0d_u5_release-20220718_e181c2f1\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C5026\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"1\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"1:1\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063993991,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n              \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.7_release-20220128_59689528\",\n        \"chassisSerial\": \"CC511220072\",\n        \"productModel\": \"C5026\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"2\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:1\",\n        \"hostname\": \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063993881,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n            \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.7_release-20220128_59689528\",\n        \"chassisSerial\": \"CC511220072\",\n        \"productModel\": \"C5026\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"3\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"1:0\",\n        \"hostname\":  \"{{host_name}}\",\n    }\n    },\n    {\n        \"id\": 966063993885,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n             \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"6.7_release-20220128_59689528\",\n        \"chassisSerial\": \"CC511220072\",\n        \"productModel\": \"C5026\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\": \"{{host_name}}\",\n    }\n    {\n        \"id\": 128635482624518,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n          \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"master_release-20210311_4792ff9e\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"Unknown Platform\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"4\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"0:0\",\n        \"hostname\": \"{{host_name}}\",\n    }\n\n\n    {\n        \"id\": 181140266918350,\n        \"ip\": \"{{ipv4_address}}, {{ipv6_address}}\",\n        \"ips\": [\n             \"{{ipv4_address}}\",\n            \"{{ipv6_address}}\"\n        ],\n        \"softwareVersion\": \"5.0.2c_release-20180712_b8a9345c\",\n        \"chassisSerial\": \"{{chasis_serial}}\",\n        \"productModel\": \"C2505\",\n        \"nodeSerial\": \"{{node_serial}}\",\n        \"slotNumber\": \"2\",\n        \"connectedTo\": false,\n        \"ipmiIp\": \"{{ip_address}}\",\n        \"numSlotsInChassis\": 4,\n        \"nodeUiSlot\": \"1:0\",\n        \"hostname\": \"{{host_name}}\",\n    }\n]\n"}],"_postman_id":"0892d829-bb45-460d-87f6-6ca193c4dbce"}],"id":"e42e588e-4947-4769-b14b-51f1ee7ca15e","description":"<p>To discover Cohesity cluster nodes, perform the following steps using the API operations:</p>\n<ol>\n<li>Generate an access token for one of the Cohesity cluster nodes.</li>\n<li>Check for free nodes.</li>\n</ol>\n","_postman_id":"e42e588e-4947-4769-b14b-51f1ee7ca15e"},{"name":"Create Cohesity Cluster","item":[{"name":"Generate Access Token for Admin","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","var expectedHttpStatus = 201;","var maxNumberOfTries = 60","var sleepBetweenTries = 60000;","var response = pm.response.json()","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","if ((response[\"tokenType\"] != \"Bearer\") && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Waiting for access token, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if ((pm.response.code == expectedHttpStatus) && (response[\"tokenType\"] == \"Bearer\")) {","     console.log(\"Obtained the access token\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(201), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","","}","","var response = pm.response.json()","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"accessToken\",","        \"tokenType\",","        \"privileges\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"accessToken\": {","            \"type\": \"string\"","        },","        \"tokenType\": {","            \"type\": \"string\"","        },","        \"privileges\": {","            \"type\": \"array\",","            \"additionalItems\": true,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        }","    }","};","","pm.test(\"Validate accessTokens Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"85664ae3-e65f-4d06-9175-52a61117d2ec"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ab45f57c-7a4e-4c9c-81e7-e362e3593940"}}],"id":"125a1264-e043-44ea-b4cb-0275c933fea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the admin to the Cohesity cluster resources. The default username is <em>admin</em> and the password is <em>admin.</em></p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"79de3db7-7041-460e-b1a2-0e242ffd5e3b","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"domain\": \"LOCAL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674681513"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:18:32 GMT"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{cluster_access_token}}\",\n    \"tokenType\": \"Bearer\",\n    \"privileges\": [\n        \"CLUSTER_CREATE\",\n        \"NODE_VIEW\"\n    ]\n}"}],"_postman_id":"125a1264-e043-44ea-b4cb-0275c933fea6"},{"name":"Create Cohesity Cluster","event":[{"listen":"test","script":{"exec":["console.log(\"Test for Get Cluster API\")","","var response = pm.response.json()","","pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","","pm.test(\"Create Cluster response is not null\", function () {","    pm.expect(response).to.not.equal(undefined);","});","","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"6f4aac60-7db0-4f60-a097-1bf8a42cdcd4"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e0f39876-95ba-4491-9139-7a35bf073529"}}],"id":"29c637b8-f638-4ef9-9a9d-6608c321b31f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"allowApiBasedFetch\": true,\n    \"clusterName\": \"Cohesity cluster\",\n    \"enableClusterDestroy\": true,\n    \"encryptionConfig\": {\n        \"enableEncryption\": true,\n        \"enableFipsMode\": true,\n        \"rotationPeriod\": 0\n    },\n    \"ipmiConfig\": {\n        \"ipmiGateway\": \"{{IPMI_Gateway_IP}}\",\n        \"ipmiPassword\": \"{{IPMI_password}}\",\n        \"ipmiSubnetMask\": \"{{IPMI_Subnet_mask}}\",\n        \"ipmiUsername\": \"{{IPMI_Username}}\"\n    },\n    \"metadataFaultTolerance\": 1,\n    \"networkConfig\": {\n        \"clusterGateway\": \"{{Gateway_IP}}\",\n        \"clusterSubnetMask\": \"{{Subnet_IP}}\",\n        \"dnsServers\": [\n            \"{{dns_server_IP}}\"\n        ],\n        \"domainNames\": [\n            \"{{domain_name}}\"\n        ],\n        \"ntpServers\": [\n            \"{{ntp_server}}\"\n        ]\n    },\n    \"nodeConfigs\": [\n        {\n            \"nodeId\": \"{{node_Id}}\",\n            \"nodeIp\": \"{{node_IP}}\",\n            \"nodeIpmiIp\": \"{{node_IPMI_Id}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n            \"nodeId\": \"{{node_Id}}\",\n            \"nodeIp\": \"{{node_IP}}\",\n            \"nodeIpmiIp\": \"{{}node_IPMI_Id}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n            \"nodeId\": \"{{node_Id}}\",\n            \"nodeIp\": \"{{node_IP}}\",\n            \"nodeIpmiIp\": \"{{}node_IPMI_Id}}\",\n            \"useAsComputeNode\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/physicalEdition","description":"<p>Creates the Cohesity cluster.</p>\n<p>Ensure:</p>\n<ul>\n<li>The cluster name you provide in the JSON request body has the original cluster name.</li>\n<li>You add the details of all the nodes of your cluster in the JSON request body.</li>\n</ul>\n<p>Once the cluster is created, all the previous cluster configurations and user data will be revived.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","clusters","physicalEdition"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"da333cdd-b9d8-47a5-91ab-d4e629095492","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"allowApiBasedFetch\": true,\n    \"clusterName\": \"Cohesity cluster\",\n    \"enableClusterDestroy\": true,\n    \"encryptionConfig\": {\n        \"enableEncryption\": true,\n        \"enableFipsMode\": true,\n        \"rotationPeriod\": 0\n    },\n    \"ipmiConfig\": {\n        \"ipmiGateway\": \"{{IPMI_Gateway_IP}}}}\",\n        \"ipmiPassword\": \"{{IPMI_password}}}}\",\n        \"ipmiSubnetMask\": \"{{IPMI_Subnet_mask}}\",\n        \"ipmiUsername\": \"{{IPMI_Username}}\"\n    },\n    \"metadataFaultTolerance\": 1,\n    \"networkConfig\": {\n        \"clusterGateway\": \"{{Gateway_IP}}\",\n        \"clusterSubnetMask\": \"{{Subnet_IP}}\",\n        \"dnsServers\": [\n            \"{{dns_server_IP}}}\"\n        ],\n        \"domainNames\": [\n            \"{{domain_name}}\"\n        ],\n        \"ntpServers\": [\n            \"{{ntp_server}}\"\n        ]\n    },\n    \"nodeConfigs\": [\n        {\n            \"nodeId\": \"{{node_Id}}\",\n            \"nodeIp\": \"{{node_IP}}\",\n            \"nodeIpmiIp\": \"{{}node_IPMI_Id}}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n            \"nodeId\": \"{{node_Id}}\",\n            \"nodeIp\": \"{{node_IP}}\",\n            \"nodeIpmiIp\": \"{{}node_IPMI_Id}}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n            \"nodeId\": \"{{node_Id}}\",\n            \"nodeIp\": \"{{node_IP}}\",\n            \"nodeIpmiIp\": \"{{}node_IPMI_Id}}}\",\n            \"useAsComputeNode\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/physicalEdition"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674682027"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:27:08 GMT"},{"key":"Content-Length","value":"190"}],"cookie":[],"responseTime":null,"body":"{\n    \"clusterId\": {{cluster_ID}},\n    \"incarnationId\": {{incarnationID}},\n    \"clusterName\": \"Cohesity cluster\",\n    \"clusterSwVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"message\": \"Cluster aggregation for Cohesity cluster in progress.\\n\"\n}"}],"_postman_id":"29c637b8-f638-4ef9-9a9d-6608c321b31f"},{"name":"Generate Access Token for Admin","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","var expectedHttpStatus = 201;","var maxNumberOfTries = 60","var sleepBetweenTries = 60000;","var response = pm.response.json()","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","if ((response[\"tokenType\"] != \"Bearer\") && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Cluster create is not complete, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if ((pm.response.code == expectedHttpStatus) && (response[\"tokenType\"] == \"Bearer\")) {","     console.log(\"Cluster created, Obtained the access token\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(201), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","}","","var response = pm.response.json()","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"accessToken\",","        \"tokenType\",","        \"privileges\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"accessToken\": {","            \"type\": \"string\"","        },","        \"tokenType\": {","            \"type\": \"string\"","        },","        \"privileges\": {","            \"type\": \"array\",","            \"additionalItems\": true,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        }","    }","};","","pm.test(\"Validate accessTokens Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"c68bf5be-b5f3-477c-98f7-9d13d0ca60f0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7187a11c-2e37-492f-aae0-164fc82b6af1"}}],"id":"8831ec18-9844-4b01-953f-bdda3a708fa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the admin to the Cohesity cluster resources. The username and password will be the same value you configured before destroying the cluster</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"8bc75100-30f3-4a11-a785-6138f70bd3cf","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\",\n    \"domain\": \"LOCAL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674682833"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:40:32 GMT"},{"key":"Content-Length","value":"1125"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"8831ec18-9844-4b01-953f-bdda3a708fa3"},{"name":"Set allow_high_classified_role_privileges GFLAG","event":[{"listen":"test","script":{"exec":["var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Update GFLAG response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Added gflags\");","});"],"type":"text/javascript","id":"5f1f959a-f5a1-4f65-8a3a-3796b2dd0480"}}],"id":"c8de6bc9-f3f7-42db-8bda-00bc7b331d60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clusterID\":{{clusterId}},\n    \"gflags\": [\n        {\n            \"name\": \"allow_high_classified_role_privileges\",\n            \"reason\": \"API\",\n            \"value\": \"true\"\n        }\n    ],\n    \"serviceName\": \"iris\",\n    \"effectiveNow\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/cluster/update_gflags","description":"<p>Sends a request to update to set the <code>allow_high_classified_role_privileges</code> feature flag value to <em><strong>true</strong></em> to allow the high privilege role on the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","nexus","cluster","update_gflags"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"c8cf4b0b-143f-4e15-8309-1620c1c79ef1","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clusterID\":{{cluster_1-id}},\n    \"gflags\": [\n        {\n            \"name\": \"allow_high_classified_role_privileges\",\n            \"reason\": \"API_Testing\",\n            \"value\": \"true\"\n        }\n    ],\n    \"serviceName\": \"iris\",\n    \"effectiveNow\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/cluster/update_gflags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"89"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 25 Jan 2023 19:20:56 GMT"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=2592000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674674453"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Added gflags [allow_high_classified_role_privileges] to the service iris\\n\"\n}"}],"_postman_id":"c8de6bc9-f3f7-42db-8bda-00bc7b331d60"},{"name":"Restart Cohesity cluster UI and REST API Services","event":[{"listen":"test","script":{"exec":["var response = pm.response.json()","","pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","","pm.test(\"Update GFLAG response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Restarting the cluster services [kIris]\");","});"],"type":"text/javascript","id":"7e00d244-cc95-4ea5-9c07-497dbc431d62"}},{"listen":"prerequest","script":{"exec":["let moment = require(\"moment\")","console.log(\"Sleeping, before time:\", moment())","var minutes = 10","var milli_seconds= minutes * 60 * 1000","console.log(\"Sleeping for \" + minutes + \" minutes\")","setTimeout(function () { console.log(\"Sleep completed, after time:\", moment()) }, milli_seconds)"],"type":"text/javascript","id":"30449d22-eec3-46b3-a281-952492610d42"}}],"id":"13098fd8-8c38-412b-822e-14f9034517e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"action\": \"kRestart\",\n  \"services\": [\n    \"kIris\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/services/states","description":"<p>Sends a request to restart the <strong>Cohesity cluster UI and REST API Services</strong> (<code>kIris</code>) services.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","clusters","services","states"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"a254c923-3b8c-4699-8601-b81c5946c961","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"action\": \"kRestart\",\n  \"services\": [\n    \"kIris\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/services/states"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674675081"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 19:31:20 GMT"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restarting the cluster services [kIris]\",\n    \"statusUrl\": \"GET https://{{cluster-vip}}/irisservices/api/v1/public/clusters/services/states\"\n}"}],"_postman_id":"13098fd8-8c38-412b-822e-14f9034517e6"},{"name":"Check Cohesity cluster UI and REST API Services Status","event":[{"listen":"test","script":{"exec":["var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//schema validation","const response_schema = {","    \"type\": \"array\",","    \"required\": [","        \"key\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"key\": {","            \"type\": \"string\"","        }","    }","};","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(response_schema)","});","","var found_flag = 0","","for (i = 0; i < response.length; i++) {","    if (response[i].service == \"kIris\") {","        if (response[i].state == \"kServiceRunning\") {","            found_flag = 1","        }","        pm.test(\"Cookie isLoggedIn has value 1\", () => {","            pm.expect(response[i].state).to.eql(\"kServiceRunning\")","        });","    }","}","// pm.expect(found_flag.to.eql(1))","console.log(found_flag)"],"type":"text/javascript","id":"00ed5eb3-b017-4723-8b27-28591df5d2e7"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7ae022e6-6a74-47a6-9223-2fec6964149f"}}],"id":"6801e296-c73b-45da-b49f-c013d477c5fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/services/states","description":"<p>Checks the status of the <strong>UI and REST API Services</strong> (Iris).</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","clusters","services","states"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"8e61afa9-cec4-4975-a74d-f00200638075","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/services/states"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677006"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:03:25 GMT"},{"key":"Content-Length","value":"418"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"service\": \"kElixir\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kYodaAgent\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kStorageProxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kRtClient\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kCompass\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kEtlServer\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kApollo\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kAlerts\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kLogWatcher\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kThrottler\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kElrond\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kIcebox\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kGenieGofer\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kYoda\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kEagleAgent\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kNodeExporter\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kStatsCollector\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kBifrostBroker\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kPostgres\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kAtom\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kPushClient\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kNewScribe\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kStats\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kSmb2Proxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kBifrost\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kTestservice\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kDlp\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kBridge\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kIris\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kEventing\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kInvalidService\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kTricorder\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kVulscan\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kNexusProxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kNexus\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kBridgeProxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kAthena\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kKafka\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kHeimdall\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kIrisProxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kKeychain\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kImanis\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kSmbProxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kOs\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kHcCli\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kPushproxClient\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kGenie\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kVaultProxy\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kAgentinstall\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kPatch\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kMagneto\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kGandalf\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kGroot\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kLibrarian\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kJanus\",\n        \"state\": \"kServiceRunning\"\n    },\n    {\n        \"service\": \"kNfsProxy\",\n        \"state\": \"kServiceRunning\"\n    }\n]"}],"_postman_id":"6801e296-c73b-45da-b49f-c013d477c5fa"},{"name":"Set nexus_support_cluster_destroy_with_2fa GFLAG","event":[{"listen":"test","script":{"exec":["var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Update GFLAG response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Added gflags\");","});"],"type":"text/javascript","id":"ca57e276-dc51-445c-a82e-6ba6e77fdf3f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8edcb1bf-ed5f-436e-84df-e571ca3a19c1"}}],"id":"dc4251c6-7fa8-4b21-b5fe-b1df3262d9c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clusterID\":{{clusterId}},\n    \"gflags\": [\n        {\n            \"name\": \"nexus_support_cluster_destroy_with_2fa\",\n            \"reason\": \"API\",\n            \"value\": \"true\"\n        }\n    ],\n    \"serviceName\": \"nexus\",\n    \"effectiveNow\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/cluster/update_gflags","description":"<p>Sends a request to set the <code>nexus_support_cluster_destroy_with_2fa</code> feature flag value to <em><strong>true</strong></em> to enable the support for destroying the cluster with two-factor authentication.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","nexus","cluster","update_gflags"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"2e738229-8945-475f-b9d5-b1bf98f6bcf1","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clusterID\":{{cluster_1-id}},\n    \"gflags\": [\n        {\n            \"name\": \"nexus_support_cluster_destroy_with_2fa\",\n            \"reason\": \"API_Testing\",\n            \"value\": \"true\"\n        }\n    ],\n    \"serviceName\": \"nexus\",\n    \"effectiveNow\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/cluster/update_gflags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"91"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 25 Jan 2023 20:06:07 GMT"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=2592000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677168"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Added gflags [nexus_support_cluster_destroy_with_2fa] to the service nexus\\n\"\n}"}],"_postman_id":"dc4251c6-7fa8-4b21-b5fe-b1df3262d9c0"},{"name":"Set run_clean_node_shell_script_on_destroy GFLAG","event":[{"listen":"test","script":{"exec":["","var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Update GFLAG response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Added gflags\");","});","","","","","",""],"type":"text/javascript","id":"d0a64e63-941d-4099-b976-23c1d1f5d392"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"840624f5-83a8-4aae-9953-505888a12ca0"}}],"id":"fea7328e-5766-468c-903c-779181e7dedd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clusterID\":{{clusterId}},\n    \"gflags\": [\n        {\n            \"name\": \"run_clean_node_shell_script_on_destroy\",\n            \"reason\": \"API\",\n            \"value\": \"true\"\n        }\n    ],\n    \"serviceName\": \"nexus\",\n    \"effectiveNow\": true\n}\n","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/cluster/update_gflags","description":"<p>Sends a request to set the <code>run_clean_node_shell_script_on_destroy</code> feature flag value to <em><strong>true</strong></em> to automate the execution of the shell script for cleaning the Cohesity nodes after destroying the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","nexus","cluster","update_gflags"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"905b8960-4beb-4a1c-b9ba-e4df500e9090","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clusterID\":{{cluster_1-id}},\n    \"gflags\": [\n        {\n            \"name\": \"run_clean_node_shell_script_on_destroy\",\n            \"reason\": \"API_Testing\",\n            \"value\": \"true\"\n        }\n    ],\n    \"serviceName\": \"nexus\",\n    \"effectiveNow\": true\n}\n","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/cluster/update_gflags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"91"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 25 Jan 2023 20:06:13 GMT"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=2592000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677174"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Added gflags [run_clean_node_shell_script_on_destroy] to the service nexus\\n\"\n}"}],"_postman_id":"fea7328e-5766-468c-903c-779181e7dedd"},{"name":"Create COHESITY_HIGH_CLASSIFIED User","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4c1b2cfc-710f-48ef-be8e-3fdaa2677f00"}},{"listen":"test","script":{"exec":["var response = pm.response.json()","pm.test(\"Status code is 201/400\", function () {","    (pm.response.status == 400 || pm.response.status == 201);","});","","pm.test(\"Response is not null\", function () {","    pm.expect(response).to.not.equal(undefined);","});","","pm.test(\"Body matches string\", function () {","    (pm.expect(pm.response.text()).to.include(\"User with username 'high_classified' in domain 'LOCAL' already exists\")) || (pm.expect(pm.response.text()).to.include(\"Created\"));","});"],"type":"text/javascript","id":"db475006-ed36-499a-9979-150cf31d52ac"}}],"id":"82f66af5-dc1f-447b-ac4a-3658ae5b00e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"domain\": \"LOCAL\",\n    \"roles\": [\n        \"COHESITY_HIGH_CLASSIFIED\",\n        \"COHESITY_VIEWER\"\n    ],\n    \"restricted\": false,\n    \"type\": \"user\",\n    \"_isDeletable\": true,\n    \"_principalType\": \"local_user\",\n    \"username\": \"high_classified\",\n    \"emailAddress\": \"{{high_classified_user_email}}\",\n    \"password\": \"{{high_classified_user_pwd}}\",\n    \"passwordConfirm\": \"{{high_classified_user_pwd}}\",\n    \"additionalGroupNames\": [],\n    \"forcePasswordChange\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users","description":"<p>Create a Cohesity user with the <code>COHESITY_HIGH_CLASSIFIED</code> role.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","users"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"c7c44945-fec0-478a-b350-0db3144fa2b4","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"domain\": \"LOCAL\",\n    \"roles\": [\n        \"COHESITY_HIGH_CLASSIFIED\",\n        \"COHESITY_VIEWER\"\n    ],\n    \"restricted\": false,\n    \"type\": \"user\",\n    \"_isDeletable\": true,\n    \"_principalType\": \"local_user\",\n    \"username\": \"high_classified\",\n    \"emailAddress\": \"{{high_classified_user_email}}\",\n    \"password\": \"{{high_classified_user_pwd}}\",\n    \"passwordConfirm\": \"{{high_classified_user_pwd}}\",\n    \"additionalGroupNames\": [],\n    \"forcePasswordChange\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677201"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:06:40 GMT"},{"key":"Content-Length","value":"387"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"high_classified\",\n    \"domain\": \"LOCAL\",\n    \"emailAddress\": \"{{high_classified_user_email}}\",\n    \"roles\": [\n        \"COHESITY_HIGH_CLASSIFIED\",\n        \"COHESITY_VIEWER\"\n    ],\n    \"privilegeIds\": null,\n    \"clusterIdentifiers\": null,\n    \"effectiveTimeMsecs\": 1674677200510,\n    \"restricted\": false,\n    \"createdTimeMsecs\": 1674677200510,\n    \"lastUpdatedTimeMsecs\": 1674677200510,\n    \"sid\": \"S-1-21-21-132554722-41316686-11\",\n    \"s3AccountId\": \"{{account_id}}\",\n    \"s3AccessKeyId\": \"{{access_id}}\",\n    \"s3SecretKey\": \"{{secret_key}}\",\n    \"isAccountLocked\": false,\n    \"lockoutReason\": \"NotLocked\"\n}"}],"_postman_id":"82f66af5-dc1f-447b-ac4a-3658ae5b00e2"}],"id":"c0067483-bb4e-41a6-8db9-aeda8fec5d98","description":"<p>You can create a Cohesity cluster by performing the following steps using the API operations:</p>\n<ol>\n<li>Generate the access token for the admin to access the Cohesity cluster resources.</li>\n<li>Create a new Cohesity cluster using the node IDs obtained from the <strong>Discover Cohesity cluster node API</strong> response.</li>\n<li>Generate the access token for the admin to access the newly created Cohesity cluster resources.</li>\n<li>Set the feature flag that allows high privilege role on the Cohesity cluster.</li>\n<li>Restart the Cohesity cluster's <strong>UI and REST API Services</strong>.</li>\n<li>Check the status of the <strong>UI and REST API Services</strong>.</li>\n<li>Restart the <strong>Cohesity Cluster Manager Services</strong>.</li>\n<li>Check the status of the <strong>Cohesity Cluster Manager Services</strong>.</li>\n<li>Set the feature flag that enables the support for destroying the cluster with two-factor authentication.</li>\n<li>Set the feature flag that automates the execution of the shell script for cleaning the Cohesity nodes after destroying the Cohesity cluster.</li>\n<li>Create a user with the <strong>COHESITY_HIGH_CLASSIFIED</strong> role.</li>\n</ol>\n","_postman_id":"c0067483-bb4e-41a6-8db9-aeda8fec5d98"},{"name":"Destroy Cohesity Cluster","item":[{"name":"Generate Access Token  for COHESITY_HIGH_CLASSIFIED User","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-high-classified-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-high-classified-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-high-classified-access_token\")).to.not.equal(null);","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"a39d0b08-198e-433e-a8c2-e10aa987ba70"}}],"id":"7903c8a7-cab9-429e-af94-1a2533ea72b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_high-classified-user}}\",\n    \"password\":\"{{cluster_high-classified-password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the <code>COHESITY_HIGH_CLASSIFIED</code> user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"ca3d5574-c524-41ff-9a2c-f3ea8381b115","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-high-classified-user}}\",\n    \"password\":\"{{cluster_1-high-classified-password}}\",\n    \"domain\": \"{{cluster_1-domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677385"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:09:44 GMT"},{"key":"Content-Length","value":"881"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{cluster_high-classified-access_token}}\",\n    \"tokenType\": \"Bearer\",\n    \"privileges\": [\n        \"AD_LDAP_VIEW\",\n        \"TAGS_VIEW\",\n        \"VLAN_VIEW\"\n    ]\n}"}],"_postman_id":"7903c8a7-cab9-429e-af94-1a2533ea72b5"},{"name":"Get HMAC Key","event":[{"listen":"test","script":{"exec":["var response = pm.response.json()","","var key = pm.response.json()[\"key\"]","pm.environment.set(\"cluster_1-high-classified-HMAC-Key\",key);","console.log(\"HMAC Key: \"+ key)","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Response is not null\", function () {","    pm.expect(response).to.not.equal(undefined);","});","","//schema validation","const response_schema ={","    \"type\": \"object\",","    \"required\": [","        \"key\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"key\": {","            \"type\": \"string\"","        }","    }","};","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"0a005c7c-fac1-450d-bf3d-ecf5d74fdc20"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"089f65c9-5a27-476f-a75a-36386044d4ab"}}],"id":"1e7bede6-9918-43b6-95e4-9e5243a4a5dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_high-classified-access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster-vip}}v2/clusters/api-based-fetch-info","description":"<p>Returns the HMAC key.</p>\n<p>This key is used as the input for generating an OTP, which is required for destroying the Cohesity cluster operation. You can generate the OTP by running the script provided by Cohesity.</p>\n","urlObject":{"protocol":"https","path":["clusters","api-based-fetch-info"],"host":["{{cluster-vip}}v2"],"query":[],"variable":[]}},"response":[{"id":"561e3c4c-7a81-4f94-a438-392386a8f9d6","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster-vip}}/v2/clusters/api-based-fetch-info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677392"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:09:52 GMT"},{"key":"Content-Length","value":"67"}],"cookie":[],"responseTime":null,"body":"{\n    \"key\": \"{{xyz}}\"\n}"}],"_postman_id":"1e7bede6-9918-43b6-95e4-9e5243a4a5dd"},{"name":"Get Cluster ID","event":[{"listen":"test","script":{"exec":["console.log(\"Test for Get Cluster API\")","","var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Get Cluster response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"id\",","        \"incarnationId\",","        \"createdTimeMsecs\",","        \"currentTimeMsecs\",","        \"nodeCount\",","        \"clusterSoftwareVersion\",","        \"targetSoftwareVersion\",","        \"currentOperation\",","        \"hardwareInfo\",","        \"stats\",","        \"encryptionEnabled\",","        \"eulaConfig\",","        \"licenseState\",","        \"clusterType\",","        \"supportedConfig\",","        \"availableMetadataSpace\",","        \"usedMetadataSpacePct\",","        \"proxyVMSubnet\",","        \"name\",","        \"dnsServerIps\",","        \"domainNames\",","        \"reverseTunnelEnabled\",","        \"reverseTunnelEndTimeMsecs\",","        \"enableUpgradePkgPolling\",","        \"enableActiveMonitoring\",","        \"clusterAuditLogConfig\",","        \"filerAuditLogConfig\",","        \"tieringAuditLogConfig\",","        \"isDocumentationLocal\",","        \"languageLocale\",","        \"timezone\",","        \"smbAdDisabled\",","        \"smbMultichannelEnabled\",","        \"turboMode\",","        \"ntpSettings\",","        \"multiTenancyEnabled\",","        \"tenantViewboxSharingEnabled\",","        \"metadataFaultToleranceFactor\",","        \"faultToleranceLevel\",","        \"appsSubnet\",","        \"googleAnalyticsEnabled\",","        \"pcieSsdTierRebalanceDelaySecs\",","        \"kmsServerId\",","        \"schemaInfoList\",","        \"nodeIps\",","        \"ipPreference\",","        \"chassisCount\",","        \"assignedRacksCount\",","        \"TenantId\",","        \"LocalTenantId\",","        \"RegionId\",","        \"minimumFailureDomainsNeeded\",","        \"isClusterMfaEnabled\",","        \"diskCountByTier\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"id\": {","            \"type\": \"number\"","        },","        \"incarnationId\": {","            \"type\": \"number\"","        },","        \"createdTimeMsecs\": {","            \"type\": \"number\"","        },","        \"currentTimeMsecs\": {","            \"type\": \"number\"","        },","        \"nodeCount\": {","            \"type\": \"number\"","        },","        \"clusterSoftwareVersion\": {","            \"type\": \"string\"","        },","        \"targetSoftwareVersion\": {","            \"type\": \"string\"","        },","        \"currentOperation\": {","            \"type\": \"string\"","        },","        \"hardwareInfo\": {","            \"type\": \"object\",","            \"required\": [","                \"hardwareModels\",","                \"hardwareVendors\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"hardwareModels\": {","                    \"type\": \"array\",","                    \"additionalItems\": false,","                    \"items\": {","                        \"type\": \"string\"","                    },","                    \"uniqueItems\": true","                },","                \"hardwareVendors\": {","                    \"type\": \"array\",","                    \"additionalItems\": false,","                    \"items\": {","                        \"type\": \"string\"","                    },","                    \"uniqueItems\": true","                }","            }","        },","        \"stats\": {","            \"type\": \"object\",","            \"required\": [","                \"id\",","                \"usagePerfStats\",","                \"localUsagePerfStats\",","                \"logicalStats\",","                \"dataUsageStats\",","                \"dataReductionRatio\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"id\": {","                    \"type\": \"number\"","                },","                \"usagePerfStats\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"physicalCapacityBytes\",","                        \"systemCapacityBytes\",","                        \"totalPhysicalUsageBytes\",","                        \"totalPhysicalRawUsageBytes\",","                        \"systemUsageBytes\",","                        \"dataInBytes\",","                        \"dataInBytesAfterReduction\",","                        \"numBytesRead\",","                        \"numBytesWritten\",","                        \"readIos\",","                        \"writeIos\",","                        \"readLatencyMsecs\",","                        \"writeLatencyMsecs\"","                    ],","                    \"additionalProperties\": false,","                    \"properties\": {","                        \"physicalCapacityBytes\": {","                            \"type\": \"number\"","                        },","                        \"systemCapacityBytes\": {","                            \"type\": \"number\"","                        },","                        \"totalPhysicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"totalPhysicalRawUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"systemUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"dataInBytes\": {","                            \"type\": \"number\"","                        },","                        \"dataInBytesAfterReduction\": {","                            \"type\": \"number\"","                        },","                        \"numBytesRead\": {","                            \"type\": \"number\"","                        },","                        \"numBytesWritten\": {","                            \"type\": \"number\"","                        },","                        \"readIos\": {","                            \"type\": \"number\"","                        },","                        \"writeIos\": {","                            \"type\": \"number\"","                        },","                        \"readLatencyMsecs\": {","                            \"type\": \"number\"","                        },","                        \"writeLatencyMsecs\": {","                            \"type\": \"number\"","                        }","                    }","                },","                \"localUsagePerfStats\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"physicalCapacityBytes\",","                        \"systemCapacityBytes\",","                        \"minUsablePhysicalCapacityBytes\",","                        \"totalPhysicalUsageBytes\",","                        \"totalPhysicalRawUsageBytes\",","                        \"systemUsageBytes\",","                        \"numBytesRead\",","                        \"numBytesWritten\",","                        \"readIos\",","                        \"writeIos\",","                        \"readLatencyMsecs\",","                        \"writeLatencyMsecs\"","                    ],","                    \"additionalProperties\": false,","                    \"properties\": {","                        \"physicalCapacityBytes\": {","                            \"type\": \"number\"","                        },","                        \"systemCapacityBytes\": {","                            \"type\": \"number\"","                        },","                        \"minUsablePhysicalCapacityBytes\": {","                            \"type\": \"number\"","                        },","                        \"totalPhysicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"totalPhysicalRawUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"systemUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"numBytesRead\": {","                            \"type\": \"number\"","                        },","                        \"numBytesWritten\": {","                            \"type\": \"number\"","                        },","                        \"readIos\": {","                            \"type\": \"number\"","                        },","                        \"writeIos\": {","                            \"type\": \"number\"","                        },","                        \"readLatencyMsecs\": {","                            \"type\": \"number\"","                        },","                        \"writeLatencyMsecs\": {","                            \"type\": \"number\"","                        }","                    }","                },","                \"logicalStats\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"totalLogicalUsageBytes\"","                    ],","                    \"additionalProperties\": false,","                    \"properties\": {","                        \"totalLogicalUsageBytes\": {","                            \"type\": \"number\"","                        }","                    }","                },","                \"dataUsageStats\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"totalLogicalUsageBytes\",","                        \"dataProtectLogicalUsageBytes\",","                        \"dataProtectPhysicalUsageBytes\",","                        \"fileServicesLogicalUsageBytes\",","                        \"fileServicesPhysicalUsageBytes\",","                        \"dataInBytes\",","                        \"dataInBytesAfterDedup\",","                        \"dataWrittenBytes\",","                        \"localDataWrittenBytes\",","                        \"localTierResiliencyImpactBytes\",","                        \"localTotalPhysicalUsageBytes\"","                    ],","                    \"additionalProperties\": false,","                    \"properties\": {","                        \"totalLogicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"dataProtectLogicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"dataProtectPhysicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"fileServicesLogicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"fileServicesPhysicalUsageBytes\": {","                            \"type\": \"number\"","                        },","                        \"dataInBytes\": {","                            \"type\": \"number\"","                        },","                        \"dataInBytesAfterDedup\": {","                            \"type\": \"number\"","                        },","                        \"dataWrittenBytes\": {","                            \"type\": \"number\"","                        },","                        \"localDataWrittenBytes\": {","                            \"type\": \"number\"","                        },","                        \"localTierResiliencyImpactBytes\": {","                            \"type\": \"number\"","                        },","                        \"localTotalPhysicalUsageBytes\": {","                            \"type\": \"number\"","                        }","                    }","                },","                \"dataReductionRatio\": {","                    \"type\": \"number\"","                }","            }","        },","        \"encryptionEnabled\": {","            \"type\": \"boolean\"","        },","        \"eulaConfig\": {","            \"type\": \"object\",","            \"required\": [","                \"signedTime\",","                \"signedByUser\",","                \"signedVersion\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"signedTime\": {","                    \"type\": \"number\"","                },","                \"signedByUser\": {","                    \"type\": \"string\"","                },","                \"signedVersion\": {","                    \"type\": \"number\"","                }","            }","        },","        \"licenseState\": {","            \"type\": \"object\",","            \"required\": [","                \"state\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"state\": {","                    \"type\": \"string\"","                }","            }","        },","        \"clusterType\": {","            \"type\": \"string\"","        },","        \"supportedConfig\": {","            \"type\": \"object\",","            \"required\": [","                \"minNodesAllowed\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"minNodesAllowed\": {","                    \"type\": \"number\"","                }","            }","        },","        \"availableMetadataSpace\": {","            \"type\": \"number\"","        },","        \"usedMetadataSpacePct\": {","            \"type\": \"number\"","        },","        \"proxyVMSubnet\": {","            \"type\": \"string\"","        },","        \"name\": {","            \"type\": \"string\"","        },","        \"dnsServerIps\": {","            \"type\": \"array\",","            \"additionalItems\": false,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        },","        \"domainNames\": {","            \"type\": \"array\",","            \"additionalItems\": false,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        },","        \"reverseTunnelEnabled\": {","            \"type\": \"boolean\"","        },","        \"reverseTunnelEndTimeMsecs\": {","            \"type\": \"number\"","        },","        \"enableUpgradePkgPolling\": {","            \"type\": \"boolean\"","        },","        \"enableActiveMonitoring\": {","            \"type\": \"boolean\"","        },","        \"clusterAuditLogConfig\": {","            \"type\": \"object\",","            \"required\": [","                \"enabled\",","                \"retentionPeriodDays\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"enabled\": {","                    \"type\": \"boolean\"","                },","                \"retentionPeriodDays\": {","                    \"type\": \"number\"","                }","            }","        },","        \"filerAuditLogConfig\": {","            \"type\": \"object\",","            \"required\": [","                \"enabled\",","                \"retentionPeriodDays\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"enabled\": {","                    \"type\": \"boolean\"","                },","                \"retentionPeriodDays\": {","                    \"type\": \"number\"","                }","            }","        },","        \"tieringAuditLogConfig\": {","            \"type\": \"object\",","            \"required\": [","                \"enabled\",","                \"retentionPeriodDays\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"enabled\": {","                    \"type\": \"boolean\"","                },","                \"retentionPeriodDays\": {","                    \"type\": \"number\"","                }","            }","        },","        \"isDocumentationLocal\": {","            \"type\": \"boolean\"","        },","        \"languageLocale\": {","            \"type\": \"string\"","        },","        \"timezone\": {","            \"type\": \"string\"","        },","        \"smbAdDisabled\": {","            \"type\": \"boolean\"","        },","        \"smbMultichannelEnabled\": {","            \"type\": \"boolean\"","        },","        \"turboMode\": {","            \"type\": \"boolean\"","        },","        \"ntpSettings\": {","            \"type\": \"object\",","            \"required\": [","                \"ntpServersInternal\",","                \"ntpAuthenticationEnabled\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"ntpServersInternal\": {","                    \"type\": \"boolean\"","                },","                \"ntpAuthenticationEnabled\": {","                    \"type\": \"boolean\"","                }","            }","        },","        \"multiTenancyEnabled\": {","            \"type\": \"boolean\"","        },","        \"tenantViewboxSharingEnabled\": {","            \"type\": \"boolean\"","        },","        \"metadataFaultToleranceFactor\": {","            \"type\": \"number\"","        },","        \"faultToleranceLevel\": {","            \"type\": \"string\"","        },","        \"appsSubnet\": {","            \"type\": \"object\",","            \"required\": [","                \"id\",","                \"ip\",","                \"netmaskBits\",","                \"description\",","                \"component\",","                \"nfsAccess\",","                \"smbAccess\",","                \"s3Access\"","            ],","            \"additionalProperties\": false,","            \"properties\": {","                \"id\": {","                    \"type\": \"number\"","                },","                \"ip\": {","                    \"type\": \"string\"","                },","                \"netmaskBits\": {","                    \"type\": \"number\"","                },","                \"description\": {","                    \"type\": \"string\"","                },","                \"component\": {","                    \"type\": \"string\"","                },","                \"nfsAccess\": {","                    \"type\": \"string\"","                },","                \"smbAccess\": {","                    \"type\": \"string\"","                },","                \"s3Access\": {","                    \"type\": \"string\"","                }","            }","        },","        \"googleAnalyticsEnabled\": {","            \"type\": \"boolean\"","        },","        \"pcieSsdTierRebalanceDelaySecs\": {","            \"type\": \"number\"","        },","        \"kmsServerId\": {","            \"type\": \"number\"","        },","        \"schemaInfoList\": {","            \"type\": \"array\",","            \"additionalItems\": false,","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"key\",","                    \"entityId\",","                    \"metricName\",","                    \"schemaName\"","                ],","                \"additionalProperties\": false,","                \"properties\": {","                    \"key\": {","                        \"type\": \"string\"","                    },","                    \"entityId\": {","                        \"type\": \"string\"","                    },","                    \"metricName\": {","                        \"type\": \"string\"","                    },","                    \"schemaName\": {","                        \"type\": \"string\"","                    }","                }","            },","            \"uniqueItems\": true","        },","        \"nodeIps\": {","            \"type\": \"string\"","        },","        \"ipPreference\": {","            \"type\": \"number\"","        },","        \"chassisCount\": {","            \"type\": \"number\"","        },","        \"assignedRacksCount\": {","            \"type\": \"number\"","        },","        \"TenantId\": {","            \"type\": \"null\"","        },","        \"LocalTenantId\": {","            \"type\": \"null\"","        },","        \"RegionId\": {","            \"type\": \"null\"","        },","        \"minimumFailureDomainsNeeded\": {","            \"type\": \"number\"","        },","        \"isClusterMfaEnabled\": {","            \"type\": \"boolean\"","        },","        \"diskCountByTier\": {","            \"type\": \"array\",","            \"additionalItems\": false,","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"storageTier\",","                    \"diskCount\"","                ],","                \"additionalProperties\": false,","                \"properties\": {","                    \"storageTier\": {","                        \"type\": \"string\"","                    },","                    \"diskCount\": {","                        \"type\": \"number\"","                    }","                }","            },","            \"uniqueItems\": true","        }","    }","};","","pm.test(\"Validating Get Cluster Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","var cluster_id = pm.response.json()[\"id\"]","pm.environment.set(\"cluster_1_id\",cluster_id);","console.log(\"Cluster ID: \"+cluster_id)","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"162d1ae9-e56d-48f3-8741-735953b9dc1a"}}],"id":"3f12d8ab-510b-4e58-9999-f0371ba32937","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"fetchStats","value":"true","type":"text"},{"key":"fetchTimeSeriesSchema","value":"true","type":"text"},{"key":"includeMinimumNodesInfo","value":"true","type":"text"}]},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/cluster?fetchStats=true&fetchTimeSeriesSchema=true&includeMinimumNodesInfo=true","description":"<p>Returns information such as Cohesity cluster ID, number of nodes, created time, software version, and hardware model of the Cohesity Cluster.</p>\n<p>The Cohesity cluster ID value is required for destroying the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","cluster"],"host":["{{cluster-vip}}"],"query":[{"key":"fetchStats","value":"true"},{"key":"fetchTimeSeriesSchema","value":"true"},{"key":"includeMinimumNodesInfo","value":"true"}],"variable":[]}},"response":[{"id":"3775f705-977a-44b3-8a83-4f42e7125941","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://{{cluster-vip}}/irisservices/api/v1/public/cluster?fetchStats=true&fetchTimeSeriesSchema=true&includeMinimumNodesInfo=true","protocol":"https","host":["{{cluster-vip}}"],"path":["irisservices","api","v1","public","cluster"],"query":[{"key":"fetchStats","value":"true"},{"key":"fetchTimeSeriesSchema","value":"true"},{"key":"includeMinimumNodesInfo","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677398"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:09:57 GMT"},{"key":"Content-Length","value":"1520"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": {{cluster_ID}},\n    \"incarnationId\": {{incarnation_id}},\n    \"createdTimeMsecs\": 1674582711960,\n    \"currentTimeMsecs\": 1674677397000,\n    \"nodeCount\": 3,\n    \"clusterSoftwareVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"targetSoftwareVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"currentOperation\": \"kNone\",\n    \"hardwareInfo\": {\n        \"hardwareModels\": [\n            \"C5026\"\n        ],\n        \"hardwareVendors\": [\n            \"Advantech\"\n        ]\n    },\n    \"stats\": {\n        \"id\": 5545431855964130,\n        \"usagePerfStats\": {\n            \"physicalCapacityBytes\": 72835348568229,\n            \"systemCapacityBytes\": 75547059646464,\n            \"totalPhysicalUsageBytes\": 1118208,\n            \"totalPhysicalRawUsageBytes\": 1146880,\n            \"systemUsageBytes\": 128732749824,\n            \"dataInBytes\": 551957,\n            \"dataInBytesAfterReduction\": 1141593,\n            \"numBytesRead\": 0,\n            \"numBytesWritten\": 0,\n            \"readIos\": 0,\n            \"writeIos\": 0,\n            \"readLatencyMsecs\": 0,\n            \"writeLatencyMsecs\": 0\n        },\n        \"localUsagePerfStats\": {\n            \"physicalCapacityBytes\": 72835348568229,\n            \"systemCapacityBytes\": 75547059646464,\n            \"minUsablePhysicalCapacityBytes\": 72835348568229,\n            \"totalPhysicalUsageBytes\": 1118208,\n            \"totalPhysicalRawUsageBytes\": 1146880,\n            \"systemUsageBytes\": 128732749824,\n            \"numBytesRead\": 0,\n            \"numBytesWritten\": 0,\n            \"readIos\": 0,\n            \"writeIos\": 0,\n            \"readLatencyMsecs\": 0,\n            \"writeLatencyMsecs\": 0\n        },\n        \"logicalStats\": {\n            \"totalLogicalUsageBytes\": 29969\n        },\n        \"dataUsageStats\": {\n            \"totalLogicalUsageBytes\": 29969,\n            \"dataProtectLogicalUsageBytes\": 0,\n            \"dataProtectPhysicalUsageBytes\": 0,\n            \"fileServicesLogicalUsageBytes\": 0,\n            \"fileServicesPhysicalUsageBytes\": 0,\n            \"dataInBytes\": 551957,\n            \"dataInBytesAfterDedup\": 1146880,\n            \"dataWrittenBytes\": 1116376,\n            \"localDataWrittenBytes\": 1116376,\n            \"localTierResiliencyImpactBytes\": 0,\n            \"localTotalPhysicalUsageBytes\": 1118208\n        },\n        \"dataReductionRatio\": 0.026800917181776556\n    },\n    \"encryptionEnabled\": false,\n    \"eulaConfig\": {\n        \"signedTime\": 1674597279,\n        \"signedByUser\": \"admin\",\n        \"signedVersion\": 4\n    },\n    \"licenseState\": {\n        \"state\": \"kSkipped\",\n        \"failedAttempts\": 1\n    },\n    \"clusterType\": \"kPhysical\",\n    \"supportedConfig\": {\n        \"minNodesAllowed\": 1\n    },\n    \"availableMetadataSpace\": 4416882962601,\n    \"usedMetadataSpacePct\": 1.4585967068971621,\n    \"proxyVMSubnet\": \"198.18.0.100/28\",\n    \"name\": \"Cohesity cluster\",\n    \"dnsServerIps\": [\n        \"{{dns_ip}}\"\n    ],\n    \"domainNames\": [\n        \"{{Domain_name}}\"\n    ],\n    \"reverseTunnelEnabled\": false,\n    \"reverseTunnelEndTimeMsecs\": 0,\n    \"enableUpgradePkgPolling\": false,\n    \"enableActiveMonitoring\": true,\n    \"clusterAuditLogConfig\": {\n        \"enabled\": true,\n        \"retentionPeriodDays\": 90\n    },\n    \"filerAuditLogConfig\": {\n        \"enabled\": false,\n        \"retentionPeriodDays\": 90\n    },\n    \"tieringAuditLogConfig\": {\n        \"enabled\": false,\n        \"retentionPeriodDays\": 90\n    },\n    \"isDocumentationLocal\": false,\n    \"languageLocale\": \"en-us\",\n    \"timezone\": \"UTC\",\n    \"smbAdDisabled\": false,\n    \"smbMultichannelEnabled\": true,\n    \"turboMode\": false,\n    \"ntpSettings\": {\n        \"ntpServersInternal\": false,\n        \"ntpAuthenticationEnabled\": false\n    },\n    \"multiTenancyEnabled\": false,\n    \"tenantViewboxSharingEnabled\": false,\n    \"metadataFaultToleranceFactor\": 0,\n    \"faultToleranceLevel\": \"kNode\",\n    \"appsSubnet\": {\n        \"id\": 0,\n        \"ip\": \"192.168.0.0\",\n        \"netmaskBits\": 16,\n        \"description\": \"Default apps subnet\",\n        \"component\": \"athena\",\n        \"nfsAccess\": \"kReadWrite\",\n        \"smbAccess\": \"kReadWrite\",\n        \"s3Access\": \"kReadWrite\"\n    },\n    \"googleAnalyticsEnabled\": true,\n    \"pcieSsdTierRebalanceDelaySecs\": 900,\n    \"kmsServerId\": 0,\n    \"schemaInfoList\": [\n        {\n            \"key\": \"dataIn\",\n            \"entityId\": \"Cohesity cluster (ID 5545431855964130)\",\n            \"metricName\": \"BrickBytesLogical\",\n            \"schemaName\": \"ApolloV2ClusterStats\"\n        },\n        {\n            \"key\": \"dataWritten\",\n            \"entityId\": \"Cohesity cluster (ID 5545431855964130)\",\n            \"metricName\": \"ChunkBytesMorphed\",\n            \"schemaName\": \"ApolloV2ClusterStats\"\n        },\n        {\n            \"key\": \"storageConsumedLocalTier\",\n            \"entityId\": \"5545431855964130:Local\",\n            \"metricName\": \"kMorphedUsageBytes\",\n            \"schemaName\": \"kBridgeClusterTierPhysicalStats\"\n        },\n        {\n            \"key\": \"localResiliencyImpact\",\n            \"entityId\": \"Cohesity cluster (ID 5545431855964130)\",\n            \"metricName\": \"ResiliencyOverheadBytes:Local\",\n            \"schemaName\": \"ApolloV2ClusterStats\"\n        },\n        {\n            \"key\": \"logicalSize\",\n            \"entityId\": \"5545431855964130\",\n            \"metricName\": \"kUnmorphedUsageBytes\",\n            \"schemaName\": \"kBridgeClusterLogicalStats\"\n        }\n    ],\n    \"nodeIps\": \"{{Node1_IP}},{{Node2_IP}},{{Node3_IP}}\",\n    \"ipPreference\": 1,\n    \"chassisCount\": 1,\n    \"assignedRacksCount\": 0,\n    \"TenantId\": null,\n    \"LocalTenantId\": null,\n    \"RegionId\": null,\n    \"minimumFailureDomainsNeeded\": 1,\n    \"isClusterMfaEnabled\": false,\n    \"diskCountByTier\": [\n        {\n            \"storageTier\": \"PCIeSSD\",\n            \"diskCount\": 3\n        },\n        {\n            \"storageTier\": \"SATA-HDD\",\n            \"diskCount\": 9\n        }\n    ]\n}"}],"_postman_id":"3f12d8ab-510b-4e58-9999-f0371ba32937"},{"name":"Destroy Cohesity Cluster","event":[{"listen":"test","script":{"exec":["console.log(\"Test for Get Cluster API\")","","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","console.log(\"Test Completed\")","",""],"type":"text/javascript","id":"c9746451-c92b-4fea-a0f3-3be965df37ec"}},{"listen":"prerequest","script":{"exec":["//Article about TOTP on my blog https://stapp.space/generate-totp-in-postman/","","/**"," * @preserve A JavaScript implementation of the SHA family of hashes, as"," * defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding"," * HMAC implementation as defined in FIPS PUB 198a"," *"," * Copyright Brian Turek 2008-2017"," * Distributed under the BSD License"," * See http://caligatio.github.com/jsSHA/ for more information"," *"," * Several functions taken from Paul Johnston"," */","","/*jslint","\tbitwise: true, multivar: true, for: true, this: true, sub: true, esversion: 3","*/",""," /**","  * SUPPORTED_ALGS is the stub for a compile flag that will cause pruning of","  * functions that are not needed when a limited number of SHA families are","  * selected","  *","  * @define {number} ORed value of SHA variants to be supported","  *   1 = SHA-1, 2 = SHA-224/SHA-256, 4 = SHA-384/SHA-512, 8 = SHA3","  */","var SUPPORTED_ALGS = 8 | 4 | 2 | 1;","var X={};","","(function (global)","{","\t\"use strict\";","","\t/* Globals */","\tvar TWO_PWR_32 = 4294967296;","","\t/**","\t * Int_64 is a object for 2 32-bit numbers emulating a 64-bit number","\t *","\t * @private","\t * @constructor","\t * @this {Int_64}","\t * @param {number} msint_32 The most significant 32-bits of a 64-bit number","\t * @param {number} lsint_32 The least significant 32-bits of a 64-bit number","\t */","\tfunction Int_64(msint_32, lsint_32)","\t{","\t\tthis.highOrder = msint_32;","\t\tthis.lowOrder = lsint_32;","\t}","","\t/**","\t * Convert a string to an array of big-endian words","\t *","\t * There is a known bug with an odd number of existing bytes and using a","\t * UTF-16 encoding.  However, this function is used such that the existing","\t * bytes are always a result of a previous UTF-16 str2packed call and","\t * therefore there should never be an odd number of existing bytes","\t *","\t * @private","\t * @param {string} str String to be converted to binary representation","\t * @param {string} utfType The Unicode type, UTF8 or UTF16BE, UTF16LE, to","\t *   use to encode the source string","\t * @param {Array<number>} existingPacked A packed int array of bytes to","\t *   append the results to","\t * @param {number} existingPackedLen The number of bits in the existingPacked","\t *   array","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t *   length of \"value\"","\t */","\tfunction str2packed(str, utfType, existingPacked, existingPackedLen, bigEndianMod)","\t{","\t\tvar packed, codePnt, codePntArr, byteCnt = 0, i, j, existingByteLen,","\t\t\tintOffset, byteOffset, shiftModifier, transposeBytes;","","\t\tpacked = existingPacked || [0];","\t\texistingPackedLen = existingPackedLen || 0;","\t\texistingByteLen = existingPackedLen >>> 3;","","\t\tif (\"UTF8\" === utfType)","\t\t{","\t\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","\t\t\tfor (i = 0; i < str.length; i += 1)","\t\t\t{","\t\t\t\tcodePnt = str.charCodeAt(i);","\t\t\t\tcodePntArr = [];","","\t\t\t\tif (0x80 > codePnt)","\t\t\t\t{","\t\t\t\t\tcodePntArr.push(codePnt);","\t\t\t\t}","\t\t\t\telse if (0x800 > codePnt)","\t\t\t\t{","\t\t\t\t\tcodePntArr.push(0xC0 | (codePnt >>> 6));","\t\t\t\t\tcodePntArr.push(0x80 | (codePnt & 0x3F));","\t\t\t\t}","\t\t\t\telse if ((0xd800 > codePnt) || (0xe000 <= codePnt)) {","\t\t\t\t\tcodePntArr.push(","\t\t\t\t\t\t0xe0 | (codePnt >>> 12),","\t\t\t\t\t\t0x80 | ((codePnt >>> 6) & 0x3f),","\t\t\t\t\t\t0x80 | (codePnt & 0x3f)","\t\t\t\t\t);","\t\t\t\t}","\t\t\t\telse","\t\t\t\t{","\t\t\t\t\ti += 1;","\t\t\t\t\tcodePnt = 0x10000 + (((codePnt & 0x3ff) << 10) | (str.charCodeAt(i) & 0x3ff));","\t\t\t\t\tcodePntArr.push(","\t\t\t\t\t\t0xf0 | (codePnt >>> 18),","\t\t\t\t\t\t0x80 | ((codePnt >>> 12) & 0x3f),","\t\t\t\t\t\t0x80 | ((codePnt >>> 6) & 0x3f),","\t\t\t\t\t\t0x80 | (codePnt & 0x3f)","\t\t\t\t\t);","\t\t\t\t}","","\t\t\t\tfor (j = 0; j < codePntArr.length; j += 1)","\t\t\t\t{","\t\t\t\t\tbyteOffset = byteCnt + existingByteLen;","\t\t\t\t\tintOffset = byteOffset >>> 2;","\t\t\t\t\twhile (packed.length <= intOffset)","\t\t\t\t\t{","\t\t\t\t\t\tpacked.push(0);","\t\t\t\t\t}","\t\t\t\t\t/* Known bug kicks in here */","\t\t\t\t\tpacked[intOffset] |= codePntArr[j] << (8 * (shiftModifier + bigEndianMod * (byteOffset % 4)));","\t\t\t\t\tbyteCnt += 1;","\t\t\t\t}","\t\t\t}","\t\t}","\t\telse if ((\"UTF16BE\" === utfType) || \"UTF16LE\" === utfType)","\t\t{","\t\t\tshiftModifier = (bigEndianMod === -1) ? 2 : 0;","\t\t\t/* Internally strings are UTF-16BE so transpose bytes under two conditions:","\t\t\t\t* need LE and not switching endianness due to SHA-3","\t\t\t\t* need BE and switching endianness due to SHA-3 */","\t\t\ttransposeBytes = ((\"UTF16LE\" === utfType) && (bigEndianMod !== 1)) || ((\"UTF16LE\" !== utfType) && (bigEndianMod === 1));","\t\t\tfor (i = 0; i < str.length; i += 1)","\t\t\t{","\t\t\t\tcodePnt = str.charCodeAt(i);","\t\t\t\tif (transposeBytes === true)","\t\t\t\t{","\t\t\t\t\tj = codePnt & 0xFF;","\t\t\t\t\tcodePnt = (j << 8) | (codePnt >>> 8);","\t\t\t\t}","","\t\t\t\tbyteOffset = byteCnt + existingByteLen;","\t\t\t\tintOffset = byteOffset >>> 2;","\t\t\t\twhile (packed.length <= intOffset)","\t\t\t\t{","\t\t\t\t\tpacked.push(0);","\t\t\t\t}","\t\t\t\tpacked[intOffset] |= codePnt << (8 * (shiftModifier + bigEndianMod * (byteOffset % 4)));","\t\t\t\tbyteCnt += 2;","\t\t\t}","\t\t}","\t\treturn {\"value\" : packed, \"binLen\" : byteCnt * 8 + existingPackedLen};","\t}","","\t/**","\t * Convert a hex string to an array of big-endian words","\t *","\t * @private","\t * @param {string} str String to be converted to binary representation","\t * @param {Array<number>} existingPacked A packed int array of bytes to","\t *   append the results to","\t * @param {number} existingPackedLen The number of bits in the existingPacked","\t *   array","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t *   length of \"value\"","\t */","\tfunction hex2packed(str, existingPacked, existingPackedLen, bigEndianMod)","\t{","\t\tvar packed, length = str.length, i, num, intOffset, byteOffset,","\t\t\texistingByteLen, shiftModifier;","","\t\tif (0 !== (length % 2))","\t\t{","\t\t\tthrow new Error(\"String of HEX type must be in byte increments\");","\t\t}","","\t\tpacked = existingPacked || [0];","\t\texistingPackedLen = existingPackedLen || 0;","\t\texistingByteLen = existingPackedLen >>> 3;","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < length; i += 2)","\t\t{","\t\t\tnum = parseInt(str.substr(i, 2), 16);","\t\t\tif (!isNaN(num))","\t\t\t{","\t\t\t\tbyteOffset = (i >>> 1) + existingByteLen;","\t\t\t\tintOffset = byteOffset >>> 2;","\t\t\t\twhile (packed.length <= intOffset)","\t\t\t\t{","\t\t\t\t\tpacked.push(0);","\t\t\t\t}","\t\t\t\tpacked[intOffset] |= num  << (8 * (shiftModifier + bigEndianMod * (byteOffset % 4)));","\t\t\t}","\t\t\telse","\t\t\t{","\t\t\t\tthrow new Error(\"String of HEX type contains invalid characters\");","\t\t\t}","\t\t}","","\t\treturn {\"value\" : packed, \"binLen\" : length * 4 + existingPackedLen};","\t}","","\t/**","\t * Convert a string of raw bytes to an array of big-endian words","\t *","\t * @private","\t * @param {string} str String of raw bytes to be converted to binary representation","\t * @param {Array<number>} existingPacked A packed int array of bytes to","\t *   append the results to","\t * @param {number} existingPackedLen The number of bits in the existingPacked","\t *   array","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t *   length of \"value\"","\t */","\tfunction bytes2packed(str, existingPacked, existingPackedLen, bigEndianMod)","\t{","\t\tvar packed, codePnt, i, existingByteLen, intOffset,","\t\t\tbyteOffset, shiftModifier;","","\t\tpacked = existingPacked || [0];","\t\texistingPackedLen = existingPackedLen || 0;","\t\texistingByteLen = existingPackedLen >>> 3;","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < str.length; i += 1)","\t\t{","\t\t\tcodePnt = str.charCodeAt(i);","","\t\t\tbyteOffset = i + existingByteLen;","\t\t\tintOffset = byteOffset >>> 2;","\t\t\tif (packed.length <= intOffset)","\t\t\t{","\t\t\t\tpacked.push(0);","\t\t\t}","\t\t\tpacked[intOffset] |= codePnt << (8 * (shiftModifier + bigEndianMod * (byteOffset % 4)));","\t\t}","","\t\treturn {\"value\" : packed, \"binLen\" : str.length * 8 + existingPackedLen};","\t}","","\t/**","\t * Convert a base-64 string to an array of big-endian words","\t *","\t * @private","\t * @param {string} str String to be converted to binary representation","\t * @param {Array<number>} existingPacked A packed int array of bytes to","\t *   append the results to","\t * @param {number} existingPackedLen The number of bits in the existingPacked","\t *   array","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t *   length of \"value\"","\t */","\tfunction b642packed(str, existingPacked, existingPackedLen, bigEndianMod)","\t{","\t\tvar packed, byteCnt = 0, index, i, j, tmpInt, strPart, firstEqual,","\t\t\tb64Tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",","\t\t\texistingByteLen, intOffset, byteOffset, shiftModifier;","","\t\tif (-1 === str.search(/^[a-zA-Z0-9=+\\/]+$/))","\t\t{","\t\t\tthrow new Error(\"Invalid character in base-64 string\");","\t\t}","","\t\tfirstEqual = str.indexOf(\"=\");","\t\tstr = str.replace(/\\=/g, \"\");","\t\tif ((-1 !== firstEqual) && (firstEqual < str.length))","\t\t{","\t\t\tthrow new Error(\"Invalid '=' found in base-64 string\");","\t\t}","","\t\tpacked = existingPacked || [0];","\t\texistingPackedLen = existingPackedLen || 0;","\t\texistingByteLen = existingPackedLen >>> 3;","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < str.length; i += 4)","\t\t{","\t\t\tstrPart = str.substr(i, 4);","\t\t\ttmpInt = 0;","","\t\t\tfor (j = 0; j < strPart.length; j += 1)","\t\t\t{","\t\t\t\tindex = b64Tab.indexOf(strPart[j]);","\t\t\t\ttmpInt |= index << (18 - (6 * j));","\t\t\t}","","\t\t\tfor (j = 0; j < strPart.length - 1; j += 1)","\t\t\t{","\t\t\t\tbyteOffset = byteCnt + existingByteLen;","\t\t\t\tintOffset = byteOffset >>> 2;","\t\t\t\twhile (packed.length <= intOffset)","\t\t\t\t{","\t\t\t\t\tpacked.push(0);","\t\t\t\t}","\t\t\t\tpacked[intOffset] |= ((tmpInt >>> (16 - (j * 8))) & 0xFF) <<","\t\t\t\t\t(8 * (shiftModifier + bigEndianMod * (byteOffset % 4)));","\t\t\t\tbyteCnt += 1;","\t\t\t}","\t\t}","","\t\treturn {\"value\" : packed, \"binLen\" : byteCnt * 8 + existingPackedLen};","\t}","","\t/**","\t * Convert an ArrayBuffer to an array of big-endian words","\t *","\t * @private","\t * @param {ArrayBuffer} arr ArrayBuffer to be converted to binary","\t *   representation","\t * @param {Array<number>} existingPacked A packed int array of bytes to","\t *   append the results to","\t * @param {number} existingPackedLen The number of bits in the existingPacked","\t *   array","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t *   length of \"value\"","\t */","\tfunction arraybuffer2packed(arr, existingPacked, existingPackedLen, bigEndianMod)","\t{","\t\tvar packed, i, existingByteLen, intOffset, byteOffset, shiftModifier, arrView;","","\t\tpacked = existingPacked || [0];","\t\texistingPackedLen = existingPackedLen || 0;","\t\texistingByteLen = existingPackedLen >>> 3;","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","\t\tarrView = new Uint8Array(arr);","","\t\tfor (i = 0; i < arr.byteLength; i += 1)","\t\t{","\t\t\tbyteOffset = i + existingByteLen;","\t\t\tintOffset = byteOffset >>> 2;","\t\t\tif (packed.length <= intOffset)","\t\t\t{","\t\t\t\tpacked.push(0);","\t\t\t}","\t\t\tpacked[intOffset] |= arrView[i] << (8 * (shiftModifier + bigEndianMod * (byteOffset % 4)));","\t\t}","","\t\treturn {\"value\" : packed, \"binLen\" : arr.byteLength * 8 + existingPackedLen};","\t}","","\t/**","\t * Convert an array of big-endian words to a hex string.","\t *","\t * @private","\t * @param {Array<number>} packed Array of integers to be converted to","\t *   hexidecimal representation","\t * @param {number} outputLength Length of output in bits","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @param {{outputUpper : boolean, b64Pad : string}} formatOpts Hash list","\t *   containing validated output formatting options","\t * @return {string} Hexidecimal representation of the parameter in string","\t *   form","\t */","\tfunction packed2hex(packed, outputLength, bigEndianMod, formatOpts)","\t{","\t\tvar hex_tab = \"0123456789abcdef\", str = \"\",","\t\t\tlength = outputLength / 8, i, srcByte, shiftModifier;","","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < length; i += 1)","\t\t{","\t\t\t/* The below is more than a byte but it gets taken care of later */","\t\t\tsrcByte = packed[i >>> 2] >>> (8 * (shiftModifier + bigEndianMod * (i % 4)));","\t\t\tstr += hex_tab.charAt((srcByte >>> 4) & 0xF) +","\t\t\t\thex_tab.charAt(srcByte & 0xF);","\t\t}","","\t\treturn (formatOpts[\"outputUpper\"]) ? str.toUpperCase() : str;","\t}","","\t/**","\t * Convert an array of big-endian words to a base-64 string","\t *","\t * @private","\t * @param {Array<number>} packed Array of integers to be converted to","\t *   base-64 representation","\t * @param {number} outputLength Length of output in bits","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @param {{outputUpper : boolean, b64Pad : string}} formatOpts Hash list","\t *   containing validated output formatting options","\t * @return {string} Base-64 encoded representation of the parameter in","\t *   string form","\t */","\tfunction packed2b64(packed, outputLength, bigEndianMod, formatOpts)","\t{","\t\tvar str = \"\", length = outputLength / 8, i, j, triplet, int1, int2, shiftModifier,","\t\t\tb64Tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";","","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < length; i += 3)","\t\t{","\t\t\tint1 = ((i + 1) < length) ? packed[(i + 1) >>> 2] : 0;","\t\t\tint2 = ((i + 2) < length) ? packed[(i + 2) >>> 2] : 0;","\t\t\ttriplet = (((packed[i >>> 2] >>> (8 * (shiftModifier + bigEndianMod * (i % 4)))) & 0xFF) << 16) |","\t\t\t\t(((int1 >>> (8 * (shiftModifier + bigEndianMod * ((i + 1) % 4)))) & 0xFF) << 8) |","\t\t\t\t((int2 >>> (8 * (shiftModifier + bigEndianMod * ((i + 2) % 4)))) & 0xFF);","\t\t\tfor (j = 0; j < 4; j += 1)","\t\t\t{","\t\t\t\tif (i * 8 + j * 6 <= outputLength)","\t\t\t\t{","\t\t\t\t\tstr += b64Tab.charAt((triplet >>> 6 * (3 - j)) & 0x3F);","\t\t\t\t}","\t\t\t\telse","\t\t\t\t{","\t\t\t\t\tstr += formatOpts[\"b64Pad\"];","\t\t\t\t}","\t\t\t}","\t\t}","\t\treturn str;","\t}","","\t/**","\t * Convert an array of big-endian words to raw bytes string","\t *","\t * @private","\t * @param {Array<number>} packed Array of integers to be converted to","\t *   a raw bytes string representation","\t * @param {number} outputLength Length of output in bits","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {string} Raw bytes representation of the parameter in string","\t *   form","\t */","\tfunction packed2bytes(packed, outputLength, bigEndianMod)","\t{","\t\tvar str = \"\", length = outputLength / 8, i, srcByte, shiftModifier;","","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < length; i += 1)","\t\t{","\t\t\tsrcByte = (packed[i >>> 2] >>> (8 * (shiftModifier + bigEndianMod * (i % 4)))) & 0xFF;","\t\t\tstr += String.fromCharCode(srcByte);","\t\t}","","\t\treturn str;","\t}","","\t/**","\t * Convert an array of big-endian words to an ArrayBuffer","\t *","\t * @private","\t * @param {Array<number>} packed Array of integers to be converted to","\t *   an ArrayBuffer","\t * @param {number} outputLength Length of output in bits","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {ArrayBuffer} Raw bytes representation of the parameter in an","\t *   ArrayBuffer","\t */","\tfunction packed2arraybuffer(packed, outputLength, bigEndianMod)","\t{","\t\tvar length = outputLength / 8, i, retVal = new ArrayBuffer(length), shiftModifier, arrView;","\t\tarrView = new Uint8Array(retVal);","","\t\tshiftModifier = (bigEndianMod === -1) ? 3 : 0;","","\t\tfor (i = 0; i < length; i += 1)","\t\t{","\t\t\tarrView[i] = (packed[i >>> 2] >>> (8 * (shiftModifier + bigEndianMod * (i % 4)))) & 0xFF;","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * Validate hash list containing output formatting options, ensuring","\t * presence of every option or adding the default value","\t *","\t * @private","\t * @param {{outputUpper : (boolean|undefined), b64Pad : (string|undefined),","\t *   shakeLen : (number|undefined)}=} options Hash list of output formatting options","\t * @return {{outputUpper : boolean, b64Pad : string, shakeLen : number}} Validated","\t *   hash list containing output formatting options","\t */","\tfunction getOutputOpts(options)","\t{","\t\tvar retVal = {\"outputUpper\" : false, \"b64Pad\" : \"=\", \"shakeLen\" : -1},","\t\t\toutputOptions;","\t\toutputOptions = options || {};","","\t\tretVal[\"outputUpper\"] = outputOptions[\"outputUpper\"] || false;","","\t\tif (true === outputOptions.hasOwnProperty(\"b64Pad\"))","\t\t{","\t\t\tretVal[\"b64Pad\"] = outputOptions[\"b64Pad\"];","\t\t}","","\t\tif ((true === outputOptions.hasOwnProperty(\"shakeLen\")) && ((8 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tif (outputOptions[\"shakeLen\"] % 8 !== 0)","\t\t\t{","\t\t\t\tthrow new Error(\"shakeLen must be a multiple of 8\");","\t\t\t}","\t\t\tretVal[\"shakeLen\"] = outputOptions[\"shakeLen\"];","\t\t}","","\t\tif (\"boolean\" !== typeof(retVal[\"outputUpper\"]))","\t\t{","\t\t\tthrow new Error(\"Invalid outputUpper formatting option\");","\t\t}","","\t\tif (\"string\" !== typeof(retVal[\"b64Pad\"]))","\t\t{","\t\t\tthrow new Error(\"Invalid b64Pad formatting option\");","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * Function that takes an input format and UTF encoding and returns the","\t * appropriate function used to convert the input.","\t *","\t * @private","\t * @param {string} format The format of the string to be converted","\t * @param {string} utfType The string encoding to use (UTF8, UTF16BE,","\t *\tUTF16LE)","\t * @param {number} bigEndianMod Modifier for whether hash function is","\t *   big or small endian","\t * @return {function((string|ArrayBuffer), Array<number>=, number=): {value :","\t *   Array<number>, binLen : number}} Function that will convert an input","\t *   string to a packed int array","\t */","\tfunction getStrConverter(format, utfType, bigEndianMod)","\t{","\t\tvar retVal;","","\t\t/* Validate encoding */","\t\tswitch (utfType)","\t\t{","\t\tcase \"UTF8\":","\t\t\t/* Fallthrough */","\t\tcase \"UTF16BE\":","\t\t\t/* Fallthrough */","\t\tcase \"UTF16LE\":","\t\t\t/* Fallthrough */","\t\t\tbreak;","\t\tdefault:","\t\t\tthrow new Error(\"encoding must be UTF8, UTF16BE, or UTF16LE\");","\t\t}","","\t\t/* Map inputFormat to the appropriate converter */","\t\tswitch (format)","\t\t{","\t\tcase \"HEX\":","\t\t\t/**","\t\t\t * @param {string} str String of raw bytes to be converted to binary representation","\t\t\t * @param {Array<number>} existingBin A packed int array of bytes to","\t\t\t *   append the results to","\t\t\t * @param {number} existingBinLen The number of bits in the existingBin","\t\t\t *   array","\t\t\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t\t\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t\t\t *   length of \"value\"","\t\t\t */","\t\t\tretVal = function(str, existingBin, existingBinLen)","\t\t\t\t{","\t\t\t\t   return hex2packed(str, existingBin, existingBinLen, bigEndianMod);","\t\t\t\t};","\t\t\tbreak;","\t\tcase \"TEXT\":","\t\t\t/**","\t\t\t * @param {string} str String of raw bytes to be converted to binary representation","\t\t\t * @param {Array<number>} existingBin A packed int array of bytes to","\t\t\t *   append the results to","\t\t\t * @param {number} existingBinLen The number of bits in the existingBin","\t\t\t *   array","\t\t\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t\t\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t\t\t *   length of \"value\"","\t\t\t */","\t\t\tretVal = function(str, existingBin, existingBinLen)","\t\t\t\t{","\t\t\t\t\treturn str2packed(str, utfType, existingBin, existingBinLen, bigEndianMod);","\t\t\t\t};","\t\t\tbreak;","\t\tcase \"B64\":","\t\t\t/**","\t\t\t * @param {string} str String of raw bytes to be converted to binary representation","\t\t\t * @param {Array<number>} existingBin A packed int array of bytes to","\t\t\t *   append the results to","\t\t\t * @param {number} existingBinLen The number of bits in the existingBin","\t\t\t *   array","\t\t\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t\t\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t\t\t *   length of \"value\"","\t\t\t */","\t\t\tretVal = function(str, existingBin, existingBinLen)","\t\t\t\t{","\t\t\t\t   return b642packed(str, existingBin, existingBinLen, bigEndianMod);","\t\t\t\t};","\t\t\tbreak;","\t\tcase \"BYTES\":","\t\t\t/**","\t\t\t * @param {string} str String of raw bytes to be converted to binary representation","\t\t\t * @param {Array<number>} existingBin A packed int array of bytes to","\t\t\t *   append the results to","\t\t\t * @param {number} existingBinLen The number of bits in the existingBin","\t\t\t *   array","\t\t\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t\t\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t\t\t *   length of \"value\"","\t\t\t */","\t\t\tretVal = function(str, existingBin, existingBinLen)","\t\t\t\t{","\t\t\t\t   return bytes2packed(str, existingBin, existingBinLen, bigEndianMod);","\t\t\t\t};","\t\t\tbreak;","\t\tcase \"ARRAYBUFFER\":","\t\t\ttry {","\t\t\t\tretVal = new ArrayBuffer(0);","\t\t\t} catch(ignore) {","\t\t\t\tthrow new Error(\"ARRAYBUFFER not supported by this environment\");","\t\t\t}","\t\t\t/**","\t\t\t * @param {ArrayBuffer} arr ArrayBuffer to be converted to binary","\t\t\t *   representation","\t\t\t * @param {Array<number>} existingBin A packed int array of bytes to","\t\t\t *   append the results to","\t\t\t * @param {number} existingBinLen The number of bits in the existingBin","\t\t\t *   array","\t\t\t * @return {{value : Array<number>, binLen : number}} Hash list where","\t\t\t *   \"value\" contains the output number array and \"binLen\" is the binary","\t\t\t *   length of \"value\"","\t\t\t */","\t\t\tretVal = function(arr, existingBin, existingBinLen)","\t\t\t\t{","\t\t\t\t   return arraybuffer2packed(arr, existingBin, existingBinLen, bigEndianMod);","\t\t\t\t};","\t\t\tbreak;","\t\tdefault:","\t\t\tthrow new Error(\"format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER\");","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * The 32-bit implementation of circular rotate left","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @param {number} n The number of bits to shift","\t * @return {number} The x shifted circularly by n bits","\t */","\tfunction rotl_32(x, n)","\t{","\t\treturn (x << n) | (x >>> (32 - n));","\t}","","\t/**","\t * The 64-bit implementation of circular rotate left","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @param {number} n The number of bits to shift","\t * @return {Int_64} The x shifted circularly by n bits","\t */","\tfunction rotl_64(x, n)","\t{","\t\tif (n > 32)","\t\t{","\t\t\tn = n - 32;","\t\t\treturn new Int_64(","\t\t\t\tx.lowOrder << n | x.highOrder >>> (32 - n),","\t\t\t\tx.highOrder << n | x.lowOrder >>> (32 - n)","\t\t\t);","\t\t}","\t\telse if (0 !== n)","\t\t{","\t\t\treturn new Int_64(","\t\t\t\tx.highOrder << n | x.lowOrder >>> (32 - n),","\t\t\t\tx.lowOrder << n | x.highOrder >>> (32 - n)","\t\t\t);","\t\t}","\t\telse","\t\t{","\t\t\treturn x;","\t\t}","\t}","","\t/**","\t * The 32-bit implementation of circular rotate right","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @param {number} n The number of bits to shift","\t * @return {number} The x shifted circularly by n bits","\t */","\tfunction rotr_32(x, n)","\t{","\t\treturn (x >>> n) | (x << (32 - n));","\t}","","\t/**","\t * The 64-bit implementation of circular rotate right","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @param {number} n The number of bits to shift","\t * @return {Int_64} The x shifted circularly by n bits","\t */","\tfunction rotr_64(x, n)","\t{","\t\tvar retVal = null, tmp = new Int_64(x.highOrder, x.lowOrder);","","\t\tif (32 >= n)","\t\t{","\t\t\tretVal = new Int_64(","\t\t\t\t\t(tmp.highOrder >>> n) | ((tmp.lowOrder << (32 - n)) & 0xFFFFFFFF),","\t\t\t\t\t(tmp.lowOrder >>> n) | ((tmp.highOrder << (32 - n)) & 0xFFFFFFFF)","\t\t\t\t);","\t\t}","\t\telse","\t\t{","\t\t\tretVal = new Int_64(","\t\t\t\t\t(tmp.lowOrder >>> (n - 32)) | ((tmp.highOrder << (64 - n)) & 0xFFFFFFFF),","\t\t\t\t\t(tmp.highOrder >>> (n - 32)) | ((tmp.lowOrder << (64 - n)) & 0xFFFFFFFF)","\t\t\t\t);","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * The 32-bit implementation of shift right","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @param {number} n The number of bits to shift","\t * @return {number} The x shifted by n bits","\t */","\tfunction shr_32(x, n)","\t{","\t\treturn x >>> n;","\t}","","\t/**","\t * The 64-bit implementation of shift right","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @param {number} n The number of bits to shift","\t * @return {Int_64} The x shifted by n bits","\t */","\tfunction shr_64(x, n)","\t{","\t\tvar retVal = null;","","\t\tif (32 >= n)","\t\t{","\t\t\tretVal = new Int_64(","\t\t\t\t\tx.highOrder >>> n,","\t\t\t\t\tx.lowOrder >>> n | ((x.highOrder << (32 - n)) & 0xFFFFFFFF)","\t\t\t\t);","\t\t}","\t\telse","\t\t{","\t\t\tretVal = new Int_64(","\t\t\t\t\t0,","\t\t\t\t\tx.highOrder >>> (n - 32)","\t\t\t\t);","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Parity function","\t *","\t * @private","\t * @param {number} x The first 32-bit integer argument","\t * @param {number} y The second 32-bit integer argument","\t * @param {number} z The third 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction parity_32(x, y, z)","\t{","\t\treturn x ^ y ^ z;","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Ch function","\t *","\t * @private","\t * @param {number} x The first 32-bit integer argument","\t * @param {number} y The second 32-bit integer argument","\t * @param {number} z The third 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction ch_32(x, y, z)","\t{","\t\treturn (x & y) ^ (~x & z);","\t}","","\t/**","\t * The 64-bit implementation of the NIST specified Ch function","\t *","\t * @private","\t * @param {Int_64} x The first 64-bit integer argument","\t * @param {Int_64} y The second 64-bit integer argument","\t * @param {Int_64} z The third 64-bit integer argument","\t * @return {Int_64} The NIST specified output of the function","\t */","\tfunction ch_64(x, y, z)","\t{","\t\treturn new Int_64(","\t\t\t\t(x.highOrder & y.highOrder) ^ (~x.highOrder & z.highOrder),","\t\t\t\t(x.lowOrder & y.lowOrder) ^ (~x.lowOrder & z.lowOrder)","\t\t\t);","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Maj function","\t *","\t * @private","\t * @param {number} x The first 32-bit integer argument","\t * @param {number} y The second 32-bit integer argument","\t * @param {number} z The third 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction maj_32(x, y, z)","\t{","\t\treturn (x & y) ^ (x & z) ^ (y & z);","\t}","","\t/**","\t * The 64-bit implementation of the NIST specified Maj function","\t *","\t * @private","\t * @param {Int_64} x The first 64-bit integer argument","\t * @param {Int_64} y The second 64-bit integer argument","\t * @param {Int_64} z The third 64-bit integer argument","\t * @return {Int_64} The NIST specified output of the function","\t */","\tfunction maj_64(x, y, z)","\t{","\t\treturn new Int_64(","\t\t\t\t(x.highOrder & y.highOrder) ^","\t\t\t\t(x.highOrder & z.highOrder) ^","\t\t\t\t(y.highOrder & z.highOrder),","\t\t\t\t(x.lowOrder & y.lowOrder) ^","\t\t\t\t(x.lowOrder & z.lowOrder) ^","\t\t\t\t(y.lowOrder & z.lowOrder)","\t\t\t);","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Sigma0 function","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction sigma0_32(x)","\t{","\t\treturn rotr_32(x, 2) ^ rotr_32(x, 13) ^ rotr_32(x, 22);","\t}","","\t/**","\t * The 64-bit implementation of the NIST specified Sigma0 function","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @return {Int_64} The NIST specified output of the function","\t */","\tfunction sigma0_64(x)","\t{","\t\tvar rotr28 = rotr_64(x, 28), rotr34 = rotr_64(x, 34),","\t\t\trotr39 = rotr_64(x, 39);","","\t\treturn new Int_64(","\t\t\t\trotr28.highOrder ^ rotr34.highOrder ^ rotr39.highOrder,","\t\t\t\trotr28.lowOrder ^ rotr34.lowOrder ^ rotr39.lowOrder);","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Sigma1 function","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction sigma1_32(x)","\t{","\t\treturn rotr_32(x, 6) ^ rotr_32(x, 11) ^ rotr_32(x, 25);","\t}","","\t/**","\t * The 64-bit implementation of the NIST specified Sigma1 function","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @return {Int_64} The NIST specified output of the function","\t */","\tfunction sigma1_64(x)","\t{","\t\tvar rotr14 = rotr_64(x, 14), rotr18 = rotr_64(x, 18),","\t\t\trotr41 = rotr_64(x, 41);","","\t\treturn new Int_64(","\t\t\t\trotr14.highOrder ^ rotr18.highOrder ^ rotr41.highOrder,","\t\t\t\trotr14.lowOrder ^ rotr18.lowOrder ^ rotr41.lowOrder);","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Gamma0 function","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction gamma0_32(x)","\t{","\t\treturn rotr_32(x, 7) ^ rotr_32(x, 18) ^ shr_32(x, 3);","\t}","","\t/**","\t * The 64-bit implementation of the NIST specified Gamma0 function","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @return {Int_64} The NIST specified output of the function","\t */","\tfunction gamma0_64(x)","\t{","\t\tvar rotr1 = rotr_64(x, 1), rotr8 = rotr_64(x, 8), shr7 = shr_64(x, 7);","","\t\treturn new Int_64(","\t\t\t\trotr1.highOrder ^ rotr8.highOrder ^ shr7.highOrder,","\t\t\t\trotr1.lowOrder ^ rotr8.lowOrder ^ shr7.lowOrder","\t\t\t);","\t}","","\t/**","\t * The 32-bit implementation of the NIST specified Gamma1 function","\t *","\t * @private","\t * @param {number} x The 32-bit integer argument","\t * @return {number} The NIST specified output of the function","\t */","\tfunction gamma1_32(x)","\t{","\t\treturn rotr_32(x, 17) ^ rotr_32(x, 19) ^ shr_32(x, 10);","\t}","","\t/**","\t * The 64-bit implementation of the NIST specified Gamma1 function","\t *","\t * @private","\t * @param {Int_64} x The 64-bit integer argument","\t * @return {Int_64} The NIST specified output of the function","\t */","\tfunction gamma1_64(x)","\t{","\t\tvar rotr19 = rotr_64(x, 19), rotr61 = rotr_64(x, 61),","\t\t\tshr6 = shr_64(x, 6);","","\t\treturn new Int_64(","\t\t\t\trotr19.highOrder ^ rotr61.highOrder ^ shr6.highOrder,","\t\t\t\trotr19.lowOrder ^ rotr61.lowOrder ^ shr6.lowOrder","\t\t\t);","\t}","","\t/**","\t * Add two 32-bit integers, wrapping at 2^32. This uses 16-bit operations","\t * internally to work around bugs in some JS interpreters.","\t *","\t * @private","\t * @param {number} a The first 32-bit integer argument to be added","\t * @param {number} b The second 32-bit integer argument to be added","\t * @return {number} The sum of a + b","\t */","\tfunction safeAdd_32_2(a, b)","\t{","\t\tvar lsw = (a & 0xFFFF) + (b & 0xFFFF),","\t\t\tmsw = (a >>> 16) + (b >>> 16) + (lsw >>> 16);","","\t\treturn ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","\t}","","\t/**","\t * Add four 32-bit integers, wrapping at 2^32. This uses 16-bit operations","\t * internally to work around bugs in some JS interpreters.","\t *","\t * @private","\t * @param {number} a The first 32-bit integer argument to be added","\t * @param {number} b The second 32-bit integer argument to be added","\t * @param {number} c The third 32-bit integer argument to be added","\t * @param {number} d The fourth 32-bit integer argument to be added","\t * @return {number} The sum of a + b + c + d","\t */","\tfunction safeAdd_32_4(a, b, c, d)","\t{","\t\tvar lsw = (a & 0xFFFF) + (b & 0xFFFF) + (c & 0xFFFF) + (d & 0xFFFF),","\t\t\tmsw = (a >>> 16) + (b >>> 16) + (c >>> 16) + (d >>> 16) +","\t\t\t\t(lsw >>> 16);","","\t\treturn ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","\t}","","\t/**","\t * Add five 32-bit integers, wrapping at 2^32. This uses 16-bit operations","\t * internally to work around bugs in some JS interpreters.","\t *","\t * @private","\t * @param {number} a The first 32-bit integer argument to be added","\t * @param {number} b The second 32-bit integer argument to be added","\t * @param {number} c The third 32-bit integer argument to be added","\t * @param {number} d The fourth 32-bit integer argument to be added","\t * @param {number} e The fifth 32-bit integer argument to be added","\t * @return {number} The sum of a + b + c + d + e","\t */","\tfunction safeAdd_32_5(a, b, c, d, e)","\t{","\t\tvar lsw = (a & 0xFFFF) + (b & 0xFFFF) + (c & 0xFFFF) + (d & 0xFFFF) +","\t\t\t\t(e & 0xFFFF),","\t\t\tmsw = (a >>> 16) + (b >>> 16) + (c >>> 16) + (d >>> 16) +","\t\t\t\t(e >>> 16) + (lsw >>> 16);","","\t\treturn ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","\t}","","\t/**","\t * Add two 64-bit integers, wrapping at 2^64. This uses 16-bit operations","\t * internally to work around bugs in some JS interpreters.","\t *","\t * @private","\t * @param {Int_64} x The first 64-bit integer argument to be added","\t * @param {Int_64} y The second 64-bit integer argument to be added","\t * @return {Int_64} The sum of x + y","\t */","\tfunction safeAdd_64_2(x, y)","\t{","\t\tvar lsw, msw, lowOrder, highOrder;","","\t\tlsw = (x.lowOrder & 0xFFFF) + (y.lowOrder & 0xFFFF);","\t\tmsw = (x.lowOrder >>> 16) + (y.lowOrder >>> 16) + (lsw >>> 16);","\t\tlowOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","","\t\tlsw = (x.highOrder & 0xFFFF) + (y.highOrder & 0xFFFF) + (msw >>> 16);","\t\tmsw = (x.highOrder >>> 16) + (y.highOrder >>> 16) + (lsw >>> 16);","\t\thighOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","","\t\treturn new Int_64(highOrder, lowOrder);","\t}","","\t/**","\t * Add four 64-bit integers, wrapping at 2^64. This uses 16-bit operations","\t * internally to work around bugs in some JS interpreters.","\t *","\t * @private","\t * @param {Int_64} a The first 64-bit integer argument to be added","\t * @param {Int_64} b The second 64-bit integer argument to be added","\t * @param {Int_64} c The third 64-bit integer argument to be added","\t * @param {Int_64} d The fouth 64-bit integer argument to be added","\t * @return {Int_64} The sum of a + b + c + d","\t */","\tfunction safeAdd_64_4(a, b, c, d)","\t{","\t\tvar lsw, msw, lowOrder, highOrder;","","\t\tlsw = (a.lowOrder & 0xFFFF) + (b.lowOrder & 0xFFFF) +","\t\t\t(c.lowOrder & 0xFFFF) + (d.lowOrder & 0xFFFF);","\t\tmsw = (a.lowOrder >>> 16) + (b.lowOrder >>> 16) +","\t\t\t(c.lowOrder >>> 16) + (d.lowOrder >>> 16) + (lsw >>> 16);","\t\tlowOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","","\t\tlsw = (a.highOrder & 0xFFFF) + (b.highOrder & 0xFFFF) +","\t\t\t(c.highOrder & 0xFFFF) + (d.highOrder & 0xFFFF) + (msw >>> 16);","\t\tmsw = (a.highOrder >>> 16) + (b.highOrder >>> 16) +","\t\t\t(c.highOrder >>> 16) + (d.highOrder >>> 16) + (lsw >>> 16);","\t\thighOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","","\t\treturn new Int_64(highOrder, lowOrder);","\t}","","\t/**","\t * Add five 64-bit integers, wrapping at 2^64. This uses 16-bit operations","\t * internally to work around bugs in some JS interpreters.","\t *","\t * @private","\t * @param {Int_64} a The first 64-bit integer argument to be added","\t * @param {Int_64} b The second 64-bit integer argument to be added","\t * @param {Int_64} c The third 64-bit integer argument to be added","\t * @param {Int_64} d The fouth 64-bit integer argument to be added","\t * @param {Int_64} e The fouth 64-bit integer argument to be added","\t * @return {Int_64} The sum of a + b + c + d + e","\t */","\tfunction safeAdd_64_5(a, b, c, d, e)","\t{","\t\tvar lsw, msw, lowOrder, highOrder;","","\t\tlsw = (a.lowOrder & 0xFFFF) + (b.lowOrder & 0xFFFF) +","\t\t\t(c.lowOrder & 0xFFFF) + (d.lowOrder & 0xFFFF) +","\t\t\t(e.lowOrder & 0xFFFF);","\t\tmsw = (a.lowOrder >>> 16) + (b.lowOrder >>> 16) +","\t\t\t(c.lowOrder >>> 16) + (d.lowOrder >>> 16) + (e.lowOrder >>> 16) +","\t\t\t(lsw >>> 16);","\t\tlowOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","","\t\tlsw = (a.highOrder & 0xFFFF) + (b.highOrder & 0xFFFF) +","\t\t\t(c.highOrder & 0xFFFF) + (d.highOrder & 0xFFFF) +","\t\t\t(e.highOrder & 0xFFFF) + (msw >>> 16);","\t\tmsw = (a.highOrder >>> 16) + (b.highOrder >>> 16) +","\t\t\t(c.highOrder >>> 16) + (d.highOrder >>> 16) +","\t\t\t(e.highOrder >>> 16) + (lsw >>> 16);","\t\thighOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF);","","\t\treturn new Int_64(highOrder, lowOrder);","\t}","","\t/**","\t * XORs two given arguments.","\t *","\t * @private","\t * @param {Int_64} a First argument to be XORed","\t * @param {Int_64} b Second argument to be XORed","\t * @return {Int_64} The XOR of the arguments","\t */","\tfunction xor_64_2(a, b)","\t{","\t\treturn new Int_64(","\t\t\ta.highOrder ^ b.highOrder,","\t\t\ta.lowOrder ^ b.lowOrder","\t\t);","\t}","","\t/**","\t * XORs five given arguments.","\t *","\t * @private","\t * @param {Int_64} a First argument to be XORed","\t * @param {Int_64} b Second argument to be XORed","\t * @param {Int_64} c Third argument to be XORed","\t * @param {Int_64} d Fourth argument to be XORed","\t * @param {Int_64} e Fifth argument to be XORed","\t * @return {Int_64} The XOR of the arguments","\t */","\tfunction xor_64_5(a, b, c, d, e)","\t{","\t\treturn new Int_64(","\t\t\ta.highOrder ^ b.highOrder ^ c.highOrder ^ d.highOrder ^ e.highOrder,","\t\t\ta.lowOrder ^ b.lowOrder ^ c.lowOrder ^ d.lowOrder ^ e.lowOrder","\t\t);","\t}","","\t/**","\t * Returns a clone of the given SHA3 state","\t *","\t * @private","\t * @param {Array<Array<Int_64>>} state The state to be cloned","\t * @return {Array<Array<Int_64>>} The cloned state","\t */","\tfunction cloneSHA3State(state) {","\t\tvar clone = [], i;","\t\tfor (i = 0; i < 5; i += 1)","\t\t{","\t\t\tclone[i] = state[i].slice();","\t\t}","","\t\treturn clone;","\t}","","\t/**","\t * Gets the state values for the specified SHA variant","\t *","\t * @param {string} variant The SHA variant","\t * @return {Array<number|Int_64|Array<null>>} The initial state values","\t */","\tfunction getNewState(variant)","\t{","\t\tvar retVal = [], H_trunc, H_full, i;","","\t\tif ((\"SHA-1\" === variant) && ((1 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tretVal = [","\t\t\t\t0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0","\t\t\t];","\t\t}","\t\telse if ((variant.lastIndexOf(\"SHA-\", 0) === 0) && ((6 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tH_trunc = [","\t\t\t\t0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,","\t\t\t\t0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4","\t\t\t];","\t\t\tH_full = [","\t\t\t\t0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A,","\t\t\t\t0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19","\t\t\t];","","\t\t\tswitch (variant)","\t\t\t{","\t\t\tcase \"SHA-224\":","\t\t\t\tretVal = H_trunc;","\t\t\t\tbreak;","\t\t\tcase \"SHA-256\":","\t\t\t\tretVal = H_full;","\t\t\t\tbreak;","\t\t\tcase \"SHA-384\":","\t\t\t\tretVal = [","\t\t\t\t\tnew Int_64(0xcbbb9d5d, H_trunc[0]),","\t\t\t\t\tnew Int_64(0x0629a292a, H_trunc[1]),","\t\t\t\t\tnew Int_64(0x9159015a, H_trunc[2]),","\t\t\t\t\tnew Int_64(0x0152fecd8, H_trunc[3]),","\t\t\t\t\tnew Int_64(0x67332667, H_trunc[4]),","\t\t\t\t\tnew Int_64(0x98eb44a87, H_trunc[5]),","\t\t\t\t\tnew Int_64(0xdb0c2e0d, H_trunc[6]),","\t\t\t\t\tnew Int_64(0x047b5481d, H_trunc[7])","\t\t\t\t];","\t\t\t\tbreak;","\t\t\tcase \"SHA-512\":","\t\t\t\tretVal = [","\t\t\t\t\tnew Int_64(H_full[0], 0xf3bcc908),","\t\t\t\t\tnew Int_64(H_full[1], 0x84caa73b),","\t\t\t\t\tnew Int_64(H_full[2], 0xfe94f82b),","\t\t\t\t\tnew Int_64(H_full[3], 0x5f1d36f1),","\t\t\t\t\tnew Int_64(H_full[4], 0xade682d1),","\t\t\t\t\tnew Int_64(H_full[5], 0x2b3e6c1f),","\t\t\t\t\tnew Int_64(H_full[6], 0xfb41bd6b),","\t\t\t\t\tnew Int_64(H_full[7], 0x137e2179)","\t\t\t\t];","\t\t\t\tbreak;","\t\t\tdefault:","\t\t\t\tthrow new Error(\"Unknown SHA variant\");","\t\t\t}","\t\t}","\t\telse if (((variant.lastIndexOf(\"SHA3-\", 0) === 0) || (variant.lastIndexOf(\"SHAKE\", 0) === 0)) &&","\t\t\t((8 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tfor (i = 0; i < 5; i += 1)","\t\t\t{","\t\t\t\tretVal[i] = [new Int_64(0, 0), new Int_64(0, 0), new Int_64(0, 0), new Int_64(0, 0), new Int_64(0, 0)];","\t\t\t}","\t\t}","\t\telse","\t\t{","\t\t\tthrow new Error(\"No SHA variants supported\");","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * Performs a round of SHA-1 hashing over a 512-byte block","\t *","\t * @private","\t * @param {Array<number>} block The binary array representation of the","\t *   block to hash","\t * @param {Array<number>} H The intermediate H values from a previous","\t *   round","\t * @return {Array<number>} The resulting H values","\t */","\tfunction roundSHA1(block, H)","\t{","\t\tvar W = [], a, b, c, d, e, T, ch = ch_32, parity = parity_32,","\t\t\tmaj = maj_32, rotl = rotl_32, safeAdd_2 = safeAdd_32_2, t,","\t\t\tsafeAdd_5 = safeAdd_32_5;","","\t\ta = H[0];","\t\tb = H[1];","\t\tc = H[2];","\t\td = H[3];","\t\te = H[4];","","\t\tfor (t = 0; t < 80; t += 1)","\t\t{","\t\t\tif (t < 16)","\t\t\t{","\t\t\t\tW[t] = block[t];","\t\t\t}","\t\t\telse","\t\t\t{","\t\t\t\tW[t] = rotl(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);","\t\t\t}","","\t\t\tif (t < 20)","\t\t\t{","\t\t\t\tT = safeAdd_5(rotl(a, 5), ch(b, c, d), e, 0x5a827999, W[t]);","\t\t\t}","\t\t\telse if (t < 40)","\t\t\t{","\t\t\t\tT = safeAdd_5(rotl(a, 5), parity(b, c, d), e, 0x6ed9eba1, W[t]);","\t\t\t}","\t\t\telse if (t < 60)","\t\t\t{","\t\t\t\tT = safeAdd_5(rotl(a, 5), maj(b, c, d), e, 0x8f1bbcdc, W[t]);","\t\t\t} else {","\t\t\t\tT = safeAdd_5(rotl(a, 5), parity(b, c, d), e, 0xca62c1d6, W[t]);","\t\t\t}","","\t\t\te = d;","\t\t\td = c;","\t\t\tc = rotl(b, 30);","\t\t\tb = a;","\t\t\ta = T;","\t\t}","","\t\tH[0] = safeAdd_2(a, H[0]);","\t\tH[1] = safeAdd_2(b, H[1]);","\t\tH[2] = safeAdd_2(c, H[2]);","\t\tH[3] = safeAdd_2(d, H[3]);","\t\tH[4] = safeAdd_2(e, H[4]);","","\t\treturn H;","\t}","","\t/**","\t * Finalizes the SHA-1 hash","\t *","\t * @private","\t * @param {Array<number>} remainder Any leftover unprocessed packed ints","\t *   that still need to be processed","\t * @param {number} remainderBinLen The number of bits in remainder","\t * @param {number} processedBinLen The number of bits already","\t *   processed","\t * @param {Array<number>} H The intermediate H values from a previous","\t *   round","\t * @param {number} outputLen Unused for this variant","\t * @return {Array<number>} The array of integers representing the SHA-1","\t *   hash of message","\t */","\tfunction finalizeSHA1(remainder, remainderBinLen, processedBinLen, H, outputLen)","\t{","\t\tvar i, appendedMessageLength, offset, totalLen;","","\t\t/* The 65 addition is a hack but it works.  The correct number is","\t\t   actually 72 (64 + 8) but the below math fails if","\t\t   remainderBinLen + 72 % 512 = 0. Since remainderBinLen % 8 = 0,","\t\t   \"shorting\" the addition is OK. */","\t\toffset = (((remainderBinLen + 65) >>> 9) << 4) + 15;","\t\twhile (remainder.length <= offset)","\t\t{","\t\t\tremainder.push(0);","\t\t}","\t\t/* Append '1' at the end of the binary string */","\t\tremainder[remainderBinLen >>> 5] |= 0x80 << (24 - (remainderBinLen % 32));","\t\t/* Append length of binary string in the position such that the new","\t\t * length is a multiple of 512.  Logic does not work for even multiples","\t\t * of 512 but there can never be even multiples of 512. JavaScript","\t\t * numbers are limited to 2^53 so it's \"safe\" to treat the totalLen as","\t\t * a 64-bit integer. */","\t\ttotalLen = remainderBinLen + processedBinLen;","\t\tremainder[offset] = totalLen & 0xFFFFFFFF;","\t\t/* Bitwise operators treat the operand as a 32-bit number so need to","\t\t * use hacky division and round to get access to upper 32-ish bits */","\t\tremainder[offset - 1] = (totalLen / TWO_PWR_32) | 0;","","\t\tappendedMessageLength = remainder.length;","","\t\t/* This will always be at least 1 full chunk */","\t\tfor (i = 0; i < appendedMessageLength; i += 16)","\t\t{","\t\t\tH = roundSHA1(remainder.slice(i, i + 16), H);","\t\t}","","\t\treturn H;","\t}","","\t/* Put this here so the K arrays aren't put on the stack for every block */","\tvar K_sha2, K_sha512, r_sha3, rc_sha3;","\tif ((6 & SUPPORTED_ALGS) !== 0)","\t{","\t\tK_sha2 = [","\t\t\t0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,","\t\t\t0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,","\t\t\t0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,","\t\t\t0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,","\t\t\t0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,","\t\t\t0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,","\t\t\t0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,","\t\t\t0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,","\t\t\t0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,","\t\t\t0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,","\t\t\t0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,","\t\t\t0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,","\t\t\t0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,","\t\t\t0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,","\t\t\t0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,","\t\t\t0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2","\t\t];","","\t\tif ((4 & SUPPORTED_ALGS) !== 0)","\t\t{","\t\t\t K_sha512 = [","\t\t\t\tnew Int_64(K_sha2[ 0], 0xd728ae22), new Int_64(K_sha2[ 1], 0x23ef65cd),","\t\t\t\tnew Int_64(K_sha2[ 2], 0xec4d3b2f), new Int_64(K_sha2[ 3], 0x8189dbbc),","\t\t\t\tnew Int_64(K_sha2[ 4], 0xf348b538), new Int_64(K_sha2[ 5], 0xb605d019),","\t\t\t\tnew Int_64(K_sha2[ 6], 0xaf194f9b), new Int_64(K_sha2[ 7], 0xda6d8118),","\t\t\t\tnew Int_64(K_sha2[ 8], 0xa3030242), new Int_64(K_sha2[ 9], 0x45706fbe),","\t\t\t\tnew Int_64(K_sha2[10], 0x4ee4b28c), new Int_64(K_sha2[11], 0xd5ffb4e2),","\t\t\t\tnew Int_64(K_sha2[12], 0xf27b896f), new Int_64(K_sha2[13], 0x3b1696b1),","\t\t\t\tnew Int_64(K_sha2[14], 0x25c71235), new Int_64(K_sha2[15], 0xcf692694),","\t\t\t\tnew Int_64(K_sha2[16], 0x9ef14ad2), new Int_64(K_sha2[17], 0x384f25e3),","\t\t\t\tnew Int_64(K_sha2[18], 0x8b8cd5b5), new Int_64(K_sha2[19], 0x77ac9c65),","\t\t\t\tnew Int_64(K_sha2[20], 0x592b0275), new Int_64(K_sha2[21], 0x6ea6e483),","\t\t\t\tnew Int_64(K_sha2[22], 0xbd41fbd4), new Int_64(K_sha2[23], 0x831153b5),","\t\t\t\tnew Int_64(K_sha2[24], 0xee66dfab), new Int_64(K_sha2[25], 0x2db43210),","\t\t\t\tnew Int_64(K_sha2[26], 0x98fb213f), new Int_64(K_sha2[27], 0xbeef0ee4),","\t\t\t\tnew Int_64(K_sha2[28], 0x3da88fc2), new Int_64(K_sha2[29], 0x930aa725),","\t\t\t\tnew Int_64(K_sha2[30], 0xe003826f), new Int_64(K_sha2[31], 0x0a0e6e70),","\t\t\t\tnew Int_64(K_sha2[32], 0x46d22ffc), new Int_64(K_sha2[33], 0x5c26c926),","\t\t\t\tnew Int_64(K_sha2[34], 0x5ac42aed), new Int_64(K_sha2[35], 0x9d95b3df),","\t\t\t\tnew Int_64(K_sha2[36], 0x8baf63de), new Int_64(K_sha2[37], 0x3c77b2a8),","\t\t\t\tnew Int_64(K_sha2[38], 0x47edaee6), new Int_64(K_sha2[39], 0x1482353b),","\t\t\t\tnew Int_64(K_sha2[40], 0x4cf10364), new Int_64(K_sha2[41], 0xbc423001),","\t\t\t\tnew Int_64(K_sha2[42], 0xd0f89791), new Int_64(K_sha2[43], 0x0654be30),","\t\t\t\tnew Int_64(K_sha2[44], 0xd6ef5218), new Int_64(K_sha2[45], 0x5565a910),","\t\t\t\tnew Int_64(K_sha2[46], 0x5771202a), new Int_64(K_sha2[47], 0x32bbd1b8),","\t\t\t\tnew Int_64(K_sha2[48], 0xb8d2d0c8), new Int_64(K_sha2[49], 0x5141ab53),","\t\t\t\tnew Int_64(K_sha2[50], 0xdf8eeb99), new Int_64(K_sha2[51], 0xe19b48a8),","\t\t\t\tnew Int_64(K_sha2[52], 0xc5c95a63), new Int_64(K_sha2[53], 0xe3418acb),","\t\t\t\tnew Int_64(K_sha2[54], 0x7763e373), new Int_64(K_sha2[55], 0xd6b2b8a3),","\t\t\t\tnew Int_64(K_sha2[56], 0x5defb2fc), new Int_64(K_sha2[57], 0x43172f60),","\t\t\t\tnew Int_64(K_sha2[58], 0xa1f0ab72), new Int_64(K_sha2[59], 0x1a6439ec),","\t\t\t\tnew Int_64(K_sha2[60], 0x23631e28), new Int_64(K_sha2[61], 0xde82bde9),","\t\t\t\tnew Int_64(K_sha2[62], 0xb2c67915), new Int_64(K_sha2[63], 0xe372532b),","\t\t\t\tnew Int_64(0xca273ece, 0xea26619c), new Int_64(0xd186b8c7, 0x21c0c207),","\t\t\t\tnew Int_64(0xeada7dd6, 0xcde0eb1e), new Int_64(0xf57d4f7f, 0xee6ed178),","\t\t\t\tnew Int_64(0x06f067aa, 0x72176fba), new Int_64(0x0a637dc5, 0xa2c898a6),","\t\t\t\tnew Int_64(0x113f9804, 0xbef90dae), new Int_64(0x1b710b35, 0x131c471b),","\t\t\t\tnew Int_64(0x28db77f5, 0x23047d84), new Int_64(0x32caab7b, 0x40c72493),","\t\t\t\tnew Int_64(0x3c9ebe0a, 0x15c9bebc), new Int_64(0x431d67c4, 0x9c100d4c),","\t\t\t\tnew Int_64(0x4cc5d4be, 0xcb3e42b6), new Int_64(0x597f299c, 0xfc657e2a),","\t\t\t\tnew Int_64(0x5fcb6fab, 0x3ad6faec), new Int_64(0x6c44198c, 0x4a475817)","\t\t\t];","\t\t}","\t}","\tif ((8 & SUPPORTED_ALGS) !== 0)","\t{","\t\trc_sha3 = [","\t\t\tnew Int_64(0x00000000, 0x00000001), new Int_64(0x00000000, 0x00008082),","\t\t\tnew Int_64(0x80000000, 0x0000808A), new Int_64(0x80000000, 0x80008000),","\t\t\tnew Int_64(0x00000000, 0x0000808B), new Int_64(0x00000000, 0x80000001),","\t\t\tnew Int_64(0x80000000, 0x80008081), new Int_64(0x80000000, 0x00008009),","\t\t\tnew Int_64(0x00000000, 0x0000008A), new Int_64(0x00000000, 0x00000088),","\t\t\tnew Int_64(0x00000000, 0x80008009), new Int_64(0x00000000, 0x8000000A),","\t\t\tnew Int_64(0x00000000, 0x8000808B), new Int_64(0x80000000, 0x0000008B),","\t\t\tnew Int_64(0x80000000, 0x00008089), new Int_64(0x80000000, 0x00008003),","\t\t\tnew Int_64(0x80000000, 0x00008002), new Int_64(0x80000000, 0x00000080),","\t\t\tnew Int_64(0x00000000, 0x0000800A), new Int_64(0x80000000, 0x8000000A),","\t\t\tnew Int_64(0x80000000, 0x80008081), new Int_64(0x80000000, 0x00008080),","\t\t\tnew Int_64(0x00000000, 0x80000001), new Int_64(0x80000000, 0x80008008)","\t\t];","","\t\tr_sha3 = [","\t\t\t[ 0, 36,  3, 41, 18],","\t\t\t[ 1, 44, 10, 45,  2],","\t\t\t[62,  6, 43, 15, 61],","\t\t\t[28, 55, 25, 21, 56],","\t\t\t[27, 20, 39,  8, 14]","\t\t];","\t}","","\t/**","\t * Performs a round of SHA-2 hashing over a block","\t *","\t * @private","\t * @param {Array<number>} block The binary array representation of the","\t *   block to hash","\t * @param {Array<number|Int_64>} H The intermediate H values from a previous","\t *   round","\t * @param {string} variant The desired SHA-2 variant","\t * @return {Array<number|Int_64>} The resulting H values","\t */","\tfunction roundSHA2(block, H, variant)","\t{","\t\tvar a, b, c, d, e, f, g, h, T1, T2, numRounds, t, binaryStringMult,","\t\t\tsafeAdd_2, safeAdd_4, safeAdd_5, gamma0, gamma1, sigma0, sigma1,","\t\t\tch, maj, Int, W = [], int1, int2, offset, K;","","\t\t/* Set up the various function handles and variable for the specific","\t\t * variant */","\t\tif ((variant === \"SHA-224\" || variant === \"SHA-256\") &&","\t\t\t((2 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\t/* 32-bit variant */","\t\t\tnumRounds = 64;","\t\t\tbinaryStringMult = 1;","\t\t\tInt = Number;","\t\t\tsafeAdd_2 = safeAdd_32_2;","\t\t\tsafeAdd_4 = safeAdd_32_4;","\t\t\tsafeAdd_5 = safeAdd_32_5;","\t\t\tgamma0 = gamma0_32;","\t\t\tgamma1 = gamma1_32;","\t\t\tsigma0 = sigma0_32;","\t\t\tsigma1 = sigma1_32;","\t\t\tmaj = maj_32;","\t\t\tch = ch_32;","\t\t\tK = K_sha2;","\t\t}","\t\telse if ((variant === \"SHA-384\" || variant === \"SHA-512\") &&","\t\t\t((4 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\t/* 64-bit variant */","\t\t\tnumRounds = 80;","\t\t\tbinaryStringMult = 2;","\t\t\tInt = Int_64;","\t\t\tsafeAdd_2 = safeAdd_64_2;","\t\t\tsafeAdd_4 = safeAdd_64_4;","\t\t\tsafeAdd_5 = safeAdd_64_5;","\t\t\tgamma0 = gamma0_64;","\t\t\tgamma1 = gamma1_64;","\t\t\tsigma0 = sigma0_64;","\t\t\tsigma1 = sigma1_64;","\t\t\tmaj = maj_64;","\t\t\tch = ch_64;","\t\t\tK = K_sha512;","\t\t}","\t\telse","\t\t{","\t\t\tthrow new Error(\"Unexpected error in SHA-2 implementation\");","\t\t}","","\t\ta = H[0];","\t\tb = H[1];","\t\tc = H[2];","\t\td = H[3];","\t\te = H[4];","\t\tf = H[5];","\t\tg = H[6];","\t\th = H[7];","","\t\tfor (t = 0; t < numRounds; t += 1)","\t\t{","\t\t\tif (t < 16)","\t\t\t{","\t\t\t\toffset = t * binaryStringMult;","\t\t\t\tint1 = (block.length <= offset) ? 0 : block[offset];","\t\t\t\tint2 = (block.length <= offset + 1) ? 0 : block[offset + 1];","\t\t\t\t/* Bit of a hack - for 32-bit, the second term is ignored */","\t\t\t\tW[t] = new Int(int1, int2);","\t\t\t}","\t\t\telse","\t\t\t{","\t\t\t\tW[t] = safeAdd_4(","\t\t\t\t\t\tgamma1(W[t - 2]), W[t - 7],","\t\t\t\t\t\tgamma0(W[t - 15]), W[t - 16]","\t\t\t\t\t);","\t\t\t}","","\t\t\tT1 = safeAdd_5(h, sigma1(e), ch(e, f, g), K[t], W[t]);","\t\t\tT2 = safeAdd_2(sigma0(a), maj(a, b, c));","\t\t\th = g;","\t\t\tg = f;","\t\t\tf = e;","\t\t\te = safeAdd_2(d, T1);","\t\t\td = c;","\t\t\tc = b;","\t\t\tb = a;","\t\t\ta = safeAdd_2(T1, T2);","\t\t}","","\t\tH[0] = safeAdd_2(a, H[0]);","\t\tH[1] = safeAdd_2(b, H[1]);","\t\tH[2] = safeAdd_2(c, H[2]);","\t\tH[3] = safeAdd_2(d, H[3]);","\t\tH[4] = safeAdd_2(e, H[4]);","\t\tH[5] = safeAdd_2(f, H[5]);","\t\tH[6] = safeAdd_2(g, H[6]);","\t\tH[7] = safeAdd_2(h, H[7]);","","\t\treturn H;","\t}","","\t/**","\t * Finalizes the SHA-2 hash","\t *","\t * @private","\t * @param {Array<number>} remainder Any leftover unprocessed packed ints","\t *   that still need to be processed","\t * @param {number} remainderBinLen The number of bits in remainder","\t * @param {number} processedBinLen The number of bits already","\t *   processed","\t * @param {Array<number|Int_64>} H The intermediate H values from a previous","\t *   round","\t * @param {string} variant The desired SHA-2 variant","\t * @param {number} outputLen Unused for this variant","\t * @return {Array<number>} The array of integers representing the SHA-2","\t *   hash of message","\t */","\tfunction finalizeSHA2(remainder, remainderBinLen, processedBinLen, H, variant, outputLen)","\t{","\t\tvar i, appendedMessageLength, offset, retVal, binaryStringInc, totalLen;","","\t\tif ((variant === \"SHA-224\" || variant === \"SHA-256\") &&","\t\t\t((2 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\t/* 32-bit variant */","\t\t\t/* The 65 addition is a hack but it works.  The correct number is","\t\t\t   actually 72 (64 + 8) but the below math fails if","\t\t\t   remainderBinLen + 72 % 512 = 0. Since remainderBinLen % 8 = 0,","\t\t\t   \"shorting\" the addition is OK. */","\t\t\toffset = (((remainderBinLen + 65) >>> 9) << 4) + 15;","\t\t\tbinaryStringInc = 16;","\t\t}","\t\telse if ((variant === \"SHA-384\" || variant === \"SHA-512\") &&","\t\t\t((4 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\t/* 64-bit variant */","\t\t\t/* The 129 addition is a hack but it works.  The correct number is","\t\t\t   actually 136 (128 + 8) but the below math fails if","\t\t\t   remainderBinLen + 136 % 1024 = 0. Since remainderBinLen % 8 = 0,","\t\t\t   \"shorting\" the addition is OK. */","\t\t\toffset = (((remainderBinLen + 129) >>> 10) << 5) + 31;","\t\t\tbinaryStringInc = 32;","\t\t}","\t\telse","\t\t{","\t\t\tthrow new Error(\"Unexpected error in SHA-2 implementation\");","\t\t}","","\t\twhile (remainder.length <= offset)","\t\t{","\t\t\tremainder.push(0);","\t\t}","\t\t/* Append '1' at the end of the binary string */","\t\tremainder[remainderBinLen >>> 5] |= 0x80 << (24 - remainderBinLen % 32);","\t\t/* Append length of binary string in the position such that the new","\t\t * length is correct. JavaScript numbers are limited to 2^53 so it's","\t\t * \"safe\" to treat the totalLen as a 64-bit integer. */","\t\ttotalLen = remainderBinLen + processedBinLen;","\t\tremainder[offset] = totalLen & 0xFFFFFFFF;","\t\t/* Bitwise operators treat the operand as a 32-bit number so need to","\t\t * use hacky division and round to get access to upper 32-ish bits */","\t\tremainder[offset - 1] = (totalLen / TWO_PWR_32) | 0;","","\t\tappendedMessageLength = remainder.length;","","\t\t/* This will always be at least 1 full chunk */","\t\tfor (i = 0; i < appendedMessageLength; i += binaryStringInc)","\t\t{","\t\t\tH = roundSHA2(remainder.slice(i, i + binaryStringInc), H, variant);","\t\t}","","\t\tif ((\"SHA-224\" === variant) && ((2 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tretVal = [","\t\t\t\tH[0], H[1], H[2], H[3],","\t\t\t\tH[4], H[5], H[6]","\t\t\t];","\t\t}","\t\telse if ((\"SHA-256\" === variant) && ((2 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tretVal = H;","\t\t}","\t\telse if ((\"SHA-384\" === variant) && ((4 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tretVal = [","\t\t\t\tH[0].highOrder, H[0].lowOrder,","\t\t\t\tH[1].highOrder, H[1].lowOrder,","\t\t\t\tH[2].highOrder, H[2].lowOrder,","\t\t\t\tH[3].highOrder, H[3].lowOrder,","\t\t\t\tH[4].highOrder, H[4].lowOrder,","\t\t\t\tH[5].highOrder, H[5].lowOrder","\t\t\t];","\t\t}","\t\telse if ((\"SHA-512\" === variant) && ((4 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tretVal = [","\t\t\t\tH[0].highOrder, H[0].lowOrder,","\t\t\t\tH[1].highOrder, H[1].lowOrder,","\t\t\t\tH[2].highOrder, H[2].lowOrder,","\t\t\t\tH[3].highOrder, H[3].lowOrder,","\t\t\t\tH[4].highOrder, H[4].lowOrder,","\t\t\t\tH[5].highOrder, H[5].lowOrder,","\t\t\t\tH[6].highOrder, H[6].lowOrder,","\t\t\t\tH[7].highOrder, H[7].lowOrder","\t\t\t];","\t\t}","\t\telse /* This should never be reached */","\t\t{","\t\t\tthrow new Error(\"Unexpected error in SHA-2 implementation\");","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * Performs a round of SHA-3 hashing over a block","\t *","\t * @private","\t * @param {Array<number>|null} block The binary array representation of the","\t *   block to hash","\t * @param {Array<Array<Int_64>>} state The binary array representation of the","\t *   block to hash","\t * @return {Array<Array<Int_64>>} The resulting state value","\t */","\tfunction roundSHA3(block, state)","\t{","\t\tvar round, x, y, B, C = [], D = [];","","\t\tif (null !== block)","\t\t{","\t\t\tfor (x = 0; x < block.length; x+=2)","\t\t\t{","\t\t\t\tstate[(x >>> 1) % 5][((x >>> 1) / 5) | 0] = xor_64_2(","\t\t\t\t\tstate[(x >>> 1) % 5][((x >>> 1) / 5) | 0],","\t\t\t\t\tnew Int_64(block[x + 1], block[x])","\t\t\t\t);","\t\t\t}","\t\t}","","\t\tfor (round = 0; round < 24; round += 1)","\t\t{","\t\t\t/* getNewState doesn't care about variant beyond SHA3 so feed it a","\t\t\t   value that triggers the getNewState \"if\" statement","\t\t\t*/","\t\t\tB = getNewState(\"SHA3-\");","","\t\t\t/* Perform theta step */","\t\t\tfor (x = 0; x < 5; x += 1)","\t\t\t{","\t\t\t\tC[x] = xor_64_5(state[x][0], state[x][1], state[x][2],","\t\t\t\t\tstate[x][3], state[x][4]);","\t\t\t}","\t\t\tfor (x = 0; x < 5; x += 1)","\t\t\t{","\t\t\t\tD[x] = xor_64_2(C[(x + 4) % 5], rotl_64(C[(x + 1) % 5], 1));","\t\t\t}","\t\t\tfor (x = 0; x < 5; x += 1)","\t\t\t{","\t\t\t\tfor (y = 0; y < 5; y += 1)","\t\t\t\t{","\t\t\t\t\tstate[x][y] = xor_64_2(state[x][y], D[x]);","\t\t\t\t}","\t\t\t}","","\t\t\t/* Perform combined ro and pi steps */","\t\t\tfor (x = 0; x < 5; x += 1)","\t\t\t{","\t\t\t\tfor (y = 0; y < 5; y += 1)","\t\t\t\t{","\t\t\t\t\tB[y][(2 * x + 3 * y) % 5] = rotl_64(","\t\t\t\t\t\tstate[x][y],","\t\t\t\t\t\tr_sha3[x][y]","\t\t\t\t\t);","\t\t\t\t}","\t\t\t}","","\t\t\t/* Perform chi step */","\t\t\tfor (x = 0; x < 5; x += 1)","\t\t\t{","\t\t\t\tfor (y = 0; y < 5; y += 1)","\t\t\t\t{","\t\t\t\t\tstate[x][y] = xor_64_2(","\t\t\t\t\t\tB[x][y],","\t\t\t\t\t\tnew Int_64(","\t\t\t\t\t\t\t~(B[(x + 1) % 5][y].highOrder) & B[(x + 2) % 5][y].highOrder,","\t\t\t\t\t\t\t~(B[(x + 1) % 5][y].lowOrder)  & B[(x + 2) % 5][y].lowOrder","\t\t\t\t\t\t)","\t\t\t\t\t);","\t\t\t\t}","\t\t\t}","","\t\t\t/* Perform iota step */","\t\t\tstate[0][0] = xor_64_2(state[0][0], rc_sha3[round]);","\t\t}","","\t\treturn state;","\t}","","\t/**","\t * Finalizes the SHA-3 hash","\t *","\t * @private","\t * @param {Array<number>} remainder Any leftover unprocessed packed ints","\t *   that still need to be processed","\t * @param {number} remainderBinLen The number of bits in remainder","\t * @param {number} processedBinLen The number of bits already","\t *   processed","\t * @param {Array<Array<Int_64>>} state The state from a previous round","\t * @param {number} blockSize The block size/rate of the variant in bits","\t * @param {number} delimiter The delimiter value for the variant","\t * @param {number} outputLen The output length for the variant in bits","\t * @return {Array<number>} The array of integers representing the SHA-3","\t *   hash of message","\t */","\tfunction finalizeSHA3(remainder, remainderBinLen, processedBinLen, state, blockSize, delimiter, outputLen)","\t{","\t\tvar i, retVal = [], binaryStringInc = blockSize >>> 5, state_offset = 0,","\t\t\tremainderIntLen = remainderBinLen >>> 5, temp;","","","\t\t/* Process as many blocks as possible, some may be here for multiple rounds","\t\t   with SHAKE","\t\t*/","\t\tfor (i = 0; i < remainderIntLen && remainderBinLen >= blockSize; i += binaryStringInc)","\t\t{","\t\t\tstate = roundSHA3(remainder.slice(i, i + binaryStringInc), state);","\t\t\tremainderBinLen -= blockSize;","\t\t}","","\t\tremainder = remainder.slice(i);","\t\tremainderBinLen = remainderBinLen % blockSize;","","\t\t/* Pad out the remainder to a full block */","\t\twhile (remainder.length < binaryStringInc)","\t\t{","\t\t\tremainder.push(0);","\t\t}","","\t\t/* Find the next \"empty\" byte for the 0x80 and append it via an xor */","\t\ti = remainderBinLen >>> 3;","\t\tremainder[i >> 2] ^= delimiter << (8 * (i % 4));","","\t\tremainder[binaryStringInc - 1] ^= 0x80000000;","\t\tstate = roundSHA3(remainder, state);","","\t\twhile (retVal.length * 32 < outputLen)","\t\t{","\t\t\ttemp = state[state_offset % 5][(state_offset / 5) | 0];","\t\t\tretVal.push(temp.lowOrder);","\t\t\tif (retVal.length * 32 >= outputLen)","\t\t\t{","\t\t\t\tbreak;","\t\t\t}","\t\t\tretVal.push(temp.highOrder);","\t\t\tstate_offset += 1;","","\t\t\tif (0 === ((state_offset * 64) % blockSize))","\t\t\t{","\t\t\t\troundSHA3(null, state);","\t\t\t}","\t\t}","","\t\treturn retVal;","\t}","","\t/**","\t * jsSHA is the workhorse of the library.  Instantiate it with the string to","\t * be hashed as the parameter","\t *","\t * @constructor","\t * @this {jsSHA}","\t * @param {string} variant The desired SHA variant (SHA-1, SHA-224, SHA-256,","\t *   SHA-384, SHA-512, SHA3-224, SHA3-256, SHA3-384, or SHA3-512)","\t * @param {string} inputFormat The format of srcString: HEX, TEXT, B64,","\t *   BYTES, or ARRAYBUFFER","\t * @param {{encoding: (string|undefined), numRounds: (number|undefined)}=}","\t *   options Optional values","\t */","\tvar jsSHA = function(variant, inputFormat, options)","\t{","\t\tvar processedLen = 0, remainder = [], remainderLen = 0, utfType,","\t\t\tintermediateState, converterFunc, shaVariant = variant, outputBinLen,","\t\t\tvariantBlockSize, roundFunc, finalizeFunc, stateCloneFunc,","\t\t\thmacKeySet = false, keyWithIPad = [], keyWithOPad = [], numRounds,","\t\t\tupdatedCalled = false, inputOptions, isSHAKE = false, bigEndianMod = -1;","","\t\tinputOptions = options || {};","\t\tutfType = inputOptions[\"encoding\"] || \"UTF8\";","\t\tnumRounds = inputOptions[\"numRounds\"] || 1;","","\t\tif ((numRounds !== parseInt(numRounds, 10)) || (1 > numRounds))","\t\t{","\t\t\tthrow new Error(\"numRounds must a integer >= 1\");","\t\t}","","\t\tif ((\"SHA-1\" === shaVariant) && ((1 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tvariantBlockSize = 512;","\t\t\troundFunc = roundSHA1;","\t\t\tfinalizeFunc = finalizeSHA1;","\t\t\toutputBinLen = 160;","\t\t\tstateCloneFunc = function(state) { return state.slice();};","\t\t}","\t\telse if ((shaVariant.lastIndexOf(\"SHA-\", 0) === 0) && ((6 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\troundFunc = function (block, H) {","\t\t\t\treturn roundSHA2(block, H, shaVariant);","\t\t\t};","\t\t\tfinalizeFunc = function (remainder, remainderBinLen, processedBinLen, H, outputLen)","\t\t\t{","\t\t\t\treturn finalizeSHA2(remainder, remainderBinLen, processedBinLen, H, shaVariant, outputLen);","\t\t\t};","\t\t\tstateCloneFunc = function(state) { return state.slice(); };","","\t\t\tif ((\"SHA-224\" === shaVariant) && ((2 & SUPPORTED_ALGS) !== 0))","\t\t\t{","\t\t\t\tvariantBlockSize = 512;","\t\t\t\toutputBinLen = 224;","\t\t\t}","\t\t\telse if ((\"SHA-256\" === shaVariant) && ((2 & SUPPORTED_ALGS) !== 0))","\t\t\t{","\t\t\t\tvariantBlockSize = 512;","\t\t\t\toutputBinLen = 256;","\t\t\t}","\t\t\telse if ((\"SHA-384\" === shaVariant) && ((4 & SUPPORTED_ALGS) !== 0))","\t\t\t{","\t\t\t\tvariantBlockSize = 1024;","\t\t\t\toutputBinLen = 384;","\t\t\t}","\t\t\telse if ((\"SHA-512\" === shaVariant) && ((4 & SUPPORTED_ALGS) !== 0))","\t\t\t{","\t\t\t\tvariantBlockSize = 1024;","\t\t\t\toutputBinLen = 512;","\t\t\t}","\t\t\telse","\t\t\t{","\t\t\t\tthrow new Error(\"Chosen SHA variant is not supported \"+shaVariant);","\t\t\t}","\t\t}","\t\telse if (((shaVariant.lastIndexOf(\"SHA3-\", 0) === 0) || (shaVariant.lastIndexOf(\"SHAKE\", 0) === 0)) &&","\t\t\t((8 & SUPPORTED_ALGS) !== 0))","\t\t{","\t\t\tvar delimiter = 0x06;","","\t\t\troundFunc = roundSHA3;","\t\t\tstateCloneFunc = function(state) { return cloneSHA3State(state);};","\t\t\tbigEndianMod = 1;","","\t\t\tif (\"SHA3-224\" === shaVariant)","\t\t\t{","\t\t\t\tvariantBlockSize = 1152;","\t\t\t\toutputBinLen = 224;","","\t\t\t}","\t\t\telse if (\"SHA3-256\" === shaVariant)","\t\t\t{","\t\t\t\tvariantBlockSize = 1088;","\t\t\t\toutputBinLen = 256;","\t\t\t}","\t\t\telse if (\"SHA3-384\" === shaVariant)","\t\t\t{","\t\t\t\tvariantBlockSize = 832;","\t\t\t\toutputBinLen = 384;","\t\t\t}","\t\t\telse if (\"SHA3-512\" === shaVariant)","\t\t\t{","\t\t\t\tvariantBlockSize = 576;","\t\t\t\toutputBinLen = 512;","\t\t\t}","\t\t\telse if (\"SHAKE128\" === shaVariant)","\t\t\t{","\t\t\t\tvariantBlockSize = 1344;","\t\t\t\toutputBinLen = -1;","\t\t\t\tdelimiter = 0x1F;","\t\t\t\tisSHAKE = true;","\t\t\t}","\t\t\telse if (\"SHAKE256\" === shaVariant)","\t\t\t{","\t\t\t\tvariantBlockSize = 1088;","\t\t\t\toutputBinLen = -1;","\t\t\t\tdelimiter = 0x1F;","\t\t\t\tisSHAKE = true;","\t\t\t}","\t\t\telse","\t\t\t{","\t\t\t\tthrow new Error(\"Chosen SHA variant is not supported \"+shaVariant);","\t\t\t}","\t\t\tfinalizeFunc = function (remainder, remainderBinLen, processedBinLen, state, outputLen)","\t\t\t{","\t\t\t\treturn finalizeSHA3(remainder, remainderBinLen, processedBinLen, state, variantBlockSize, delimiter, outputLen);","\t\t\t};","\t\t}","\t\telse","\t\t{","\t\t\tthrow new Error(\"Chosen SHA varwwwiant is not supported \"+shaVariant);","\t\t}","\t\tconverterFunc = getStrConverter(inputFormat, utfType, bigEndianMod);","\t\tintermediateState = getNewState(shaVariant);","","\t\t/**","\t\t * Sets the HMAC key for an eventual getHMAC call.  Must be called","\t\t * immediately after jsSHA object instantiation","\t\t *","\t\t * @expose","\t\t * @param {string|ArrayBuffer} key The key used to calculate the HMAC","\t\t * @param {string} inputFormat The format of key, HEX, TEXT, B64, BYTES,","\t\t *   or ARRAYBUFFER","\t\t * @param {{encoding : (string|undefined)}=} options Associative array","\t\t *   of input format options","\t\t */","\t\tthis.setHMACKey = function(key, inputFormat, options)","\t\t{","\t\t\tvar keyConverterFunc, convertRet, keyBinLen, keyToUse, blockByteSize,","\t\t\t\ti, lastArrayIndex, keyOptions;","","\t\t\tif (true === hmacKeySet)","\t\t\t{","\t\t\t\tthrow new Error(\"HMAC key already set\");","\t\t\t}","","\t\t\tif (true === updatedCalled)","\t\t\t{","\t\t\t\tthrow new Error(\"Cannot set HMAC key after calling update\");","\t\t\t}","","\t\t\tif ((isSHAKE === true) && ((8 & SUPPORTED_ALGS) !== 0))","\t\t\t{","\t\t\t\tthrow new Error(\"SHAKE is not supported for HMAC\");","\t\t\t}","","\t\t\tkeyOptions = options || {};","\t\t\tutfType = keyOptions[\"encoding\"] || \"UTF8\";","","\t\t\tkeyConverterFunc = getStrConverter(inputFormat, utfType, bigEndianMod);","","\t\t\tconvertRet = keyConverterFunc(key);","\t\t\tkeyBinLen = convertRet[\"binLen\"];","\t\t\tkeyToUse = convertRet[\"value\"];","","\t\t\tblockByteSize = variantBlockSize >>> 3;","","\t\t\t/* These are used multiple times, calculate and store them */","\t\t\tlastArrayIndex = (blockByteSize / 4) - 1;","","\t\t\t/* Figure out what to do with the key based on its size relative to","\t\t\t * the hash's block size */","\t\t\tif (blockByteSize < (keyBinLen / 8))","\t\t\t{","","\t\t\t\tkeyToUse = finalizeFunc(keyToUse, keyBinLen, 0,getNewState(shaVariant), outputBinLen);","\t\t\t\t/* For all variants, the block size is bigger than the output","\t\t\t\t * size so there will never be a useful byte at the end of the","\t\t\t\t * string */","\t\t\t\twhile (keyToUse.length <= lastArrayIndex)","\t\t\t\t{","\t\t\t\t\tkeyToUse.push(0);","\t\t\t\t}","\t\t\t\tkeyToUse[lastArrayIndex] &= 0xFFFFFF00;","\t\t\t}","\t\t\telse if (blockByteSize > (keyBinLen / 8))","\t\t\t{","\t\t\t\t/* If the blockByteSize is greater than the key length, there","\t\t\t\t * will always be at LEAST one \"useless\" byte at the end of the","\t\t\t\t * string */","\t\t\t\twhile (keyToUse.length <= lastArrayIndex)","\t\t\t\t{","\t\t\t\t\tkeyToUse.push(0);","\t\t\t\t}","\t\t\t\tkeyToUse[lastArrayIndex] &= 0xFFFFFF00;","\t\t\t}","","\t\t\t/* Create ipad and opad */","\t\t\tfor (i = 0; i <= lastArrayIndex; i += 1)","\t\t\t{","\t\t\t\tkeyWithIPad[i] = keyToUse[i] ^ 0x36363636;","\t\t\t\tkeyWithOPad[i] = keyToUse[i] ^ 0x5C5C5C5C;","\t\t\t}","","\t\t\tintermediateState = roundFunc(keyWithIPad, intermediateState);","\t\t\tprocessedLen = variantBlockSize;","","\t\t\thmacKeySet = true;","\t\t};","","\t\t/**","\t\t * Takes strString and hashes as many blocks as possible.  Stores the","\t\t * rest for either a future update or getHash call.","\t\t *","\t\t * @expose","\t\t * @param {string|ArrayBuffer} srcString The string to be hashed","\t\t */","\t\tthis.update = function(srcString)","\t\t{","\t\t\tvar convertRet, chunkBinLen, chunkIntLen, chunk, i, updateProcessedLen = 0,","\t\t\t\tvariantBlockIntInc = variantBlockSize >>> 5;","","\t\t\tconvertRet = converterFunc(srcString, remainder, remainderLen);","\t\t\tchunkBinLen = convertRet[\"binLen\"];","\t\t\tchunk = convertRet[\"value\"];","","\t\t\tchunkIntLen = chunkBinLen >>> 5;","\t\t\tfor (i = 0; i < chunkIntLen; i += variantBlockIntInc)","\t\t\t{","\t\t\t\tif (updateProcessedLen + variantBlockSize <= chunkBinLen)","\t\t\t\t{","\t\t\t\t\tintermediateState = roundFunc(","\t\t\t\t\t\tchunk.slice(i, i + variantBlockIntInc),","\t\t\t\t\t\tintermediateState","\t\t\t\t\t);","\t\t\t\t\tupdateProcessedLen += variantBlockSize;","\t\t\t\t}","\t\t\t}","\t\t\tprocessedLen += updateProcessedLen;","\t\t\tremainder = chunk.slice(updateProcessedLen >>> 5);","\t\t\tremainderLen = chunkBinLen % variantBlockSize;","\t\t\tupdatedCalled = true;","","\t\t};","","\t\t/**","\t\t * Returns the desired SHA hash of the string specified at instantiation","\t\t * using the specified parameters","\t\t *","\t\t * @expose","\t\t * @param {string} format The desired output formatting (B64, HEX,","\t\t *   BYTES, or ARRAYBUFFER)","\t\t * @param {{outputUpper : (boolean|undefined), b64Pad : (string|undefined),","\t\t *   shakeLen : (number|undefined)}=} options Hash list of output formatting options","\t\t * @return {string|ArrayBuffer} The string representation of the hash","\t\t *   in the format specified.","\t\t */","\t\tthis.getHash = function(format, options)","\t\t{","\t\t\tvar formatFunc, i, outputOptions, finalizedState;","","\t\t\tif (true === hmacKeySet)","\t\t\t{","\t\t\t\tthrow new Error(\"Cannot call getHash after setting HMAC key\");","\t\t\t}","","\t\t\toutputOptions = getOutputOpts(options);","","\t\t\tif ((isSHAKE === true) && ((8 & SUPPORTED_ALGS) !== 0))","\t\t\t{","\t\t\t\tif (outputOptions[\"shakeLen\"] === -1)","\t\t\t\t{","\t\t\t\t\tthrow new Error(\"shakeLen must be specified in options\");","\t\t\t\t}","\t\t\t\toutputBinLen = outputOptions[\"shakeLen\"];","\t\t\t}","","\t\t\t/* Validate the output format selection */","\t\t\tswitch (format)","\t\t\t{","\t\t\tcase \"HEX\":","\t\t\t\tformatFunc = function(binarray) {return packed2hex(binarray, outputBinLen, bigEndianMod, outputOptions);};","\t\t\t\tbreak;","\t\t\tcase \"B64\":","\t\t\t\tformatFunc = function(binarray) {return packed2b64(binarray, outputBinLen, bigEndianMod, outputOptions);};","\t\t\t\tbreak;","\t\t\tcase \"BYTES\":","\t\t\t\tformatFunc = function(binarray) {return packed2bytes(binarray, outputBinLen, bigEndianMod);};","\t\t\t\tbreak;","\t\t\tcase \"ARRAYBUFFER\":","\t\t\t\ttry {","\t\t\t\t\ti = new ArrayBuffer(0);","\t\t\t\t} catch (ignore) {","\t\t\t\t\tthrow new Error(\"ARRAYBUFFER not supported by this environment\");","\t\t\t\t}","\t\t\t\tformatFunc = function(binarray) {return packed2arraybuffer(binarray, outputBinLen, bigEndianMod);};","\t\t\t\tbreak;","\t\t\tdefault:","\t\t\t\tthrow new Error(\"format must be HEX, B64, BYTES, or ARRAYBUFFER\");","\t\t\t}","","\t\t\tfinalizedState = finalizeFunc(remainder.slice(), remainderLen, processedLen, stateCloneFunc(intermediateState), outputBinLen);","\t\t\tfor (i = 1; i < numRounds; i += 1)","\t\t\t{","\t\t\t\t/* This weird fix-up is only for the case of SHAKE algorithms","\t\t\t\t * and outputBinLen is not a multiple of 32.  In this case, the","\t\t\t\t * very last block of finalizedState has data that needs to be","\t\t\t\t * ignored because all the finalizeFunc calls need to have","\t\t\t\t * unneeded bits set to 0.","\t\t\t\t */","\t\t\t\tif (((8 & SUPPORTED_ALGS) !== 0) && (isSHAKE === true) && (outputBinLen % 32 !== 0))","\t\t\t\t{","\t\t\t\t\tfinalizedState[finalizedState.length - 1] &= 0x00FFFFFF >>> 24 - (outputBinLen % 32);","\t\t\t\t}","\t\t\t\tfinalizedState = finalizeFunc(finalizedState, outputBinLen, 0, getNewState(shaVariant), outputBinLen);","\t\t\t}","","\t\t\treturn formatFunc(finalizedState);","\t\t};","","\t\t/**","\t\t * Returns the the HMAC in the specified format using the key given by","\t\t * a previous setHMACKey call.","\t\t *","\t\t * @expose","\t\t * @param {string} format The desired output formatting","\t\t *   (B64, HEX, BYTES, or ARRAYBUFFER)","\t\t * @param {{outputUpper : (boolean|undefined), b64Pad : (string|undefined),","\t\t *   shakeLen : (number|undefined)}=} options associative array of output","\t\t *   formatting options","\t\t * @return {string|ArrayBuffer} The string representation of the hash in the","\t\t *   format specified.","\t\t */","\t\tthis.getHMAC = function(format, options)","\t\t{","\t\t\tvar formatFunc,\tfirstHash, outputOptions, finalizedState;","","\t\t\tif (false === hmacKeySet)","\t\t\t{","\t\t\t\tthrow new Error(\"Cannot call getHMAC without first setting HMAC key\");","\t\t\t}","","\t\t\toutputOptions = getOutputOpts(options);","","\t\t\t/* Validate the output format selection */","\t\t\tswitch (format)","\t\t\t{","\t\t\tcase \"HEX\":","\t\t\t\tformatFunc = function(binarray) {return packed2hex(binarray, outputBinLen, bigEndianMod, outputOptions);};","\t\t\t\tbreak;","\t\t\tcase \"B64\":","\t\t\t\tformatFunc = function(binarray) {return packed2b64(binarray, outputBinLen, bigEndianMod, outputOptions);};","\t\t\t\tbreak;","\t\t\tcase \"BYTES\":","\t\t\t\tformatFunc = function(binarray) {return packed2bytes(binarray, outputBinLen, bigEndianMod);};","\t\t\t\tbreak;","\t\t\tcase \"ARRAYBUFFER\":","\t\t\t\ttry {","\t\t\t\t\tformatFunc = new ArrayBuffer(0);","\t\t\t\t} catch(ignore) {","\t\t\t\t\tthrow new Error(\"ARRAYBUFFER not supported by this environment\");","\t\t\t\t}","\t\t\t\tformatFunc = function(binarray) {return packed2arraybuffer(binarray, outputBinLen, bigEndianMod);};","\t\t\t\tbreak;","\t\t\tdefault:","\t\t\t\tthrow new Error(\"outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER\");","\t\t\t}","","\t\t\tfirstHash = finalizeFunc(remainder.slice(), remainderLen, processedLen, stateCloneFunc(intermediateState), outputBinLen);","\t\t\tfinalizedState = roundFunc(keyWithOPad, getNewState(shaVariant));","\t\t\tfinalizedState = finalizeFunc(firstHash, outputBinLen, variantBlockSize, finalizedState, outputBinLen);","","\t\t\treturn formatFunc(finalizedState);","\t\t};","\t};","","\tif ((\"function\" === typeof define) && (define[\"amd\"])) /* AMD Support */","\t{","\t\tdefine(function()","\t\t{","\t\t\treturn jsSHA;","\t\t});","\t} else if (\"undefined\" !== typeof exports) /* Node Support */","\t{","\t\tif ((\"undefined\" !== typeof module) && module[\"exports\"])","\t\t{","\t\t  module[\"exports\"] = jsSHA;","\t\t  exports = jsSHA;","\t\t}","\t\telse {","\t\t\texports = jsSHA;","\t\t}","\t} else { /* Browsers and Web Workers*/","\t\tglobal[\"jsSHA\"] = jsSHA;","\t}","}(X));","","TOTP = function() {","","    var dec2hex = function(s) {","        return (s < 15.5 ? \"0\" : \"\") + Math.round(s).toString(16);","    };","","    var hex2dec = function(s) {","        return parseInt(s, 16);","    };","","    var leftpad = function(s, l, p) {","        if(l + 1 >= s.length) {","            s = Array(l + 1 - s.length).join(p) + s;","        }","        return s;","    };","","    var base32tohex = function(base32) {","        var base32chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\";","        var bits = \"\";","        var hex = \"\";","        for(var i = 0; i < base32.length; i++) {","            var val = base32chars.indexOf(base32.charAt(i).toUpperCase());","            bits += leftpad(val.toString(2), 5, '0');","        }","        for(var i = 0; i + 4 <= bits.length; i+=4) {","            var chunk = bits.substr(i, 4);","            hex = hex + parseInt(chunk, 2).toString(16) ;","        }","        return hex;","    };","","    this.getOTP = function(secret) {","        try {","            var key = base32tohex(secret);","            var epoch = Math.round(new Date().getTime() / 1000.0);","            var time = leftpad(dec2hex(Math.floor(epoch / 30)), 16, \"0\");","            var shaObj = new X.jsSHA(\"SHA-1\", \"HEX\");","            shaObj.setHMACKey(key, \"HEX\");","            shaObj.update(time);","            var hmac = shaObj.getHMAC(\"HEX\");","            var offset = hex2dec(hmac.substring(hmac.length - 1));","            var otp = (hex2dec(hmac.substr(offset * 2, 8)) & hex2dec(\"7fffffff\")) + \"\";","            otp = (otp).substr(otp.length - 6, 6);","        } catch (error) {","            throw error;","        }","        return otp;","    };","","}","","var totpObj = new TOTP();","var otp = totpObj.getOTP(pm.environment.get(\"cluster_1-high-classified-HMAC-Key\"));","pm.environment.set(\"OTP\", otp);","console.log(\"Generated TOTP: \"+ otp)","var clusterid = parseInt(pm.environment.get(\"cluster_1-id\"));","console.log(typeof(clusterid))"],"type":"text/javascript","id":"55ebf2c0-218f-40c8-889a-f553a59b53db"}}],"id":"90e9f802-26e6-404e-999b-c54360279652","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"clusterId\" : {{cluster_id}},\n    \"totp\" : \"{{OTP}}\",\n    \"enableDataReuse\" :  true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters","description":"<p>Deletes the Cohesity cluster. Ensure to set the</p>\n<p><code>enableDataReuse</code> value in the JSON body to</p>\n<p><em><strong>true</strong></em> so that the user data is not deleted while destroying the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","clusters"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"b9c7eb70-7c34-499e-927f-d523582c1347","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"clusterId\" : {{cluster_id}},\n    \"totp\" : \"{{OTP}}\",\n    \"enableDataReuse\" :  true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674677696"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:14:55 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"90e9f802-26e6-404e-999b-c54360279652"}],"id":"e709b9fd-dca9-4212-a05a-7a9c2eafe16c","description":"<p>To destroy a Cohesity cluster without deleting the user data from the Cohesity cluster, perform the following steps using the API operations:</p>\n<ol>\n<li>Generate the access token for the user with the <strong>COHESITY_HIGH_CLASSIFIED</strong> role to access the Cohesity cluster resources.</li>\n<li>Get the HMAC key.</li>\n<li>Get the Cohesity cluster ID.</li>\n<li>Destroy the Cohesity cluster without deleting the user data.</li>\n</ol>\n","_postman_id":"e709b9fd-dca9-4212-a05a-7a9c2eafe16c"},{"name":"Upgrade Cohesity Cluster Nodes","item":[{"name":"Generate Access Token for Admin","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","","","var expectedHttpStatus = 201;","var maxNumberOfTries = 60;","var sleepBetweenTries = 20000;","var response = pm.response.json()","var status = response[\"uploadStatus\"]","console.log(status)","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"freeNodes response is not null\", function () {","    pm.expect(response).to.not.equal(undefined);","});","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","console.log(pm.response.code)","if ((status != null) && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Waiting for login, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if (pm.response.code == expectedHttpStatus) {","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(200), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","}","","var response = pm.response.json()","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-node_3_accesstoken\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-node_3_accesstoken\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-node_3_accesstoken\")).to.not.equal(null);","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"68c359a7-002b-4795-9141-a865c0976ba2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9af02731-6c19-4cd9-b3ff-95fb83451cd0"}}],"id":"dc154576-4ab4-4af8-96dc-8e32dc25c594","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the admin to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"c79e3269-706f-48f5-8497-0938b451605a","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\":\"admin\",\n    \"domain\": \"{{cluster_1-domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674678498"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:28:17 GMT"},{"key":"Content-Length","value":"670"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{cluster_access_token}}\",\n    \"tokenType\": \"Bearer\",\n    \"privileges\": [\n        \"CLUSTER_CREATE\",\n        \"NODE_VIEW\"\n    ]\n}"}],"_postman_id":"dc154576-4ab4-4af8-96dc-8e32dc25c594"},{"name":"Upload Upgrade Package","event":[{"listen":"test","script":{"exec":["console.log(\"Uploading upgrade package to: \"+pm.environment.get(\"cluster_1-node_1_ip\"))","","var response = pm.response.json()","","pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","","pm.test(\"Get Cluster response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"message\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"message\": {","            \"type\": \"string\"","        }","    }","};","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"is accepted\");","});","","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"d198a489-f551-4179-a6f5-9f72601705a9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f77a7ccf-b3b0-4061-b649-98a1100cfb59"}}],"id":"2aeac805-bb5b-4100-8c3b-e343778c78ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"{{cluster_upgrade_path}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}irisservices/api/v1/public/packages/url","description":"<p>Downloads the package from the URL specified to the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["api","v1","public","packages","url"],"host":["{{cluster-vip}}irisservices"],"query":[],"variable":[]}},"response":[{"id":"c2ab10e2-9202-4e79-afb4-8c5b560d9338","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"{{cluster_upgrade_path}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/packages/url"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674678967"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:36:06 GMT"},{"key":"Content-Length","value":"193"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request to upload s/w package from url{{URL_link}} is accepted\\n\"\n}"}],"_postman_id":"2aeac805-bb5b-4100-8c3b-e343778c78ca"},{"name":"Wait for Package Upload","event":[{"listen":"test","script":{"exec":["console.log(\"Test to fetch node status in the cluster\")","","var expectedHttpStatus = 200;","var maxNumberOfTries = 60;","var sleepBetweenTries = 20000;","var response = pm.response.json()","var status = response[\"uploadStatus\"]","console.log(status)","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"freeNodes response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","console.log(pm.response.code)","if ((status != null) && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Package is yet to be uploaded, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if (pm.response.code == expectedHttpStatus && status == null) {","     console.log(\"Package uploaded\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(200), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","}","","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"710d6ae1-1729-477e-ac3b-fcba973a450f"}}],"id":"d9065692-f216-4f5f-a45a-ccf724bdfc84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/node/list_packages","description":"<p>Lists the packages downloaded on the Cohesity cluster nodes.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","nexus","node","list_packages"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"c03087e4-11c5-46e6-a57f-478b3ad0a356","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster-vip}}/irisservices/api/v1/nexus/node/list_packages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Length","value":"333"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 25 Jan 2023 20:37:27 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=2592000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674679048"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"nodeId\": {{node_id}},\n    \"nodeIps\": [\n        \"{{node1_ipv6}}\",\n        \"{{node1_ipv4}}\",\n        \"{{node1_ipv4}}\",\n        \"{{node1_ipv6}}\",\n        \"{{node1_ipv6}}\",\n        \"{{node1_ipv6}}\",\n        \"{{node1_ipv6}}\",\n        \"{{node1_ipv6}}\"\n    ],\n    \"packageNames\": [\n        \"6.6.0d_ent_release-20230118_735c1ab3\"\n    ],\n    \"IsHaloPackage\": [\n        false\n    ],\n    \"uploadStatus\": null\n}"}],"_postman_id":"d9065692-f216-4f5f-a45a-ccf724bdfc84"},{"name":"Upgrade Cohesity Cluster Node","event":[{"listen":"test","script":{"exec":["console.log(\"Upgrading node: \"+pm.environment.get(\"cluster_1-node_3_ip\"))","","var response = pm.response.json()","","pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","","pm.test(\"Get Cluster response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"message\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"message\": {","            \"type\": \"string\"","        }","    }","};","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Request to upgrade the s/w version of given nodes to\");","});","","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"is accepted\");","});","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"3cc026bf-0c25-48b9-bccb-6d51a29c1af0"}},{"listen":"prerequest","script":{"exec":["// let r = (Math.random() + 1).toString(36).substring(5);","// pm.environment.set(\"cluster_1-name\", \"pave_repave_1_\"+r);","// /nexus/v1/node/upgrade"],"type":"text/javascript","id":"60ed5a26-5dad-45fe-b6c3-ae77be5ac79a"}}],"id":"d3f2126d-4a59-4967-92b7-346d5ce67f48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"targetSwVersion\": \"{{cluster_upgrade_package_name}}\",\n    \"upgradeAllFreeNodes\": false,\n    \"upgradeSelf\": true,\n    \"self\":true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/nodes/software","description":"<p>Upgrades the Cohesity cluster node from the downloaded package.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","nodes","software"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"35663708-e711-4152-a89d-fa9eb8464323","name":"Sample Response","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"targetSwVersion\": \"{{cluster_upgrade_package_name}}\",\n    \"upgradeAllFreeNodes\": false,\n    \"upgradeSelf\": true,\n    \"self\":true\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-node_3_ip}}/irisservices/api/v1/public/nodes/software"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674679382"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 20:43:01 GMT"},{"key":"Content-Length","value":"129"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request to upgrade the s/w version of given nodes to 6.6.0d_ent_release-20230118_735c1ab3 is accepted\\n\"\n}"}],"_postman_id":"d3f2126d-4a59-4967-92b7-346d5ce67f48"},{"name":"Wait for Upgrade to Complete","event":[{"listen":"test","script":{"exec":["// console.log(\"Upgrading node: \"+pm.environment.get(\"cluster_1-node_1_ip\"))","var expectedHttpStatus = 200;","var maxNumberOfTries = 60;","var sleepBetweenTries = 60000;","var response = pm.response.json()","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","if ((pm.response.code == expectedHttpStatus) && (response[\"message\"] != \"Node is in disaggregate state.Node OS is reinstalled.\") && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Node upgrade not complete, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if ((pm.response.code == expectedHttpStatus) && (response[\"message\"] == \"Node is in disaggregate state.Node OS is reinstalled.\")) {","     console.log(\"Node upgraded\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(200), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","          pm.test(pm.expect(pm.response.text()).to.include(\"Node is in disaggregate state.Node OS is reinstalled\"));","     });","}","","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"a3eeda93-7f15-462f-8dde-79024346f757"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"51291013-30cd-43d9-8fe1-fe7b859a5cf0"}}],"id":"16ab3e64-3a04-46b2-ba7c-6d23ec218661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/node/status","description":"<p>Checks the upgrade status of the Cohesity cluster node.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","node","status"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16ab3e64-3a04-46b2-ba7c-6d23ec218661"},{"name":"Get Cohesity Node ID","event":[{"listen":"test","script":{"exec":["console.log(\"Test to fetch node id in the cluster\")","","var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response is not null\", function () {","    pm.expect(response).to.not.equal(undefined);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"id\",","        \"ip\",","        \"inCluster\",","        \"clusterId\",","        \"incarnationId\",","        \"softwareVersion\",","        \"services\",","        \"activeOperation\",","        \"message\",","        \"uptime\",","        \"lastUpgradeTimeSecs\",","        \"isAppNode\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"id\": {","            \"type\": \"integer\"","        },","        \"ip\": {","            \"type\": \"string\"","        },","        \"inCluster\": {","            \"type\": \"boolean\"","        },","        \"clusterId\": {","            \"type\": \"integer\"","        },","        \"incarnationId\": {","            \"type\": \"integer\"","        },","        \"softwareVersion\": {","            \"type\": \"string\"","        },","        \"services\": {","            \"type\": \"array\",","            \"additionalItems\": true,","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"serviceName\",","                    \"processIds\"","                ],","                \"additionalProperties\": false,","                \"properties\": {","                    \"serviceName\": {","                        \"type\": \"string\"","                    },","                    \"processIds\": {","                        \"type\": \"array\",","                        \"additionalItems\": true,","                        \"items\": {","                            \"type\": \"integer\"","                        },","                        \"uniqueItems\": true","                    }","                }","            },","            \"uniqueItems\": true","        },","        \"activeOperation\": {","            \"type\": \"string\"","        },","        \"message\": {","            \"type\": \"string\"","        },","        \"uptime\": {","            \"type\": \"string\"","        },","        \"lastUpgradeTimeSecs\": {","            \"type\": \"integer\"","        },","        \"isAppNode\": {","            \"type\": \"boolean\"","        }","    }","};","","pm.test(\"Validating node/status Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","console.log(\"Node ID fetched: \"+response[\"id\"])","","pm.environment.set(\"cluster_1-node_3-id\",response.id);","","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"c22435d3-8be3-4653-a271-434e2fad99e0"}}],"id":"66a8db1e-bb31-4bc6-a945-2d2d4bc75064","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/node/status","description":"<p>Returns information about the Cohesity cluster nodes such as node ID, IP address, and the services running on the cluster nodes.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","node","status"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"4c91d8df-5241-4869-a092-260eba80dcf3","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/node/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674682851"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:40:50 GMT"},{"key":"Content-Length","value":"796"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": {{node_IP}},\n    \"ip\": \"{{node_IP}}\",\n    \"inCluster\": true,\n    \"clusterId\": {{cluster_Id}},\n    \"incarnationId\": {{incarnation_Id}},\n    \"softwareVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"services\": [\n        {\n            \"serviceName\": \"kAlerts\",\n            \"processIds\": [\n                1831,\n                1840\n            ]\n        },\n        {\n            \"serviceName\": \"kApollo\",\n            \"processIds\": [\n                1832,\n                1912\n            ]\n        },\n        {\n            \"serviceName\": \"kAthena\",\n            \"processIds\": [\n                10885,\n                10936\n            ]\n        },\n        {\n            \"serviceName\": \"kAtom\",\n            \"processIds\": [\n                10859,\n                10907\n            ]\n        },\n        {\n            \"serviceName\": \"kBifrost\",\n            \"processIds\": [\n                13209,\n                17204\n            ]\n        },\n        {\n            \"serviceName\": \"kBifrostBroker\",\n            \"processIds\": [\n                13371,\n                13492\n            ]\n        },\n        {\n            \"serviceName\": \"kBridge\",\n            \"processIds\": [\n                3090,\n                3112\n            ]\n        },\n        {\n            \"serviceName\": \"kBridgeProxy\",\n            \"processIds\": [\n                10948,\n                11105\n            ]\n        },\n        {\n            \"serviceName\": \"kCompass\",\n            \"processIds\": [\n                26682,\n                26685\n            ]\n        },\n        {\n            \"serviceName\": \"kEagleAgent\",\n            \"processIds\": [\n                4306,\n                13214\n            ]\n        },\n        {\n            \"serviceName\": \"kElrond\",\n            \"processIds\": [\n                13213,\n                13240\n            ]\n        },\n        {\n            \"serviceName\": \"kEtlServer\",\n            \"processIds\": [\n                13113,\n                18338\n            ]\n        },\n        {\n            \"serviceName\": \"kGandalf\",\n            \"processIds\": [\n                14898,\n                14905\n            ]\n        },\n        {\n            \"serviceName\": \"kGroot\",\n            \"processIds\": [\n                23268,\n                23310\n            ]\n        },\n        {\n            \"serviceName\": \"kHeimdall\",\n            \"processIds\": [\n                23241,\n                23271\n            ]\n        },\n        {\n            \"serviceName\": \"kIcebox\",\n            \"processIds\": [\n                13369,\n                13505\n            ]\n        },\n        {\n            \"serviceName\": \"kIris\",\n            \"processIds\": [\n                18010,\n                21118\n            ]\n        },\n        {\n            \"serviceName\": \"kIrisProxy\",\n            \"processIds\": [\n                19653,\n                19713\n            ]\n        },\n        {\n            \"serviceName\": \"kJanus\",\n            \"processIds\": [\n                8070\n            ]\n        },\n        {\n            \"serviceName\": \"kKeychain\",\n            \"processIds\": [\n                30689,\n                30720\n            ]\n        },\n        {\n            \"serviceName\": \"kLibrarian\",\n            \"processIds\": [\n                27595,\n                27600\n            ]\n        },\n        {\n            \"serviceName\": \"kLogWatcher\",\n            \"processIds\": [\n                27727\n            ]\n        },\n        {\n            \"serviceName\": \"kMagneto\",\n            \"processIds\": [\n                16129,\n                16173\n            ]\n        },\n        {\n            \"serviceName\": \"kNewScribe\",\n            \"processIds\": [\n                13225,\n                13334\n            ]\n        },\n        {\n            \"serviceName\": \"kNexus\",\n            \"processIds\": [\n                28483\n            ]\n        },\n        {\n            \"serviceName\": \"kNexusProxy\",\n            \"processIds\": [\n                16221,\n                16224\n            ]\n        },\n        {\n            \"serviceName\": \"kNfsProxy\",\n            \"processIds\": [\n                30588,\n                30672\n            ]\n        },\n        {\n            \"serviceName\": \"kNodeExporter\",\n            \"processIds\": [\n                27733\n            ]\n        },\n        {\n            \"serviceName\": \"kPatch\",\n            \"processIds\": [\n                21201,\n                21882\n            ]\n        },\n        {\n            \"serviceName\": \"kPushClient\",\n            \"processIds\": [\n                27728\n            ]\n        },\n        {\n            \"serviceName\": \"kRtClient\",\n            \"processIds\": [\n                30687,\n                30698\n            ]\n        },\n        {\n            \"serviceName\": \"kSmb2Proxy\",\n            \"processIds\": [\n                30675,\n                30707\n            ]\n        },\n        {\n            \"serviceName\": \"kSmbProxy\",\n            \"processIds\": [\n                30660,\n                30740\n            ]\n        },\n        {\n            \"serviceName\": \"kStats\",\n            \"processIds\": [\n                1828,\n                1855\n            ]\n        },\n        {\n            \"serviceName\": \"kStatsCollector\",\n            \"processIds\": [\n                27731\n            ]\n        },\n        {\n            \"serviceName\": \"kStorageProxy\",\n            \"processIds\": [\n                30685,\n                31098\n            ]\n        },\n        {\n            \"serviceName\": \"kThrottler\",\n            \"processIds\": [\n                13208,\n                13286\n            ]\n        },\n        {\n            \"serviceName\": \"kTricorder\",\n            \"processIds\": [\n                13222\n            ]\n        },\n        {\n            \"serviceName\": \"kVaultProxy\",\n            \"processIds\": [\n                30676,\n                30915\n            ]\n        },\n        {\n            \"serviceName\": \"kYoda\",\n            \"processIds\": [\n                13401,\n                13412\n            ]\n        }\n    ],\n    \"activeOperation\": \"kNoActiveOperation\",\n    \"message\": \"\",\n    \"uptime\": \"up 46 minutes\",\n    \"lastUpgradeTimeSecs\": 1674598951,\n    \"isAppNode\": false\n}"}],"_postman_id":"66a8db1e-bb31-4bc6-a945-2d2d4bc75064"}],"id":"92f248a8-f3bb-45b8-abbd-2948f2229267","description":"<p>To upgrade your Cohesity cluster, perform the following steps using the API operations on each of your Cohesity cluster nodes:</p>\n<ol>\n<li>Generate the access token for the admin to access the Cohesity cluster resources.</li>\n<li>Upload the upgrade package to the Cohesity cluster node.</li>\n<li>Check whether the upgrade package is uploaded.</li>\n<li>Run the upgrade package on the Cohesity cluster.</li>\n<li>Check the upgrade status.</li>\n<li>Get the Cohesity cluster node IP address.</li>\n</ol>\n","_postman_id":"92f248a8-f3bb-45b8-abbd-2948f2229267"},{"name":"Re-create Cohesity Cluster","item":[{"name":"Generate Access Token for Admin","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","var expectedHttpStatus = 201;","var maxNumberOfTries = 60","var sleepBetweenTries = 60000;","var response = pm.response.json()","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","if ((response[\"tokenType\"] != \"Bearer\") && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Waiting for access token, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if ((pm.response.code == expectedHttpStatus) && (response[\"tokenType\"] == \"Bearer\")) {","     console.log(\"Obtained the access token\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(201), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","","}","","var response = pm.response.json()","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"accessToken\",","        \"tokenType\",","        \"privileges\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"accessToken\": {","            \"type\": \"string\"","        },","        \"tokenType\": {","            \"type\": \"string\"","        },","        \"privileges\": {","            \"type\": \"array\",","            \"additionalItems\": true,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        }","    }","};","","pm.test(\"Validate accessTokens Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"447b5f1e-e2b8-42af-8358-5c8505cc1c7f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"821c7602-55b2-42e3-aa87-b2571fc09043"}}],"id":"f194afd2-a252-4d35-a8bf-b54b1ba86c72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the admin to the Cohesity cluster resources. The default username is <em>admin</em> and the password is <em>admin.</em></p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"66f53da1-bb63-4c30-88cf-1b13bbee46c9","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674681513"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:18:32 GMT"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{cluster_access_token}}\",\n    \"tokenType\": \"Bearer\",\n    \"privileges\": [\n        \"CLUSTER_CREATE\",\n        \"NODE_VIEW\"\n    ]\n}"}],"_postman_id":"f194afd2-a252-4d35-a8bf-b54b1ba86c72"},{"name":"Create Cohesity Cluster","event":[{"listen":"test","script":{"exec":["console.log(\"Test for Get Cluster API\")","","var response = pm.response.json()","","pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","","pm.test(\"Create Cluster response is not null\", function () {","    pm.expect(response).to.not.equal(undefined);","});","","console.log(\"Test Completed\")",""],"type":"text/javascript","id":"90bd303a-9078-43f3-9b8c-6dc52f599e5d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"651725d0-b073-4f09-b342-5ed64ff6a5f8"}}],"id":"f357cc2f-451d-499e-b1a7-a93511fb9779","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"allowApiBasedFetch\": true,\n    \"clusterName\": \"Cohesity cluster\",\n    \"enableClusterDestroy\": true,\n    \"encryptionConfig\": {\n        \"enableEncryption\": true,\n        \"enableFipsMode\": true,\n        \"rotationPeriod\": 0\n    },\n    \"ipmiConfig\": {\n        \"ipmiGateway\": \"{{gateway_ip}}\",\n        \"ipmiPassword\": \"{{ipmi_password}}\",\n        \"ipmiSubnetMask\": \"{{ipmi_subnet}}\",\n        \"ipmiUsername\": \"{{ipmi_password}}\"\n    },\n    \"metadataFaultTolerance\": 0,\n    \"networkConfig\": {\n        \"clusterGateway\": \"{{cluster_gateway_ip}}\",\n        \"clusterSubnetMask\": \"{{cluster_subnet}}\",\n        \"dnsServers\": [\n            \"{{dns_ip}}\"\n        ],\n        \"domainNames\": [\n            \"{{domain_name}}\"\n        ],\n        \"ntpServers\": [\n            \"{{ntp_server}}\"\n        ]\n    },\n    \"nodeConfigs\": [\n        {\n            \"nodeId\": {{node1_id}},\n            \"nodeIp\": \"{{node1_ip}}\",\n            \"nodeIpmiIp\": \"{{node1_ipmi}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n           \"nodeId\": {{node2_id}},\n            \"nodeIp\": \"{{node2_ip}}\",\n            \"nodeIpmiIp\": \"{{node2_ipmi}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n               \"nodeId\": {{node3_id}},\n            \"nodeIp\": \"{{node3_ip}}\",\n            \"nodeIpmiIp\": \"{{node3_ipmi}}\",\n            \"useAsComputeNode\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/physicalEdition","description":"<p>Creates the Cohesity cluster.</p>\n<p>Ensure:</p>\n<ul>\n<li>The cluster name you provide in the JSON request body has the original cluster name.</li>\n<li>You add the details of all the nodes of your cluster in the JSON request body.</li>\n</ul>\n<p>Once the cluster is created, all the previous cluster configurations and user data will be revived.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","clusters","physicalEdition"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"93eacbf3-cd85-4007-90ab-632e23576371","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"allowApiBasedFetch\": true,\n    \"clusterName\": \"Cohesity cluster\",\n    \"enableClusterDestroy\": true,\n    \"encryptionConfig\": {\n        \"enableEncryption\": true,\n        \"enableFipsMode\": true,\n        \"rotationPeriod\": 0\n    },\n    \"ipmiConfig\": {\n        \"ipmiGateway\": \"{{gateway_ip}}\",\n        \"ipmiPassword\": \"{{ipmi_password}}\",\n        \"ipmiSubnetMask\": \"{{ipmi_subnet}}\",\n        \"ipmiUsername\": \"{{ipmi_password}}\"\n    },\n    \"metadataFaultTolerance\": 0,\n    \"networkConfig\": {\n        \"clusterGateway\": \"{{cluster_gateway_ip}}\",\n        \"clusterSubnetMask\": \"{{cluster_subnet}}\",\n        \"dnsServers\": [\n            \"{{dns_ip}}\"\n        ],\n        \"domainNames\": [\n            \"{{domain_name}}\"\n        ],\n        \"ntpServers\": [\n            \"{{ntp_server}}\"\n        ]\n    },\n    \"nodeConfigs\": [\n        {\n            \"nodeId\": {{node1_id}},\n            \"nodeIp\": \"{{node1_ip}}\",\n            \"nodeIpmiIp\": \"{{node1_ipmi}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n           \"nodeId\": {{node2_id}},\n            \"nodeIp\": \"{{node2_ip}}\",\n            \"nodeIpmiIp\": \"{{node2_ipmi}}\",\n            \"useAsComputeNode\": true\n        },\n                {\n               \"nodeId\": {{node3_id}},\n            \"nodeIp\": \"{{node3_ip}}\",\n            \"nodeIpmiIp\": \"{{node3_ipmi}}\",\n            \"useAsComputeNode\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/clusters/physicalEdition"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674682027"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:27:08 GMT"},{"key":"Content-Length","value":"190"}],"cookie":[],"responseTime":null,"body":"{\n    \"clusterId\": {{cluster_id}},\n    \"incarnationId\": {{incarnation_id}},\n    \"clusterName\": \"Cohesity cluster\",\n    \"clusterSwVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"message\": \"Cluster aggregation for Cohesity cluster in progress.\\n\"\n}"}],"_postman_id":"f357cc2f-451d-499e-b1a7-a93511fb9779"},{"name":"Generate Access Token for Admin","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","var expectedHttpStatus = 201;","var maxNumberOfTries = 60","var sleepBetweenTries = 60000;","var response = pm.response.json()","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","","if ((response[\"tokenType\"] != \"Bearer\") && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Cluster create is not complete, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if ((pm.response.code == expectedHttpStatus) && (response[\"tokenType\"] == \"Bearer\")) {","     console.log(\"Cluster created, Obtained the access token\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code(201), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","}","","var response = pm.response.json()","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(null);","});","","//schema validation","const response_schema = {","    \"type\": \"object\",","    \"required\": [","        \"accessToken\",","        \"tokenType\",","        \"privileges\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"accessToken\": {","            \"type\": \"string\"","        },","        \"tokenType\": {","            \"type\": \"string\"","        },","        \"privileges\": {","            \"type\": \"array\",","            \"additionalItems\": true,","            \"items\": {","                \"type\": \"string\"","            },","            \"uniqueItems\": true","        }","    }","};","","pm.test(\"Validate accessTokens Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(response_schema)","});","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"fcea62f4-8e6b-40e6-8245-1dbd275332ae"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2e676e55-1b00-4c43-b72c-71cfeb6fe31d"}}],"id":"8045c965-710c-493d-be40-58881277ecde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\": \"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the admin to the Cohesity cluster resources. The username and password will be the same value you configured before destroying the cluster</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"e54d2fce-f89b-40f5-bb58-ec3f2b398596","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_dmin_username}}\",\n    \"password\": \"{{cluster_admin_password}}\",\n    \"domain\": \"LOCAL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674682833"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:40:32 GMT"},{"key":"Content-Length","value":"1125"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{cluster_access_token}}\",\n    \"tokenType\": \"Bearer\",\n    \"privileges\": [\n\n        \"STORAGE_DOMAIN_MODIFY\",\n        \"VLAN_VIEW\"\n    ]\n}"}],"_postman_id":"8045c965-710c-493d-be40-58881277ecde"},{"name":"Get Cohesity Cluster ID","event":[{"listen":"test","script":{"exec":["console.log(\"Test for Get Cluster API\")","var response = pm.response.json()","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Get Cluster response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var expectedHttpStatus = 200;","var maxNumberOfTries = 60;","var sleepBetweenTries = 20000;","var response = pm.response.json()","","if (!pm.environment.get(\"collection_tries\")) {","    pm.environment.set(\"collection_tries\", 1);","}","var currentOperation=\"\"","currentOperation=response[\"currentOperation\"]","console.log(pm.response.code)","if ((currentOperation != \"kNone\") && (pm.environment.get(\"collection_tries\") < maxNumberOfTries)) {","     var tries = parseInt(pm.environment.get(\"collection_tries\"));","     pm.environment.set(\"collection_tries\", tries + 1);","     setTimeout(function() {}, sleepBetweenTries);","     console.log(\"Cluster is yet to be in RUNNING state, Sleep and retry count: \"+pm.environment.get(\"collection_tries\"))","     postman.setNextRequest(request.name);"," } else if (pm.response.code == expectedHttpStatus && currentOperation == \"kNone\") {","     console.log(\"Cluster is in RUNNING state, after upgrade\")","     pm.environment.unset(\"collection_tries\");","     pm.test(\"Obtained the expected code (200), Status code is \" + expectedHttpStatus, function () {","          pm.response.to.have.status(expectedHttpStatus);","     });","}","","console.log(\"Cluster id is: \"+response.id)","pm.environment.set(\"cluster_1-id\",response.id)","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"5a5b38e4-d17b-44de-a17e-44c96252b691"}}],"id":"4ecd44ac-0db9-4945-9930-05b669ee53ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"fetchStats","value":"true","type":"text"},{"key":"fetchTimeSeriesSchema","value":"true","type":"text"},{"key":"includeMinimumNodesInfo","value":"true","type":"text"}]},"url":"https{{cluster-vip}}/irisservices/api/v1/public/cluster","description":"<p>Returns information such as cluster ID, number of nodes, created time, software version, and hardware model of the Cohesity Cluster.</p>\n","urlObject":{"path":["irisservices","api","v1","public","cluster"],"host":["https{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"82d25605-5090-48cd-8ba2-1203048a5618","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{vault:bearer-token}}"},{"key":"Accept","value":"application/json"}],"url":"https://{{{cluster-vip}}/irisservices/api/v1/public/cluster"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1674682864"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 25 Jan 2023 21:41:03 GMT"},{"key":"Content-Length","value":"1007"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": {{cluster_id}},\n    \"incarnationId\": {{incarnation_id}},\n    \"createdTimeMsecs\": 1674582711960,\n    \"currentTimeMsecs\": 1674682863000,\n    \"nodeCount\": 3,\n    \"clusterSoftwareVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"targetSoftwareVersion\": \"6.6.0d_ent_release-20230118_735c1ab3\",\n    \"currentOperation\": \"kNone\",\n    \"hardwareInfo\": {\n        \"hardwareModels\": [\n            \"C5026\"\n        ],\n        \"hardwareVendors\": [\n            \"Advantech\"\n        ]\n    },\n    \"encryptionEnabled\": false,\n    \"eulaConfig\": {\n        \"signedTime\": 1674597279,\n        \"signedByUser\": \"admin\",\n        \"signedVersion\": 4\n    },\n    \"licenseState\": {\n        \"state\": \"kSkipped\",\n        \"failedAttempts\": 1\n    },\n    \"clusterType\": \"kPhysical\",\n    \"supportedConfig\": {\n        \"minNodesAllowed\": 1\n    },\n    \"availableMetadataSpace\": 4416882962601,\n    \"usedMetadataSpacePct\": 1.4585967068971621,\n    \"proxyVMSubnet\": \"{{subnet_IP}}\",\n    \"name\": \"Cohesity cluster\",\n    \"dnsServerIps\": [\n        \"{{dns_IP}}\"\n    ],\n    \"domainNames\": [\n        \"{{domain_name}}\"\n    ],\n    \"reverseTunnelEnabled\": false,\n    \"reverseTunnelEndTimeMsecs\": 0,\n    \"enableUpgradePkgPolling\": false,\n    \"enableActiveMonitoring\": true,\n    \"clusterAuditLogConfig\": {\n        \"enabled\": true,\n        \"retentionPeriodDays\": 90\n    },\n    \"filerAuditLogConfig\": {\n        \"enabled\": false,\n        \"retentionPeriodDays\": 90\n    },\n    \"tieringAuditLogConfig\": {\n        \"enabled\": false,\n        \"retentionPeriodDays\": 90\n    },\n    \"isDocumentationLocal\": false,\n    \"languageLocale\": \"en-us\",\n    \"timezone\": \"UTC\",\n    \"smbAdDisabled\": false,\n    \"smbMultichannelEnabled\": true,\n    \"turboMode\": false,\n    \"ntpSettings\": {\n        \"ntpServersInternal\": false,\n        \"ntpAuthenticationEnabled\": false\n    },\n    \"multiTenancyEnabled\": false,\n    \"tenantViewboxSharingEnabled\": false,\n    \"metadataFaultToleranceFactor\": 0,\n    \"faultToleranceLevel\": \"kNode\",\n    \"appsSubnet\": {\n        \"id\": 0,\n        \"ip\": \"{{subnet_ip}}\",\n        \"netmaskBits\": 16,\n        \"description\": \"Default apps subnet\",\n        \"component\": \"athena\",\n        \"nfsAccess\": \"kReadWrite\",\n        \"smbAccess\": \"kReadWrite\",\n        \"s3Access\": \"kReadWrite\"\n    },\n    \"googleAnalyticsEnabled\": true,\n    \"pcieSsdTierRebalanceDelaySecs\": 900,\n    \"kmsServerId\": 0,\n    \"nodeIps\": \"{{node1_ip}},{{node2_ip}},{{node3_ip}}\",\n    \"ipPreference\": 1,\n    \"chassisCount\": 1,\n    \"assignedRacksCount\": 0,\n    \"TenantId\": null,\n    \"LocalTenantId\": null,\n    \"RegionId\": null,\n    \"isClusterMfaEnabled\": false,\n    \"diskCountByTier\": [\n        {\n            \"storageTier\": \"PCIeSSD\",\n            \"diskCount\": 3\n        },\n        {\n            \"storageTier\": \"SATA-HDD\",\n            \"diskCount\": 9\n        }\n    ]\n}"}],"_postman_id":"4ecd44ac-0db9-4945-9930-05b669ee53ea"}],"id":"c1452387-29db-498b-b740-a051db6bf9cb","description":"<p>You can re-create a Cohesity cluster by performing the following steps using the API operations:</p>\n<ol>\n<li>Generate the access token for the admin to access the Cohesity cluster resources.</li>\n<li>Create a new Cohesity cluster using the node IDs of the upgraded nodes.</li>\n<li>Generate the access token for the admin to access the newly created Cohesity cluster resources.</li>\n<li>Get the Cohesity cluster ID.</li>\n</ol>\n","_postman_id":"c1452387-29db-498b-b740-a051db6bf9cb"}],"id":"02a9285c-2267-4f8a-a425-fe0546ad21ab","description":"<p>The high-level steps involved in the repave and pave of a Cohesity cluster are as follows:</p>\n<ul>\n<li>Discover Cohesity nodes.</li>\n<li>Create a Cohesity cluster.</li>\n<li>Destroy the Cohesity cluster without deleting the user data.</li>\n<li>Upgrade the nodes of the Cohesity cluster.</li>\n<li>Re-create the Cohesity cluster.</li>\n</ul>\n","_postman_id":"02a9285c-2267-4f8a-a425-fe0546ad21ab"},{"name":"Physical Block-based Protection Workflows","item":[{"name":"Linux Physical Server Block-Based Protection Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"0fd4c58e-873e-49f9-8f77-dd2f1f0b3edd"}}],"id":"95592494-505b-49da-b14a-51916a3604bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"5ca70e13-b5b8-4758-a063-6b278eb4c8b7","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n    \"Domain\": \"LOCAL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675191792"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:03:11 GMT"},{"key":"Content-Length","value":"1127"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"95592494-505b-49da-b14a-51916a3604bc"},{"name":"Register Linux Physical Server","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","//Add not null","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema={","    \"type\": \"object\",","    \"required\": [","        \"id\",","        \"name\",","        \"environment\",","        \"physicalProtectionSource\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\"","        },","        \"name\": {","            \"type\": \"string\"","        },","        \"environment\": {","            \"type\": \"string\"","        },","        \"physicalProtectionSource\": {","            \"type\": \"object\",","            \"required\": [","                \"type\",","                \"name\",","                \"osName\",","                \"id\",","                \"hostType\",","                \"hostName\"","            ],","            \"properties\": {","                \"type\": {","                    \"type\": \"string\"","                },","                \"name\": {","                    \"type\": \"string\"","                },","                \"osName\": {","                    \"type\": \"string\"","                },","                \"id\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"id\",","                        \"clusterId\",","                        \"clusterIncarnationId\"","                    ],","                    \"properties\": {","                        \"id\": {","                            \"type\": \"integer\"","                        },","                        \"clusterId\": {","                            \"type\": \"integer\"","                        },","                        \"clusterIncarnationId\": {","                            \"type\": \"integer\"","                        }","                    }","                },","                \"hostType\": {","                    \"type\": \"string\"","                },","                \"hostName\": {","                    \"type\": \"string\"","                }","            }","        }","    }","};","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"17cb24ea-dc04-4e10-ae6e-5ff8f09b61a3"}}],"id":"305b38ca-8edc-4cf2-9c68-dde3c84009ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{Linux_Server_IP}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kLinux\"\n}"},"url":"https://{{{cluster_vip}}/irisservices/api/v1/public/protectionSources/register","description":"<p>Registers the Linux physical server with the Cohesity cluster.</p>\n<p>Ensure to provide the IP address (<code>Linux_Server_IP</code></p>\n<p>) of the Windows physical server in the request body of the API.</p>\n<p>The source ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"61cfa58b-640f-479c-9cc4-439853dd5e86","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{File_Client_Linux1}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kLinux\"\n}"},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/public/protectionSources/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192684"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:18:04 GMT"},{"key":"Content-Length","value":"219"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25263,\n    \"name\": \"{{Linux_Server_IP}}\",\n    \"environment\": \"kPhysical\",\n    \"physicalProtectionSource\": {\n        \"type\": \"kHost\",\n        \"name\": \"{{Linux_Server_IP}}\",\n        \"osName\": \"CentOS Linux release 8.5.2111\",\n        \"id\": {\n            \"id\": 25262,\n            \"clusterId\": {{cluster_id}},\n            \"clusterIncarnationId\": {{cluster_incarnationId}},\n        },\n        \"hostType\": \"kLinux\",\n        \"hostName\": \"CentOS8-001\"\n    }\n}"}],"_postman_id":"305b38ca-8edc-4cf2-9c68-dde3c84009ce"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"cascadedTargetsConfig\",","        \"retryOptions\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"incremental\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"incremental\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        }","                    }","                }","            }","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"retryOptions\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"retries\",","                \"retryIntervalMins\"","            ],","            \"properties\": {","                \"retries\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"retryIntervalMins\": {","                    \"type\": \"integer\",","                    \"default\": 0","                }","            }","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        }","    }","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"7bee5c47-8533-4ec5-ae45-5e26c2b453e0"}}],"id":"d8abaecb-3db2-4ec6-a8fc-019a4d5c3455","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{Linux_Policy_Name}}\",\n  \"description\": \"Policy for File, Folder Testing\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>StartFragment</p>\n<p>The policy ID from the response is required to create the Protection Group for protecting your physical server.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"8bd4a319-dc2b-4d9d-bbeb-572e8c57ceaa","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"LinuxFileFolderPolicy\",\n  \"description\": \"Policy for File, Folder\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192995"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:23:14 GMT"},{"key":"Content-Length","value":"287"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"LinuxFileFolderPolicy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for File, Folder\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:412243\"\n}"}],"_postman_id":"d8abaecb-3db2-4ec6-a8fc-019a4d5c3455"},{"name":"Create Storage Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Linux_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"335b9532-1472-4e1a-8946-22fca662b009"}}],"id":"2ccb1fbd-2c15-44fa-a7c7-1eeb00eb6447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Storage_Domain\",\r\n  \"clusterPartitionId\": 3,\r\n  \"storagePolicy\": {\r\n    \"deduplicationEnabled\": true,\r\n    \"inlineDeduplicate\": true,\r\n    \"compressionPolicy\": \"kCompressionLow\",\r\n    \"inlineCompress\": true,\r\n    \"encryptionPolicy\": \"kEncryptionNone\",\r\n    \"erasureCodingInfo\": {\r\n      \"erasureCodingEnabled\": false\r\n    },\r\n    \"numFailuresTolerated\": 1,\r\n    \"numNodeFailuresTolerated\": 1\r\n  },\r\n  \"physicalQuota\": {},\r\n  \"defaultViewQuotaPolicy\": {},\r\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\r\n  \"nisDomainNameVec\": [\r\n    null\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https:/{{cluster_vip}}/irisservices/api/v1/public/viewBoxes","description":"<p>Creates a Storage Domain on the Cohesity cluster.</p>\n<p>StartFragment</p>\n<p>The Storage Domain ID from the response is required to create the Protection Group for protecting your physical server.</p>\n<p>EndFragment</p>\n","urlObject":{"port":"","path":["{{cluster_vip}}","irisservices","api","v1","public","viewBoxes"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"ee4de191-3190-479f-9747-0ed4934665a9","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster_1-ip}}/irisservices/api/v1/public/viewBoxes","protocol":"https","host":["{{cluster_1-ip}}"],"path":["irisservices","api","v1","public","viewBoxes"],"query":[{"key":"names","value":"DefaultStorageDomain","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193189"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:26:28 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6246697,\n  \"name\": \"Storage_Domain\",\n  \"clusterPartitionId\": 3,\n  \"clientSubnetWhiteList\": [],\n  \"storagePolicy\": {\n    \"deduplicationEnabled\": true,\n    \"inlineDeduplicate\": true,\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"inlineCompress\": true,\n    \"deduplicateCompressDelaySecs\": 0,\n    \"encryptionPolicy\": \"kEncryptionNone\",\n    \"downTierDelaySecsList\": [\n      0,\n      0,\n      5184000,\n      0\n    ],\n    \"numFailuresTolerated\": 0,\n    \"numNodeFailuresTolerated\": 0\n  },\n  \"physicalQuota\": {},\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\n  \"defaultViewQuotaPolicy\": {},\n  \"s3BucketsAllowed\": false,\n  \"nisDomainNameVec\": [\n    \"\"\n  ],\n  \"clusterPartitionName\": \"DefaultPartition\",\n  \"removalState\": \"kDontRemove\"\n}"}],"_postman_id":"2ccb1fbd-2c15-44fa-a7c7-1eeb00eb6447"},{"name":"Create Block-based Protection Group","event":[{"listen":"test","script":{"exec":["jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"name\",","        \"policyId\",","        \"priority\",","        \"storageDomainId\",","        \"description\",","        \"startTime\",","        \"alertPolicy\",","        \"sla\",","        \"qosPolicy\",","        \"abortInBlackouts\",","        \"isActive\",","        \"isPaused\",","        \"environment\",","        \"permissions\",","        \"missingEntities\",","        \"physicalParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"policyId\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"priority\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"storageDomainId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"startTime\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"hour\",","                \"minute\",","                \"timeZone\"","            ],","            \"properties\": {","                \"hour\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"minute\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"timeZone\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        },","        \"alertPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"backupRunStatus\",","                \"alertTargets\"","            ],","            \"properties\": {","                \"backupRunStatus\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                },","                \"alertTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {}","                }","            }","        },","        \"sla\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"backupRunType\",","                    \"slaMinutes\"","                ],","                \"properties\": {","                    \"backupRunType\": {","                        \"type\": \"string\"","                    },","                    \"slaMinutes\": {","                        \"type\": \"integer\"","                    }","                }","            }","        },","        \"qosPolicy\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"abortInBlackouts\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isActive\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isPaused\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"permissions\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"missingEntities\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"physicalParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"protectionType\",","                \"fileProtectionTypeParams\"","            ],","            \"properties\": {","                \"protectionType\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"fileProtectionTypeParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"objects\",","                        \"indexingPolicy\",","                        \"performSourceSideDeduplication\",","                        \"dedupExclusionSourceIds\",","                        \"globalExcludePaths\",","                        \"ignorableErrors\"","                    ],","                    \"properties\": {","                        \"objects\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"id\",","                                    \"name\",","                                    \"filePaths\",","                                    \"usesPathLevelSkipNestedVolumeSetting\",","                                    \"nestedVolumeTypesToSkip\",","                                    \"followNasSymlinkTarget\"","                                ],","                                \"properties\": {","                                    \"id\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    },","                                    \"name\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    },","                                    \"filePaths\": {","                                        \"type\": \"array\",","                                        \"default\": [],","                                        \"items\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"includedPath\",","                                                \"excludedPaths\",","                                                \"skipNestedVolumes\"","                                            ],","                                            \"properties\": {","                                                \"includedPath\": {","                                                    \"type\": \"string\",","                                                    \"default\": \"\"","                                                },","                                                \"excludedPaths\": {","                                                    \"type\": \"null\",","                                                    \"default\": null","                                                },","                                                \"skipNestedVolumes\": {","                                                    \"type\": \"boolean\",","                                                    \"default\": false","                                                }","                                            }","                                        }","                                    },","                                    \"usesPathLevelSkipNestedVolumeSetting\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    },","                                    \"nestedVolumeTypesToSkip\": {","                                        \"type\": \"null\",","                                        \"default\": null","                                    },","                                    \"followNasSymlinkTarget\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        },","                        \"indexingPolicy\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"enableIndexing\",","                                \"includePaths\",","                                \"excludePaths\"","                            ],","                            \"properties\": {","                                \"enableIndexing\": {","                                    \"type\": \"boolean\",","                                    \"default\": false","                                },","                                \"includePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                },","                                \"excludePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\"","                                    }","                                }","                            }","                        },","                        \"performSourceSideDeduplication\": {","                            \"type\": \"boolean\",","                            \"default\": false","                        },","                        \"dedupExclusionSourceIds\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"globalExcludePaths\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"ignorableErrors\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {}","                        }","                    }","                }","            }","        }","    }","}","","","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"Linux_Protection_Job_Id\", jsonData.id);","",""],"type":"text/javascript","id":"85f5f7c0-4111-4d5a-af8f-7f6f9378c542"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Linux_Protection_Job_Name\", \"Linux_Protection_Job\");"],"type":"text/javascript","id":"cf643058-fc0c-4727-bfc2-9034b7671c3d"}}],"id":"913d56fe-a077-4d1d-9df7-e87ef2e61394","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"policyId\":\"{{policyId}}\",\n   \"startTime\":{\n      \"hour\":14,\n      \"minute\":30,\n      \"timeZone\":\"Asia/Calcutta\"\n   },\n   \"priority\":\"kMedium\",\n   \"sla\":[\n      {\n         \"backupRunType\":\"kFull\",\n         \"slaMinutes\":120\n      },\n      {\n         \"backupRunType\":\"kIncremental\",\n         \"slaMinutes\":60\n      }\n   ],\n   \"qosPolicy\":\"kBackupHDD\",\n   \"abortInBlackouts\":false,\n   \"storageDomainId\":{{storageDomainId}},\n   \"name\":\"{{Protection_Group_name}}\",\n   \"environment\":\"kPhysical\",\n   \"isPaused\":false,\n   \"description\":\"\",\n   \"alertPolicy\":{\n      \"backupRunStatus\":[\n         \"kFailure\"\n      ],\n      \"alertTargets\":[\n         \n      ]\n   },\n   \"physicalParams\":{\n      \"protectionType\":\"kVolume\",\n      \"volumeProtectionTypeParams\":{\n         \"objects\":[\n            {\n               \"id\":7893\n            }\n         ],\n         \"indexingPolicy\":{\n            \"enableIndexing\":true,\n            \"includePaths\":[\n               \"/\"\n            ],\n            \"excludePaths\":[\n               \"/$Recycle.Bin\",\n               \"/Windows\",\n               \"/Program Files\",\n               \"/Program Files (x86)\",\n               \"/ProgramData\",\n               \"/System Volume Information\",\n               \"/Users/*/AppData\",\n               \"/Recovery\",\n               \"/var\",\n               \"/usr\",\n               \"/sys\",\n               \"/proc\",\n               \"/lib\",\n               \"/grub\",\n               \"/grub2\",\n               \"/opt\",\n               \"/splunk\"\n            ]\n         },\n         \"excludedVssWriters\":[\n            \n         ],\n         \"quiesce\":false,\n         \"continueOnQuiesceFailure\":false,\n         \"performSourceSideDeduplication\":false,\n         \"incrementalBackupAfterRestart\":true\n      }\n   }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a block-based Protection Group for protecting your Linux physical server.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the physical server source to be protected are required in the request body for running this API.</li>\n<li>For block-based Protection Group, ensure the <code>protectionType</code> value in the request body is <strong><code>KVolume</code></strong>.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the physical server.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"cc73e8ba-800e-4e19-b77d-bfec484544b9","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"storageDomainId\": {{Linux_Viewbox_Id_DSD}},\n    \"policyId\": \"{{Linux_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"name\": \"{{Linux_Protection_Job_Name}}\",\n    \"environment\": \"kPhysical\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{Linux_Source_Id}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/\",\n                            \"excludedPaths\": []\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": [],\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"globalExcludePaths\": [],\n            \"ignorableErrors\": []\n        }\n    }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193194"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:26:33 GMT"},{"key":"Content-Length","value":"705"}],"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"193407732345526:1677584326003:1620\",\n\t\"name\": \"{{Protection_Group_name}}\",\n\t\"policyId\": \"193407732345526:1677584326003:115\",\n\t\"priority\": \"kMedium\",\n\t\"storageDomainId\": 276246697,\n\t\"description\": \"\",\n\t\"startTime\": {\n\t\t\"hour\": 14,\n\t\t\"minute\": 30,\n\t\t\"timeZone\": \"Asia/Calcutta\"\n\t},\n\t\"alertPolicy\": {\n\t\t\"backupRunStatus\": [\"kFailure\"],\n\t\t\"alertTargets\": []\n\t},\n\t\"sla\": [{\n\t\t\"backupRunType\": \"kIncremental\",\n\t\t\"slaMinutes\": 60\n\t}, {\n\t\t\"backupRunType\": \"kFull\",\n\t\t\"slaMinutes\": 120\n\t}],\n\t\"qosPolicy\": \"kBackupHDD\",\n\t\"abortInBlackouts\": false,\n\t\"isActive\": true,\n\t\"isPaused\": false,\n\t\"environment\": \"kPhysical\",\n\t\"permissions\": null,\n\t\"missingEntities\": null,\n\t\"physicalParams\": {\n\t\t\"protectionType\": \"kVolume\",\n\t\t\"volumeProtectionTypeParams\": {\n\t\t\t\"objects\": [{\n\t\t\t\t\"id\": 7893,\n\t\t\t\t\"name\": \"{{Object_IP}}\",\n\t\t\t\t\"volumeGuids\": null\n\t\t\t}],\n\t\t\t\"indexingPolicy\": {\n\t\t\t\t\"enableIndexing\": true,\n\t\t\t\t\"includePaths\": [\"/\"],\n\t\t\t\t\"excludePaths\": [\"/$Recycle.Bin\", \"/Windows\", \"/Program Files\", \"/Program Files (x86)\", \"/ProgramData\", \"/System Volume Information\", \"/Users/*/AppData\", \"/Recovery\", \"/var\", \"/usr\", \"/sys\", \"/proc\", \"/lib\", \"/grub\", \"/grub2\", \"/opt\", \"/splunk\"]\n\t\t\t},\n\t\t\t\"performSourceSideDeduplication\": false,\n\t\t\t\"quiesce\": false,\n\t\t\t\"continueOnQuiesceFailure\": false,\n\t\t\t\"incrementalBackupAfterRestart\": true,\n\t\t\t\"dedupExclusionSourceIds\": null,\n\t\t\t\"excludedVssWriters\": null\n\t\t}\n\t}\n}"}],"_postman_id":"913d56fe-a077-4d1d-9df7-e87ef2e61394"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(60000);","    pm.response.to.have.status(202);","","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"8b7e3cdb-0c9e-42c4-98e7-5b5d24cf22e6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ad360755-b788-48d5-9b4f-ad55a92478f7"}}],"id":"cd1e36d9-c246-4d33-9f40-45a7f2a58816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting your physical server.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Block-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ae619ec0-fdf4-4ad5-a962-2cd18d0838a8","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Linux_Protection_Job_Id}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193566"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:32:45 GMT"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"193407732345526:1677584326003:1620\"\n}"}],"_postman_id":"cd1e36d9-c246-4d33-9f40-45a7f2a58816"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function () { }, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","var resp = pm.response.json();","var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if ((status == \"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","    setTimeout(function () { }, 10000);","    postman.setNextRequest(request.name)","}","else {","    // Sleep for 5 seconds.","    setTimeout(function () { }, 5000);","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"runs\",","        \"totalRuns\"","    ],","    \"properties\": {","        \"runs\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"protectionGroupInstanceId\",","                    \"protectionGroupId\",","                    \"isReplicationRun\",","                    \"protectionGroupName\",","                    \"objects\",","                    \"localBackupInfo\",","                    \"permissions\",","                    \"hasLocalSnapshot\",","                    \"environment\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupInstanceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"isReplicationRun\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objects\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"localBackupInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"runType\",","                            \"startTimeUsecs\",","                            \"status\",","                            \"messages\",","                            \"successfulObjectsCount\",","                            \"failedObjectsCount\",","                            \"cancelledObjectsCount\",","                            \"successfulAppObjectsCount\",","                            \"failedAppObjectsCount\",","                            \"cancelledAppObjectsCount\",","                            \"localSnapshotStats\",","                            \"indexingTaskId\",","                            \"localTaskId\"","                        ],","                        \"properties\": {","                            \"runType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"startTimeUsecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"status\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"messages\": {","                                \"type\": \"null\",","                                \"default\": null","                            },","                            \"successfulObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"successfulAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"localSnapshotStats\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"logicalSizeBytes\"","                                ],","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    }","                                }","                            },","                            \"indexingTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"progressTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"localTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    },","                    \"permissions\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {}","                    },","                    \"hasLocalSnapshot\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                }","            }","        },","        \"totalRuns\": {","            \"type\": \"integer\",","            \"default\": 0","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"8a16d57a-cf17-48c4-8ff8-e9e7003f805a"}}],"id":"cd0a20bb-b0a6-4b0b-98e4-e8597c4e1392","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Block-based Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is success, you can recover the physical server volume.</p>\n","urlObject":{"protocol":"https","path":["data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}v2"],"query":[],"variable":[]}},"response":[{"id":"f26842fb-943e-421d-8290-7bf0e778c231","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Linux_Protection_Job_Id}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193597"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:33:16 GMT"},{"key":"Content-Length","value":"420"}],"cookie":[],"responseTime":null,"body":" {\n   \"runs\":[\n      {\n         \"id\":\"651:1677716405248287\",\n         \"protectionGroupInstanceId\":1076,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"startTimeUsecs\":1677716405248287,\n            \"status\":\"Running\",\n            \"messages\":null,\n            \"successfulObjectsCount\":0,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016\n            },\n            \"indexingTaskId\":\"indexing_651_1076\",\n            \"progressTaskId\":\"backup_1076_1\",\n            \"localTaskId\":\"1788784541625014:1677666650254:3009780\"\n         },\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      },\n      {\n         \"id\":\"651:1677694178261207\",\n         \"protectionGroupInstanceId\":694,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"isSlaViolated\":false,\n            \"startTimeUsecs\":1677694178261207,\n            \"endTimeUsecs\":1677694567303903,\n            \"status\":\"Succeeded\",\n            \"messages\":null,\n            \"successfulObjectsCount\":1,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016,\n               \"bytesWritten\":11712293,\n               \"bytesRead\":73517760512\n            },\n            \"indexingTaskId\":\"indexing_651_694\",\n            \"localTaskId\":\"1788784541625014:1677666650254:1968690\"\n         },\n         \"onLegalHold\":false,\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      },\n      {\n         \"id\":\"651:1677693791197072\",\n         \"protectionGroupInstanceId\":690,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"isSlaViolated\":false,\n            \"startTimeUsecs\":1677693791197072,\n            \"endTimeUsecs\":1677694177261174,\n            \"status\":\"Succeeded\",\n            \"messages\":null,\n            \"successfulObjectsCount\":1,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016,\n               \"bytesWritten\":9461080,\n               \"bytesRead\":73517760512\n            },\n            \"indexingTaskId\":\"indexing_651_690\",\n            \"localTaskId\":\"1788784541625014:1677666650254:1954289\"\n         },\n         \"onLegalHold\":false,\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      },\n      {\n         \"id\":\"651:1677693403130713\",\n         \"protectionGroupInstanceId\":683,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"isSlaViolated\":false,\n            \"startTimeUsecs\":1677693403130713,\n            \"endTimeUsecs\":1677693789196973,\n            \"status\":\"Succeeded\",\n            \"messages\":null,\n            \"successfulObjectsCount\":1,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016,\n               \"bytesWritten\":16389250,\n               \"bytesRead\":73517760512\n            },\n            \"indexingTaskId\":\"indexing_651_683\",\n            \"localTaskId\":\"1788784541625014:1677666650254:1938791\"\n         },\n         \"onLegalHold\":false,\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      },\n      {\n         \"id\":\"651:1677693010059266\",\n         \"protectionGroupInstanceId\":681,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"isSlaViolated\":false,\n            \"startTimeUsecs\":1677693010059266,\n            \"endTimeUsecs\":1677693402130566,\n            \"status\":\"Succeeded\",\n            \"messages\":null,\n            \"successfulObjectsCount\":1,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016,\n               \"bytesWritten\":27553244,\n               \"bytesRead\":73517760512\n            },\n            \"indexingTaskId\":\"indexing_651_681\",\n            \"localTaskId\":\"1788784541625014:1677666650254:1924255\"\n         },\n         \"onLegalHold\":false,\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      },\n      {\n         \"id\":\"651:1677692622997338\",\n         \"protectionGroupInstanceId\":674,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"isSlaViolated\":false,\n            \"startTimeUsecs\":1677692622997338,\n            \"endTimeUsecs\":1677693009059196,\n            \"status\":\"Succeeded\",\n            \"messages\":null,\n            \"successfulObjectsCount\":1,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016,\n               \"bytesWritten\":83578063,\n               \"bytesRead\":73517760512\n            },\n            \"indexingTaskId\":\"indexing_651_674\",\n            \"localTaskId\":\"1788784541625014:1677666650254:1902679\"\n         },\n         \"onLegalHold\":false,\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      },\n      {\n         \"id\":\"651:1677690703721344\",\n         \"protectionGroupInstanceId\":652,\n         \"protectionGroupId\":\"1788784541625014:1677666650254:651\",\n         \"isReplicationRun\":false,\n         \"protectionGroupName\":\"Linux_block_based_PG\",\n         \"objects\":null,\n         \"localBackupInfo\":{\n            \"runType\":\"kRegular\",\n            \"isSlaViolated\":false,\n            \"startTimeUsecs\":1677690703721344,\n            \"endTimeUsecs\":1677692232938769,\n            \"status\":\"Succeeded\",\n            \"messages\":null,\n            \"successfulObjectsCount\":1,\n            \"failedObjectsCount\":0,\n            \"cancelledObjectsCount\":0,\n            \"successfulAppObjectsCount\":0,\n            \"failedAppObjectsCount\":0,\n            \"cancelledAppObjectsCount\":0,\n            \"localSnapshotStats\":{\n               \"logicalSizeBytes\":802914671702016,\n               \"bytesWritten\":21360024708,\n               \"bytesRead\":108980600832\n            },\n            \"indexingTaskId\":\"indexing_651_652\",\n            \"localTaskId\":\"1788784541625014:1677666650254:1582442\"\n         },\n         \"onLegalHold\":false,\n         \"permissions\":[\n            \n         ],\n         \"hasLocalSnapshot\":true,\n         \"environment\":\"kPhysical\"\n      }\n   ],\n   \"totalRuns\":7\n}\n"}],"_postman_id":"cd0a20bb-b0a6-4b0b-98e4-e8597c4e1392"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","var jsonData = pm.response.json();","","pm.test(\"Validating response\", function () {","    for (var i = 0; i < jsonData.snapshots.length; i++) {","        if (jsonData.snapshots[i].protectionGroupName === pm.environment.get(\"Linux_Protection_Job_Name\")) {","            pm.environment.set(\"Linux_File_Restore_File\", jsonData.snapshots[i].indexedObjectName);","            pm.environment.set(\"Linux_File_Snapshot\", jsonData.snapshots[i].objectSnapshotid);","","            //break;","        }","    }","});","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"snapshots\"","    ],","    \"properties\": {","        \"snapshots\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"indexedObjectName\",","                    \"objectSnapshotid\",","                    \"snapshotTimestampUsecs\",","                    \"runType\",","                    \"protectionGroupId\",","                    \"protectionGroupName\",","                    \"storageDomainId\",","                    \"attempts\",","                    \"sizeBytes\",","                    \"lastModifiedTimeUsecs\"","                ],","                \"properties\": {","                    \"indexedObjectName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objectSnapshotid\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"snapshotTimestampUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"runType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"storageDomainId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"attempts\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sizeBytes\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastModifiedTimeUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"c188519d-8aaa-4b8f-a4b2-a9516545d7f9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"93fa7351-1806-4823-b813-5e31b7163c46"}}],"id":"7956e0c1-6775-465e-8b21-37ac8fab3590","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects","description":"<p>Returns information on the latest snapshots of the objects that are being protected on the Cohesity cluster.</p>\n<p>The snapshot ID of a volume from the response is required for recovering that volume.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"7ac8095f-d9f9-4c43-a5ff-c129dac0b9c1","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects","protocol":"https","host":["{{cluster_vip}}"],"path":["v2","data-protect","search","protected-objects"],"query":[{"key":"indexedObjectName","value":"/etc/anaconda/product.d/centos.conf","disabled":true},{"key":"includeIndexedSnapshotsOnly","value":"true","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199388"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:09:47 GMT"},{"key":"Content-Length","value":"456"}],"cookie":[],"responseTime":null,"body":"{\n    \"objects\": [\n        \n        {\n            \"id\": 7891,\n            \"name\": \"physical server\",\n            \"environment\": \"kPhysical\",\n            \"objectType\": \"kHost\",\n            \"protectionType\": \"kVolume\",\n            \"osType\": \"kLinux\",\n            \"protectionStats\": null,\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"1788784541625014:1677666650254:651\",\n                    \"protectionGroupName\": \"Linux_blockbased\",\n                    \"runInstanceId\": 1083,\n                    \"storageDomainId\": 27,\n                    \"protectionRunId\": \"651:1677716794302670\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1677716794302670,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snapshotId}}\",\n                        \"logicalSizeBytes\": 73517760512\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 7890,\n                \"name\": \"Physical Servers\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kGroup\",\n                \"protectionType\": \"kVolume\"\n            }\n        },\n        {\n            \"id\": 112,\n            \"name\": \"Auto_Ubuntu_patch\",\n            \"sourceId\": 1,\n            \"environment\": \"kVMware\",\n            \"objectType\": \"kVirtualMachine\",\n            \"uuid\": \"500d8512-dcdc-d2ee-2a4b-7a3a01dec885\",\n            \"osType\": \"kLinux\",\n            \"protectionStats\": null,\n            \"vmwareParams\": {\n                \"isTemplate\": false\n            },\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": [\n                        {\n                            \"snapshotId\": \"{{snapshotId}}\",\n                            \"logicalSizeBytes\": 17179869184,\n                            \"targetId\": 12966,\n                            \"archivalTaskId\": \"1788784541625014:1677666650254:4276449\",\n                            \"targetName\": \"patch_auto_aws_s3_standard_target_1\",\n                            \"targetType\": \"Cloud\"\n                        },\n                        {\n                            \"snapshotId\": \"{{snapshotId}}\",\n                            \"logicalSizeBytes\": 17179869184,\n                            \"targetId\": 12990,\n                            \"archivalTaskId\": \"1788784541625014:1677666650254:4276451\",\n                            \"targetName\": \"patch_auto_aws_s3_standard_target_2\",\n                            \"targetType\": \"Cloud\"\n                        }\n                    ],\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"1788784541625014:1677666650254:15\",\n                    \"protectionGroupName\": \"patch_auto_allexternal_vault_job_1\",\n                    \"runInstanceId\": 2070,\n                    \"storageDomainId\": 12959,\n                    \"protectionRunId\": \"15:1677795541179729\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1677795541179729,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snapshotId}}\",\n                        \"logicalSizeBytes\": 17179869184\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 1,\n                \"name\": \"{{source_name}}\",\n                \"environment\": \"kVMware\",\n                \"objectType\": \"kVCenter\",\n                \"uuid\": \"83e8bc7e-8d16-4011-9e7d-da390334382c\",\n                \"vCenterSummary\": {\n                    \"isCloudEnv\": false\n                }\n            }\n        },\n                 {\n            \"id\": 11410,\n            \"name\": \"{{physical_server_name}}\",\n            \"environment\": \"kPhysical\",\n            \"objectType\": \"kHost\",\n            \"osType\": \"kWindows\",\n            \"protectionStats\": null,\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"1788784541625014:1677666650254:428\",\n                    \"protectionGroupName\": \"Patch_AAG_cluster_Job\",\n                    \"runInstanceId\": 429,\n                    \"storageDomainId\": 20559,\n                    \"protectionRunId\": \"428:1677673831591221\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1677673831591221,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snapshotId}}\",\n                        \"logicalSizeBytes\": 64422412288\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 11387,\n                \"name\": \"MS SQL Servers\",\n                \"environment\": \"kSQL\",\n                \"objectType\": \"kRootContainer\"\n            }\n        },\n        {\n            \"id\": 11414,\n            \"name\": \"MSSQLSERVER/patch_aag_4\",\n            \"sourceId\": 11410,\n            \"environment\": \"kSQL\",\n            \"objectType\": \"kDatabase\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"mssqlParams\": {\n                \"hostInfo\": {\n                    \"id\": \"11410\",\n                    \"name\": \"{{hostname}}\",\n                    \"environment\": \"kPhysical\"\n                }\n            },\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"1788784541625014:1677666650254:428\",\n                    \"protectionGroupName\": \"Patch_AAG_cluster_Job\",\n                    \"runInstanceId\": 429,\n                    \"storageDomainId\": 20559,\n                    \"protectionRunId\": \"428:1677673831591221\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1677673831591221,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snapshotId}}\",\n                        \"logicalSizeBytes\": 0\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 11387,\n                \"name\": \"MS SQL Servers\",\n                \"environment\": \"kSQL\",\n                \"objectType\": \"kRootContainer\"\n            }\n        },\n                   {\n            \"id\": 11425,\n            \"name\": \"remoteadapterview\",\n            \"sourceId\": 7887,\n            \"environment\": \"kView\",\n            \"objectType\": \"kView\",\n            \"osType\": \"kOther\",\n            \"protectionStats\": null,\n            \"latestSnapshotsInfo\": [\n                {\n                    \"archivalSnapshotsInfo\": null,\n                    \"indexingStatus\": \"Done\",\n                    \"protectionGroupId\": \"1788784541625014:1677666650254:494\",\n                    \"protectionGroupName\": \"UI_Auto_Remote_Adapter_Protection_Job_1\",\n                    \"runInstanceId\": 2889,\n                    \"storageDomainId\": 27,\n                    \"protectionRunId\": \"494:1677849334401478\",\n                    \"runType\": \"kRegular\",\n                    \"protectionRunStartTimeUsecs\": 1677849334401478,\n                    \"localSnapshotInfo\": {\n                        \"snapshotId\": \"{{snapshotId}}\",\n                        \"logicalSizeBytes\": 60016321\n                    }\n                }\n            ],\n            \"sourceInfo\": {\n                \"id\": 7887,\n                \"name\": \"DefaultStorageDomain\",\n                \"environment\": \"kView\",\n                \"objectType\": \"kViewBox\"\n            }\n        }\n    ],\n    \"numResults\": 42,\n    \"metadata\": {\n        \"uniqueProtectionGroupIdentifiers\": [\n            {\n                \"protectionGroupId\": \"1788784541625014:1677666650254:651\",\n                \"protectionGroupName\": \"Linux_blockbased\"\n            },\n                  {\n                \"protectionGroupId\": \"1788784541625014:1677666650254:494\",\n                \"protectionGroupName\": \"UI_Auto_Remote_Adapter_Protection_Job_1\"\n            },\n                      {\n                \"protectionGroupId\": \"1788784541625014:1677666650254:428\",\n                \"protectionGroupName\": \"Patch_AAG_cluster_Job\"\n            },\n                    {\n                \"protectionGroupId\": \"1788784541625014:1677666650254:15\",\n                \"protectionGroupName\": \"patch_auto_allexternal_vault_job_1\"\n            }\n                  ]\n    }\n}\n\n"}],"_postman_id":"7956e0c1-6775-465e-8b21-37ac8fab3590"},{"name":"Recover Volume","event":[{"listen":"prerequest","script":{"exec":["var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + (\"0\" + (currentdate.getMonth() + 1)).slice(-2) + \"\" + (\"0\" + currentdate.getDate()).slice(-2) + \"_\"","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","pm.environment.set(\"timestamp\", datetime);"],"type":"text/javascript","id":"b5d87631-41d1-4a69-8fc2-5b561ac27fdb"}},{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"6e644c52-7345-4fb1-a17f-9b1f2d838bb0"}}],"id":"fa28d0a2-8b7c-427d-a439-83a3632447a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{recovery_taskname}}\",\n  \"snapshotEnvironment\": \"kPhysical\",\n  \"physicalParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{snapshotId}}\"\n      }\n    ],\n    \"recoveryAction\": \"RecoverPhysicalVolumes\",\n    \"recoverVolumeParams\": {\n      \"targetEnvironment\": \"kPhysical\",\n      \"physicalTargetParams\": {\n        \"mountTarget\": {\n          \"id\": 7891\n        },\n        \"volumeMapping\": [\n          {\n            \"sourceVolumeGuid\": \"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3\",\n            \"destinationVolumeGuid\": \"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3\",\n            \"selected\": true\n          },\n          {\n            \"sourceVolumeGuid\": \"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3\",\n            \"destinationVolumeGuid\": \"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO\",\n            \"selected\": true\n          },\n          {\n            \"sourceVolumeGuid\": \"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO\",\n            \"destinationVolumeGuid\": \"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3\",\n            \"selected\": true\n          }\n        ],\n        \"forceUnmountVolume\": null\n      }\n    }\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries","description":"<p>Recovers the object specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID (<code>snapshotId</code>) from which you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"41466cfb-af3e-4220-83a0-46ee430b22af","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"name\": \"Recover__{{timestamp}}\",\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Linux_File_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"recoverTarget\": {\n                    \"id\": {{Linux_Source_Id}}\n                },\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/recoveries"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199407"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:10:06 GMT"},{"key":"Content-Length","value":"787"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"1788784541625014:1677666650254:2591\",\n  \"name\": \"{{recovery_taskname}}\",\n  \"startTimeUsecs\": 1677830304588071,\n  \"status\": \"Accepted\",\n  \"snapshotEnvironment\": \"kPhysical\",\n  \"recoveryAction\": \"RecoverPhysicalVolumes\",\n  \"permissions\": [],\n  \"creationInfo\": {\n    \"userName\": \"admin\"\n  },\n  \"canTearDown\": false,\n  \"messages\": null,\n  \"physicalParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{snapshotId}}\",\n        \"protectionGroupId\": \"1788784541625014:1677666650254:651\",\n        \"snapshotCreationTimeUsecs\": 1677716794302670,\n        \"snapshotTargetType\": \"Local\",\n        \"storageDomainId\": 27,\n        \"progressTaskId\": \"/restore_object_0\",\n        \"messages\": null,\n        \"objectInfo\": {\n          \"id\": 7891,\n          \"name\": \"{{server_IP}}\",\n          \"sourceName\": \"Physical Servers\",\n          \"environment\": \"kPhysical\",\n          \"objectType\": \"kHost\",\n          \"protectionType\": \"kVolume\",\n          \"osType\": \"kLinux\"\n        }\n      }\n    ],\n    \"recoveryAction\": \"RecoverPhysicalVolumes\",\n    \"recoverVolumeParams\": {\n      \"targetEnvironment\": \"kPhysical\",\n      \"physicalTargetParams\": {\n        \"volumeMapping\": [\n          {\n            \"sourceVolumeGuid\": \"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3\",\n            \"destinationVolumeGuid\": \"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3\"\n          },\n          {\n            \"sourceVolumeGuid\": \"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3\",\n            \"destinationVolumeGuid\": \"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO\"\n          },\n          {\n            \"sourceVolumeGuid\": \"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO\",\n            \"destinationVolumeGuid\": \"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3\"\n          }\n        ],\n        \"forceUnmountVolume\": false,\n        \"mountTarget\": {\n          \"id\": 7891,\n          \"name\": \"{{taget_server_IP}}\"\n        }\n      }\n    }\n  }\n}"}],"_postman_id":"fa28d0a2-8b7c-427d-a439-83a3632447a4"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"cf1fd516-f140-41e1-9736-1de89facdad3"}}],"id":"6d6c61e5-75c2-40ae-8740-b85ae17ebf5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>The ID (<code>protectionGrouId</code>) of the Protection Group to be deleted must be specified in the API URL.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Block-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster_1-ip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"88f2e5fa-8579-44ec-9f97-8ee796d9c5d2","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Windows_Protection_Job_Id}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{Windows_Protection_Job_Id}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199707"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:15:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6d6c61e5-75c2-40ae-8740-b85ae17ebf5f"},{"name":"Unregister Linux Server","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"a0df59d1-e516-4bbd-bbc0-e61062ea86fa"}}],"id":"fc6ae668-b04d-4eab-91eb-2e42a155925d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{{cluster_vip}}/v2/data-protect/sources/registrations/{{Linux_Source_Id}}","description":"<p>Unregisters the physical server source from the Cohesity cluster.</p>\n<p>You can fetch the <code>Linux_Source_Id</code> to be specified in the API URL from the <strong>Register Linux Physical Source</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{Linux_Source_Id}}"],"host":["{{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"a223be0b-b957-4376-a660-e75d1919735c","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations/{{Linux_Source_Id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199821"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:17:01 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fc6ae668-b04d-4eab-91eb-2e42a155925d"}],"id":"f9c4ccda-b49a-4912-a4f1-a1febe923393","description":"<p>Perform the following steps using the API operations for block-based protection and recovery your Linux physical server using Cohesity:</p>\n<ol>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Linux physical server as a source with the Cohesity cluster.</li>\n<li>Create a Protection Policy and get the Policy ID required for creating the Protection Group.</li>\n<li>Create a Storage Domain and get the Storage Domain ID required for creating the Protection Group.</li>\n<li>Create a block-based Protection Group for protecting the Linux physical server.</li>\n<li>Run the Protection Group.</li>\n<li>Obtain the Protection Group run status.</li>\n<li>Get the latest snapshot of the volume you want to recover.</li>\n<li>Recover the volume from the latest snapshot.</li>\n<li>Delete the Protection Group.</li>\n<li>Unregister the Linux Physical Server from the Cohesity cluster.</li>\n</ol>\n","_postman_id":"f9c4ccda-b49a-4912-a4f1-a1febe923393"},{"name":"Windows Physical Server Block-Based Protection Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"6de512aa-7557-42a5-890e-312b6cd84cf6"}}],"id":"39ff4bfa-b8d0-4b2c-acd0-271a25f3fefc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\":\"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster_1-ip}}"],"query":[],"variable":[]}},"response":[{"id":"168aa007-ba49-456a-8dd5-b2608f5de33e","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675202646"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:04:05 GMT"},{"key":"Content-Length","value":"1126"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\""}],"_postman_id":"39ff4bfa-b8d0-4b2c-acd0-271a25f3fefc"},{"name":"Register Windows Physical Server","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","//Add not null","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"id\",","        \"sourceId\",","        \"sourceInfo\",","        \"environment\",","        \"connections\",","        \"registrationTimeMsecs\",","        \"lastRefreshedTimeMsecs\",","        \"isilonParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The id Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceId\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The sourceId Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceInfo\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The sourceInfo Schema\",","            \"required\": [","                \"id\",","                \"name\",","                \"environment\",","                \"objectType\",","                \"protectionStats\",","                \"isilonParams\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"title\": \"The id Schema\",","                    \"examples\": [","                        1","                    ]","                },","                \"name\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The name Schema\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                },","                \"environment\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The environment Schema\",","                    \"examples\": [","                        \"kIsilon\"","                    ]","                },","                \"objectType\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The objectType Schema\",","                    \"examples\": [","                        \"kCluster\"","                    ]","                },","                \"protectionStats\": {","                    \"type\": \"null\",","                    \"default\": null,","                    \"title\": \"The protectionStats Schema\",","                    \"examples\": [","                        null","                    ]","                },","                \"isilonParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The isilonParams Schema\",","                    \"required\": [","                        \"supportedNasMountProtocols\"","                    ],","                    \"properties\": {","                        \"supportedNasMountProtocols\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The supportedNasMountProtocols Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"supportedNasMountProtocols\": null","                    }]","                }","            },","            \"examples\": [{","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            }]","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The environment Schema\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"connections\": {","            \"type\": \"array\",","            \"default\": [],","            \"title\": \"The connections Schema\",","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"registrationTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The registrationTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"lastRefreshedTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The lastRefreshedTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"isilonParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The isilonParams Schema\",","            \"required\": [","                \"endpoint\",","                \"credentials\",","                \"backUpSMBVolumes\",","                \"smbCredentials\",","                \"filterIpConfig\"","            ],","            \"properties\": {","                \"endpoint\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The endpoint Schema\",","                    \"examples\": [","                        \"10.2.144.30\"","                    ]","                },","                \"credentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The credentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"admin\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"admin\",","                        \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                    }]","                },","                \"backUpSMBVolumes\": {","                    \"type\": \"boolean\",","                    \"default\": false,","                    \"title\": \"The backUpSMBVolumes Schema\",","                    \"examples\": [","                        true","                    ]","                },","                \"smbCredentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The smbCredentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"Administrator\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"Administrator\",","                        \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                    }]","                },","                \"filterIpConfig\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The filterIpConfig Schema\",","                    \"required\": [","                        \"deniedIpAddresses\",","                        \"allowedIpAddresses\"","                    ],","                    \"properties\": {","                        \"deniedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The deniedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        },","                        \"allowedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The allowedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"deniedIpAddresses\": null,","                        \"allowedIpAddresses\": null","                    }]","                }","            },","            \"examples\": [{","                \"endpoint\": \"10.2.144.30\",","                \"credentials\": {","                    \"username\": \"admin\",","                    \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                },","                \"backUpSMBVolumes\": true,","                \"smbCredentials\": {","                    \"username\": \"Administrator\",","                    \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                },","                \"filterIpConfig\": {","                    \"deniedIpAddresses\": null,","                    \"allowedIpAddresses\": null","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": 1,","        \"sourceId\": 1,","        \"sourceInfo\": {","            \"id\": 1,","            \"name\": \"sv4-isilon1\",","            \"environment\": \"kIsilon\",","            \"objectType\": \"kCluster\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": null","            }","        },","        \"environment\": \"kIsilon\",","        \"connections\": [],","        \"registrationTimeMsecs\": 1669110005645,","        \"lastRefreshedTimeMsecs\": 1669110005645,","        \"isilonParams\": {","            \"endpoint\": \"10.2.144.30\",","            \"credentials\": {","                \"username\": \"admin\",","                \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","            },","            \"backUpSMBVolumes\": true,","            \"smbCredentials\": {","                \"username\": \"Administrator\",","                \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","            },","            \"filterIpConfig\": {","                \"deniedIpAddresses\": null,","                \"allowedIpAddresses\": null","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"4b237689-dfa0-4ed3-9556-cc030b6dc746"}}],"id":"a61e5226-5f22-468b-beb2-87f9449eb919","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{Windows_Server_IP}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kWindows\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/public/protectionSources/register","description":"<p>Registers the Windows physical server with the Cohesity cluster.</p>\n<ul>\n<li><p>Ensure to provide the IP address (<code>Windows_Server_IP</code>) of the Windows physical server in the request body of the API.</p>\n</li>\n<li><p>The source ID from the response is required to create the Protection Group for protecting your physical server.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster_1-ip}}"],"query":[],"variable":[]}},"response":[{"id":"a700cfa8-989a-4775-8a17-61e958c912d9","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{File_Client_Windows}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kWindows\"\n}"},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/public/protectionSources/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675203650"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:20:50 GMT"},{"key":"Content-Length","value":"308"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25269,\n    \"name\": \"{{Windows_Server_IP}}\",\n    \"environment\": \"kPhysical\",\n    \"physicalProtectionSource\": {\n        \"type\": \"kHost\",\n        \"name\": \"{{Windows_Server_Name}}\",\n        \"osName\": \"Windows Server 2016 Standard\",\n        \"id\": {\n            \"id\": 25268,\n            \"clusterId\": {{cluster_id}},\n            \"clusterIncarnationId\": {{incarnation_id}}\n        },\n        \"hostType\": \"kWindows\",\n        \"networkingInfo\": {\n            \"resourceVec\": [\n                {\n                    \"type\": \"kServer\",\n                    \"endpoints\": [\n                        {\n                            \"ipv4Addr\": \"{{Windows_Server_IPV4}}\"\n                        },\n                        {\n                            \"ipv6Addr\": \"{{Windows_Server_IPV6}}\"\n                        },\n                        {\n                            \"ipv6Addr\": \"{{Windows_Server_IPV6}}\"\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"a61e5226-5f22-468b-beb2-87f9449eb919"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response is not null\", function () {","    pm.expect(pm.response).to.not.equal(undefined);","});","var found_flag = 0","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment == \"kPhysical\") {","            if (jsonData.registrations[i].sourceInfo.name == pm.environment.get(\"File_Client_Windows\")) {","                pm.environment.set(\"Windows_Source_Id\", parseInt(jsonData.registrations[i].sourceId));","                found_flag += 1","            }","        }","        else if (jsonData.registrations[i].sourceInfo.environment == \"kGenericNas\") {","            if (jsonData.registrations[i].sourceInfo.name.includes(pm.environment.get(\"File_Client_Windows\"))) {","                pm.environment.set(\"Windows_NAS_Source_Id\", parseInt(jsonData.registrations[i].sourceId));","                found_flag += 1","            }","        }","    }","});","pm.test(\"Response contains expected client info of \" + pm.environment.get(\"Windows_NAS_Source_Id\"), function () {","    if (found_flag != 2) {","        pm.expect.fail(\"Client/NAS info not found\")","    }","});","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"registrations\"","    ],","    \"properties\": {","        \"registrations\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"sourceId\",","                    \"sourceInfo\",","                    \"environment\",","                    \"registrationTimeMsecs\",","                    \"lastRefreshedTimeMsecs\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sourceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\",","                            \"protectionStats\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"osType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionStats\": {","                                \"type\": \"null\",","                                \"default\": null","                            }","                        }","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"authenticationStatus\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"registrationTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastRefreshedTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"58ba7f1d-63e5-4b0d-84f6-c2c8f716fd10"}}],"id":"f7ed3dff-3298-463d-afc4-072db56a37c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the physical server is registered with the Cohesity cluster</li>\n<li>Obtain the Id (<code>sourceId</code>) of the physical server.<br />  The <code>sourceId</code> is required for creating a Protection Group.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster_1-ip}}"],"query":[],"variable":[]}},"response":[{"id":"a51c68bf-4b11-435e-8393-176629a7ea0e","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675207691"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:28:10 GMT"},{"key":"Content-Length","value":"809"}],"cookie":[],"responseTime":null,"body":"{\n    \"registrations\": [\n              {\n            \"id\": 25269,\n            \"sourceId\": 25269,\n            \"sourceInfo\": {\n                \"id\": 25269,\n                \"name\": \"{{source_name}}\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kWindows\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\",\n            \"authenticationStatus\": \"Finished\",\n            \"registrationTimeMsecs\": 1675203649222,\n            \"lastRefreshedTimeMsecs\": 1675203661223\n        },\n        {\n            \"id\": 21530,\n            \"sourceId\": 21530,\n            \"sourceInfo\": {\n                \"id\": 21530,\n                  \"name\": \"{{source_name}}\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\",\n                \"protectionStats\": null,\n                \"isilonParams\": {\n                    \"supportedNasMountProtocols\": null\n                }\n            },\n            \"environment\": \"kIsilon\",\n            \"authenticationStatus\": \"Finished\",\n            \"registrationTimeMsecs\": 1668947814492,\n            \"lastRefreshedTimeMsecs\": 1675200394760,\n            \"isilonParams\": {\n                \"endpoint\": \"{{ip_address}}\",\n                \"credentials\": {\n                    \"username\": \"admin\",\n                    \"password\": null\n                },\n                \"backUpSMBVolumes\": true,\n                \"smbCredentials\": {\n                    \"username\": \"Administrator\",\n                    \"password\": null\n                },\n                \"filterIpConfig\": {\n                    \"deniedIpAddresses\": null,\n                    \"allowedIpAddresses\": null\n                }\n            }\n        },\n        {\n            \"id\": 25157,\n            \"sourceId\": 25157,\n            \"sourceInfo\": {\n                \"id\": 25157,\n                   \"name\": \"{{source_name}}\",\n                \"environment\": \"kVMware\",\n                \"objectType\": \"kVCenter\",\n                \"uuid\": \"{{uuid}}\",\n                \"vCenterSummary\": {\n                    \"isCloudEnv\": false\n                },\n                \"protectionStats\": null,\n                \"vmwareParams\": {}\n            },\n            \"environment\": \"kVMware\",\n            \"authenticationStatus\": \"Finished\",\n            \"registrationTimeMsecs\": 1674849500401,\n            \"lastRefreshedTimeMsecs\": 1675195110972,\n            \"vmwareParams\": {\n                \"type\": \"kVCenter\",\n                \"vCenterParams\": {\n                    \"username\": \"Administrator\",\n                    \"password\": null,\n                    \"endpoint\": \"{{IP_address}}\",\n                    \"throttlingParams\": {},\n                    \"dataStoreParams\": null\n                }\n            }\n        },\n        {\n            \"id\": 25274,\n            \"sourceId\": 25274,\n            \"sourceInfo\": {\n                \"id\": 25274,\n                    \"name\": \"{{source_name}}\",\n                \"environment\": \"kGenericNas\",\n                \"objectType\": \"kHost\",\n                \"protectionStats\": null,\n                \"genericNasParams\": {\n                    \"supportedNasMountProtocols\": [\n                        \"kCifs1\"\n                    ]\n                }\n            },\n            \"environment\": \"kGenericNas\",\n            \"registrationTimeMsecs\": 1675204197313,\n            \"lastRefreshedTimeMsecs\": 1675204197313,\n            \"genericNasParams\": {\n                \"mountPoint\": \"\\\\\\\\{{endpoint}}\\\\CIFS-1\",\n                \"mode\": \"kCifs1\",\n                \"smbMountCredentials\": {\n                    \"username\": \"administrator\",\n                    \"password\": null\n                }\n            }\n        }\n    ]\n}\n\n"}],"_postman_id":"f7ed3dff-3298-463d-afc4-072db56a37c9"},{"name":"Get Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code shoild be 200\", function () {","    pm.response.to.have.status(200);","});","","pm.environment.set(\"Windows_Policy_Name\", \"WindowsFileFolderTestPolicy\");","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"policies\"","    ],","    \"properties\": {","        \"policies\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"name\",","                    \"backupPolicy\",","                    \"blackoutWindow\",","                    \"extendedRetention\",","                ],","                \"properties\": {","                    \"name\": {","                        \"type\": \"string\"","                    },","                    \"backupPolicy\": {","                        \"type\": \"object\",","                        \"required\": [","                            \"regular\"","                        ],","                        \"properties\": {","                            \"regular\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"incremental\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"daySchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    },","                                                    \"hourSchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"retention\": {","","                                        ","                                        \"properties\": {","                                            \"unit\": {","                                                \"type\": \"string\"","                                            },","                                            \"duration\": {","                                                \"type\": \"integer\"","                                            }","                                        }","                                    },","                                    \"full\": {","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"required\": [","                                                    \"unit\"","                                                ],","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\",","                                                        \"default\": \"\"","                                                    }","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"description\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"blackoutWindow\": {","                        \"type\": \"null\"","                    },","                    \"extendedRetention\": {","                        \"type\": [","                            \"null\",","                            \"array\"","                        ],","                        \"items\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"schedule\",","                                \"retention\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"frequency\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"frequency\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"retention\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"duration\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"duration\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"cascadedTargetsConfig\": {","                    },","                    \"retryOptions\": {","                        \"type\": \"object\",","                        \"default\": {},","","                        \"properties\": {","                            \"retries\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"retryIntervalMins\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            }","                        }","                    },","                    \"id\": {","                        \"type\": \"string\"","                    }","                }","            }","        }","    }","}","    pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"d17f888c-5d83-4875-bafd-e247deea3e2d"}}],"id":"4576b5d0-8cee-4c36-85fa-dbec848eab5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/policies","description":"<p>Returns the list of Protection Policies available on the Cohesity cluster along with their Policy IDs and information on the parameters configured for these policies.</p>\n<p>You can either use an available policy or create a new policy for protecting your physical server. The Protection Policy ID is required for creating the Protection Group for the physical server protection.</p>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_1-ip}}"],"query":[],"variable":[]}},"response":[{"id":"990400a8-abbb-4d5d-99f7-c19d2f7ceb04","name":"Sample Output","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208051"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:34:10 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n                    {\n            \"name\": \"NPJ_NV_S3Comp_policy_21\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": null\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"remoteTargetPolicy\": {\n                \"replicationTargets\": [],\n                \"archivalTargets\": [\n                    {\n                        \"schedule\": {\n                            \"unit\": \"Runs\",\n                            \"frequency\": 1\n                        },\n                        \"retention\": {\n                            \"unit\": \"Months\",\n                            \"duration\": 1\n                        },\n                        \"copyOnRunSuccess\": false,\n                        \"configId\": \"e2c4be16-24fa-4b24-7ad4-35cea7f3a1cf\",\n                        \"targetId\": 9726340988,\n                        \"targetName\": \"NPJ_NV_S3Comp21\",\n                        \"targetType\": \"Cloud\",\n                        \"extendedRetention\": null\n                    }\n                ],\n                \"cloudSpinTargets\": []\n            },\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 30\n            },\n            \"id\": \"8743635867054034:1666901032964:18325\"\n        },\n                           {\n            \"name\": \"NPJ_NV_GC_S3Comp_policy_20\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": null\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"remoteTargetPolicy\": {\n                \"replicationTargets\": [],\n                \"archivalTargets\": [\n                    {\n                        \"schedule\": {\n                            \"unit\": \"Runs\",\n                            \"frequency\": 1\n                        },\n                        \"retention\": {\n                            \"unit\": \"Months\",\n                            \"duration\": 1\n                        },\n                        \"copyOnRunSuccess\": false,\n                        \"configId\": \"0d8ee267-58e0-4d45-4ab8-b90ddc1726cd\",\n                        \"targetId\": 9726480007,\n                        \"targetName\": \"NPJ_NV_GC_S3Comp20\",\n                        \"targetType\": \"Cloud\",\n                        \"extendedRetention\": null\n                    }\n                ],\n                \"cloudSpinTargets\": []\n            },\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 30\n            },\n            \"id\": \"8743635867054034:1666901032964:18374\"\n        }\n    ]\n}"}],"_postman_id":"4576b5d0-8cee-4c36-85fa-dbec848eab5b"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"cascadedTargetsConfig\",","        \"retryOptions\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"incremental\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"incremental\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        }","                    }","                }","            }","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"retryOptions\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"retries\",","                \"retryIntervalMins\"","            ],","            \"properties\": {","                \"retries\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"retryIntervalMins\": {","                    \"type\": \"integer\",","                    \"default\": 0","                }","            }","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        }","    }","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"93e174cb-b65c-4011-95ed-7e6d4222d7bc"}}],"id":"470e4668-f88f-47dd-9563-3d60e794687c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"Windows_Block_Based_Policy\",\n  \"description\": \"Policy for volume-based PG\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"fe57faa9-7a93-48eb-9ead-35b633702828","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{Windows_Policy_Name}}\",\n  \"description\": \"Policy for volume-based PG\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 2,\n    \"retryIntervalMins\": 5\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208435"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:40:34 GMT"},{"key":"Content-Length","value":"284"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Windows_Block_Based_Policy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for volume-based PG\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:413487\"\n}"}],"_postman_id":"470e4668-f88f-47dd-9563-3d60e794687c"},{"name":"Verify Protection Policy Creation","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema = jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"policies\"","    ],","    \"properties\": {","        \"policies\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"name\",","                    \"backupPolicy\",","                    \"blackoutWindow\",","                    \"extendedRetention\",","                    \"cascadedTargetsConfig\",","                    \"id\"","                ],","                \"properties\": {","                    \"name\": {","                        \"type\": \"string\"","                    },","                    \"backupPolicy\": {","                        \"type\": \"object\",","                        \"required\": [","                            \"regular\"","                        ],","                        \"properties\": {","                            \"regular\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"incremental\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"daySchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    },","                                                    \"hourSchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"full\": {","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"required\": [","                                                    \"unit\"","                                                ],","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\",","                                                        \"default\": \"\"","                                                    }","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"description\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"blackoutWindow\": {","                        \"type\": \"null\"","                    },","                    \"extendedRetention\": {","                        \"type\": [","                            \"null\",","                            \"array\"","                        ],","                        \"items\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"schedule\",","                                \"retention\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"frequency\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"frequency\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"retention\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"duration\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"duration\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"cascadedTargetsConfig\": {","                    },","                    \"retryOptions\": {","                        \"type\": \"object\",","                        \"default\": {},","","                        \"properties\": {","                            \"retries\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"retryIntervalMins\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            }","                        }","                    },","                    \"id\": {","                        \"type\": \"string\"","                    }","                }","            }","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});","","var found_flag = 0","pm.test(\"Validating Policy creation\", function () {","    var jsonData = pm.response.json();","    for (i = 0; i < jsonData.policies.length; i++) {","        if (jsonData.policies[i].name == pm.environment.get(\"Windows_Policy_Name\")) {","            found_flag += 1","            pm.environment.set(\"Windows_Policy_Id\", jsonData.policies[i].id);","        } else if (jsonData.policies[i].name == pm.environment.get(\"Windows_CIFS_Policy_Name\")) {","            found_flag += 1","            pm.environment.set(\"Windows_CIFS_Policy_Id\", jsonData.policies[i].id);","        }","    }","});","pm.test(\"Response contains expected policy info of \" + pm.environment.get(\"Windows_Policy_Name\"), function () {","    if (found_flag != 2) {","        pm.expect.fail(\"Policy info not found\")","    }","});","",""],"type":"text/javascript","id":"f7c865b9-3794-4bef-ae78-2c15c201f766"}}],"id":"1f224982-987b-4382-af1e-ca00c2352acd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Returns the list of policies available on the Cohesity cluster along with their policy IDs and information on the parameters configured for the Protection Policy.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the policy you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Protection Policy you want to use for creating the Protection Group.</li>\n</ul>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"adb29ae6-3cdd-43ac-9747-e1c8320061d5","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208638"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:43:57 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n {\n            \"name\": \"Windows_Block_Based_Policy\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"description\": \"Policy for volume-based PG\",\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"8743635867054034:1666901032964:413487\"\n        },\n\n\n\n                    {\n            \"name\": \"NPJ_NV_S3Comp_policy_21\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": null\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"remoteTargetPolicy\": {\n                \"replicationTargets\": [],\n                \"archivalTargets\": [\n                    {\n                        \"schedule\": {\n                            \"unit\": \"Runs\",\n                            \"frequency\": 1\n                        },\n                        \"retention\": {\n                            \"unit\": \"Months\",\n                            \"duration\": 1\n                        },\n                        \"copyOnRunSuccess\": false,\n                        \"configId\": \"e2c4be16-24fa-4b24-7ad4-35cea7f3a1cf\",\n                        \"targetId\": 9726340988,\n                        \"targetName\": \"NPJ_NV_S3Comp21\",\n                        \"targetType\": \"Cloud\",\n                        \"extendedRetention\": null\n                    }\n                ],\n                \"cloudSpinTargets\": []\n            },\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 30\n            },\n            \"id\": \"8743635867054034:1666901032964:18325\"\n        },\n                           {\n            \"name\": \"NPJ_NV_GC_S3Comp_policy_20\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"retention\": null\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"remoteTargetPolicy\": {\n                \"replicationTargets\": [],\n                \"archivalTargets\": [\n                    {\n                        \"schedule\": {\n                            \"unit\": \"Runs\",\n                            \"frequency\": 1\n                        },\n                        \"retention\": {\n                            \"unit\": \"Months\",\n                            \"duration\": 1\n                        },\n                        \"copyOnRunSuccess\": false,\n                        \"configId\": \"0d8ee267-58e0-4d45-4ab8-b90ddc1726cd\",\n                        \"targetId\": 9726480007,\n                        \"targetName\": \"NPJ_NV_GC_S3Comp20\",\n                        \"targetType\": \"Cloud\",\n                        \"extendedRetention\": null\n                    }\n                ],\n                \"cloudSpinTargets\": []\n            },\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 30\n            },\n            \"id\": \"8743635867054034:1666901032964:18374\"\n        }\n    ]\n}\n\n"}],"_postman_id":"1f224982-987b-4382-af1e-ca00c2352acd"},{"name":"Get Storage Domains","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"b0b6a334-a445-41ef-be9c-22300319607b"}}],"id":"384bf3a5-045a-4bdf-93e5-1a010b558e34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>You can either use an available Storage Domain or create a new Storage Domain for protecting your physical server.</p>\n<p>The Storage Domain ID is required when you are creating the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster_vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"dfbe32ee-7aef-4bc6-b2bd-e6d302325ab8","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster_1-ip}}/v2/storage-domains?names=DefaultStorageDomain","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","storage-domains"],"query":[{"key":"names","value":"DefaultStorageDomain"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 24,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 22,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": true,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"384bf3a5-045a-4bdf-93e5-1a010b558e34"},{"name":"Create Storage Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"a4618a2b-fa87-4443-9dfd-2414cb93580e"}}],"id":"0f6ebe74-cdfa-4d6e-badf-a963b1406bbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Storage_Domain\",\r\n  \"clusterPartitionId\": 3,\r\n  \"storagePolicy\": {\r\n    \"deduplicationEnabled\": true,\r\n    \"inlineDeduplicate\": true,\r\n    \"compressionPolicy\": \"kCompressionLow\",\r\n    \"inlineCompress\": true,\r\n    \"encryptionPolicy\": \"kEncryptionNone\",\r\n    \"erasureCodingInfo\": {\r\n      \"erasureCodingEnabled\": false\r\n    },\r\n    \"numFailuresTolerated\": 1,\r\n    \"numNodeFailuresTolerated\": 1\r\n  },\r\n  \"physicalQuota\": {},\r\n  \"defaultViewQuotaPolicy\": {},\r\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\r\n  \"nisDomainNameVec\": [\r\n    null\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/viewBoxes","description":"<p>Creates a Storage Domain on the Cohesity cluster.</p>\n<p>The Storage Domain ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster_vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"a645e266-a9d3-4f48-a1b7-b9e060fcaa5c","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://{{cluster_1-ip}}/v2/storage-domains","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","storage-domains"],"query":[{"key":"names","value":"DefaultStorageDomain","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6246697,\n  \"name\": \"Storage_Domain\",\n  \"clusterPartitionId\": 3,\n  \"clientSubnetWhiteList\": [],\n  \"storagePolicy\": {\n    \"deduplicationEnabled\": true,\n    \"inlineDeduplicate\": true,\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"inlineCompress\": true,\n    \"deduplicateCompressDelaySecs\": 0,\n    \"encryptionPolicy\": \"kEncryptionNone\",\n    \"downTierDelaySecsList\": [\n      0,\n      0,\n      5184000,\n      0\n    ],\n    \"numFailuresTolerated\": 0,\n    \"numNodeFailuresTolerated\": 0\n  },\n  \"physicalQuota\": {},\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\n  \"defaultViewQuotaPolicy\": {},\n  \"s3BucketsAllowed\": false,\n  \"nisDomainNameVec\": [\n    \"\"\n  ],\n  \"clusterPartitionName\": \"DefaultPartition\",\n  \"removalState\": \"kDontRemove\"\n}"}],"_postman_id":"0f6ebe74-cdfa-4d6e-badf-a963b1406bbc"},{"name":"Verify Storage Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"281080fd-bd3b-4b26-9842-219bebad41c3"}}],"id":"aa8af650-beaf-4532-af6b-bceeeaa9180e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/viewBoxes","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the Storage Domain you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Storage Domain you want to use for creating the Protection Group.<br />  The Storage Domain ID is required when you are creating the Protection Group for protecting your physical server.</li>\n</ul>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster_vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"1907ac62-df8b-46b3-a2ae-2d3863f4082d","name":"Sample Output","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_vip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n{\n  \"id\": 6246697,\n  \"name\": \"Storage_Domain\",\n  \"clusterPartitionId\": 3,\n  \"clientSubnetWhiteList\": [],\n  \"storagePolicy\": {\n    \"deduplicationEnabled\": true,\n    \"inlineDeduplicate\": true,\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"inlineCompress\": true,\n    \"deduplicateCompressDelaySecs\": 0,\n    \"encryptionPolicy\": \"kEncryptionNone\",\n    \"downTierDelaySecsList\": [\n      0,\n      0,\n      5184000,\n      0\n    ],\n    \"numFailuresTolerated\": 0,\n    \"numNodeFailuresTolerated\": 0\n  },\n  \"physicalQuota\": {},\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\n  \"defaultViewQuotaPolicy\": {},\n  \"s3BucketsAllowed\": false,\n  \"nisDomainNameVec\": [\n    \"\"\n  ],\n  \"clusterPartitionName\": \"DefaultPartition\",\n  \"removalState\": \"kDontRemove\"\n},\n        {\n            \"id\": 24,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 22,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": true,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"aa8af650-beaf-4532-af6b-bceeeaa9180e"},{"name":"Create Block-Based Protection Group","event":[{"listen":"test","script":{"exec":["jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"name\",","        \"policyId\",","        \"priority\",","        \"storageDomainId\",","        \"description\",","        \"startTime\",","        \"alertPolicy\",","        \"sla\",","        \"qosPolicy\",","        \"abortInBlackouts\",","        \"isActive\",","        \"isPaused\",","        \"environment\",","        \"permissions\",","        \"missingEntities\",","        \"physicalParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"policyId\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"priority\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"storageDomainId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"startTime\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"hour\",","                \"minute\",","                \"timeZone\"","            ],","            \"properties\": {","                \"hour\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"minute\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"timeZone\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        },","        \"alertPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"backupRunStatus\",","                \"alertTargets\"","            ],","            \"properties\": {","                \"backupRunStatus\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                },","                \"alertTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {}","                }","            }","        },","        \"sla\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"backupRunType\",","                    \"slaMinutes\"","                ],","                \"properties\": {","                    \"backupRunType\": {","                        \"type\": \"string\"","                    },","                    \"slaMinutes\": {","                        \"type\": \"integer\"","                    }","                }","            }","        },","        \"qosPolicy\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"abortInBlackouts\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isActive\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isPaused\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"permissions\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"missingEntities\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"physicalParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"protectionType\",","                \"fileProtectionTypeParams\"","            ],","            \"properties\": {","                \"protectionType\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"fileProtectionTypeParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"objects\",","                        \"indexingPolicy\",","                        \"performSourceSideDeduplication\",","                        \"dedupExclusionSourceIds\",","                        \"globalExcludePaths\",","                        \"ignorableErrors\"","                    ],","                    \"properties\": {","                        \"objects\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"id\",","                                    \"name\",","                                    \"filePaths\",","                                    \"usesPathLevelSkipNestedVolumeSetting\",","                                    \"nestedVolumeTypesToSkip\",","                                    \"followNasSymlinkTarget\"","                                ],","                                \"properties\": {","                                    \"id\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    },","                                    \"name\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    },","                                    \"filePaths\": {","                                        \"type\": \"array\",","                                        \"default\": [],","                                        \"items\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"includedPath\",","                                                \"excludedPaths\",","                                                \"skipNestedVolumes\"","                                            ],","                                            \"properties\": {","                                                \"includedPath\": {","                                                    \"type\": \"string\",","                                                    \"default\": \"\"","                                                },","                                                \"excludedPaths\": {","                                                    \"type\": \"null\",","                                                    \"default\": null","                                                },","                                                \"skipNestedVolumes\": {","                                                    \"type\": \"boolean\",","                                                    \"default\": false","                                                }","                                            }","                                        }","                                    },","                                    \"usesPathLevelSkipNestedVolumeSetting\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    },","                                    \"nestedVolumeTypesToSkip\": {","                                        \"type\": \"null\",","                                        \"default\": null","                                    },","                                    \"followNasSymlinkTarget\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        },","                        \"indexingPolicy\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"enableIndexing\",","                                \"includePaths\",","                                \"excludePaths\"","                            ],","                            \"properties\": {","                                \"enableIndexing\": {","                                    \"type\": \"boolean\",","                                    \"default\": false","                                },","                                \"includePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                },","                                \"excludePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\"","                                    }","                                }","                            }","                        },","                        \"performSourceSideDeduplication\": {","                            \"type\": \"boolean\",","                            \"default\": false","                        },","                        \"dedupExclusionSourceIds\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"globalExcludePaths\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"ignorableErrors\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {}","                        }","                    }","                }","            }","        }","    }","}","","","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"Windows_Protection_Job_Id\", jsonData.id);","",""],"type":"text/javascript","id":"487ce56b-ef87-4108-8069-cfa4aa7a10bc"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Windows_Protection_Job_Name\", \"Windows_Protection_Job\");"],"type":"text/javascript","id":"8599635b-484d-46c3-b231-6ced9d7bfc4f"}}],"id":"ef11a63b-6ccc-44f2-8718-94659eaf7bd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"policyId\": \"{{Windows_Policy_Id}}\",\n  \"startTime\": {\n    \"hour\": 15,\n    \"minute\": 2,\n    \"timeZone\": \"Asia/Calcutta\"\n  },\n  \"priority\": \"kMedium\",\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": false,\n  \"storageDomainId\": {{Windows_storageDomainId}},\n  \"name\": \"Windows_bb\",\n  \"environment\": \"kPhysical\",\n  \"isPaused\": false,\n  \"description\": \"\",\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"physicalParams\": {\n    \"protectionType\": \"kVolume\",\n    \"volumeProtectionTypeParams\": {\n      \"objects\": [\n        {\n          \"id\": 3795\n        }\n      ],\n      \"indexingPolicy\": {\n        \"enableIndexing\": true,\n        \"includePaths\": [\n          \"/\"\n        ],\n        \"excludePaths\": [\n          \"/$Recycle.Bin\",\n          \"/Windows\",\n          \"/Program Files\",\n          \"/Program Files (x86)\",\n          \"/ProgramData\",\n          \"/System Volume Information\",\n          \"/Users/*/AppData\",\n          \"/Recovery\",\n          \"/var\",\n          \"/usr\",\n          \"/sys\",\n          \"/proc\",\n          \"/lib\",\n          \"/grub\",\n          \"/grub2\",\n          \"/opt\",\n          \"/splunk\"\n        ]\n      },\n      \"excludedVssWriters\": [],\n      \"performSourceSideDeduplication\": false,\n      \"incrementalBackupAfterRestart\": true\n    }\n  }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a block-based Protection Group for protecting your Windows physical server.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the physical server source to be protected are required in the request body for running this API.</li>\n<li>For block-based Protection Group, ensure the <code>protectionType</code> value in the request body is <strong><code>KVolume</code></strong>.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the physical server.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"032f3dc4-9f51-4133-936b-77d540f650b2","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"storageDomainId\": {{Windows_Viewbox_Id_DSD}},\n    \"policyId\": \"{{Windows_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"name\": \"{{Linux_Protection_Job_Name}}\",\n    \"environment\": \"kPhysical\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{Windows_Source_Id}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/C/\",\n                            \"excludedPaths\": []\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": [],\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"globalExcludePaths\": [],\n            \"ignorableErrors\": []\n        }\n    }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675210387"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:13:07 GMT"},{"key":"Content-Length","value":"716"}],"cookie":[],"responseTime":null,"body":"    {\n    \"id\": \"1867183226494767:1669693131113:54724\",\n    \"name\": \"Windows_bb\",\n    \"policyId\": \"1867183226494767:1669693131113:3\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 5,\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 15,\n        \"minute\": 2,\n        \"timeZone\": \"Asia/Calcutta\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n        \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n        \"backupRunType\": \"kIncremental\",\n        \"slaMinutes\": 60\n        },\n        {\n        \"backupRunType\": \"kFull\",\n        \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kPhysical\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"physicalParams\": {\n        \"protectionType\": \"kVolume\",\n        \"volumeProtectionTypeParams\": {\n        \"objects\": [\n            {\n            \"id\": 3795,\n            \"name\": \"{{object_name}}\",\n            \"volumeGuids\": null\n            }\n        ],\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n            \"/\"\n            ],\n            \"excludePaths\": [\n            \"/$Recycle.Bin\",\n            \"/Windows\",\n            \"/Program Files\",\n            \"/Program Files (x86)\",\n            \"/ProgramData\",\n            \"/System Volume Information\",\n            \"/Users/*/AppData\",\n            \"/Recovery\",\n            \"/var\",\n            \"/usr\",\n            \"/sys\",\n            \"/proc\",\n            \"/lib\",\n            \"/grub\",\n            \"/grub2\",\n            \"/opt\",\n            \"/splunk\"\n            ]\n        },\n        \"performSourceSideDeduplication\": false,\n        \"incrementalBackupAfterRestart\": true,\n        \"dedupExclusionSourceIds\": null,\n        \"excludedVssWriters\": null\n        }\n    }\n    }"}],"_postman_id":"ef11a63b-6ccc-44f2-8718-94659eaf7bd9"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(60000);","    pm.response.to.have.status(202);","","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"69606285-fee6-4d7f-8a95-fa4418252df0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bb43fef4-5c71-484f-a1f9-0640e115df41"}}],"id":"e5603b2f-1e08-4bd9-9f62-bec2ce79b69d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting your physical server.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Block-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"9d17547f-08fc-4252-bc88-93d61359281b","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212497"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:48:16 GMT"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"1867183226494767:1669693131113:54724\"\n}"}],"_postman_id":"e5603b2f-1e08-4bd9-9f62-bec2ce79b69d"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function () { }, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","var resp = pm.response.json();","var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if ((status == \"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","    setTimeout(function () { }, 10000);","    postman.setNextRequest(request.name)","}","else {","    // Sleep for 5 seconds.","    setTimeout(function () { }, 5000);","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"runs\",","        \"totalRuns\"","    ],","    \"properties\": {","        \"runs\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"protectionGroupInstanceId\",","                    \"protectionGroupId\",","                    \"isReplicationRun\",","                    \"protectionGroupName\",","                    \"objects\",","                    \"localBackupInfo\",","                    \"permissions\",","                    \"hasLocalSnapshot\",","                    \"environment\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupInstanceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"isReplicationRun\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objects\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"localBackupInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"runType\",","                            \"startTimeUsecs\",","                            \"status\",","                            \"messages\",","                            \"successfulObjectsCount\",","                            \"failedObjectsCount\",","                            \"cancelledObjectsCount\",","                            \"successfulAppObjectsCount\",","                            \"failedAppObjectsCount\",","                            \"cancelledAppObjectsCount\",","                            \"localSnapshotStats\",","                            \"indexingTaskId\",","                            \"localTaskId\"","                        ],","                        \"properties\": {","                            \"runType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"startTimeUsecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"status\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"messages\": {","                                \"type\": \"null\",","                                \"default\": null","                            },","                            \"successfulObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"successfulAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"localSnapshotStats\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"logicalSizeBytes\"","                                ],","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    }","                                }","                            },","                            \"indexingTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"progressTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"localTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    },","                    \"permissions\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {}","                    },","                    \"hasLocalSnapshot\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                }","            }","        },","        \"totalRuns\": {","            \"type\": \"integer\",","            \"default\": 0","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"23ff78e6-41c6-43b5-a338-64c3f6ada5d2"}}],"id":"f212f3a3-c242-4dbb-a286-fa3206c9665d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Block-based Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is success, you can recover the physical server volume.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"880f60e5-5a32-473d-98f1-a5015794f53d","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Windows_Protection_Job_Id}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212666"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:51:05 GMT"},{"key":"Content-Length","value":"422"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"413667:1675212497169029\",\n            \"protectionGroupInstanceId\": 413698,\n            \"protectionGroupId\": \"8743635867054034:1666901032964:413667\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Windows_bb\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"startTimeUsecs\": 1675212497169029,\n                \"status\": \"Running\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 0,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 64301826048\n                },\n                \"indexingTaskId\": \"indexing_413667_413698\",\n                \"progressTaskId\": \"backup_413698_1\",\n                \"localTaskId\": \"8743635867054034:1666901032964:51947317028\"\n            },\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kPhysical\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"f212f3a3-c242-4dbb-a286-fa3206c9665d"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","var jsonData = pm.response.json();","","pm.test(\"Validating response\", function () {","    for (var i = 0; i < jsonData.snapshots.length; i++) {","        if (jsonData.snapshots[i].protectionGroupName === pm.environment.get(\"Linux_Protection_Job_Name\")) {","            pm.environment.set(\"Linux_File_Restore_File\", jsonData.snapshots[i].indexedObjectName);","            pm.environment.set(\"Linux_File_Snapshot\", jsonData.snapshots[i].objectSnapshotid);","","            //break;","        }","    }","});","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"snapshots\"","    ],","    \"properties\": {","        \"snapshots\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"indexedObjectName\",","                    \"objectSnapshotid\",","                    \"snapshotTimestampUsecs\",","                    \"runType\",","                    \"protectionGroupId\",","                    \"protectionGroupName\",","                    \"storageDomainId\",","                    \"attempts\",","                    \"sizeBytes\",","                    \"lastModifiedTimeUsecs\"","                ],","                \"properties\": {","                    \"indexedObjectName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objectSnapshotid\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"snapshotTimestampUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"runType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"storageDomainId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"attempts\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sizeBytes\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastModifiedTimeUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"8b6baaf1-cbe3-42b7-a724-c4c48db42f0c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7306db7e-3b21-4dd2-8c40-1756b164963a"}}],"id":"145ceee8-a074-42ab-a2f7-b7c7f5b14559","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects","description":"<p>Returns information on the latest snapshots of the objects that are being protected on the Cohesity cluster.</p>\n<p>The snapshot ID of a volume from the response is required for recovering that volume.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"145ceee8-a074-42ab-a2f7-b7c7f5b14559"},{"name":"Recover Volume","event":[{"listen":"prerequest","script":{"exec":["var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + (\"0\" + (currentdate.getMonth() + 1)).slice(-2) + \"\" + (\"0\" + currentdate.getDate()).slice(-2) + \"_\"","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","pm.environment.set(\"timestamp\", datetime);"],"type":"text/javascript","id":"4beec5b9-18de-46e9-a90c-4f4d94f21c4e"}},{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"feea83d2-8682-4808-a680-4b2ad4f4daf2"}}],"id":"f1663c65-1ff9-4015-9f40-ff9ac6cb2f19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"name\": \"Recover__{{timestamp}}\",\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Windows_File_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"recoverTarget\": {\n                    \"id\": {{Windows_Source_Id}}\n                },\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries","description":"<p>Recover the objects specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID from which you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>{{timestamp}}</code> variable in the request body will be auto-populated when you run the API.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1663c65-1ff9-4015-9f40-ff9ac6cb2f19"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"faeb232c-2dc3-4bd4-89f2-1fc5c0ece087"}}],"id":"215c058c-a4cf-4bdf-b998-0ab1812b2266","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>The <code>protectionGrouId</code> of the Protection Group to be deleted must be specified in the API URL.</p>\n<p>The ID (<code>protectionGrouId</code>) of the Protection Group to be deleted must be specified in the API URL.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Block-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster_vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"3dd85715-13d4-4d22-989d-87c675301786","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Windows_Protection_Job_Id}}?deleteSnapshots=true","protocol":"https","host":["{{cluster_1-ip}}"],"path":["v2","data-protect","protection-groups","{{Windows_Protection_Job_Id}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199707"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:15:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"215c058c-a4cf-4bdf-b998-0ab1812b2266"},{"name":"Unregister Physical Server Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"c4237b7f-69df-4097-af74-57b2f18b3729"}}],"id":"607e7eef-4cd6-41e5-8623-a5f79f13375f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations/{{Windows_Source_Id}}","description":"<p>Unregisters the physical server source from the Cohesity cluster.</p>\n<p>You can fetch the <code>Windows_Source_Id</code> to be specified in the API URL from the <strong>Register Linux Physical Source</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{Windows_Source_Id}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"3e236e65-6fd6-4139-9505-ab8ee950ce72","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations/{{Linux_Source_Id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199821"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:17:01 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"607e7eef-4cd6-41e5-8623-a5f79f13375f"}],"id":"8aeb93fa-1cd6-473c-9840-00de030ff27e","description":"<p>Perform the following steps using the API operations for block-based protection and recover your Windows physical server using Cohesity:</p>\n<ol>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Windows physical server as a source with the Cohesity cluster.</li>\n<li>Verify whether the physical server is available as a source on the Cohesity cluster and get the source ID required for creating the Protection Group.</li>\n<li>Get the list of Protection Policies available on the Cohesity cluster. You can either use an existing policy or create a new Protection Policy for a Protection Group.</li>\n<li>If you have created a new Protection Policy, verify whether the policy is available on the Cohesity cluster, and get the policy ID required for creating the Protection Group.</li>\n<li>Get the list of Storage Domains available on the Cohesity cluster. You can either use an existing Storage Domain or create a new Storage Domain. Obtain the Storage Domain ID required for creating the Protection Group.</li>\n<li>If you have created a new Storage Domain, verify whether the Storage Domain is available on the Cohesity cluster, and get the Storage Domain ID required for creating the Protection Group.</li>\n<li>Create a block-based Protection Group for protecting the Windows physical server.</li>\n<li>Run the Protection Group.</li>\n<li>Get the Protection Group run status.</li>\n<li>Get the latest snapshot for recovery.</li>\n<li>Recover the volume of the physical server from the latest snapshot.</li>\n<li>Delete the Protection Group.</li>\n<li>Unregister the Windows physical server.</li>\n</ol>\n","_postman_id":"8aeb93fa-1cd6-473c-9840-00de030ff27e"}],"id":"028ff271-026b-45dc-883c-ccb283478dfb","_postman_id":"028ff271-026b-45dc-883c-ccb283478dfb","description":""},{"name":"Physical File-based Protection Workflows","item":[{"name":"Linux Physical Server File-Based Protection Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"97100be5-64eb-448f-a54c-9213efd02c41"}}],"id":"d0e761a7-d27c-41f1-bcf5-e4693a63cd7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"130104af-2b16-4c33-9b42-64922a1afd52","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n    \"Domain\": \"LOCAL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675191792"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:03:11 GMT"},{"key":"Content-Length","value":"1127"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"d0e761a7-d27c-41f1-bcf5-e4693a63cd7f"},{"name":"Register Linux Physical Server","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","//Add not null","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema={","    \"type\": \"object\",","    \"required\": [","        \"id\",","        \"name\",","        \"environment\",","        \"physicalProtectionSource\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\"","        },","        \"name\": {","            \"type\": \"string\"","        },","        \"environment\": {","            \"type\": \"string\"","        },","        \"physicalProtectionSource\": {","            \"type\": \"object\",","            \"required\": [","                \"type\",","                \"name\",","                \"osName\",","                \"id\",","                \"hostType\",","                \"hostName\"","            ],","            \"properties\": {","                \"type\": {","                    \"type\": \"string\"","                },","                \"name\": {","                    \"type\": \"string\"","                },","                \"osName\": {","                    \"type\": \"string\"","                },","                \"id\": {","                    \"type\": \"object\",","                    \"required\": [","                        \"id\",","                        \"clusterId\",","                        \"clusterIncarnationId\"","                    ],","                    \"properties\": {","                        \"id\": {","                            \"type\": \"integer\"","                        },","                        \"clusterId\": {","                            \"type\": \"integer\"","                        },","                        \"clusterIncarnationId\": {","                            \"type\": \"integer\"","                        }","                    }","                },","                \"hostType\": {","                    \"type\": \"string\"","                },","                \"hostName\": {","                    \"type\": \"string\"","                }","            }","        }","    }","};","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"f054ea73-f9bd-473e-8041-9cd616456bd3"}}],"id":"1c9259c8-69ae-41af-b3e5-e7e4a735fcf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{Linux_Server_IP}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kLinux\"\n}"},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/protectionSources/register","description":"<p>Registers the Linux physical server with the Cohesity cluster.</p>\n<p>Ensure to provide the IP address (<code>Linux_Server_IP</code></p>\n<p>) of the Windows physical server in the request body of the API.</p>\n<p>The source ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"8c83dd91-1d36-43fa-bb11-2eda72e66e04","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{File_Client_Linux1}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kLinux\"\n}"},"url":"https://{{cluster-vip}}irisservices/api/v1/public/protectionSources/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192684"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:18:04 GMT"},{"key":"Content-Length","value":"219"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25263,\n    \"name\": \"{{Linux_Server_IP}}\",\n    \"environment\": \"kPhysical\",\n    \"physicalProtectionSource\": {\n        \"type\": \"kHost\",\n        \"name\": \"{{Linux_Server_IP}}\",\n        \"osName\": \"CentOS Linux release 8.5.2111\",\n        \"id\": {\n            \"id\": 25262,\n            \"clusterId\": {{cluster_id}},\n            \"clusterIncarnationId\": {{cluster_incarnationId}},\n        },\n        \"hostType\": \"kLinux\",\n        \"hostName\": \"CentOS8-001\"\n    }\n}"}],"_postman_id":"1c9259c8-69ae-41af-b3e5-e7e4a735fcf0"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"cascadedTargetsConfig\",","        \"retryOptions\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"incremental\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"incremental\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        }","                    }","                }","            }","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"retryOptions\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"retries\",","                \"retryIntervalMins\"","            ],","            \"properties\": {","                \"retries\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"retryIntervalMins\": {","                    \"type\": \"integer\",","                    \"default\": 0","                }","            }","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        }","    }","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"5ea7a387-38af-40d5-9040-f84218139b9f"}}],"id":"76db7f8e-3915-4937-92bb-d6ec2df12f79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"LinuxFileFolderPolicy\",\n  \"description\": \"Policy for File, Folder\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"a6488cc1-dc51-4291-ae48-b231b48e840d","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": 14\n      }\n    }\n  },\n  \"name\": \"{{Linux_Policy_Name}}\",\n  \"description\": \"Policy for File, Folder Testing\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": 3,\n    \"retryIntervalMins\": 5\n  }\n}"},"url":"https://{{cluster_1-ip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675192995"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:23:14 GMT"},{"key":"Content-Length","value":"287"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"LinuxFileFolderPolicy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for File, Folder\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:412243\"\n}"}],"_postman_id":"76db7f8e-3915-4937-92bb-d6ec2df12f79"},{"name":"Create Storage Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Linux_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"6429c0ba-ca1e-4755-9eb8-475037b301b5"}}],"id":"d22e89e9-e600-4b2d-afc2-58e29942e1b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Storage_Domain\",\r\n  \"clusterPartitionId\": 3,\r\n  \"storagePolicy\": {\r\n    \"deduplicationEnabled\": true,\r\n    \"inlineDeduplicate\": true,\r\n    \"compressionPolicy\": \"kCompressionLow\",\r\n    \"inlineCompress\": true,\r\n    \"encryptionPolicy\": \"kEncryptionNone\",\r\n    \"erasureCodingInfo\": {\r\n      \"erasureCodingEnabled\": false\r\n    },\r\n    \"numFailuresTolerated\": 1,\r\n    \"numNodeFailuresTolerated\": 1\r\n  },\r\n  \"physicalQuota\": {},\r\n  \"defaultViewQuotaPolicy\": {},\r\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\r\n  \"nisDomainNameVec\": [\r\n    null\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/viewBoxes","description":"<p>Creates a Storage Domain on the Cohesity cluster.</p>\n<p>The Storage Domain ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"992a8501-de64-47d1-889a-b5330e852cb9","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":{"raw":"https://{{cluster-vip}}/irisservices/api/v1/public/viewBoxes","protocol":"https","host":["{{cluster-vip}}"],"path":["irisservices","api","v1","public","viewBoxes"],"query":[{"key":"names","value":"DefaultStorageDomain","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193189"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:26:28 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6246697,\n  \"name\": \"Storage_Domain\",\n  \"clusterPartitionId\": 3,\n  \"clientSubnetWhiteList\": [],\n  \"storagePolicy\": {\n    \"deduplicationEnabled\": true,\n    \"inlineDeduplicate\": true,\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"inlineCompress\": true,\n    \"deduplicateCompressDelaySecs\": 0,\n    \"encryptionPolicy\": \"kEncryptionNone\",\n    \"downTierDelaySecsList\": [\n      0,\n      0,\n      5184000,\n      0\n    ],\n    \"numFailuresTolerated\": 0,\n    \"numNodeFailuresTolerated\": 0\n  },\n  \"physicalQuota\": {},\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\n  \"defaultViewQuotaPolicy\": {},\n  \"s3BucketsAllowed\": false,\n  \"nisDomainNameVec\": [\n    \"\"\n  ],\n  \"clusterPartitionName\": \"DefaultPartition\",\n  \"removalState\": \"kDontRemove\"\n}"}],"_postman_id":"d22e89e9-e600-4b2d-afc2-58e29942e1b9"},{"name":"Create File-based Protection Group","event":[{"listen":"test","script":{"exec":["jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"name\",","        \"policyId\",","        \"priority\",","        \"storageDomainId\",","        \"description\",","        \"startTime\",","        \"alertPolicy\",","        \"sla\",","        \"qosPolicy\",","        \"abortInBlackouts\",","        \"isActive\",","        \"isPaused\",","        \"environment\",","        \"permissions\",","        \"missingEntities\",","        \"physicalParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"policyId\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"priority\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"storageDomainId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"startTime\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"hour\",","                \"minute\",","                \"timeZone\"","            ],","            \"properties\": {","                \"hour\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"minute\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"timeZone\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        },","        \"alertPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"backupRunStatus\",","                \"alertTargets\"","            ],","            \"properties\": {","                \"backupRunStatus\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                },","                \"alertTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {}","                }","            }","        },","        \"sla\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"backupRunType\",","                    \"slaMinutes\"","                ],","                \"properties\": {","                    \"backupRunType\": {","                        \"type\": \"string\"","                    },","                    \"slaMinutes\": {","                        \"type\": \"integer\"","                    }","                }","            }","        },","        \"qosPolicy\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"abortInBlackouts\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isActive\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isPaused\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"permissions\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"missingEntities\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"physicalParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"protectionType\",","                \"fileProtectionTypeParams\"","            ],","            \"properties\": {","                \"protectionType\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"fileProtectionTypeParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"objects\",","                        \"indexingPolicy\",","                        \"performSourceSideDeduplication\",","                        \"dedupExclusionSourceIds\",","                        \"globalExcludePaths\",","                        \"ignorableErrors\"","                    ],","                    \"properties\": {","                        \"objects\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"id\",","                                    \"name\",","                                    \"filePaths\",","                                    \"usesPathLevelSkipNestedVolumeSetting\",","                                    \"nestedVolumeTypesToSkip\",","                                    \"followNasSymlinkTarget\"","                                ],","                                \"properties\": {","                                    \"id\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    },","                                    \"name\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    },","                                    \"filePaths\": {","                                        \"type\": \"array\",","                                        \"default\": [],","                                        \"items\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"includedPath\",","                                                \"excludedPaths\",","                                                \"skipNestedVolumes\"","                                            ],","                                            \"properties\": {","                                                \"includedPath\": {","                                                    \"type\": \"string\",","                                                    \"default\": \"\"","                                                },","                                                \"excludedPaths\": {","                                                    \"type\": \"null\",","                                                    \"default\": null","                                                },","                                                \"skipNestedVolumes\": {","                                                    \"type\": \"boolean\",","                                                    \"default\": false","                                                }","                                            }","                                        }","                                    },","                                    \"usesPathLevelSkipNestedVolumeSetting\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    },","                                    \"nestedVolumeTypesToSkip\": {","                                        \"type\": \"null\",","                                        \"default\": null","                                    },","                                    \"followNasSymlinkTarget\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        },","                        \"indexingPolicy\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"enableIndexing\",","                                \"includePaths\",","                                \"excludePaths\"","                            ],","                            \"properties\": {","                                \"enableIndexing\": {","                                    \"type\": \"boolean\",","                                    \"default\": false","                                },","                                \"includePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                },","                                \"excludePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\"","                                    }","                                }","                            }","                        },","                        \"performSourceSideDeduplication\": {","                            \"type\": \"boolean\",","                            \"default\": false","                        },","                        \"dedupExclusionSourceIds\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"globalExcludePaths\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"ignorableErrors\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {}","                        }","                    }","                }","            }","        }","    }","}","","","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"Linux_Protection_Job_Id\", jsonData.id);","",""],"type":"text/javascript","id":"e256f801-46de-4d2e-bb73-e2d9cbab34c0"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Linux_Protection_Job_Name\", \"Linux_Protection_Job\");"],"type":"text/javascript","id":"e7541cb8-077a-438d-b32d-16c28413be55"}}],"id":"4a0f876d-4326-4593-8a7d-f78d06f4bed5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"storageDomainId\": {{storageDomainId}},\n    \"policyId\": \"{{policyId}}\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"name\": \"{{Linux_Protection_Group_Name}}\",\n    \"environment\": \"kPhysical\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{Linux_Source_Id}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/\",\n                            \"excludedPaths\": []\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": [],\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"globalExcludePaths\": [],\n            \"ignorableErrors\": []\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups","description":"<p>Creates a file-based Protection Group for protecting your Linux physical server.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the physical server source to be protected are required in the request body for running this API.</li>\n<li>For file-based Protection Group, ensure the <code>protectionType</code> value in the request body is <strong><code>KFile</code></strong>.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the physical server.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"d0a664d6-a109-41c8-a3a3-ab9937119df7","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"storageDomainId\": {{Linux_Viewbox_Id_DSD}},\n    \"policyId\": \"{{Linux_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"name\": \"{{Linux_Protection_Job_Name}}\",\n    \"environment\": \"kPhysical\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{Linux_Source_Id}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/\",\n                            \"excludedPaths\": []\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": [],\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"globalExcludePaths\": [],\n            \"ignorableErrors\": []\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193194"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:26:33 GMT"},{"key":"Content-Length","value":"705"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:412248\",\n    \"name\": \"{{Linux_Protection_Group_Name}}\",\n    \"policyId\": \"8743635867054034:1666901032964:412243\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 6246697,\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        },\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kPhysical\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": 25263,\n                    \"name\": \"{{Linux_Source_Name}}\",\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/\",\n                            \"excludedPaths\": null,\n                            \"skipNestedVolumes\": true\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": null,\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"dedupExclusionSourceIds\": null,\n            \"globalExcludePaths\": null,\n            \"ignorableErrors\": []\n        }\n    }\n}"}],"_postman_id":"4a0f876d-4326-4593-8a7d-f78d06f4bed5"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(60000);","    pm.response.to.have.status(202);","","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"fd3326d9-0cd5-4d0f-b34f-a21125783bb8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a2440d61-0a44-4f0f-bc39-2783afcb39c3"}}],"id":"b5a2a051-c9a6-4e28-a84e-042bb743ee89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting your physical server.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"b2804aca-d9e6-4ad4-8290-84cb10e1c88c","name":"Sample Output","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{Linux_Protection_Job_Id}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193566"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:32:45 GMT"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"8743635867054034:1666901032964:412248\"\n}"}],"_postman_id":"b5a2a051-c9a6-4e28-a84e-042bb743ee89"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function () { }, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","var resp = pm.response.json();","var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if ((status == \"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","    setTimeout(function () { }, 10000);","    postman.setNextRequest(request.name)","}","else {","    // Sleep for 5 seconds.","    setTimeout(function () { }, 5000);","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"runs\",","        \"totalRuns\"","    ],","    \"properties\": {","        \"runs\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"protectionGroupInstanceId\",","                    \"protectionGroupId\",","                    \"isReplicationRun\",","                    \"protectionGroupName\",","                    \"objects\",","                    \"localBackupInfo\",","                    \"permissions\",","                    \"hasLocalSnapshot\",","                    \"environment\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupInstanceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"isReplicationRun\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objects\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"localBackupInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"runType\",","                            \"startTimeUsecs\",","                            \"status\",","                            \"messages\",","                            \"successfulObjectsCount\",","                            \"failedObjectsCount\",","                            \"cancelledObjectsCount\",","                            \"successfulAppObjectsCount\",","                            \"failedAppObjectsCount\",","                            \"cancelledAppObjectsCount\",","                            \"localSnapshotStats\",","                            \"indexingTaskId\",","                            \"localTaskId\"","                        ],","                        \"properties\": {","                            \"runType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"startTimeUsecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"status\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"messages\": {","                                \"type\": \"null\",","                                \"default\": null","                            },","                            \"successfulObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"successfulAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"localSnapshotStats\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"logicalSizeBytes\"","                                ],","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    }","                                }","                            },","                            \"indexingTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"progressTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"localTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    },","                    \"permissions\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {}","                    },","                    \"hasLocalSnapshot\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                }","            }","        },","        \"totalRuns\": {","            \"type\": \"integer\",","            \"default\": 0","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"d55da080-1c0e-4d9d-8c65-b735d557a70f"}}],"id":"3c3fdcec-d7fe-4456-98be-400160f7d64b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is <code>succeeded</code>, you can recover the files and folders of the physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_1-ip}}"],"query":[],"variable":[]}},"response":[{"id":"7ce15eb5-066b-448f-88d7-e1abd7396aa8","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster_1-ip}}/v2/data-protect/protection-groups/{{Linux_Protection_Job_Id}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675193597"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 19:33:16 GMT"},{"key":"Content-Length","value":"420"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"412248:1675193566341137\",\n            \"protectionGroupInstanceId\": 412250,\n            \"protectionGroupId\": \"8743635867054034:1666901032964:412248\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Linux_Protection_Job\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"startTimeUsecs\": 1675193566341137,\n                \"status\": \"Running\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 0,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 62934939648\n                },\n                \"indexingTaskId\": \"indexing_412248_412250\",\n                \"progressTaskId\": \"backup_412250_1\",\n                \"localTaskId\": \"8743635867054034:1666901032964:51865318884\"\n            },\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kPhysical\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"3c3fdcec-d7fe-4456-98be-400160f7d64b"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","var jsonData = pm.response.json();","","pm.test(\"Validating response\", function () {","    for (var i = 0; i < jsonData.snapshots.length; i++) {","        if (jsonData.snapshots[i].protectionGroupName === pm.environment.get(\"Linux_Protection_Job_Name\")) {","            pm.environment.set(\"Linux_File_Restore_File\", jsonData.snapshots[i].indexedObjectName);","            pm.environment.set(\"Linux_File_Snapshot\", jsonData.snapshots[i].objectSnapshotid);","","            //break;","        }","    }","});","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"snapshots\"","    ],","    \"properties\": {","        \"snapshots\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"indexedObjectName\",","                    \"objectSnapshotid\",","                    \"snapshotTimestampUsecs\",","                    \"runType\",","                    \"protectionGroupId\",","                    \"protectionGroupName\",","                    \"storageDomainId\",","                    \"attempts\",","                    \"sizeBytes\",","                    \"lastModifiedTimeUsecs\"","                ],","                \"properties\": {","                    \"indexedObjectName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objectSnapshotid\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"snapshotTimestampUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"runType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"storageDomainId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"attempts\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sizeBytes\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastModifiedTimeUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"6e1304dd-d425-4a5c-ae34-d94decc6b292"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3c539eb4-bb1a-416f-819c-a5835fc9ef5d"}}],"id":"4df9745c-b3bd-4ebf-8604-6065d52bbc4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https:/{{cluster-vip}}/v2/data-protect/objects/{{Linux_Source_Id}}/protection-groups/{{protectionGroupId}}/indexed-objects/snapshots?indexedObjectName=/etc/anaconda/product.d/centos.conf&includeIndexedSnapshotsOnly=true","description":"<p>Returns information on the latest snapshot of the object specified in the API URL.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li>The snapshot ID of a file or folder from the response is required for recovering that file or folder.</li>\n<li>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</li>\n<li>You can fetch the <code>Linux_Source_Id</code> to be specified in the API URL from the <strong>Register Linux Physical Server</strong> API response.</li>\n</ul>\n","urlObject":{"port":"","path":["{{cluster-vip}}","v2","data-protect","objects","{{Linux_Source_Id}}","protection-groups","{{protectionGroupId}}","indexed-objects","snapshots"],"host":["https"],"query":[{"key":"indexedObjectName","value":"/etc/anaconda/product.d/centos.conf"},{"key":"includeIndexedSnapshotsOnly","value":"true"}],"variable":[]}},"response":[{"id":"96b37e18-f672-4e3f-ad84-169981c52085","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"https:/{{cluster-vip}}/v2/data-protect/objects/{{Linux_Source_Id}}/protection-groups/{{protectionGroupId}}/indexed-objects/snapshots?indexedObjectName=/etc/anaconda/product.d/centos.conf&includeIndexedSnapshotsOnly=true","host":["https"],"port":"","path":["{{cluster-vip}}","v2","data-protect","objects","{{Linux_Source_Id}}","protection-groups","{{protectionGroupId}}","indexed-objects","snapshots"],"query":[{"key":"indexedObjectName","value":"/etc/anaconda/product.d/centos.conf"},{"key":"includeIndexedSnapshotsOnly","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199388"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:09:47 GMT"},{"key":"Content-Length","value":"456"}],"cookie":[],"responseTime":null,"body":"{\n    \"snapshots\": [\n        {\n            \"indexedObjectName\": \"/etc/anaconda/product.d/centos.conf\",\n            \"objectSnapshotid\": \"{{snapshotId}}\",\n            \"snapshotTimestampUsecs\": 1675193566341137,\n            \"runType\": \"kRegular\",\n            \"protectionGroupId\": \"8743635867054034:1666901032964:412248\",\n            \"protectionGroupName\": \"{{Linux_Protection_Group_Name}}\",\n            \"storageDomainId\": 24,\n            \"attempts\": 1,\n            \"sizeBytes\": 132,\n            \"lastModifiedTimeUsecs\": 1625150242000000\n        }\n    ]\n}"}],"_postman_id":"4df9745c-b3bd-4ebf-8604-6065d52bbc4d"},{"name":"Recover File","event":[{"listen":"prerequest","script":{"exec":["var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + (\"0\" + (currentdate.getMonth() + 1)).slice(-2) + \"\" + (\"0\" + currentdate.getDate()).slice(-2) + \"_\"","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","pm.environment.set(\"timestamp\", datetime);"],"type":"text/javascript","id":"3fc91694-fb7c-4564-8dc6-e7b27e5106bc"}},{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"27afae6b-6abf-4c36-860e-8e2f22e0b0aa"}}],"id":"3c5b88a6-a3be-494c-9d6d-604477a013b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"name\": \"Recover__{{timestamp}}\",\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Linux_File_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"recoverTarget\": {\n                    \"id\": {{Linux_Source_Id}}\n                },\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/recoveries","description":"<p>Recover the objects specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID (<code>snapshotId</code>) from which you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>{{timestamp}}</code> variable in the request body will be auto-populated when you run the API.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"a2b03cd0-e26f-4419-95a7-07bc85797a26","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"name\": \"Recover__{{timestamp}}\",\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Linux_File_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"recoverTarget\": {\n                    \"id\": {{Linux_Source_Id}}\n                },\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/recoveries"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199407"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:10:06 GMT"},{"key":"Content-Length","value":"787"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:412829\",\n    \"name\": \"Recover__20230131_13105\",\n    \"startTimeUsecs\": 1675199405508688,\n    \"status\": \"Accepted\",\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"recoveryAction\": \"RecoverFiles\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"admin\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \"8743635867054034:1666901032964:412248\",\n                \"snapshotCreationTimeUsecs\": 1675193566341137,\n                \"snapshotTargetType\": \"Local\",\n                \"storageDomainId\": 24,\n                \"progressTaskId\": \"\",\n                \"messages\": null,\n                \"objectInfo\": {\n                    \"id\": 25263,\n                    \"name\": \"{{Source_Phyisical_Server}}\",\n                    \"sourceName\": \"Physical Servers\",\n                    \"environment\": \"kPhysical\",\n                    \"objectType\": \"kHost\",\n                    \"protectionType\": \"kVolume\",\n                    \"osType\": \"kLinux\"\n                }\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false,\n                    \"status\": \"NotStarted\",\n                    \"messages\": null\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true,\n                \"recoverTarget\": {\n                    \"id\": 25263,\n                    \"name\": \"{{Target_Physical_Server}}\",\n                    \"parentSourceId\": 20764,\n                    \"parentSourceName\": \"Physical Servers\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"3c5b88a6-a3be-494c-9d6d-604477a013b2"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"2b3a463a-0e9f-46fa-b41c-45d987b8d3b5"}}],"id":"e70afe16-e3b9-4bdb-9104-82ec0a606a12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>The ID (<code>protectionGrouId</code>) of the Protection Group to be deleted must be specified in the API URL.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster-vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"534bd188-bb97-4ccd-81fa-9d6f0c9c9dc1","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{Linux_Protection_Job_Id}}?deleteSnapshots=true","protocol":"https","host":["{{cluster-vip}}"],"path":["v2","data-protect","protection-groups","{{Linux_Protection_Job_Id}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199707"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:15:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e70afe16-e3b9-4bdb-9104-82ec0a606a12"},{"name":"Unregister Linux Physical Server Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"c0a35e77-1b32-4d80-9782-cf64bb27f5ce"}}],"id":"8609555f-418b-490f-906b-cb9b9fffca3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations/{{Linux_Source_Id}}","description":"<p>Unregisters the physical server source from the Cohesity cluster.</p>\n<p>You can fetch the <code>Linux_Source_Id</code> to be specified in the API URL from the <strong>Register Linux Physical Source</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{Linux_Source_Id}}"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"1f53e4a9-26ac-44fd-bb68-df589ecb33d0","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster_1-ip}}/v2/data-protect/sources/registrations/{{Linux_Source_Id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199821"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:17:01 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8609555f-418b-490f-906b-cb9b9fffca3b"}],"id":"478f59a9-4ae3-4387-9f1d-3905dad67eca","description":"<p>Perform the following steps using the API operations to protect (file-based) and recover your Linux physical server using Cohesity:</p>\n<ol>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Linux physical server as a source with the Cohesity cluster.</li>\n<li>Create a Protection Policy and get the Policy ID required for creating the Protection Group.</li>\n<li>Create a Storage Domain and get the Storage Domain ID required for creating the Protection Group.</li>\n<li>Create a file-based Protection Group for protecting the Linux physical server.</li>\n<li>Run the Protection Group.</li>\n<li>Obtain the Protection Group run status.</li>\n<li>Get the latest snapshot of the file you want to recover.</li>\n<li>Recover the file from the latest snapshot.</li>\n<li>Delete the Protection Group.</li>\n<li>Unregister the Linux Physical Server from the Cohesity cluster.</li>\n</ol>\n","_postman_id":"478f59a9-4ae3-4387-9f1d-3905dad67eca"},{"name":"Windows Physical Server File-Based Protection Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","id":"9ac75b6a-8e80-4073-aeac-9ec837bf3260"}}],"id":"4ebffa9e-c7ce-49c2-b5bc-2ed12e77395c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\":\"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["v2","access-tokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"9cfd68dd-b065-4a25-a3f2-92c2dcf874a1","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675202646"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:04:05 GMT"},{"key":"Content-Length","value":"1126"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\""}],"_postman_id":"4ebffa9e-c7ce-49c2-b5bc-2ed12e77395c"},{"name":"Register Windows Physical Server","event":[{"listen":"test","script":{"exec":["//Start of test & end of test","","pm.test(\"Register Isilon Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","if(responseCode.code !== 201) {","    postman.setNextRequest(null);","}","","//Add not null","","else {","    pm.test(\"Validating response and fetch registration id\", function () {","        var jsonData = pm.response.json();","        pm.environment.set(\"sourceId\", jsonData.id);","    });","}","","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"title\": \"Root Schema\",","    \"required\": [","        \"id\",","        \"sourceId\",","        \"sourceInfo\",","        \"environment\",","        \"connections\",","        \"registrationTimeMsecs\",","        \"lastRefreshedTimeMsecs\",","        \"isilonParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The id Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceId\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The sourceId Schema\",","            \"examples\": [","                1","            ]","        },","        \"sourceInfo\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The sourceInfo Schema\",","            \"required\": [","                \"id\",","                \"name\",","                \"environment\",","                \"objectType\",","                \"protectionStats\",","                \"isilonParams\"","            ],","            \"properties\": {","                \"id\": {","                    \"type\": \"integer\",","                    \"default\": 0,","                    \"title\": \"The id Schema\",","                    \"examples\": [","                        1","                    ]","                },","                \"name\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The name Schema\",","                    \"examples\": [","                        \"sv4-isilon1\"","                    ]","                },","                \"environment\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The environment Schema\",","                    \"examples\": [","                        \"kIsilon\"","                    ]","                },","                \"objectType\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The objectType Schema\",","                    \"examples\": [","                        \"kCluster\"","                    ]","                },","                \"protectionStats\": {","                    \"type\": \"null\",","                    \"default\": null,","                    \"title\": \"The protectionStats Schema\",","                    \"examples\": [","                        null","                    ]","                },","                \"isilonParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The isilonParams Schema\",","                    \"required\": [","                        \"supportedNasMountProtocols\"","                    ],","                    \"properties\": {","                        \"supportedNasMountProtocols\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The supportedNasMountProtocols Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"supportedNasMountProtocols\": null","                    }]","                }","            },","            \"examples\": [{","                \"id\": 1,","                \"name\": \"sv4-isilon1\",","                \"environment\": \"kIsilon\",","                \"objectType\": \"kCluster\",","                \"protectionStats\": null,","                \"isilonParams\": {","                    \"supportedNasMountProtocols\": null","                }","            }]","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\",","            \"title\": \"The environment Schema\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"connections\": {","            \"type\": \"array\",","            \"default\": [],","            \"title\": \"The connections Schema\",","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"registrationTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The registrationTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"lastRefreshedTimeMsecs\": {","            \"type\": \"integer\",","            \"default\": 0,","            \"title\": \"The lastRefreshedTimeMsecs Schema\",","            \"examples\": [","                1669110005645","            ]","        },","        \"isilonParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"title\": \"The isilonParams Schema\",","            \"required\": [","                \"endpoint\",","                \"credentials\",","                \"backUpSMBVolumes\",","                \"smbCredentials\",","                \"filterIpConfig\"","            ],","            \"properties\": {","                \"endpoint\": {","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"title\": \"The endpoint Schema\",","                    \"examples\": [","                        \"10.2.144.30\"","                    ]","                },","                \"credentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The credentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"admin\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"admin\",","                        \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                    }]","                },","                \"backUpSMBVolumes\": {","                    \"type\": \"boolean\",","                    \"default\": false,","                    \"title\": \"The backUpSMBVolumes Schema\",","                    \"examples\": [","                        true","                    ]","                },","                \"smbCredentials\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The smbCredentials Schema\",","                    \"required\": [","                        \"username\",","                        \"password\"","                    ],","                    \"properties\": {","                        \"username\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The username Schema\",","                            \"examples\": [","                                \"Administrator\"","                            ]","                        },","                        \"password\": {","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"title\": \"The password Schema\",","                            \"examples\": [","                                \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                            ]","                        }","                    },","                    \"examples\": [{","                        \"username\": \"Administrator\",","                        \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                    }]","                },","                \"filterIpConfig\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"title\": \"The filterIpConfig Schema\",","                    \"required\": [","                        \"deniedIpAddresses\",","                        \"allowedIpAddresses\"","                    ],","                    \"properties\": {","                        \"deniedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The deniedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        },","                        \"allowedIpAddresses\": {","                            \"type\": \"null\",","                            \"default\": null,","                            \"title\": \"The allowedIpAddresses Schema\",","                            \"examples\": [","                                null","                            ]","                        }","                    },","                    \"examples\": [{","                        \"deniedIpAddresses\": null,","                        \"allowedIpAddresses\": null","                    }]","                }","            },","            \"examples\": [{","                \"endpoint\": \"10.2.144.30\",","                \"credentials\": {","                    \"username\": \"admin\",","                    \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","                },","                \"backUpSMBVolumes\": true,","                \"smbCredentials\": {","                    \"username\": \"Administrator\",","                    \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","                },","                \"filterIpConfig\": {","                    \"deniedIpAddresses\": null,","                    \"allowedIpAddresses\": null","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": 1,","        \"sourceId\": 1,","        \"sourceInfo\": {","            \"id\": 1,","            \"name\": \"sv4-isilon1\",","            \"environment\": \"kIsilon\",","            \"objectType\": \"kCluster\",","            \"protectionStats\": null,","            \"isilonParams\": {","                \"supportedNasMountProtocols\": null","            }","        },","        \"environment\": \"kIsilon\",","        \"connections\": [],","        \"registrationTimeMsecs\": 1669110005645,","        \"lastRefreshedTimeMsecs\": 1669110005645,","        \"isilonParams\": {","            \"endpoint\": \"10.2.144.30\",","            \"credentials\": {","                \"username\": \"admin\",","                \"password\": \"FwoQiKDzps1+RZBQNtBJOgKQExUoAAAAiVevBZtqawYwQkdPgYeyxw==\"","            },","            \"backUpSMBVolumes\": true,","            \"smbCredentials\": {","                \"username\": \"Administrator\",","                \"password\": \"FwoQi/OfgQVWaGvTSXWhbpwLqhUoAAAAV+kiatr2zMlSrmAvRcFXmA==\"","            },","            \"filterIpConfig\": {","                \"deniedIpAddresses\": null,","                \"allowedIpAddresses\": null","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"8db921c2-3e2f-4c95-a0fc-392381489c90"}}],"id":"c52fd743-0213-44b4-99e4-85053b2be526","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{Windows_Server_IP}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kWindows\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/protectionSources/register","description":"<p>Registers the Windows physical server with the Cohesity cluster.</p>\n<ul>\n<li><p>Ensure to provide the IP address (<code>Windows_Server_IP</code>) of the Windows physical server in the request body of the API.</p>\n</li>\n<li><p>The source ID from the response is required to create the Protection Group for protecting your physical server.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"45d21720-833a-406b-b526-9811df51a34b","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"{{File_Client_Windows}}\",\n  \"environment\": \"kPhysical\",\n  \"physicalType\": \"kHost\",\n  \"HostType\": \"kWindows\"\n}"},"url":"https://{{cluster_1-ip}}/irisservices/api/v1/public/protectionSources/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675203650"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 22:20:50 GMT"},{"key":"Content-Length","value":"308"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 25269,\n    \"name\": \"{{Windows_Server_IP}}\",\n    \"environment\": \"kPhysical\",\n    \"physicalProtectionSource\": {\n        \"type\": \"kHost\",\n        \"name\": \"{{Windows_Server_Name}}\",\n        \"osName\": \"Windows Server 2016 Standard\",\n        \"id\": {\n            \"id\": 25268,\n            \"clusterId\": {{cluster_id}},\n            \"clusterIncarnationId\": {{incarnation_id}}\n        },\n        \"hostType\": \"kWindows\",\n        \"networkingInfo\": {\n            \"resourceVec\": [\n                {\n                    \"type\": \"kServer\",\n                    \"endpoints\": [\n                        {\n                            \"ipv4Addr\": \"{{Windows_Server_IPV4}}\"\n                        },\n                        {\n                            \"ipv6Addr\": \"{{Windows_Server_IPV6}}\"\n                        },\n                        {\n                            \"ipv6Addr\": \"{{Windows_Server_IPV6}}\"\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"c52fd743-0213-44b4-99e4-85053b2be526"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["pm.test(\"Registering Isilon source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response is not null\", function () {","    pm.expect(pm.response).to.not.equal(undefined);","});","var found_flag = 0","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    for (i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment == \"kPhysical\") {","            if (jsonData.registrations[i].sourceInfo.name == pm.environment.get(\"File_Client_Windows\")) {","                pm.environment.set(\"Windows_Source_Id\", parseInt(jsonData.registrations[i].sourceId));","                found_flag += 1","            }","        }","        else if (jsonData.registrations[i].sourceInfo.environment == \"kGenericNas\") {","            if (jsonData.registrations[i].sourceInfo.name.includes(pm.environment.get(\"File_Client_Windows\"))) {","                pm.environment.set(\"Windows_NAS_Source_Id\", parseInt(jsonData.registrations[i].sourceId));","                found_flag += 1","            }","        }","    }","});","pm.test(\"Response contains expected client info of \" + pm.environment.get(\"Windows_NAS_Source_Id\"), function () {","    if (found_flag != 2) {","        pm.expect.fail(\"Client/NAS info not found\")","    }","});","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"registrations\"","    ],","    \"properties\": {","        \"registrations\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"sourceId\",","                    \"sourceInfo\",","                    \"environment\",","                    \"registrationTimeMsecs\",","                    \"lastRefreshedTimeMsecs\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sourceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sourceInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"id\",","                            \"name\",","                            \"environment\",","                            \"objectType\",","                            \"protectionStats\"","                        ],","                        \"properties\": {","                            \"id\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"name\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"environment\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"objectType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"osType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"protectionStats\": {","                                \"type\": \"null\",","                                \"default\": null","                            }","                        }","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"authenticationStatus\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"registrationTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastRefreshedTimeMsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"3e5b3c86-ad22-4721-91cc-fec0767d5e78"}}],"id":"6c261652-e0cf-47f7-b4c2-fa57ddb105b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the physical server is registered with the Cohesity cluster</li>\n<li>Obtain the Id (<code>sourceId</code>) of the physical server.<br />  The <code>sourceId</code> is required for creating a Protection Group.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"2838ce0b-31eb-4ea9-8c89-17e99fd4eb1f","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675207691"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:28:10 GMT"},{"key":"Content-Length","value":"809"}],"cookie":[],"responseTime":null,"body":"{\n    \"registrations\": [\n             {\n            \"id\": 25269,\n            \"sourceId\": 25269,\n            \"sourceInfo\": {\n                \"id\": 25269,\n                \"name\": \"Physical_Server_Windows\",\n                \"environment\": \"kPhysical\",\n                \"objectType\": \"kHost\",\n                \"protectionType\": \"kVolume\",\n                \"osType\": \"kWindows\",\n                \"protectionStats\": null\n            },\n            \"environment\": \"kVMware\",\n            \"authenticationStatus\": \"Finished\",\n            \"registrationTimeMsecs\": 1675203649222,\n            \"lastRefreshedTimeMsecs\": 1675203661223\n        },\n        {\n            \"id\": 21530,\n            \"sourceId\": 21530,\n            \"sourceInfo\": {\n                \"id\": 21530,\n                \"name\": \"sv4-isilon1\",\n                \"environment\": \"kIsilon\",\n                \"objectType\": \"kCluster\",\n                \"protectionStats\": null,\n                \"isilonParams\": {\n                    \"supportedNasMountProtocols\": null\n                }\n            },\n            \"environment\": \"kIsilon\",\n            \"authenticationStatus\": \"Finished\",\n            \"registrationTimeMsecs\": 1668947814492,\n            \"lastRefreshedTimeMsecs\": 1675200394760,\n            \"isilonParams\": {\n                \"endpoint\": \"{{Isilon_IP}}\",\n                \"credentials\": {\n                    \"username\": \"admin\",\n                    \"password\": null\n                },\n                \"backUpSMBVolumes\": true,\n                \"smbCredentials\": {\n                    \"username\": \"Administrator\",\n                    \"password\": null\n                },\n                \"filterIpConfig\": {\n                    \"deniedIpAddresses\": null,\n                    \"allowedIpAddresses\": null\n                }\n            }\n        },\n        {\n            \"id\": 25157,\n            \"sourceId\": 25157,\n            \"sourceInfo\": {\n                \"id\": 25157,\n                \"name\": \"ldavcenter\",\n                \"environment\": \"kVMware\",\n                \"objectType\": \"kVCenter\",\n                \"uuid\": \"{{uuid}}\",\n                \"vCenterSummary\": {\n                    \"isCloudEnv\": false\n                },\n                \"protectionStats\": null,\n                \"vmwareParams\": {}\n            },\n            \"environment\": \"kVMware\",\n            \"authenticationStatus\": \"Finished\",\n            \"registrationTimeMsecs\": 1674849500401,\n            \"lastRefreshedTimeMsecs\": 1675195110972,\n            \"vmwareParams\": {\n                \"type\": \"kVCenter\",\n                \"vCenterParams\": {\n                    \"username\": \"Administrator\",\n                    \"password\": null,\n                    \"endpoint\": \"10.14.14.198\",\n                    \"throttlingParams\": {},\n                    \"dataStoreParams\": null\n                }\n            }\n        },\n        {\n            \"id\": 25274,\n            \"sourceId\": 25274,\n            \"sourceInfo\": {\n                \"id\": 25274,\n                \"name\": \"\\\\\\\\{{hostname}}\\\\CIFS-1\",\n                \"environment\": \"kGenericNas\",\n                \"objectType\": \"kHost\",\n                \"protectionStats\": null,\n                \"genericNasParams\": {\n                    \"supportedNasMountProtocols\": [\n                        \"kCifs1\"\n                    ]\n                }\n            },\n            \"environment\": \"kGenericNas\",\n            \"registrationTimeMsecs\": 1675204197313,\n            \"lastRefreshedTimeMsecs\": 1675204197313,\n            \"genericNasParams\": {\n                \"mountPoint\": \"\\\\\\\\{{hostname}}\\\\CIFS-1\",\n                \"mode\": \"kCifs1\",\n                \"smbMountCredentials\": {\n                    \"username\": \"administrator\",\n                    \"password\": null\n                }\n            }\n        }\n    ]\n}\n\n"}],"_postman_id":"6c261652-e0cf-47f7-b4c2-fa57ddb105b7"},{"name":"Get Protection Policies List","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code shoild be 200\", function () {","    pm.response.to.have.status(200);","});","","pm.environment.set(\"Windows_Policy_Name\", \"WindowsFileFolderTestPolicy\");","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"policies\"","    ],","    \"properties\": {","        \"policies\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"name\",","                    \"backupPolicy\",","                    \"blackoutWindow\",","                    \"extendedRetention\",","                ],","                \"properties\": {","                    \"name\": {","                        \"type\": \"string\"","                    },","                    \"backupPolicy\": {","                        \"type\": \"object\",","                        \"required\": [","                            \"regular\"","                        ],","                        \"properties\": {","                            \"regular\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"incremental\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"daySchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    },","                                                    \"hourSchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"retention\": {","","                                        ","                                        \"properties\": {","                                            \"unit\": {","                                                \"type\": \"string\"","                                            },","                                            \"duration\": {","                                                \"type\": \"integer\"","                                            }","                                        }","                                    },","                                    \"full\": {","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"required\": [","                                                    \"unit\"","                                                ],","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\",","                                                        \"default\": \"\"","                                                    }","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"description\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"blackoutWindow\": {","                        \"type\": \"null\"","                    },","                    \"extendedRetention\": {","                        \"type\": [","                            \"null\",","                            \"array\"","                        ],","                        \"items\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"schedule\",","                                \"retention\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"frequency\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"frequency\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"retention\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"duration\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"duration\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"cascadedTargetsConfig\": {","                    },","                    \"retryOptions\": {","                        \"type\": \"object\",","                        \"default\": {},","","                        \"properties\": {","                            \"retries\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"retryIntervalMins\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            }","                        }","                    },","                    \"id\": {","                        \"type\": \"string\"","                    }","                }","            }","        }","    }","}","    pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"75864104-70c6-4838-9eb6-34e377feba5c"}}],"id":"cfc5b816-e2ac-41f4-8f02-70406926294a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Returns the list of Protection Policies available on the Cohesity cluster along with their Policy IDs and information on the parameters configured for these policies.</p>\n<p>You can either use an available policy or create a new policy for protecting your physical server. The Protection Policy ID is required for creating the Protection Group for the physical server protection.</p>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"124c310f-e1b4-43d8-a376-1e66e4d69c3b","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208051"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:34:10 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n   \"policies\":[\n      {\n         \"name\":\"NPJ_NV_S3Comp_policy_21\",\n         \"backupPolicy\":{\n            \"regular\":{\n               \"incremental\":{\n                  \"schedule\":{\n                     \"unit\":\"Days\",\n                     \"daySchedule\":{\n                        \"frequency\":1\n                     }\n                  }\n               },\n               \"retention\":null\n            }\n         },\n         \"blackoutWindow\":null,\n         \"extendedRetention\":null,\n         \"remoteTargetPolicy\":{\n            \"replicationTargets\":[\n               \n            ],\n            \"archivalTargets\":[\n               {\n                  \"schedule\":{\n                     \"unit\":\"Runs\",\n                     \"frequency\":1\n                  },\n                  \"retention\":{\n                     \"unit\":\"Months\",\n                     \"duration\":1\n                  },\n                  \"copyOnRunSuccess\":false,\n                  \"configId\":\"e2c4be16-24fa-4b24-7ad4-35cea7f3a1cf\",\n                  \"targetId\":9726340988,\n                  \"targetName\":\"NPJ_NV_S3Comp21\",\n                  \"targetType\":\"Cloud\",\n                  \"extendedRetention\":null\n               }\n            ],\n            \"cloudSpinTargets\":[\n               \n            ]\n         },\n         \"cascadedTargetsConfig\":null,\n         \"retryOptions\":{\n            \"retries\":3,\n            \"retryIntervalMins\":30\n         },\n         \"id\":\"8743635867054034:1666901032964:18325\"\n      },\n      {\n         \"name\":\"NPJ_NV_GC_S3Comp_policy_20\",\n         \"backupPolicy\":{\n            \"regular\":{\n               \"incremental\":{\n                  \"schedule\":{\n                     \"unit\":\"Days\",\n                     \"daySchedule\":{\n                        \"frequency\":1\n                     }\n                  }\n               },\n               \"retention\":null\n            }\n         },\n         \"blackoutWindow\":null,\n         \"extendedRetention\":null,\n         \"remoteTargetPolicy\":{\n            \"replicationTargets\":[\n               \n            ],\n            \"archivalTargets\":[\n               {\n                  \"schedule\":{\n                     \"unit\":\"Runs\",\n                     \"frequency\":1\n                  },\n                  \"retention\":{\n                     \"unit\":\"Months\",\n                     \"duration\":1\n                  },\n                  \"copyOnRunSuccess\":false,\n                  \"configId\":\"0d8ee267-58e0-4d45-4ab8-b90ddc1726cd\",\n                  \"targetId\":9726480007,\n                  \"targetName\":\"NPJ_NV_GC_S3Comp20\",\n                  \"targetType\":\"Cloud\",\n                  \"extendedRetention\":null\n               }\n            ],\n            \"cloudSpinTargets\":[\n               \n            ]\n         },\n         \"cascadedTargetsConfig\":null,\n         \"retryOptions\":{\n            \"retries\":3,\n            \"retryIntervalMins\":30\n         },\n         \"id\":\"8743635867054034:1666901032964:18374\"\n      }\n   ]\n}\n\n"}],"_postman_id":"cfc5b816-e2ac-41f4-8f02-70406926294a"},{"name":"Create Protection Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Create protection policy, Status code is 200\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"policyId\", jsonData.id);","    pm.expect(jsonData.name).to.be.a(\"string\")","    pm.expect(jsonData.id).to.be.a(\"string\")","    pm.expect(jsonData.retryOptions).to.be.an(\"object\")","    pm.expect(jsonData.retryOptions.retries).to.be.a(\"number\")","    pm.expect(jsonData.retryOptions.retryIntervalMins).to.be.a(\"number\")","    pm.expect(jsonData.backupPolicy).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.unit).to.be.eql(\"Days\")","    pm.expect(jsonData.backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.eql(1)","    pm.expect(jsonData.backupPolicy.regular.retention).to.be.an(\"object\")","    pm.expect(jsonData.backupPolicy.regular.retention.unit).to.be.eql(\"Weeks\");","    pm.expect(jsonData.backupPolicy.regular.retention.duration).to.be.eql(2);","    ","    ","});","","jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"name\",","        \"backupPolicy\",","        \"description\",","        \"blackoutWindow\",","        \"extendedRetention\",","        \"cascadedTargetsConfig\",","        \"retryOptions\",","        \"id\"","    ],","    \"properties\": {","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"backupPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"regular\"","            ],","            \"properties\": {","                \"regular\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"incremental\",","                        \"retention\"","                    ],","                    \"properties\": {","                        \"incremental\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"schedule\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"required\": [","                                        \"unit\",","                                        \"daySchedule\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\",","                                            \"default\": \"\"","                                        },","                                        \"daySchedule\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"frequency\"","                                            ],","                                            \"properties\": {","                                                \"frequency\": {","                                                    \"type\": \"integer\",","                                                    \"default\": 0","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        },","                        \"retention\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"unit\",","                                \"duration\"","                            ],","                            \"properties\": {","                                \"unit\": {","                                    \"type\": \"string\",","                                    \"default\": \"\"","                                },","                                \"duration\": {","                                    \"type\": \"integer\",","                                    \"default\": 0","                                }","                            }","                        }","                    }","                }","            }","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"blackoutWindow\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"extendedRetention\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"cascadedTargetsConfig\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"retryOptions\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"retries\",","                \"retryIntervalMins\"","            ],","            \"properties\": {","                \"retries\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"retryIntervalMins\": {","                    \"type\": \"integer\",","                    \"default\": 0","                }","            }","        },","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        }","    }","}","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});",""],"type":"text/javascript","id":"4e6a197f-9ca6-458e-885c-04246627225c"}}],"id":"2b0a1fa6-d23b-4d13-a9c1-4dfdf9547515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": 1\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"Days\",\n        \"duration\": {{14}}\n      }\n    }\n  },\n  \"name\": \"{{Windows_Policy_Name}}\",\n  \"description\": \"Policy for File, Folder\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": {{3}},\n    \"retryIntervalMins\": {{5}}\n  }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Creates a Protection Policy on the Cohesity cluster.</p>\n<p>The policy ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"fffaa873-d0b1-4f32-832b-5468cd764207","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"backupPolicy\": {\n    \"regular\": {\n      \"incremental\": {\n        \"schedule\": {\n          \"unit\": \"Days\",\n          \"daySchedule\": {\n            \"frequency\": {{1}}\n          }\n        }\n      },\n      \"retention\": {\n        \"unit\": \"{{Days}}\",\n        \"duration\": {{14}}\n      }\n    }\n  },\n  \"name\": \"{{Windows_Policy_Name}}\",\n  \"description\": \"Policy for File, Folder Testing\",\n  \"remoteTargetPolicy\": {},\n  \"retryOptions\": {\n    \"retries\": {{2}},\n    \"retryIntervalMins\": {{5}}\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/v2/data-protect/policies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208435"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:40:34 GMT"},{"key":"Content-Length","value":"284"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"WindowsFileFolderTestPolicy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for File, Folder\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:413487\"\n}"}],"_postman_id":"2b0a1fa6-d23b-4d13-a9c1-4dfdf9547515"},{"name":"Verify Protection Policy Creation","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","jsonSchema = jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"policies\"","    ],","    \"properties\": {","        \"policies\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"name\",","                    \"backupPolicy\",","                    \"blackoutWindow\",","                    \"extendedRetention\",","                    \"cascadedTargetsConfig\",","                    \"id\"","                ],","                \"properties\": {","                    \"name\": {","                        \"type\": \"string\"","                    },","                    \"backupPolicy\": {","                        \"type\": \"object\",","                        \"required\": [","                            \"regular\"","                        ],","                        \"properties\": {","                            \"regular\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"incremental\": {","                                        \"type\": \"object\",","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\"","                                                    },","                                                    \"daySchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    },","                                                    \"hourSchedule\": {","                                                        \"type\": \"object\",","                                                        \"required\": [","                                                            \"frequency\"","                                                        ],","                                                        \"properties\": {","                                                            \"frequency\": {","                                                                \"type\": \"integer\"","                                                            }","                                                        }","                                                    }","                                                }","                                            }","                                        }","                                    },","                                    \"full\": {","                                        \"type\": \"object\",","                                        \"default\": {},","                                        \"required\": [","                                            \"schedule\"","                                        ],","                                        \"properties\": {","                                            \"schedule\": {","                                                \"type\": \"object\",","                                                \"default\": {},","                                                \"required\": [","                                                    \"unit\"","                                                ],","                                                \"properties\": {","                                                    \"unit\": {","                                                        \"type\": \"string\",","                                                        \"default\": \"\"","                                                    }","                                                }","                                            }","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"description\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"blackoutWindow\": {","                        \"type\": \"null\"","                    },","                    \"extendedRetention\": {","                        \"type\": [","                            \"null\",","                            \"array\"","                        ],","                        \"items\": {","                            \"type\": \"object\",","                            \"required\": [","                                \"schedule\",","                                \"retention\"","                            ],","                            \"properties\": {","                                \"schedule\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"frequency\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"frequency\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                },","                                \"retention\": {","                                    \"type\": \"object\",","                                    \"required\": [","                                        \"unit\",","                                        \"duration\"","                                    ],","                                    \"properties\": {","                                        \"unit\": {","                                            \"type\": \"string\"","                                        },","                                        \"duration\": {","                                            \"type\": \"integer\"","                                        }","                                    }","                                }","                            }","                        }","                    },","                    \"cascadedTargetsConfig\": {","                    },","                    \"retryOptions\": {","                        \"type\": \"object\",","                        \"default\": {},","","                        \"properties\": {","                            \"retries\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"retryIntervalMins\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            }","                        }","                    },","                    \"id\": {","                        \"type\": \"string\"","                    }","                }","            }","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});","","var found_flag = 0","pm.test(\"Validating Policy creation\", function () {","    var jsonData = pm.response.json();","    for (i = 0; i < jsonData.policies.length; i++) {","        if (jsonData.policies[i].name == pm.environment.get(\"Windows_Policy_Name\")) {","            found_flag += 1","            pm.environment.set(\"Windows_Policy_Id\", jsonData.policies[i].id);","        } else if (jsonData.policies[i].name == pm.environment.get(\"Windows_CIFS_Policy_Name\")) {","            found_flag += 1","            pm.environment.set(\"Windows_CIFS_Policy_Id\", jsonData.policies[i].id);","        }","    }","});","pm.test(\"Response contains expected policy info of \" + pm.environment.get(\"Windows_Policy_Name\"), function () {","    if (found_flag != 2) {","        pm.expect.fail(\"Policy info not found\")","    }","});","",""],"type":"text/javascript","id":"9a72ee8a-c84b-4f43-b7f3-fae34b2a71c6"}}],"id":"3ed0a393-1027-4cb5-9ea5-0958ecdb425f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/policies","description":"<p>Returns the list of policies available on the Cohesity cluster along with their policy IDs and information on the parameters configured for the Protection Policy.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the policy you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Protection Policy you want to use for creating the Protection Group.</li>\n</ul>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"ccdc6a51-8fb9-46cd-b732-39044c0765b6","name":"Sample Output","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208638"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:43:57 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n   \"policies\":[\n      {\n         \"name\":\"NPJ_NV_S3Comp_policy_21\",\n         \"backupPolicy\":{\n            \"regular\":{\n               \"incremental\":{\n                  \"schedule\":{\n                     \"unit\":\"Days\",\n                     \"daySchedule\":{\n                        \"frequency\":1\n                     }\n                  }\n               },\n               \"retention\":null\n            }\n         },\n         \"blackoutWindow\":null,\n         \"extendedRetention\":null,\n         \"remoteTargetPolicy\":{\n            \"replicationTargets\":[\n               \n            ],\n            \"archivalTargets\":[\n               {\n                  \"schedule\":{\n                     \"unit\":\"Runs\",\n                     \"frequency\":1\n                  },\n                  \"retention\":{\n                     \"unit\":\"Months\",\n                     \"duration\":1\n                  },\n                  \"copyOnRunSuccess\":false,\n                  \"configId\":\"e2c4be16-24fa-4b24-7ad4-35cea7f3a1cf\",\n                  \"targetId\":9726340988,\n                  \"targetName\":\"NPJ_NV_S3Comp21\",\n                  \"targetType\":\"Cloud\",\n                  \"extendedRetention\":null\n               }\n            ],\n            \"cloudSpinTargets\":[\n               \n            ]\n         },\n         \"cascadedTargetsConfig\":null,\n         \"retryOptions\":{\n            \"retries\":3,\n            \"retryIntervalMins\":30\n         },\n         \"id\":\"8743635867054034:1666901032964:18325\"\n      },\n{\n    \"name\": \"WindowsFileFolderTestPolicy\",\n    \"backupPolicy\": {\n        \"regular\": {\n            \"incremental\": {\n                \"schedule\": {\n                    \"unit\": \"Days\",\n                    \"daySchedule\": {\n                        \"frequency\": 1\n                    }\n                }\n            },\n            \"retention\": {\n                \"unit\": \"Weeks\",\n                \"duration\": 2\n            }\n        }\n    },\n    \"description\": \"Policy for File, Folder\",\n    \"blackoutWindow\": null,\n    \"extendedRetention\": null,\n    \"cascadedTargetsConfig\": null,\n    \"retryOptions\": {\n        \"retries\": 3,\n        \"retryIntervalMins\": 5\n    },\n    \"id\": \"8743635867054034:1666901032964:413487\"\n},\n      {\n         \"name\":\"NPJ_NV_GC_S3Comp_policy_20\",\n         \"backupPolicy\":{\n            \"regular\":{\n               \"incremental\":{\n                  \"schedule\":{\n                     \"unit\":\"Days\",\n                     \"daySchedule\":{\n                        \"frequency\":1\n                     }\n                  }\n               },\n               \"retention\":null\n            }\n         },\n         \"blackoutWindow\":null,\n         \"extendedRetention\":null,\n         \"remoteTargetPolicy\":{\n            \"replicationTargets\":[\n               \n            ],\n            \"archivalTargets\":[\n               {\n                  \"schedule\":{\n                     \"unit\":\"Runs\",\n                     \"frequency\":1\n                  },\n                  \"retention\":{\n                     \"unit\":\"Months\",\n                     \"duration\":1\n                  },\n                  \"copyOnRunSuccess\":false,\n                  \"configId\":\"0d8ee267-58e0-4d45-4ab8-b90ddc1726cd\",\n                  \"targetId\":9726480007,\n                  \"targetName\":\"NPJ_NV_GC_S3Comp20\",\n                  \"targetType\":\"Cloud\",\n                  \"extendedRetention\":null\n               }\n            ],\n            \"cloudSpinTargets\":[\n               \n            ]\n         },\n         \"cascadedTargetsConfig\":null,\n         \"retryOptions\":{\n            \"retries\":3,\n            \"retryIntervalMins\":30\n         },\n         \"id\":\"8743635867054034:1666901032964:18374\"\n      }\n   ]\n}"}],"_postman_id":"3ed0a393-1027-4cb5-9ea5-0958ecdb425f"},{"name":"Get Storage Domains List","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"c0360744-52a0-4072-82c1-a0b615c02e8f"}}],"id":"fb24aeb1-bbc0-4379-9d1c-0835eeeb5217","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>You can either use an available Storage Domain or create a new Storage Domain for protecting your physical server.</p>\n<p>The Storage Domain ID from the response is required when you are creating the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster-vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"8e2cc2e6-a40d-40de-8a06-dd4c8d184b24","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n        {\n            \"id\": 24,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 22,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": true,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"fb24aeb1-bbc0-4379-9d1c-0835eeeb5217"},{"name":"Create Storage Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"3f5f7c2b-c5f4-48e5-8541-9dfafa3b32e1"}}],"id":"4c91c177-437c-476c-9497-86604620c8c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/viewBoxes","description":"<p>Creates a Storage Domain on the Cohesity cluster.</p>\n<p>The Storage Domain ID from the response is required to create the Protection Group for protecting your physical server.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster-vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"04908c2d-70af-4681-b986-f0e166a99726","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://{{cluster-vip}}/v2/storage-domains","protocol":"https","host":["{{cluster-vip}}"],"path":["v2","storage-domains"],"query":[{"key":"names","value":"DefaultStorageDomain","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6246697,\n  \"name\": \"Storage_Domain\",\n  \"clusterPartitionId\": 3,\n  \"clientSubnetWhiteList\": [],\n  \"storagePolicy\": {\n    \"deduplicationEnabled\": true,\n    \"inlineDeduplicate\": true,\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"inlineCompress\": true,\n    \"deduplicateCompressDelaySecs\": 0,\n    \"encryptionPolicy\": \"kEncryptionNone\",\n    \"downTierDelaySecsList\": [\n      0,\n      0,\n      5184000,\n      0\n    ],\n    \"numFailuresTolerated\": 0,\n    \"numNodeFailuresTolerated\": 0\n  },\n  \"physicalQuota\": {},\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\n  \"defaultViewQuotaPolicy\": {},\n  \"s3BucketsAllowed\": false,\n  \"nisDomainNameVec\": [\n    \"\"\n  ],\n  \"clusterPartitionName\": \"DefaultPartition\",\n  \"removalState\": \"kDontRemove\"\n}"}],"_postman_id":"4c91c177-437c-476c-9497-86604620c8c2"},{"name":"Verify Storage Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","","var jsonData = JSON.parse(responseBody);","","for (var i = 0; i < jsonData.storageDomains.length; i++) {","    console.log(jsonData.storageDomains[i]);","    if (jsonData.storageDomains[i].name === \"DefaultStorageDomain\") {","        pm.environment.set(\"Windows_Viewbox_Id_DSD\", parseInt(jsonData.storageDomains[i].id));","    }","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"storageDomains\"","    ],","    \"properties\": {","        \"storageDomains\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"name\",","                    \"clusterPartitionId\",","                    \"clusterPartitionName\",","                    \"subnetWhitelist\",","                    \"nisDomainNames\",","                    \"tenantIds\",","                    \"schemas\",","                    \"fileCountBySize\",","                    \"storagePolicy\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"name\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"clusterPartitionId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"clusterPartitionName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"subnetWhitelist\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"nisDomainNames\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"tenantIds\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"schemas\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"fileCountBySize\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"storagePolicy\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"deduplicationCompressionDelaySecs\",","                            \"numDiskFailuresTolerated\",","                            \"numNodeFailuresTolerated\",","                            \"compressionParams\",","                            \"deduplicationParams\"","                        ],","                        \"properties\": {","                            \"deduplicationCompressionDelaySecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numDiskFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"numNodeFailuresTolerated\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"compressionParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"type\"","                                ],","                                \"properties\": {","                                    \"type\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                }","                            },","                            \"deduplicationParams\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"enabled\"","                                ],","                                \"properties\": {","                                    \"enabled\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        }","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"063dbdf1-9cc7-479e-8fb9-1236a0c2b20a"}}],"id":"daf044d1-3d87-46b9-a9f4-28ca5d41f398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/viewBoxes","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the Storage Domain you configured is created on the Cohesity cluster.</li>\n<li>Obtain the ID of the Storage Domain you want to use for creating the Protection Group.<br />  The Storage Domain ID is required when you are creating the Protection Group for protecting your physical server.</li>\n</ul>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_vip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","viewBoxes"],"host":["{{cluster-vip}}"],"query":[{"disabled":true,"key":"names","value":"DefaultStorageDomain"}],"variable":[]}},"response":[{"id":"4d01346c-8354-4f68-8b5c-ada9678d3818","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/storage-domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675208675"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 23:44:34 GMT"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"storageDomains\": [\n{\n  \"id\": 6246697,\n  \"name\": \"Storage_Domain\",\n  \"clusterPartitionId\": 3,\n  \"clientSubnetWhiteList\": [],\n  \"storagePolicy\": {\n    \"deduplicationEnabled\": true,\n    \"inlineDeduplicate\": true,\n    \"compressionPolicy\": \"kCompressionLow\",\n    \"inlineCompress\": true,\n    \"deduplicateCompressDelaySecs\": 0,\n    \"encryptionPolicy\": \"kEncryptionNone\",\n    \"downTierDelaySecsList\": [\n      0,\n      0,\n      5184000,\n      0\n    ],\n    \"numFailuresTolerated\": 0,\n    \"numNodeFailuresTolerated\": 0\n  },\n  \"physicalQuota\": {},\n  \"cloudDownWaterfallThresholdSecs\": 5184000,\n  \"defaultViewQuotaPolicy\": {},\n  \"s3BucketsAllowed\": false,\n  \"nisDomainNameVec\": [\n    \"\"\n  ],\n  \"clusterPartitionName\": \"DefaultPartition\",\n  \"removalState\": \"kDontRemove\"\n},\n        {\n            \"id\": 24,\n            \"name\": \"DefaultStorageDomain\",\n            \"clusterPartitionId\": 22,\n            \"clusterPartitionName\": \"DefaultPartition\",\n            \"subnetWhitelist\": null,\n            \"s3BucketsEnabled\": true,\n            \"nisDomainNames\": null,\n            \"tenantIds\": null,\n            \"schemas\": null,\n            \"fileCountBySize\": null,\n            \"storagePolicy\": {\n                \"deduplicationCompressionDelaySecs\": 0,\n                \"encryptionType\": \"None\",\n                \"numDiskFailuresTolerated\": 0,\n                \"numNodeFailuresTolerated\": 0,\n                \"compressionParams\": {\n                    \"type\": \"Low\",\n                    \"inlineEnabled\": true\n                },\n                \"deduplicationParams\": {\n                    \"enabled\": true,\n                    \"inlineEnabled\": true\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"daf044d1-3d87-46b9-a9f4-28ca5d41f398"},{"name":"Create File-Based Protection Group","event":[{"listen":"test","script":{"exec":["jsonSchema={","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"id\",","        \"name\",","        \"policyId\",","        \"priority\",","        \"storageDomainId\",","        \"description\",","        \"startTime\",","        \"alertPolicy\",","        \"sla\",","        \"qosPolicy\",","        \"abortInBlackouts\",","        \"isActive\",","        \"isPaused\",","        \"environment\",","        \"permissions\",","        \"missingEntities\",","        \"physicalParams\"","    ],","    \"properties\": {","        \"id\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"name\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"policyId\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"priority\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"storageDomainId\": {","            \"type\": \"integer\",","            \"default\": 0","        },","        \"description\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"startTime\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"hour\",","                \"minute\",","                \"timeZone\"","            ],","            \"properties\": {","                \"hour\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"minute\": {","                    \"type\": \"integer\",","                    \"default\": 0","                },","                \"timeZone\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                }","            }","        },","        \"alertPolicy\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"backupRunStatus\",","                \"alertTargets\"","            ],","            \"properties\": {","                \"backupRunStatus\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                },","                \"alertTargets\": {","                    \"type\": \"array\",","                    \"default\": [],","                    \"items\": {}","                }","            }","        },","        \"sla\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"required\": [","                    \"backupRunType\",","                    \"slaMinutes\"","                ],","                \"properties\": {","                    \"backupRunType\": {","                        \"type\": \"string\"","                    },","                    \"slaMinutes\": {","                        \"type\": \"integer\"","                    }","                }","            }","        },","        \"qosPolicy\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"abortInBlackouts\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isActive\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"isPaused\": {","            \"type\": \"boolean\",","            \"default\": false","        },","        \"environment\": {","            \"type\": \"string\",","            \"default\": \"\"","        },","        \"permissions\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"missingEntities\": {","            \"type\": \"null\",","            \"default\": null","        },","        \"physicalParams\": {","            \"type\": \"object\",","            \"default\": {},","            \"required\": [","                \"protectionType\",","                \"fileProtectionTypeParams\"","            ],","            \"properties\": {","                \"protectionType\": {","                    \"type\": \"string\",","                    \"default\": \"\"","                },","                \"fileProtectionTypeParams\": {","                    \"type\": \"object\",","                    \"default\": {},","                    \"required\": [","                        \"objects\",","                        \"indexingPolicy\",","                        \"performSourceSideDeduplication\",","                        \"dedupExclusionSourceIds\",","                        \"globalExcludePaths\",","                        \"ignorableErrors\"","                    ],","                    \"properties\": {","                        \"objects\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"id\",","                                    \"name\",","                                    \"filePaths\",","                                    \"usesPathLevelSkipNestedVolumeSetting\",","                                    \"nestedVolumeTypesToSkip\",","                                    \"followNasSymlinkTarget\"","                                ],","                                \"properties\": {","                                    \"id\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    },","                                    \"name\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    },","                                    \"filePaths\": {","                                        \"type\": \"array\",","                                        \"default\": [],","                                        \"items\": {","                                            \"type\": \"object\",","                                            \"default\": {},","                                            \"required\": [","                                                \"includedPath\",","                                                \"excludedPaths\",","                                                \"skipNestedVolumes\"","                                            ],","                                            \"properties\": {","                                                \"includedPath\": {","                                                    \"type\": \"string\",","                                                    \"default\": \"\"","                                                },","                                                \"excludedPaths\": {","                                                    \"type\": \"null\",","                                                    \"default\": null","                                                },","                                                \"skipNestedVolumes\": {","                                                    \"type\": \"boolean\",","                                                    \"default\": false","                                                }","                                            }","                                        }","                                    },","                                    \"usesPathLevelSkipNestedVolumeSetting\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    },","                                    \"nestedVolumeTypesToSkip\": {","                                        \"type\": \"null\",","                                        \"default\": null","                                    },","                                    \"followNasSymlinkTarget\": {","                                        \"type\": \"boolean\",","                                        \"default\": false","                                    }","                                }","                            }","                        },","                        \"indexingPolicy\": {","                            \"type\": \"object\",","                            \"default\": {},","                            \"required\": [","                                \"enableIndexing\",","                                \"includePaths\",","                                \"excludePaths\"","                            ],","                            \"properties\": {","                                \"enableIndexing\": {","                                    \"type\": \"boolean\",","                                    \"default\": false","                                },","                                \"includePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\",","                                        \"default\": \"\"","                                    }","                                },","                                \"excludePaths\": {","                                    \"type\": \"array\",","                                    \"default\": [],","                                    \"items\": {","                                        \"type\": \"string\"","                                    }","                                }","                            }","                        },","                        \"performSourceSideDeduplication\": {","                            \"type\": \"boolean\",","                            \"default\": false","                        },","                        \"dedupExclusionSourceIds\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"globalExcludePaths\": {","                            \"type\": \"null\",","                            \"default\": null","                        },","                        \"ignorableErrors\": {","                            \"type\": \"array\",","                            \"default\": [],","                            \"items\": {}","                        }","                    }","                }","            }","        }","    }","}","","","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"Windows_Protection_Job_Id\", jsonData.id);","",""],"type":"text/javascript","id":"3039bf1c-0457-4293-8d9e-1e59e071c1fe"}},{"listen":"prerequest","script":{"exec":["pm.environment.set(\"Windows_Protection_Job_Name\", \"Windows_Protection_Job\");"],"type":"text/javascript","id":"7a490837-4a77-4724-bf11-b97f41a4fb0a"}}],"id":"a561411a-dd15-43ae-bc30-5f18606dddc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"storageDomainId\": {{Windows_storageDomainId}},\n    \"policyId\": \"{{Windows_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"name\": \"{{Windows_Protection_Group_Name}}\",\n    \"environment\": \"kPhysical\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{Windows_Source_Id}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/C/\",\n                            \"excludedPaths\": []\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": [],\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"globalExcludePaths\": [],\n            \"ignorableErrors\": []\n        }\n    }\n}"},"url":"https://{{{cluster-vip}}/v2/data-protect/protection-groups","description":"<p>Creates a file-based Protection Group for protecting your Windows physical server.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the physical server source to be protected are required in the request body for running this API.</li>\n<li>For file-based Protection Group, ensure the <code>protectionType</code> value in the request body is <strong><code>KFile</code></strong>.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the physical server.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"52a57ab9-6f2c-4813-a5d6-c6f40b765db2","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"storageDomainId\": {{Windows_Viewbox_Id_DSD}},\n    \"policyId\": \"{{Windows_Policy_Id}}\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"name\": \"{{Linux_Protection_Job_Name}}\",\n    \"environment\": \"kPhysical\",\n    \"isPaused\": false,\n    \"description\": \"\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": {{Windows_Source_Id}},\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/C/\",\n                            \"excludedPaths\": []\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": [],\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"globalExcludePaths\": [],\n            \"ignorableErrors\": []\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675210387"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:13:07 GMT"},{"key":"Content-Length","value":"716"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:413663\",\n    \"name\": \"Windows_Protection_Job\",\n    \"policyId\": \"8743635867054034:1666901032964:413487\",\n    \"priority\": \"kMedium\",\n    \"storageDomainId\": 24,\n    \"description\": \"\",\n    \"startTime\": {\n        \"hour\": 11,\n        \"minute\": 1,\n        \"timeZone\": \"America/Vancouver\"\n    },\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ],\n        \"alertTargets\": []\n    },\n    \"sla\": [\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        },\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"isActive\": true,\n    \"isPaused\": false,\n    \"environment\": \"kPhysical\",\n    \"permissions\": null,\n    \"missingEntities\": null,\n    \"physicalParams\": {\n        \"protectionType\": \"kFile\",\n        \"fileProtectionTypeParams\": {\n            \"objects\": [\n                {\n                    \"id\": 25269,\n                    \"name\": \"{{Server_Ip}}\",\n                    \"filePaths\": [\n                        {\n                            \"includedPath\": \"/C/\",\n                            \"excludedPaths\": null,\n                            \"skipNestedVolumes\": true\n                        }\n                    ],\n                    \"usesPathLevelSkipNestedVolumeSetting\": false,\n                    \"nestedVolumeTypesToSkip\": null,\n                    \"followNasSymlinkTarget\": false\n                }\n            ],\n            \"indexingPolicy\": {\n                \"enableIndexing\": true,\n                \"includePaths\": [\n                    \"/\"\n                ],\n                \"excludePaths\": [\n                    \"/$Recycle.Bin\",\n                    \"/Windows\",\n                    \"/Program Files\",\n                    \"/Program Files (x86)\",\n                    \"/ProgramData\",\n                    \"/System Volume Information\",\n                    \"/Users/*/AppData\",\n                    \"/Recovery\",\n                    \"/var\",\n                    \"/usr\",\n                    \"/sys\",\n                    \"/proc\",\n                    \"/lib\",\n                    \"/grub\",\n                    \"/grub2\",\n                    \"/opt\",\n                    \"/splunk\"\n                ]\n            },\n            \"performSourceSideDeduplication\": false,\n            \"dedupExclusionSourceIds\": null,\n            \"globalExcludePaths\": null,\n            \"ignorableErrors\": []\n        }\n    }\n}"}],"_postman_id":"a561411a-dd15-43ae-bc30-5f18606dddc1"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(60000);","    pm.response.to.have.status(202);","","});","","pm.test(\"Verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","jsonSchema = {","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"protectionGroupId\": {","            \"title\": \"The protectionGroupId Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:726\"","            ]","        }","    },","    \"examples\": [{","        \"protectionGroupId\": \"6706421133980411:1668680031418:726\"","    }]","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"b0b4b208-6575-49f6-8ab9-8099465ad1d2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"57a26155-5f15-4e8a-aaa8-4cb27185ed5b"}}],"id":"77e169eb-7dd9-49f6-8569-dcc53f4d9859","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting your physical server.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"61be55e7-f341-4333-b982-fb37ef56c2ed","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"runType\":\"kRegular\"\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{Windows_Protection_Job_Id}}/runs"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212497"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:48:16 GMT"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"8743635867054034:1666901032964:413667\"\n}"}],"_postman_id":"77e169eb-7dd9-49f6-8569-dcc53f4d9859"},{"name":"Get Protection Group Run Status","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","const maxNumberOfTries = 30; // your max number of tries","const sleepBetweenTries = 10000; // your interval between attempts","setTimeout(function () { }, sleepBetweenTries);","if (!pm.environment.get(\"tries\")) {","    pm.environment.set(\"tries\", 1);","}","var resp = pm.response.json();","var status = resp.runs[0].localBackupInfo.status;","console.log(status);","if ((status == \"Running\")) {","    console.log(request.name)","    const tries = parseInt(pm.environment.get(\"tries\"), 10);","    pm.environment.set(\"tries\", tries + 1);","    setTimeout(function () { }, 10000);","    postman.setNextRequest(request.name)","}","else {","    // Sleep for 5 seconds.","    setTimeout(function () { }, 5000);","}","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"runs\",","        \"totalRuns\"","    ],","    \"properties\": {","        \"runs\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"id\",","                    \"protectionGroupInstanceId\",","                    \"protectionGroupId\",","                    \"isReplicationRun\",","                    \"protectionGroupName\",","                    \"objects\",","                    \"localBackupInfo\",","                    \"permissions\",","                    \"hasLocalSnapshot\",","                    \"environment\"","                ],","                \"properties\": {","                    \"id\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupInstanceId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"isReplicationRun\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objects\": {","                        \"type\": \"null\",","                        \"default\": null","                    },","                    \"localBackupInfo\": {","                        \"type\": \"object\",","                        \"default\": {},","                        \"required\": [","                            \"runType\",","                            \"startTimeUsecs\",","                            \"status\",","                            \"messages\",","                            \"successfulObjectsCount\",","                            \"failedObjectsCount\",","                            \"cancelledObjectsCount\",","                            \"successfulAppObjectsCount\",","                            \"failedAppObjectsCount\",","                            \"cancelledAppObjectsCount\",","                            \"localSnapshotStats\",","                            \"indexingTaskId\",","                            \"localTaskId\"","                        ],","                        \"properties\": {","                            \"runType\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"startTimeUsecs\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"status\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"messages\": {","                                \"type\": \"null\",","                                \"default\": null","                            },","                            \"successfulObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"successfulAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"failedAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"cancelledAppObjectsCount\": {","                                \"type\": \"integer\",","                                \"default\": 0","                            },","                            \"localSnapshotStats\": {","                                \"type\": \"object\",","                                \"default\": {},","                                \"required\": [","                                    \"logicalSizeBytes\"","                                ],","                                \"properties\": {","                                    \"logicalSizeBytes\": {","                                        \"type\": \"integer\",","                                        \"default\": 0","                                    }","                                }","                            },","                            \"indexingTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"progressTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            },","                            \"localTaskId\": {","                                \"type\": \"string\",","                                \"default\": \"\"","                            }","                        }","                    },","                    \"permissions\": {","                        \"type\": \"array\",","                        \"default\": [],","                        \"items\": {}","                    },","                    \"hasLocalSnapshot\": {","                        \"type\": \"boolean\",","                        \"default\": false","                    },","                    \"environment\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    }","                }","            }","        },","        \"totalRuns\": {","            \"type\": \"integer\",","            \"default\": 0","        }","    }","}","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"9c071386-3ab2-44c9-9929-bc00404f29a2"}}],"id":"1a0c235f-0719-4221-a6d1-913cd42e4b12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is <code>succeeded</code>, you can recover the files and folders of the physical server.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"adcad903-92f3-444b-8008-e2d04957469b","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{Windows_Protection_Job_Id}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675212666"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 00:51:05 GMT"},{"key":"Content-Length","value":"422"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"413667:1675212497169029\",\n            \"protectionGroupInstanceId\": 413698,\n            \"protectionGroupId\": \"8743635867054034:1666901032964:413667\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"Windows_Protection_Job\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"startTimeUsecs\": 1675212497169029,\n                \"status\": \"Running\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 0,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 64301826048\n                },\n                \"indexingTaskId\": \"indexing_413667_413698\",\n                \"progressTaskId\": \"backup_413698_1\",\n                \"localTaskId\": \"8743635867054034:1666901032964:51947317028\"\n            },\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kPhysical\"\n        }\n    ],\n    \"totalRuns\": 1\n}"}],"_postman_id":"1a0c235f-0719-4221-a6d1-913cd42e4b12"},{"name":"Get Latest Snapshot","event":[{"listen":"test","script":{"exec":["","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(pm.response).to.not.equal(null);","});","var jsonData = pm.response.json();","","pm.test(\"Validating response\", function () {","    for (var i = 0; i < jsonData.snapshots.length; i++) {","        if (jsonData.snapshots[i].protectionGroupName === pm.environment.get(\"Linux_Protection_Job_Name\")) {","            pm.environment.set(\"Linux_File_Restore_File\", jsonData.snapshots[i].indexedObjectName);","            pm.environment.set(\"Linux_File_Snapshot\", jsonData.snapshots[i].objectSnapshotid);","","            //break;","        }","    }","});","","jsonSchema = {","    \"type\": \"object\",","    \"default\": {},","    \"required\": [","        \"snapshots\"","    ],","    \"properties\": {","        \"snapshots\": {","            \"type\": \"array\",","            \"default\": [],","            \"items\": {","                \"type\": \"object\",","                \"default\": {},","                \"required\": [","                    \"indexedObjectName\",","                    \"objectSnapshotid\",","                    \"snapshotTimestampUsecs\",","                    \"runType\",","                    \"protectionGroupId\",","                    \"protectionGroupName\",","                    \"storageDomainId\",","                    \"attempts\",","                    \"sizeBytes\",","                    \"lastModifiedTimeUsecs\"","                ],","                \"properties\": {","                    \"indexedObjectName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"objectSnapshotid\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"snapshotTimestampUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"runType\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupId\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"protectionGroupName\": {","                        \"type\": \"string\",","                        \"default\": \"\"","                    },","                    \"storageDomainId\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"attempts\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"sizeBytes\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    },","                    \"lastModifiedTimeUsecs\": {","                        \"type\": \"integer\",","                        \"default\": 0","                    }","                }","            }","        }","    }","}","","pm.test(\"Validate Response Body schema\", () => {","    pm.response.to.have.jsonSchema(jsonSchema)","});"],"type":"text/javascript","id":"21e7c153-2ce6-4514-bcc9-f23d8086c5a8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ef599eeb-9af4-4875-97d1-eaa3b11d8970"}}],"id":"6bf82a90-897e-4ada-ad5d-533cbd01af15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/objects/{{Windows_Source_Id}}/protection-groups/{{protectionGroupId}}/indexed-objects/snapshots?indexedObjectName=/etc/anaconda/product.d/centos.conf&includeIndexedSnapshotsOnly=true","description":"<p>StartFragment</p>\n<p>Returns information on the latest snapshot of the object specified in the API URL.</p>\n<p><strong>Considerations</strong>:</p>\n<ul>\n<li><p>The snapshot ID of a file or folder from the response is required for recovering that file or folder.</p>\n</li>\n<li><p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create File-based Protection Group</strong> API response.</p>\n</li>\n<li><p>You can fetch the <code>Windows_Source_Id</code> to be specified in the API URL from the <strong>Register Windows Physical Server</strong> API response.</p>\n</li>\n</ul>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","objects","{{Windows_Source_Id}}","protection-groups","{{protectionGroupId}}","indexed-objects","snapshots"],"host":["{{cluster-vip}}"],"query":[{"key":"indexedObjectName","value":"/etc/anaconda/product.d/centos.conf"},{"key":"includeIndexedSnapshotsOnly","value":"true"}],"variable":[]}},"response":[{"id":"3e3dab76-b6ab-4c4f-84be-369d9a7383c6","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"https://{{cluster-vip}}/v2/data-protect/objects/{{Windows_Source_Id}}/protection-groups/{{Windows_Protection_Job_Id}}/indexed-objects/snapshots?indexedObjectName=/etc/anaconda/product.d/centos.conf&includeIndexedSnapshotsOnly=true","protocol":"https","host":["{{cluster-vip}}"],"path":["v2","data-protect","objects","{{Windows_Source_Id}}","protection-groups","{{Windows_Protection_Job_Id}}","indexed-objects","snapshots"],"query":[{"key":"indexedObjectName","value":"/etc/anaconda/product.d/centos.conf"},{"key":"includeIndexedSnapshotsOnly","value":"true"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"snapshots\": [\n        {\n            \"indexedObjectName\": \"/etc/anaconda/product.d/centos.conf\",\n            \"objectSnapshotid\": \"{{snapshot_Id}}\",\n            \"snapshotTimestampUsecs\": 1675193566341137,\n            \"runType\": \"kRegular\",\n            \"protectionGroupId\": \"8743635867054034:1666901032964:412248\",\n            \"protectionGroupName\": \"Linux_Protection_Job\",\n            \"storageDomainId\": 24,\n            \"attempts\": 1,\n            \"sizeBytes\": 132,\n            \"lastModifiedTimeUsecs\": 1625150242000000\n        }\n    ]\n}"}],"_postman_id":"6bf82a90-897e-4ada-ad5d-533cbd01af15"},{"name":"Recover File","event":[{"listen":"prerequest","script":{"exec":["var currentdate = new Date();","var datetime = currentdate.getFullYear() + \"\" + (\"0\" + (currentdate.getMonth() + 1)).slice(-2) + \"\" + (\"0\" + currentdate.getDate()).slice(-2) + \"_\"","    + currentdate.getHours() + \"\"","    + currentdate.getMinutes() + \"\" + currentdate.getSeconds();","console.log(datetime)","pm.environment.set(\"timestamp\", datetime);"],"type":"text/javascript","id":"dd912d12-314d-4063-93ec-b06a37ffd500"}},{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","});","","pm.test(\"verify response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var jsonData = pm.response.json();","    pm.environment.set(\"restoreId\", jsonData.id)","","jsonSchema={","    \"title\": \"Root Schema\",","    \"description\": \"The root schema is the schema that comprises the entire JSON document.\",","    \"type\": \"object\",","    \"default\": {},","    \"additionalProperties\": true,","    \"properties\": {","        \"id\": {","            \"title\": \"The id Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"6706421133980411:1668680031418:740\"","            ]","        },","        \"name\": {","            \"title\": \"The name Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Recovery_NAS_ProtectionJob\"","            ]","        },","        \"startTimeUsecs\": {","            \"title\": \"The startTimeUsecs Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"integer\",","            \"default\": 0,","            \"examples\": [","                1669115474510661","            ]","        },","        \"status\": {","            \"title\": \"The status Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"Accepted\"","            ]","        },","        \"snapshotEnvironment\": {","            \"title\": \"The snapshotEnvironment Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"kIsilon\"","            ]","        },","        \"recoveryAction\": {","            \"title\": \"The recoveryAction Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"RecoverFiles\"","            ]","        },","        \"permissions\": {","            \"title\": \"The permissions Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"array\",","            \"default\": [],","            \"additionalItems\": true,","            \"items\": {},","            \"examples\": [","                []","            ]","        },","        \"creationInfo\": {","            \"title\": \"The creationInfo Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"userName\": {","                    \"title\": \"The userName Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"admin\"","                    ]","                }","            },","            \"examples\": [{","                \"userName\": \"admin\"","            }]","        },","        \"canTearDown\": {","            \"title\": \"The canTearDown Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"boolean\",","            \"default\": false,","            \"examples\": [","                false","            ]","        },","        \"messages\": {","            \"title\": \"The messages Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"retrieveArchiveTasks\": {","            \"title\": \"The retrieveArchiveTasks Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"null\",","            \"default\": null,","            \"examples\": [","                null","            ]","        },","        \"isilonParams\": {","            \"title\": \"The isilonParams Schema\",","            \"description\": \"An explanation about the purpose of this instance.\",","            \"type\": \"object\",","            \"default\": {},","            \"additionalProperties\": true,","            \"properties\": {","                \"objects\": {","                    \"title\": \"The objects Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"array\",","                    \"default\": [],","                    \"additionalItems\": true,","                    \"items\": {","                        \"title\": \"A Schema\",","                        \"description\": \"An explanation about the purpose of this instance.\",","                        \"type\": \"object\",","                        \"default\": {},","                        \"additionalProperties\": true,","                        \"properties\": {","                            \"snapshotId\": {","                                \"title\": \"The snapshotId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\"","                                ]","                            },","                            \"protectionGroupId\": {","                                \"title\": \"The protectionGroupId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"6706421133980411:1668680031418:726\"","                                ]","                            },","                            \"snapshotCreationTimeUsecs\": {","                                \"title\": \"The snapshotCreationTimeUsecs Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    1669113200103871","                                ]","                            },","                            \"snapshotTargetType\": {","                                \"title\": \"The snapshotTargetType Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"Local\"","                                ]","                            },","                            \"storageDomainId\": {","                                \"title\": \"The storageDomainId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"integer\",","                                \"default\": 0,","                                \"examples\": [","                                    5","                                ]","                            },","                            \"progressTaskId\": {","                                \"title\": \"The progressTaskId Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"string\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"\"","                                ]","                            },","                            \"messages\": {","                                \"title\": \"The messages Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"null\",","                                \"default\": null,","                                \"examples\": [","                                    null","                                ]","                            },","                            \"objectInfo\": {","                                \"title\": \"The objectInfo Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"id\": {","                                        \"title\": \"The id Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            26","                                        ]","                                    },","                                    \"name\": {","                                        \"title\": \"The name Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"sourceId\": {","                                        \"title\": \"The sourceId Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"integer\",","                                        \"default\": 0,","                                        \"examples\": [","                                            1","                                        ]","                                    },","                                    \"sourceName\": {","                                        \"title\": \"The sourceName Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"sv4-isilon1\"","                                        ]","                                    },","                                    \"environment\": {","                                        \"title\": \"The environment Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kIsilon\"","                                        ]","                                    },","                                    \"objectType\": {","                                        \"title\": \"The objectType Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"kMountPoint\"","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"id\": 26,","                                    \"name\": \"/ifs/fileFolderRestoreTest\",","                                    \"sourceId\": 1,","                                    \"sourceName\": \"sv4-isilon1\",","                                    \"environment\": \"kIsilon\",","                                    \"objectType\": \"kMountPoint\"","                                }]","                            }","                        },","                        \"examples\": [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    },","                    \"examples\": [","                        [{","                            \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                            \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                            \"snapshotCreationTimeUsecs\": 1669113200103871,","                            \"snapshotTargetType\": \"Local\",","                            \"storageDomainId\": 5,","                            \"progressTaskId\": \"\",","                            \"messages\": null,","                            \"objectInfo\": {","                                \"id\": 26,","                                \"name\": \"/ifs/fileFolderRestoreTest\",","                                \"sourceId\": 1,","                                \"sourceName\": \"sv4-isilon1\",","                                \"environment\": \"kIsilon\",","                                \"objectType\": \"kMountPoint\"","                            }","                        }]","                    ]","                },","                \"recoveryAction\": {","                    \"title\": \"The recoveryAction Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"string\",","                    \"default\": \"\",","                    \"examples\": [","                        \"RecoverFiles\"","                    ]","                },","                \"recoverFileAndFolderParams\": {","                    \"title\": \"The recoverFileAndFolderParams Schema\",","                    \"description\": \"An explanation about the purpose of this instance.\",","                    \"type\": \"object\",","                    \"default\": {},","                    \"additionalProperties\": true,","                    \"properties\": {","                        \"filesAndFolders\": {","                            \"title\": \"The filesAndFolders Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"array\",","                            \"default\": [],","                            \"additionalItems\": true,","                            \"items\": {","                                \"title\": \"A Schema\",","                                \"description\": \"An explanation about the purpose of this instance.\",","                                \"type\": \"object\",","                                \"default\": {},","                                \"additionalProperties\": true,","                                \"properties\": {","                                    \"absolutePath\": {","                                        \"title\": \"The absolutePath Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"/ifs/fileFolderRestoreTest\"","                                        ]","                                    },","                                    \"isDirectory\": {","                                        \"title\": \"The isDirectory Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"boolean\",","                                        \"default\": false,","                                        \"examples\": [","                                            false","                                        ]","                                    },","                                    \"status\": {","                                        \"title\": \"The status Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"string\",","                                        \"default\": \"\",","                                        \"examples\": [","                                            \"NotStarted\"","                                        ]","                                    },","                                    \"messages\": {","                                        \"title\": \"The messages Schema\",","                                        \"description\": \"An explanation about the purpose of this instance.\",","                                        \"type\": \"null\",","                                        \"default\": null,","                                        \"examples\": [","                                            null","                                        ]","                                    }","                                },","                                \"examples\": [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            },","                            \"examples\": [","                                [{","                                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                                    \"isDirectory\": false,","                                    \"status\": \"NotStarted\",","                                    \"messages\": null","                                }]","                            ]","                        },","                        \"targetEnvironment\": {","                            \"title\": \"The targetEnvironment Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"string\",","                            \"default\": \"\",","                            \"examples\": [","                                \"kIsilon\"","                            ]","                        },","                        \"isilonTargetParams\": {","                            \"title\": \"The isilonTargetParams Schema\",","                            \"description\": \"An explanation about the purpose of this instance.\",","                            \"type\": \"object\",","                            \"default\": {},","                            \"additionalProperties\": true,","                            \"properties\": {","                                \"recoverToNewSource\": {","                                    \"title\": \"The recoverToNewSource Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"boolean\",","                                    \"default\": false,","                                    \"examples\": [","                                        false","                                    ]","                                },","                                \"originalSourceConfig\": {","                                    \"title\": \"The originalSourceConfig Schema\",","                                    \"description\": \"An explanation about the purpose of this instance.\",","                                    \"type\": \"object\",","                                    \"default\": {},","                                    \"additionalProperties\": true,","                                    \"properties\": {","                                        \"recoverToOriginalPath\": {","                                            \"title\": \"The recoverToOriginalPath Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"overwriteExistingFile\": {","                                            \"title\": \"The overwriteExistingFile Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"preserveFileAttributes\": {","                                            \"title\": \"The preserveFileAttributes Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                true","                                            ]","                                        },","                                        \"continueOnError\": {","                                            \"title\": \"The continueOnError Schema\",","                                            \"description\": \"An explanation about the purpose of this instance.\",","                                            \"type\": \"boolean\",","                                            \"default\": false,","                                            \"examples\": [","                                                false","                                            ]","                                        }","                                    },","                                    \"examples\": [{","                                        \"recoverToOriginalPath\": true,","                                        \"overwriteExistingFile\": true,","                                        \"preserveFileAttributes\": true,","                                        \"continueOnError\": false","                                    }]","                                }","                            },","                            \"examples\": [{","                                \"recoverToNewSource\": false,","                                \"originalSourceConfig\": {","                                    \"recoverToOriginalPath\": true,","                                    \"overwriteExistingFile\": true,","                                    \"preserveFileAttributes\": true,","                                    \"continueOnError\": false","                                }","                            }]","                        }","                    },","                    \"examples\": [{","                        \"filesAndFolders\": [{","                            \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                            \"isDirectory\": false,","                            \"status\": \"NotStarted\",","                            \"messages\": null","                        }],","                        \"targetEnvironment\": \"kIsilon\",","                        \"isilonTargetParams\": {","                            \"recoverToNewSource\": false,","                            \"originalSourceConfig\": {","                                \"recoverToOriginalPath\": true,","                                \"overwriteExistingFile\": true,","                                \"preserveFileAttributes\": true,","                                \"continueOnError\": false","                            }","                        }","                    }]","                }","            },","            \"examples\": [{","                \"objects\": [{","                    \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                    \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                    \"snapshotCreationTimeUsecs\": 1669113200103871,","                    \"snapshotTargetType\": \"Local\",","                    \"storageDomainId\": 5,","                    \"progressTaskId\": \"\",","                    \"messages\": null,","                    \"objectInfo\": {","                        \"id\": 26,","                        \"name\": \"/ifs/fileFolderRestoreTest\",","                        \"sourceId\": 1,","                        \"sourceName\": \"sv4-isilon1\",","                        \"environment\": \"kIsilon\",","                        \"objectType\": \"kMountPoint\"","                    }","                }],","                \"recoveryAction\": \"RecoverFiles\",","                \"recoverFileAndFolderParams\": {","                    \"filesAndFolders\": [{","                        \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                        \"isDirectory\": false,","                        \"status\": \"NotStarted\",","                        \"messages\": null","                    }],","                    \"targetEnvironment\": \"kIsilon\",","                    \"isilonTargetParams\": {","                        \"recoverToNewSource\": false,","                        \"originalSourceConfig\": {","                            \"recoverToOriginalPath\": true,","                            \"overwriteExistingFile\": true,","                            \"preserveFileAttributes\": true,","                            \"continueOnError\": false","                        }","                    }","                }","            }]","        }","    },","    \"examples\": [{","        \"id\": \"6706421133980411:1668680031418:740\",","        \"name\": \"Recovery_NAS_ProtectionJob\",","        \"startTimeUsecs\": 1669115474510661,","        \"status\": \"Accepted\",","        \"snapshotEnvironment\": \"kIsilon\",","        \"recoveryAction\": \"RecoverFiles\",","        \"permissions\": [],","        \"creationInfo\": {","            \"userName\": \"admin\"","        },","        \"canTearDown\": false,","        \"messages\": null,","        \"retrieveArchiveTasks\": null,","        \"isilonParams\": {","            \"objects\": [{","                \"snapshotId\": \"eyJhX2NsdXN0ZXJJZCI6NjcwNjQyMTEzMzk4MDQxMSwiYl9jbHVzdGVySW5jYXJuYXRpb25JZCI6MTY2ODY4MDAzMTQxOCwiY19qb2JJZCI6NzI2LCJlX2pvYkluc3RhbmNlSWQiOjcyOSwiZl9ydW5TdGFydFRpbWVVc2VjcyI6MTY2OTExMzIwMDEwMzg3MSwiZ19vYmplY3RJZCI6MjZ9\",","                \"protectionGroupId\": \"6706421133980411:1668680031418:726\",","                \"snapshotCreationTimeUsecs\": 1669113200103871,","                \"snapshotTargetType\": \"Local\",","                \"storageDomainId\": 5,","                \"progressTaskId\": \"\",","                \"messages\": null,","                \"objectInfo\": {","                    \"id\": 26,","                    \"name\": \"/ifs/fileFolderRestoreTest\",","                    \"sourceId\": 1,","                    \"sourceName\": \"sv4-isilon1\",","                    \"environment\": \"kIsilon\",","                    \"objectType\": \"kMountPoint\"","                }","            }],","            \"recoveryAction\": \"RecoverFiles\",","            \"recoverFileAndFolderParams\": {","                \"filesAndFolders\": [{","                    \"absolutePath\": \"/ifs/fileFolderRestoreTest\",","                    \"isDirectory\": false,","                    \"status\": \"NotStarted\",","                    \"messages\": null","                }],","                \"targetEnvironment\": \"kIsilon\",","                \"isilonTargetParams\": {","                    \"recoverToNewSource\": false,","                    \"originalSourceConfig\": {","                        \"recoverToOriginalPath\": true,","                        \"overwriteExistingFile\": true,","                        \"preserveFileAttributes\": true,","                        \"continueOnError\": false","                    }","                }","            }","        }","    }]","}","","pm.test(\"Validate Response Body schema\",()=>{","    pm.response.to.have.jsonSchema(jsonSchema)","});","",""],"type":"text/javascript","id":"179757b5-0807-4500-97a1-63d69f00ecac"}}],"id":"7af1f14a-503d-4d77-86b0-6e90a476c841","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_1-access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"name\": \"Recover__{{timestamp}}\",\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Windows_File_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"recoverTarget\": {\n                    \"id\": {{Windows_Source_Id}}\n                },\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/recoveries","description":"<p>Recover the objects specified in the request body.</p>\n<p>Ensure to provide the following parameters in the request body:</p>\n<ul>\n<li>The snapshot ID from which you want to recover the specified object.</li>\n<li>The target ID where the object will be recovered to.</li>\n</ul>\n<p>The <code>{{timestamp}}</code> variable in the request body will be auto-populated when you run the API.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"9b2e1683-23a7-492e-8726-63984bc36fcd","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"name\": \"Recover__{{timestamp}}\",\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{Windows_File_Snapshot}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"recoverTarget\": {\n                    \"id\": {{Windows_Source_Id}}\n                },\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true\n            }\n        }\n    }\n}"},"url":"https://{{cluster-vip}}/v2/data-protect/recoveries"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8743635867054034:1666901032964:412829\",\n    \"name\": \"Recover__20230131_13105\",\n    \"startTimeUsecs\": 1675199405508688,\n    \"status\": \"Accepted\",\n    \"snapshotEnvironment\": \"kPhysical\",\n    \"recoveryAction\": \"RecoverFiles\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"admin\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"physicalParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshot_Id}}\",\n                \"protectionGroupId\": \"8743635867054034:1666901032964:412248\",\n                \"snapshotCreationTimeUsecs\": 1675193566341137,\n                \"snapshotTargetType\": \"Local\",\n                \"storageDomainId\": 24,\n                \"progressTaskId\": \"\",\n                \"messages\": null,\n                \"objectInfo\": {\n                    \"id\": 25263,\n                    \"name\": \"{{Source_Phyisical_Server}}\",\n                    \"sourceName\": \"Physical Servers\",\n                    \"environment\": \"kPhysical\",\n                    \"objectType\": \"kHost\",\n                    \"protectionType\": \"kVolume\",\n                    \"osType\": \"kWindows\"\n                }\n            }\n        ],\n        \"recoveryAction\": \"RecoverFiles\",\n        \"recoverFileAndFolderParams\": {\n            \"filesAndFolders\": [\n                {\n                    \"absolutePath\": \"/etc/fonts/conf.d/60-generic.conf\",\n                    \"isDirectory\": false,\n                    \"status\": \"NotStarted\",\n                    \"messages\": null\n                }\n            ],\n            \"targetEnvironment\": \"kPhysical\",\n            \"physicalTargetParams\": {\n                \"restoreToOriginalPaths\": true,\n                \"overwriteExisting\": false,\n                \"preserveAttributes\": true,\n                \"continueOnError\": true,\n                \"saveSuccessFiles\": true,\n                \"recoverTarget\": {\n                    \"id\": 25263,\n                    \"name\": \"{{Target_Physical_Server}}\",\n                    \"parentSourceId\": 20764,\n                    \"parentSourceName\": \"Physical Servers\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7af1f14a-503d-4d77-86b0-6e90a476c841"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"44de47cc-91be-47c8-be75-2ae6ea78311a"}}],"id":"3a7e3954-1194-4cf4-a879-cb67b6d4038b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster-vip}}"],"query":[{"key":"deleteSnapshots","value":"true"}],"variable":[]}},"response":[{"id":"0a8a8015-e94f-4eff-959e-84055947cdae","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{cluster-vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?deleteSnapshots=true","protocol":"https","host":["{{cluster-vip}}"],"path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"query":[{"key":"deleteSnapshots","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199707"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:15:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3a7e3954-1194-4cf4-a879-cb67b6d4038b"},{"name":"Unregister Windows Physical Server Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"bcf2b32a-64ff-4ca5-bfd3-e464c7053292"}}],"id":"2f563d6c-3556-4e0a-b281-b76df30f8d38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations/{{Windows_Source_Id}}","description":"<p>Unregisters the physical server source from the Cohesity cluster.</p>\n<p>You can fetch the <code>Windows_Source_Id</code> to be specified in the API URL from the <strong>Register Windows Physical Source</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{Windows_Source_Id}}"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"7b159598-ca5a-4cfd-bf30-dadf4d71f2c5","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations/{{Linux_Source_Id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675199821"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Tue, 31 Jan 2023 21:17:01 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2f563d6c-3556-4e0a-b281-b76df30f8d38"}],"id":"df9f5108-3882-4dcd-87bc-2976b01ee532","description":"<p>Perform the following steps using the API operations to protect (file-based) and recover your Windows physical server using Cohesity:</p>\n<ol>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the Windows physical server as a source with the Cohesity cluster.</li>\n<li>Verify whether the physical server is available as a source on the Cohesity cluster and get the source ID required for creating the Protection Group.</li>\n<li>Get the list of Protection Policies available on the Cohesity cluster. You can either use an existing policy or create a new Protection Policy.</li>\n<li>If you have created a new Protection Policy, verify whether the policy is available on the Cohesity cluster, and get the policy ID required for creating the Protection Group.</li>\n<li>Get the list of Storage Domains available on the Cohesity cluster. You can either use an existing Storage Domain or create a new Storage Domain.</li>\n<li>If you have created a new Storage Domain, verify whether the Storage Domain is available on the Cohesity cluster, and get the Storage Domain ID required for creating the Protection Group.</li>\n<li>Create a file-based Protection Group for protecting the Windows physical server.</li>\n<li>Get the Protection Group ID to run the Protection Group.</li>\n<li>Run the Protection Group.</li>\n<li>Get the Protection Group run status.</li>\n<li>Get the latest snapshot of the object you want to recover.</li>\n<li>Recover the files or folder of the physical server from the latest snapshot.</li>\n<li>Delete the Protection Group.</li>\n<li>Unregister the physical server from the Cohesity cluster.</li>\n</ol>\n","_postman_id":"df9f5108-3882-4dcd-87bc-2976b01ee532"}],"id":"ca579926-b7c4-4aa7-aee1-fe21e541115e","_postman_id":"ca579926-b7c4-4aa7-aee1-fe21e541115e","description":""},{"name":"User Management Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","// postman.setEnvironmentVariable(\"token\", jsonData.accessToken);","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"token\",token);","","console.log(pm.environment.get(\"token\"))","","// var token = pm.response.json()[\"accessToken\"]","// pm.environment.set(\"access_token\",token);"],"type":"text/javascript","id":"9c8aeecc-81d0-4fad-8086-321da48424a2"}}],"id":"8699dfd1-a2a4-4f26-95b8-885eedfe3a05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"83b8c109-2fd2-453f-82d6-570b8a2412c6","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_admin_username}}\",\n    \"password\":\"{{cluster_admin_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675278896"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:14:55 GMT"},{"key":"Content-Length","value":"1124"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"8699dfd1-a2a4-4f26-95b8-885eedfe3a05"},{"name":"Get Users List","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"79917e86-6203-4125-9173-5c33d3c2f1df"}}],"id":"96e966b4-1dba-4638-9b5c-5549033d6c65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users","description":"<p>Returns the list of users in the Cohesity cluster along with the information on their email address, domain name, roles and privileges assigned, and so on.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","users"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"31e927ea-c501-40d9-9cd8-7d9476e1c4de","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675279505"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:25:04 GMT"},{"key":"Content-Length","value":"751"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"username\": \"{{username1}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1666901436379,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1666901436379,\n        \"lastUpdatedTimeMsecs\": 1674405851419,\n        \"sid\": \"S-1-100-21-99004370-65145163-1\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"forcePasswordChange\": false,\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\",\n        \"lastSuccessfulLoginTimeMsecs\": 1675279437621\n    },\n    {\n        \"username\": \"{{username2}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_HIGH_CLASSIFIED\",\n            \"COHESITY_VIEWER\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1666901984684,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1666902001805,\n        \"lastUpdatedTimeMsecs\": 1666902029884,\n        \"sid\": \"S-1-21-21-99004370-65145163-11\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"forcePasswordChange\": false,\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\",\n        \"lastSuccessfulLoginTimeMsecs\": 1668633337614\n    },\n    {\n        \"username\": \"{{username3}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1675279386368,\n        \"expiredTimeMsecs\": 1675497600000,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1675279409445,\n        \"lastUpdatedTimeMsecs\": 1675279409445,\n        \"sid\": \"S-1-21-21-99004370-65145163-13\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\"\n    }\n      {\n        \"username\": \"{{username3}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1675279386368,\n        \"expiredTimeMsecs\": 1675497600000,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1675279849108,\n        \"lastUpdatedTimeMsecs\": 1675279849108,\n        \"sid\": \"S-1-21-21-99004370-65145163-16\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n\n\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\"\n    },\n      {\n        \"username\": \"{{username3}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1675279386368,\n        \"expiredTimeMsecs\": 1675497600000,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1675279919423,\n        \"lastUpdatedTimeMsecs\": 1675279919423,\n        \"sid\": \"S-1-21-21-99004370-65145163-19\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\"\n    }\n]\n"}],"_postman_id":"96e966b4-1dba-4638-9b5c-5549033d6c65"},{"name":"Add User","id":"473e3ac4-fec8-45d6-9610-98d5712a53ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"LOCAL\",\n  \"effectiveTimeMsecs\": 1675279386368,\n  \"roles\": [\n    \"COHESITY_ADMIN\"\n  ],\n  \"restricted\": false,\n  \"type\": \"user\",\n  \"_isDeletable\": true,\n  \"_principalType\": \"local_user\",\n  \"username\": \"{{user_name}}\",\n  \"emailAddress\": \"{{email_address}}\",\n  \"password\": \"test\",\n  \"passwordConfirm\": \"test\",\n  \"expiredTimeMsecs\": 1675497600000,\n  \"additionalGroupNames\": []\n}\n\n"},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users","description":"<p>Adds a user in the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","users"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"0a7b5f4e-380b-4ab1-bb73-09642de76938","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"LOCAL\",\n  \"effectiveTimeMsecs\": 1675279386368,\n  \"roles\": [\n    \"COHESITY_ADMIN\"\n  ],\n  \"restricted\": false,\n  \"type\": \"user\",\n  \"_isDeletable\": true,\n  \"_principalType\": \"local_user\",\n  \"username\": \"Garland_Prosacco\",\n  \"emailAddress\": \"Ali.Predovic15@yahoo.com\",\n  \"password\": \"test\",\n  \"passwordConfirm\": \"test\",\n  \"expiredTimeMsecs\": 1675497600000,\n  \"additionalGroupNames\": []\n}\n\n"},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675279920"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:31:59 GMT"},{"key":"Content-Length","value":"414"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"{{user_name}}\",\n    \"domain\": \"LOCAL\",\n    \"emailAddress\": \"{{email_address}}\",\n    \"roles\": [\n        \"COHESITY_ADMIN\"\n    ],\n    \"privilegeIds\": null,\n    \"clusterIdentifiers\": null,\n    \"effectiveTimeMsecs\": 1675279386368,\n    \"expiredTimeMsecs\": 1675497600000,\n    \"restricted\": false,\n    \"createdTimeMsecs\": 1675279919423,\n    \"lastUpdatedTimeMsecs\": 1675279919423,\n    \"sid\": \"S-1-21-21-99004370-65145163-19\",\n    \"s3AccountId\": \"{{account_id}}\",\n    \"s3AccessKeyId\": \"{{access_id}}\",\n    \"s3SecretKey\": \"{{secret_key}}\",\n    \"isAccountLocked\": false,\n    \"lockoutReason\": \"NotLocked\"\n}\n\n\n"}],"_postman_id":"473e3ac4-fec8-45d6-9610-98d5712a53ed"},{"name":"Verify User","id":"a00819e0-fa8c-43a5-af59-f25e8952036c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users","description":"<p>Returns the list of users in the Cohesity cluster along with the information on their email address, domain name, roles, privileges, and so on.</p>\n<p>You can run this API to ensure whether the user you added is available on the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","users"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"2ec37c9c-15c8-4248-877a-54774c27232b","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675280728"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:45:27 GMT"},{"key":"Content-Length","value":"1155"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"username\": \"{{username1}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1666901436379,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1666901436379,\n        \"lastUpdatedTimeMsecs\": 1674405851419,\n        \"sid\": \"S-1-100-21-99004370-65145163-1\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"forcePasswordChange\": false,\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\",\n        \"lastSuccessfulLoginTimeMsecs\": 1675279437621\n    },\n    {\n        \"username\": \"{{username2}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_HIGH_CLASSIFIED\",\n            \"COHESITY_VIEWER\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1666901984684,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1666902001805,\n        \"lastUpdatedTimeMsecs\": 1666902029884,\n        \"sid\": \"S-1-21-21-99004370-65145163-11\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"forcePasswordChange\": false,\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\",\n        \"lastSuccessfulLoginTimeMsecs\": 1668633337614\n    },\n    {\n        \"username\": \"{{username3}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1675279386368,\n        \"expiredTimeMsecs\": 1675497600000,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1675279409445,\n        \"lastUpdatedTimeMsecs\": 1675279409445,\n        \"sid\": \"S-1-21-21-99004370-65145163-13\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\"\n    },\n      {\n        \"username\": \"{{username4}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1675279386368,\n        \"expiredTimeMsecs\": 1675497600000,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1675279849108,\n        \"lastUpdatedTimeMsecs\": 1675279849108,\n        \"sid\": \"S-1-21-21-99004370-65145163-16\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n\n\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\"\n    },\n      {\n        \"username\": \"{{username5}}\",\n        \"domain\": \"LOCAL\",\n        \"emailAddress\": \"{{email_address}}\",\n        \"roles\": [\n            \"COHESITY_ADMIN\"\n        ],\n        \"privilegeIds\": null,\n        \"clusterIdentifiers\": null,\n        \"effectiveTimeMsecs\": 1675279386368,\n        \"expiredTimeMsecs\": 1675497600000,\n        \"restricted\": false,\n        \"createdTimeMsecs\": 1675279919423,\n        \"lastUpdatedTimeMsecs\": 1675279919423,\n        \"sid\": \"S-1-21-21-99004370-65145163-19\",\n        \"s3AccountId\": \"{{account_id}}\",\n        \"s3AccessKeyId\": \"{{access_id}}\",\n        \"s3SecretKey\": \"{{secret_key}}\",\n        \"isAccountLocked\": false,\n        \"lockoutReason\": \"NotLocked\"\n    }\n]"}],"_postman_id":"a00819e0-fa8c-43a5-af59-f25e8952036c"},{"name":"Generate Access Token","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","// postman.setEnvironmentVariable(\"token\", jsonData.accessToken);","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"token\",token);","","console.log(pm.environment.get(\"token\"))","","// var token = pm.response.json()[\"accessToken\"]","// pm.environment.set(\"access_token\",token);"],"type":"text/javascript","id":"2ca15aa4-651c-46a1-9f53-157d8bdab944"}}],"id":"6deca3ac-2e3d-4640-8136-8ff9ba8034aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources. Provide the username and password of the newly added user in the request body for accessing the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"30124463-d1ee-4798-b077-bc3304f012ea","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"{{cluster_1-admin_username}}\",\n    \"password\":\"{{cluster_1-admin_password}}\",\n    \"domain\": \"{{cluster_1-domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/accessTokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675281063"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:51:02 GMT"},{"key":"Content-Length","value":"1124"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"6deca3ac-2e3d-4640-8136-8ff9ba8034aa"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["pm.test(\"Register Physical source, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (responseCode.code !== 200) {","    postman.setNextRequest(null);","}","","pm.test(\"Validating response, fetching Source id\", function () {","    var jsonData = pm.response.json();","    var source = pm.environment.get('cassandra_source');","    pm.expect(jsonData.registrations).to.be.an(\"array\");","    for (var i = 0; i < jsonData.registrations.length; i++) {","        if (jsonData.registrations[i].sourceInfo.environment === \"kCassandra\") {","            pm.expect(jsonData.registrations[i].id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceId).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo).to.be.an(\"object\");","            pm.expect(jsonData.registrations[i].sourceInfo.id).to.be.a(\"number\");","            pm.expect(jsonData.registrations[i].sourceInfo.name).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.environment).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.objectType).to.be.a(\"string\");","            pm.expect(jsonData.registrations[i].sourceInfo.uuid).to.be.a(\"string\");","            if (jsonData.registrations[i].sourceInfo.name === source) {","                pm.environment.set(\"sourceId\", jsonData.registrations[i].id);","                postman.setNextRequest(\"Get Protection Policy\");","            }","        }","    }","});"],"type":"text/javascript","id":"e753e6dd-7b40-468e-9401-66ad2095f577"}}],"id":"dbcb0ecf-c12c-4b81-8a11-0a3a053b1579","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations","description":"<p>Returns the list of sources registered with the Cohesity cluster. You can run this API to verify whether the new user is able to perform the actions as per the roles assigned.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"1b585d82-bd9a-4ed4-bd59-19715e9846e1","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster-vip}}/v2/data-protect/sources/registrations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675281190"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:53:09 GMT"},{"key":"Content-Length","value":"991"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"protectionSource\": {\n            \"id\": 4,\n            \"name\": \"{{vCenter_name}}\",\n            \"environment\": \"kVMware\",\n            \"vmWareProtectionSource\": {\n                \"type\": \"kVCenter\",\n                \"name\": \"{{vCenter_name}}\",\n                \"id\": {\n                    \"uuid\": \"{{uuid}}\"\n                },\n                \"version\": \"VMware vCenter Server 6.7.0 build-10244857\",\n                \"isVmcEntity\": false\n            }\n        },\n        \"protectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 2,\n                \"totalLogicalSize\": 128849018880\n            }\n        ],\n        \"unprotectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 33,\n                \"totalLogicalSize\": 2558942773248\n            }\n        ],\n        \"registrationInfo\": {\n            \"accessInfo\": {\n                \"id\": 34,\n                \"version\": 0,\n                \"environment\": \"kVMware\",\n                \"endpoint\": \"{{vCenter_ipaddress}}\"\n            },\n            \"throttlingPolicy\": {\n                \"isEnabled\": false,\n                \"enforceMaxStreams\": false,\n                \"storageArraySnapshotConfig\": {}\n            },\n            \"registrationTimeUsecs\": 1676498184583907,\n            \"refreshTimeUsecs\": 1677845678112020,\n            \"authenticationStatus\": \"kFinished\",\n            \"username\": \"{{vCenter_username}}\"\n        }\n    },\n    {\n        \"protectionSource\": {\n            \"id\": 59,\n            \"name\": \"{{vCenter_name}}\",\n            \"environment\": \"kVMware\",\n            \"vmWareProtectionSource\": {\n                \"type\": \"kVCenter\",\n                \"name\": \"{{vCenter_name}}\",\n                \"id\": {\n                    \"uuid\": \"{{uuid}}\"\n                },\n                \"version\": \"VMware vCenter Server 6.7.0 build-20504362\",\n                \"isVmcEntity\": false\n            }\n        },\n        \"protectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 4,\n                \"totalLogicalSize\": 1684700921856\n            }\n        ],\n        \"unprotectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 240,\n                \"totalLogicalSize\": 69764012781568\n            }\n        ],\n        \"registrationInfo\": {\n            \"accessInfo\": {\n                \"id\": 65,\n                \"version\": 0,\n                \"environment\": \"kVMware\",\n                \"endpoint\": \"{{vCenter_ipaddress}}\"\n\n\n            },\n            \"throttlingPolicy\": {\n                \"isEnabled\": false,\n                \"enforceMaxStreams\": false,\n                \"storageArraySnapshotConfig\": {}\n            },\n            \"registrationTimeUsecs\": 1676616684648438,\n            \"refreshTimeUsecs\": 1677863881043214,\n            \"authenticationStatus\": \"kFinished\",\n            \"username\": \"{{vCenter_username}}\"\n        }\n    },\n    {\n        \"protectionSource\": {\n            \"id\": 6774,\n            \"name\": \"{{vCenter_name}}\",\n            \"environment\": \"kVMware\",\n            \"vmWareProtectionSource\": {\n                \"type\": \"kVCenter\",\n                \"name\": \"{{vCenter_name}}\",\n                \"id\": {\n                    \"uuid\": \"{{uuid}}\"\n                },\n                \"version\": \"VMware vCenter Server 6.5.0 build-8024368\",\n                \"isVmcEntity\": false\n            }\n        },\n        \"protectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\"\n            }\n        ],\n        \"unprotectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 438,\n                \"totalLogicalSize\": 121074054332416\n            }\n        ],\n        \"registrationInfo\": {\n            \"accessInfo\": {\n                \"id\": 8021,\n                \"version\": 0,\n                \"environment\": \"kVMware\",\n                \"endpoint\": \"{{vCenter_ipaddress}}\"\n            },\n            \"throttlingPolicy\": {\n                \"storageArraySnapshotConfig\": {}\n            },\n            \"registrationTimeUsecs\": 1677865706980290,\n            \"refreshTimeUsecs\": 1677865706980290,\n            \"username\": \"{{Vcenter_username}}\"\n        }\n    }\n]"}],"_postman_id":"dbcb0ecf-c12c-4b81-8a11-0a3a053b1579"},{"name":"Remove User","event":[{"listen":"test","script":{"exec":["//Validate return-code","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"b382c4ba-43ec-4a80-a81e-cc895805f8d4"}}],"id":"06e5dc21-0c9f-4600-961f-e4dff7fd9e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"LOCAL\",\n  \"username\": \"{{UserName}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users","description":"<p>Removes the user in the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","users"],"host":["{{cluster-vip}}"],"query":[],"variable":[]}},"response":[{"id":"27a72dc6-b619-4cce-b419-1b3fd7f95f9d","name":"Sample Response","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"LOCAL\",\n  \"users\": [\n    \"Christ.Ziemann66\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster-vip}}/irisservices/api/v1/public/users"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1675280702"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Wed, 01 Feb 2023 19:45:01 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"06e5dc21-0c9f-4600-961f-e4dff7fd9e99"}],"id":"3159f3ba-d86e-41f3-8210-75bdc5808c28","description":"<p>Perform the following API operations to create and manage a user in the Cohesity cluster:</p>\n<ul>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Get the list of users added in the Cohesity cluster.</li>\n<li>Add a new user in the Cohesity cluster.</li>\n<li>Verify whether the user is added in the Cohesity cluster.</li>\n<li>Generate the access token for the new user to access the Cohesity cluster resources.</li>\n<li>Verify whether the new user is able to perform the actions as per the roles assigned. For example, validate if the user can run the API to get the list of sources registered with the Cohesity cluster.</li>\n<li>Remove the user from the Cohesity cluster.</li>\n</ul>\n","_postman_id":"3159f3ba-d86e-41f3-8210-75bdc5808c28"},{"name":"VMware vCenter Protection Workflow","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"id":"9dcc2b93-b7f9-4dc0-bb6b-c4bf9a1eef44","exec":["console.log(\"Test to verify Access Tokens\")","console.log(\"Logging to the cluster IP(\"+pm.variables.get(\"cluster_1-ip\")+\") with Username/Password: \"+pm.variables.get(\"admin_username\")+\"/\"+pm.variables.get(\"admin_password\"))","","var response = pm.response.json()","","pm.test(\"accessTokens response is not KStatusUnauthorized\", function () {","    pm.expect(response.errorCode).to.not.equal(\"KStatusUnauthorized\");","});","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"accessTokens response is not null\", function () {","    pm.expect(response).to.not.equal(null);","});","","var token = pm.response.json()[\"accessToken\"]","pm.environment.set(\"cluster_1-access_token\",token);","","pm.test(\"Token is not null: \"+pm.environment.get(\"cluster_1-access_token\"), function () {","    pm.expect(pm.environment.get(\"cluster_1-access_token\")).to.not.equal(undefined);","});","","","//schema validation","var tokenvalidation = pm.collectionVariables.get(\"tokenValidation\");","(new Function(tokenvalidation))();","","const path = require('path')","path.resolve()","","console.log(\"Test Completed\")"],"type":"text/javascript","packages":{}}}],"id":"bc9dff14-cd88-44ba-8c7f-3421e1d6d676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_username}}\",\n    \"password\": \"{{cluster_password}}\",\n    \"domain\": \"{{cluster_domain}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/accessTokens","description":"<p>Authenticates the request call to the Cohesity cluster and provides secure access for the user to the Cohesity cluster resources.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","accessTokens"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"195b5e86-3eb2-4265-8ef5-faf560b5106b","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{cluster_1-admin_username}}\",\n    \"password\": \"{{cluster_1-admin_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_1-ip}}/v2/access-tokens"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677782575"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 02 Mar 2023 18:42:54 GMT"},{"key":"Content-Length","value":"1133"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": {{cluster_access_token}},\n    \"privileges\": [\n        \"AD_LDAP_MODIFY\",\n        \"AD_LDAP_VIEW\",\n        \"REPORTS_VIEW\",\n        \"STORAGE_MODIFY\",\n        \"STORAGE_VIEW\",\n        \"SUPPORT_CHANNEL_MODIFY\",\n        \"TAGS_MANAGE\",\n         \"VLAN_VIEW\"\n    ],\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"bc9dff14-cd88-44ba-8c7f-3421e1d6d676"},{"name":"Register VMware vCenter Source","event":[{"listen":"test","script":{"exec":["if(responseCode.code === 400){","  tests[\"Protection Source already registered, Status code is 400\"] = responseCode.code === 400;","  postman.setNextRequest(\"Get Protection Sources\");","}","else if(responseCode.code === 200){","  tests[\"Register Protection Source, Status code is 200\"] = responseCode.code === 200;","  jsonData = JSON.parse(responseBody);","  pm.environment.set(\"sourceIdRegistered\", jsonData.id);","  postman.setNextRequest(\"Select a VirtualMachine\");","}","else{","  postman.setNextRequest(null);","}"],"type":"text/javascript","id":"40a34a7a-d9f6-4707-ab4b-d40865b0973c"}}],"id":"cacd978c-cc6d-4086-9674-f43afa765344","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{vCenter_user}}\",\n    \"vmwareType\": \"kVCenter\",\n    \"endpoint\": \"{{vCenter_ipaddress}}\",\n    \"environment\": \"kVMware\",\n    \"password\": \"{{vCenter_password}}\"\n}"},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/register","description":"<p>Registers the VMware vCenter source with the Cohesity cluster.</p>\n<p>The <code>sourceId</code> from the API response is required for obtaining the list of virtual machines available on the VMware vCenter.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","register"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"42772e3f-6a55-4f9f-be5b-5fdeadf7b000","name":"Sample Response","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{vcenter_user}}\",\n    \"vmwareType\": \"kVCenter\",\n    \"endpoint\": \"{{vcenter_hostname}}\",\n    \"environment\": \"kVMware\",\n    \"password\": \"{{vcenter_password}}\"\n}"},"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677865694"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 17:48:27 GMT"},{"key":"Content-Length","value":"227"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6774,\n    \"name\": \"{{vCenter_name}}\",\n    \"environment\": \"kVMware\",\n    \"vmWareProtectionSource\": {\n        \"type\": \"kVCenter\",\n        \"name\": \"{{vCenter_name}}\",\n        \"id\": {\n            \"uuid\": \"{{uuid}}\"\n        },\n        \"version\": \"VMware vCenter Server 6.5.0 build-8024368\",\n        \"isVmcEntity\": false\n    }\n}"}],"_postman_id":"cacd978c-cc6d-4086-9674-f43afa765344"},{"name":"Get Sources List","event":[{"listen":"test","script":{"exec":["var jsonData = JSON.parse(responseBody);","var source = pm.environment.get(\"vcenter\")","for (var i=0;i<jsonData.length;i++){","   obj = jsonData[i].protectionSource;","   if (source === obj.name){","       pm.environment.set(\"sourceIdRegistered\", obj.id);","   }","}"],"type":"text/javascript","id":"5ce14b5f-9b2d-49e9-b1a8-5d8411ee0968"}}],"id":"fcdcc8d6-50ab-401f-be69-532ebad6b16c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/rootNodes?environments=kVMware","description":"<p>Returns the list of VMware vCenters registered with the Cohesity cluster.</p>\n<p>You can run this API to:</p>\n<ul>\n<li>Ensure whether the VMware vCenter you registered is available on the Cohesity cluster.</li>\n<li>Obtain the Id (<code>sourceId</code>) of the VMware vCenter you registered.<br />  The <code>sourceId</code> from the API response is required for obtaining the list of virtual machines available on the VMware vCenter.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","rootNodes"],"host":["{{cluster_vip}}"],"query":[{"key":"environments","value":"kVMware"}],"variable":[]}},"response":[{"id":"9e7572ef-98a0-4d42-aaa0-0b18dbcda9bd","name":"Sample Response","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/rootNodes?environments=kVMware","protocol":"https","host":["{{cluster_vip}}"],"path":["irisservices","api","v1","public","protectionSources","rootNodes"],"query":[{"key":"environments","value":"kVMware"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677868657"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 18:37:36 GMT"},{"key":"Content-Length","value":"726"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"protectionSource\": {\n            \"id\": 4,\n            \"name\": \"{{vCenter_name}}\",\n            \"environment\": \"kVMware\",\n            \"vmWareProtectionSource\": {\n                \"type\": \"kVCenter\",\n                \"name\": \"{{vCenter_name}}\",\n                \"id\": {\n                    \"uuid\": \"{{uuid}}\"\n                },\n                \"version\": \"VMware vCenter Server 6.7.0 build-10244857\",\n                \"isVmcEntity\": false\n            }\n        },\n        \"protectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 2,\n                \"totalLogicalSize\": 128849018880\n            }\n        ],\n        \"unprotectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 33,\n                \"totalLogicalSize\": 2558942773248\n            }\n        ],\n        \"registrationInfo\": {\n            \"accessInfo\": {\n                \"id\": 34,\n                \"version\": 0,\n                \"environment\": \"kVMware\",\n                \"endpoint\": \"{{vCenter_ipaddress}}\"\n            },\n            \"throttlingPolicy\": {\n                \"isEnabled\": false,\n                \"enforceMaxStreams\": false,\n                \"storageArraySnapshotConfig\": {}\n            },\n            \"registrationTimeUsecs\": 1676498184583907,\n            \"refreshTimeUsecs\": 1677845678112020,\n            \"authenticationStatus\": \"kFinished\",\n            \"username\": \"{{vCenter_username}}\"\n        }\n    },\n    {\n        \"protectionSource\": {\n            \"id\": 59,\n            \"name\": \"{{vCenter_name}}\",\n            \"environment\": \"kVMware\",\n            \"vmWareProtectionSource\": {\n                \"type\": \"kVCenter\",\n                \"name\": \"{{vCenter_name}}\",\n                \"id\": {\n                    \"uuid\": \"{{uuid}}\"\n                },\n                \"version\": \"VMware vCenter Server 6.7.0 build-20504362\",\n                \"isVmcEntity\": false\n            }\n        },\n        \"protectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 4,\n                \"totalLogicalSize\": 1684700921856\n            }\n        ],\n        \"unprotectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 240,\n                \"totalLogicalSize\": 69764012781568\n            }\n        ],\n        \"registrationInfo\": {\n            \"accessInfo\": {\n                \"id\": 65,\n                \"version\": 0,\n                \"environment\": \"kVMware\",\n                \"endpoint\": \"{{vCenter_ipaddress}}\"\n\n\n            },\n            \"throttlingPolicy\": {\n                \"isEnabled\": false,\n                \"enforceMaxStreams\": false,\n                \"storageArraySnapshotConfig\": {}\n            },\n            \"registrationTimeUsecs\": 1676616684648438,\n            \"refreshTimeUsecs\": 1677863881043214,\n            \"authenticationStatus\": \"kFinished\",\n            \"username\": \"{{vCenter_username}}\"\n        }\n    },\n    {\n        \"protectionSource\": {\n            \"id\": 6774,\n            \"name\": \"{{vCenter_name}}\",\n            \"environment\": \"kVMware\",\n            \"vmWareProtectionSource\": {\n                \"type\": \"kVCenter\",\n                \"name\": \"{{vCenter_name}}\",\n                \"id\": {\n                    \"uuid\": \"{{uuid}}\"\n                },\n                \"version\": \"VMware vCenter Server 6.5.0 build-8024368\",\n                \"isVmcEntity\": false\n            }\n        },\n        \"protectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\"\n            }\n        ],\n        \"unprotectedSourcesSummary\": [\n            {\n                \"environment\": \"kVMware\",\n                \"leavesCount\": 438,\n                \"totalLogicalSize\": 121074054332416\n            }\n        ],\n        \"registrationInfo\": {\n            \"accessInfo\": {\n                \"id\": 8021,\n                \"version\": 0,\n                \"environment\": \"kVMware\",\n                \"endpoint\": \"{{vCenter_ipaddress}}\"\n            },\n            \"throttlingPolicy\": {\n                \"storageArraySnapshotConfig\": {}\n            },\n            \"registrationTimeUsecs\": 1677865706980290,\n            \"refreshTimeUsecs\": 1677865706980290,\n            \"username\": \"{{Vcenter_username}}\"\n        }\n    }\n]\n"}],"_postman_id":"fcdcc8d6-50ab-401f-be69-532ebad6b16c"},{"name":"Get VMs List","event":[{"listen":"test","script":{"exec":["pm.test(\"Get protection policies, Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Validating response, fetch policy id\", function () {","    var jsonData = pm.response.json();","console.log(jsonData.policies);","    if (jsonData.policies === null || jsonData.policies === undefined){","        postman.setNextRequest(\"Create protection policy\");","    }","    else {","        for (var i=0; i< jsonData.policies.length; i++) {","            if (jsonData.policies[i].name === \"Gold\") {","                pm.environment.set(\"policyId\", jsonData[\"policies\"][i].id);","            }","            pm.expect(jsonData.policies[i].name).to.be.a('string');","            pm.expect(jsonData.policies[i].id).to.be.a('string');","            if (jsonData.policies[i].retryOptions !== undefined){","                pm.expect(jsonData.policies[i].retryOptions.retryIntervalMins).to.be.a('number');","                pm.expect(jsonData.policies[i].retryOptions.retries).to.be.a('number');","            }","            if (jsonData.policies[i].backupPolicy !== undefined){","                pm.expect(jsonData.policies[i].backupPolicy).to.be.an(\"object\")","                pm.expect(jsonData.policies[i].backupPolicy.regular).to.be.an(\"object\")","                if (jsonData.policies[i].backupPolicy.regular.incremental !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.unit).to.be.a(\"string\")","                    if (jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule !== undefined) {","                        pm.expect(jsonData.policies[i].backupPolicy.regular.incremental.schedule.daySchedule.frequency).to.be.a(\"number\")","                    }","                }","                if (jsonData.policies[i].backupPolicy.regular.retention !== undefined){","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention).to.be.an(\"object\")","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.unit).to.be.a(\"string\");","                    pm.expect(jsonData.policies[i].backupPolicy.regular.retention.duration).to.be.a(\"number\");","                }","            }","        }","    }","postman.setNextRequest(\"Create Protection Job\");","});"],"type":"text/javascript","id":"19387425-db53-465a-a9df-bafa634dcb25"}}],"id":"8b5d97db-0474-4c50-9ecb-a6c38e47b9bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceId}}","description":"<p>Returns the list of virtual machines available on the VMware vCenter source specified in the API URL.</p>\n<p>You can obtain the <code>sourceId</code> to be specified in the API URL from the <strong>Register VMware vCenter</strong> API response.</p>\n<p>You can run this API to obtain the IDs of the VMs you want to protect. The IDs of the VMs are required for creating a Protection Group for protecting those VMs.</p>\n","urlObject":{"protocol":"https","path":["irisservices","api","v1","public","protectionSources","virtualMachines"],"host":["{{cluster_vip}}"],"query":[{"key":"vCenterId","value":"{{sourceId}}"}],"variable":[]}},"response":[{"id":"6c01d844-f2da-4098-9441-d01985433e7e","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceIdRegistered}}","protocol":"https","host":["{{cluster_vip}}"],"path":["irisservices","api","v1","public","protectionSources","virtualMachines"],"query":[{"key":"vCenterId","value":"{{sourceIdRegistered}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677868856"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 18:40:55 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6805,\n        \"parentId\": 6774,\n        \"name\": \"Oracle-RAC-Template_7.7\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"Oracle-RAC-Template_7.7\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-21016\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kConnected\",\n            \"toolsRunningStatus\": \"kGuestToolsNotRunning\",\n            \"hostType\": \"kLinux\",\n            \"isVmTemplate\": true,\n            \"version\": \"vmx-13\"\n        }\n    },\n    {\n        \"id\": 7207,\n        \"parentId\": 6774,\n        \"name\": \"Oracle-Precheck-Automation-LTS\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"Oracle-Precheck-Automation-LTS\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-21544\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kConnected\",\n            \"toolsRunningStatus\": \"kGuestToolsRunning\",\n            \"hostType\": \"kLinux\",\n            \"version\": \"vmx-13\"\n        }\n    },\n {\n        \"id\": 6922,\n        \"parentId\": 6774,\n        \"name\": \"VMware_VM1\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"VMware_VM1\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-21506\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kConnected\",\n            \"toolsRunningStatus\": \"kGuestToolsRunning\",\n            \"hostType\": \"kLinux\",\n            \"version\": \"vmx-13\"\n        }\n    },\n    {\n        \"id\": 7223,\n        \"parentId\": 6774,\n        \"name\": \"oracle_automation_IR_1\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"oracle_automation_IR_1\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-21546\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kConnected\",\n            \"toolsRunningStatus\": \"kGuestToolsRunning\",\n            \"hostType\": \"kLinux\",\n            \"version\": \"vmx-13\"\n        }\n    },\n    {\n        \"id\": 7225,\n        \"parentId\": 6774,\n        \"name\": \"oracle_automation_tde_standalone_Staging1\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"oracle_automation_tde_standalone_Staging1\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-21554\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kConnected\",\n            \"toolsRunningStatus\": \"kGuestToolsRunning\",\n            \"hostType\": \"kLinux\",\n            \"version\": \"vmx-13\"\n        }\n    },\n      {\n        \"id\": 7021,\n        \"parentId\": 6774,\n        \"name\": \"ubuntu-20.04-test\",\n        \"environment\": \"kVMware\",\n        \"vmWareProtectionSource\": {\n            \"type\": \"kVirtualMachine\",\n            \"name\": \"ubuntu-20.04-test\",\n            \"id\": {\n                \"uuid\": \"{{uuid}}\",\n                \"morItem\": \"vm-11005\",\n                \"morType\": \"VirtualMachine\"\n            },\n            \"connectionState\": \"kDisconnected\",\n            \"toolsRunningStatus\": \"kGuestToolsNotRunning\",\n            \"hostType\": \"kLinux\",\n            \"version\": \"vmx-13\"\n        }\n    }\n]\n\n\n\n\n"}],"_postman_id":"8b5d97db-0474-4c50-9ecb-a6c38e47b9bf"},{"name":"Get Protection Policy","id":"56050cf0-c052-4066-bafa-e3b940cfe863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/policies","description":"<p>Returns the list of Protection Policies available on the Cohesity cluster along with their Policy IDs and information on the parameters configured for these policies.</p>\n<p>You can either use an available policy or create a new policy for protecting the VMware VMs. The Protection Policy ID is required for creating the Protection Group for the VMware vCenter protection.</p>\n<p>To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}\n\n</code></pre>","urlObject":{"protocol":"https","path":["v2","data-protect","policies"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"98f788d8-b528-4973-8dfd-1fe6cedbcf95","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/policies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677868791"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 18:39:50 GMT"},{"key":"Content-Length","value":"698"}],"cookie":[],"responseTime":null,"body":"{\n    \"policies\": [\n        {\n            \"name\": \"Gold\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Hours\",\n                            \"hourSchedule\": {\n                                \"frequency\": 4\n                            }\n                        }\n                    },\n                    \"fullBackups\": null,\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 1\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": [\n                {\n                    \"schedule\": {\n                        \"unit\": \"Days\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Days\",\n                        \"duration\": 90\n                    },\n                    \"configId\": \"cbcf0b5a-dfd3-473d-6ee5-85591bbf293a\"\n                },\n                {\n                    \"schedule\": {\n                        \"unit\": \"Weeks\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Years\",\n                        \"duration\": 1\n                    },\n                    \"configId\": \"ca3ab93e-8952-4cc2-6939-93b9d2e175d7\"\n                },\n                {\n                    \"schedule\": {\n                        \"unit\": \"Months\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Years\",\n                        \"duration\": 3\n                    },\n                    \"configId\": \"ddfdec64-b612-4f03-7e2f-ee8e9acfc193\"\n                }\n            ],\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"6928727740717624:1676485504569:1\"\n        },\n        {\n            \"name\": \"Silver\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Hours\",\n                            \"hourSchedule\": {\n                                \"frequency\": 12\n                            }\n                        }\n                    },\n                    \"fullBackups\": null,\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": [\n                {\n                    \"schedule\": {\n                        \"unit\": \"Days\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Days\",\n                        \"duration\": 90\n                    },\n                    \"configId\": \"13072756-2827-409e-56ef-4bc7abb3a716\"\n                },\n                {\n                    \"schedule\": {\n                        \"unit\": \"Weeks\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Years\",\n                        \"duration\": 1\n                    },\n                    \"configId\": \"af4ba65a-32e0-4031-626f-d3748228f309\"\n                },\n                {\n                    \"schedule\": {\n                        \"unit\": \"Months\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Years\",\n                        \"duration\": 2\n                    },\n                    \"configId\": \"653b519a-32e4-4bf3-4ae2-69e7aedffa3a\"\n                }\n            ],\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 5\n            },\n            \"id\": \"6928727740717624:1676485504569:2\"\n        },\n        {\n            \"name\": \"Protect Once\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"full\": {\n                        \"schedule\": {\n                            \"unit\": \"ProtectOnce\"\n                        }\n                    },\n                    \"fullBackups\": null,\n                    \"retention\": {\n                        \"unit\": \"Weeks\",\n                        \"duration\": 2\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"id\": \"6928727740717624:1676485504569:7\"\n        },\n        {\n            \"name\": \"Bronze\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Days\",\n                            \"daySchedule\": {\n                                \"frequency\": 1\n                            }\n                        }\n                    },\n                    \"fullBackups\": null,\n                    \"retention\": {\n                        \"unit\": \"Days\",\n                        \"duration\": 30\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": [\n                {\n                    \"schedule\": {\n                        \"unit\": \"Weeks\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Days\",\n                        \"duration\": 90\n                    },\n                    \"configId\": \"B8355B23-A9E8-493F-9F4C-A5689A74EB4D\"\n                },\n                {\n                    \"schedule\": {\n                        \"unit\": \"Months\",\n                        \"frequency\": 1\n                    },\n                    \"retention\": {\n                        \"unit\": \"Years\",\n                        \"duration\": 1\n                    },\n                    \"configId\": \"266958DA-2BE9-4F97-B268-73559520D295\"\n                }\n            ],\n            \"cascadedTargetsConfig\": null,\n            \"id\": \"6928727740717624:1676485504569:3\"\n        },\n        {\n            \"name\": \"Automation-LocalOnly-Policy-1\",\n            \"backupPolicy\": {\n                \"regular\": {\n                    \"incremental\": {\n                        \"schedule\": {\n                            \"unit\": \"Minutes\",\n                            \"minuteSchedule\": {\n                                \"frequency\": 15\n                            }\n                        }\n                    },\n                    \"fullBackups\": null,\n                    \"retention\": {\n                        \"unit\": \"Days\",\n                        \"duration\": 90\n                    }\n                }\n            },\n            \"blackoutWindow\": null,\n            \"extendedRetention\": null,\n            \"cascadedTargetsConfig\": null,\n            \"retryOptions\": {\n                \"retries\": 3,\n                \"retryIntervalMins\": 30\n            },\n            \"id\": \"6928727740717624:1676485504569:93\"\n        }\n    ]\n}"}],"_postman_id":"56050cf0-c052-4066-bafa-e3b940cfe863"},{"name":"Get Storage Domain List","event":[{"listen":"test","script":{"exec":["tests[\"Storage domain, Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"viewBoxId\", jsonData[0].id);"],"type":"text/javascript","id":"0e46bba4-4041-44b0-a55d-9ff15fd6168e"}}],"id":"81f33ca2-9ffe-4203-8f8b-2e2c92a21e1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/storage-domains","description":"<p>Returns the list of Storage Domains available on your Cohesity cluster along with their Storage Domain IDs and information on the parameters configured for the Storage Domains.</p>\n<p>To return information only about a particular Storage Domain, provide the Storage Domain name as the parameter in the API URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{{cluster_1-ip}}/v2/storage-domains?names={{storage-dommain-name}}\n\n</code></pre><p>You can either use an available Storage Domain or create a new Storage Domain for protecting your VMware VMs.</p>\n<p>The Storage Domain ID is required when you are creating the Protection Group for protecting your VMware VMs.</p>\n","urlObject":{"protocol":"https","path":["v2","storage-domains"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"60224af2-0486-4f52-b29a-d34d9828a67f","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster_vip}}/irisservices/api/v1/public/viewBoxes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677868915"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 18:41:54 GMT"},{"key":"Content-Length","value":"378"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 15,\n        \"name\": \"DefaultStorageDomain\",\n        \"clusterPartitionId\": 13,\n        \"clientSubnetWhiteList\": [],\n        \"storagePolicy\": {\n            \"deduplicationEnabled\": true,\n            \"inlineDeduplicate\": true,\n            \"compressionPolicy\": \"kCompressionLow\",\n            \"inlineCompress\": true,\n            \"deduplicateCompressDelaySecs\": 0,\n            \"encryptionPolicy\": \"kEncryptionNone\",\n            \"numFailuresTolerated\": 1,\n            \"numNodeFailuresTolerated\": 1\n        },\n        \"s3BucketsAllowed\": false,\n        \"clusterPartitionName\": \"DefaultPartition\",\n        \"removalState\": \"kDontRemove\"\n    },\n    {\n        \"id\": 2952057,\n        \"name\": \"Automation_Viewbox_1\",\n        \"clusterPartitionId\": 13,\n        \"clientSubnetWhiteList\": [],\n        \"storagePolicy\": {\n            \"deduplicationEnabled\": true,\n            \"inlineDeduplicate\": true,\n            \"compressionPolicy\": \"kCompressionLow\",\n            \"inlineCompress\": true,\n            \"deduplicateCompressDelaySecs\": 0,\n            \"encryptionPolicy\": \"kEncryptionNone\",\n            \"downTierDelaySecsList\": [\n                0,\n                0,\n                5184000,\n                0\n            ],\n            \"numFailuresTolerated\": 1,\n            \"numNodeFailuresTolerated\": 1\n        },\n        \"physicalQuota\": {},\n        \"cloudDownWaterfallThresholdSecs\": 5184000,\n        \"defaultViewQuotaPolicy\": {},\n        \"s3BucketsAllowed\": false,\n        \"clusterPartitionName\": \"DefaultPartition\",\n        \"removalState\": \"kDontRemove\"\n    }\n]"}],"_postman_id":"81f33ca2-9ffe-4203-8f8b-2e2c92a21e1b"},{"name":"Create Protection Group","event":[{"listen":"prerequest","script":{"exec":["var protectionJobName = \"ProtectionJob-\" + (new Date()).getTime()","pm.environment.set(\"protectionJobName\", protectionJobName);"],"type":"text/javascript","id":"896f621e-aee7-487c-a881-2972e3100085"}},{"listen":"test","script":{"exec":["    var jsonData = pm.response.json();","    console.log(jsonData)","    pm.test(\"Status code is 201\", function() {","        pm.environment.set(\"protectionJobId\", jsonData.id);","        pm.environment.set(\"protectionJobName\", jsonData.name);","        pm.expect(jsonData.id).to.be.a('string')","        pm.expect(jsonData.name).to.be.a('string')","        pm.expect(jsonData.policyId).to.be.a('string')","        pm.expect(jsonData.priority).to.be.a('string')","        pm.expect(jsonData.storageDomainId).to.be.a('number')","        pm.expect(jsonData.description).to.be.a('string')","        pm.expect(jsonData.startTime).to.be.an('object')","        pm.expect(jsonData.startTime.hour).to.be.a('number')","        pm.expect(jsonData.startTime.minute).to.be.a('number')","        pm.expect(jsonData.startTime.timeZone).to.be.a('string')","        pm.expect(jsonData.alertPolicy).to.be.an('object')","        pm.expect(jsonData.alertPolicy.backupRunStatus).to.be.an('array')","        pm.expect(jsonData.alertPolicy.alertTargets).to.be.an('array')","        pm.expect(jsonData.sla).to.be.an('array')","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        for (var i = 0; i < jsonData.sla.length; i++) {","            pm.expect(jsonData.sla[i].backupRunType).to.be.a('string')","            pm.expect(jsonData.sla[i].slaMinutes).to.be.a('number')","        }","        pm.expect(jsonData.qosPolicy).to.be.a('string')","        pm.expect(jsonData.isActive).to.be.a('boolean')","        pm.expect(jsonData.isPaused).to.be.a('boolean')","        pm.expect(jsonData.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.protectionType).to.be.a('string')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects).to.be.an('array')","        for (var i = 0; i < jsonData.physicalParams.volumeProtectionTypeParams.objects.length; i++) {","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].id).to.be.a('number')","            pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.objects[i].name).to.be.a('string')","        }","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy).to.be.an('object')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.enableIndexing).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.includePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.indexingPolicy.excludePaths).to.be.an('array')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.performSourceSideDeduplication).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.volumeProtectionTypeParams.incrementalBackupAfterRestart).to.be.a('boolean')","    });"],"type":"text/javascript","id":"6901a139-bd96-4d30-9e62-3a3b4f1ca915"}}],"id":"758ca7b7-a74e-4758-b2af-19d9ccabab43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"{{policyId}}\",\n    \"startTime\": {\n    \"hour\": 6,\n    \"minute\": 22,\n    \"timeZone\": \"Africa/Abidjan\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 120\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 60\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"storageDomainId\": {{storageDomainId}},\n    \"name\": \"{{protectionGroupName}}\",\n    \"environment\": \"kVMware\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ]\n    },\n    \"vmwareParams\": {\n        \"objects\": [\n            {\n                \"id\": 3328,\n                \"isAutoprotected\": false\n            }\n        ],\n        \"excludeObjectIds\": [],\n        \"vmTagIds\": [],\n \"excludeObjectIds\": [],\n    \"vmTagIds\": [],\n    \"excludeVmTagIds\": [],\n    \"appConsistentSnapshot\": false,\n    \"fallbackToCrashConsistentSnapshot\": true,\n    \"skipPhysicalRDMDisks\": false,\n    \"globalExcludeDisks\": [],\n    \"leverageSanTransport\": false,\n    \"enableNBDSSLFallback\": true,\n    \"leverageHyperflexSnapshots\": false,\n    \"leverageNutanixSnapshots\": false,\n    \"leverageStorageSnapshots\": false, \n    \"cloudMigration\": false,\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": [\n                \"/$Recycle.Bin\",\n                \"/Windows\",\n                \"/Program Files\",\n                \"/Program Files (x86)\",\n                \"/ProgramData\",\n                \"/System Volume Information\",\n                \"/Users/*/AppData\",\n                \"/Recovery\",\n                \"/var\",\n                \"/usr\",\n                \"/sys\",\n                \"/proc\",\n                \"/lib\",\n                \"/grub\",\n                \"/grub2\",\n                \"/opt\",\n                \"/splunk\"\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups","description":"<p>Creates a Protection Group for protecting your VMware vCenter VMs.</p>\n<p><strong>Considerations</strong></p>\n<ul>\n<li><code>policyId</code> , <code>storageDomainId</code> and the ID of the VMware VMs to be protected are required in the request body for running this API.</li>\n<li>The <code>protectionGroupId</code> from the API response is required for running the Protection Group for protecting the VMware vCenter.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"c55b5d74-363e-4b7a-b5d2-b6ed8b43dcf2","name":"Sample Response","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"policyId\": \"{{policyId}}\",\n    \"startTime\": {\n        \"hour\": 14,\n        \"minute\": 3,\n        \"timeZone\": \"America/Los_Angeles\"\n    },\n    \"priority\": \"kMedium\",\n    \"sla\": [\n        {\n            \"backupRunType\": \"kFull\",\n            \"slaMinutes\": 240\n        },\n        {\n            \"backupRunType\": \"kIncremental\",\n            \"slaMinutes\": 240\n        }\n    ],\n    \"qosPolicy\": \"kBackupHDD\",\n    \"abortInBlackouts\": false,\n    \"storageDomainId\": 15,\n    \"name\": \"{{protectionJobName}}\",\n    \"environment\": \"kVMware\",\n    \"alertPolicy\": {\n        \"backupRunStatus\": [\n            \"kFailure\"\n        ]\n    },\n    \"vmwareParams\": {\n        \"objects\": [\n            {\n                \"id\": 6922,\n                \"isAutoprotected\": false\n            }\n        ],\n        \"excludeObjectIds\": [],\n        \"vmTagIds\": [],\n        \"excludeVmTagIds\": [],\n        \"appConsistentSnapshot\": false,\n        \"fallbackToCrashConsistentSnapshot\": true,\n        \"skipPhysicalRDMDisks\": false,\n        \"globalExcludeDisks\": [],\n        \"leverageSanTransport\": false,\n        \"enableNBDSSLFallback\": true,\n        \"leverageHyperflexSnapshots\": false,\n        \"leverageNutanixSnapshots\": false,\n        \"leverageStorageSnapshots\": false,\n        \"cloudMigration\": false,\n        \"indexingPolicy\": {\n            \"enableIndexing\": true,\n            \"includePaths\": [\n                \"/\"\n            ],\n            \"excludePaths\": [\n                \"/$Recycle.Bin\",\n                \"/Windows\",\n                \"/Program Files\",\n                \"/Program Files (x86)\",\n                \"/ProgramData\",\n                \"/System Volume Information\",\n                \"/Users/*/AppData\",\n                \"/Recovery\",\n                \"/var\",\n                \"/usr\",\n                \"/sys\",\n                \"/proc\",\n                \"/lib\",\n                \"/grub\",\n                \"/grub2\",\n                \"/opt\",\n                \"/splunk\"\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677881430"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 22:10:29 GMT"},{"key":"Content-Length","value":"775"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": \"8046495520451254:1678033142627:123\",\n  \"policyId\": \"8046495520451254:1678033142627:1\",\n  \"startTime\": {\n    \"hour\": 6,\n    \"minute\": 22,\n    \"timeZone\": \"Africa/Abidjan\"\n  },\n  \"priority\": \"kMedium\",\n  \"sla\": [\n    {\n      \"backupRunType\": \"kFull\",\n      \"slaMinutes\": 120\n    },\n    {\n      \"backupRunType\": \"kIncremental\",\n      \"slaMinutes\": 60\n    }\n  ],\n  \"qosPolicy\": \"kBackupHDD\",\n  \"abortInBlackouts\": false,\n  \"storageDomainId\": 31,\n  \"name\": \"VMware_backup\",\n  \"environment\": \"kVMware\",\n  \"isPaused\": false,\n  \"description\": \"\",\n  \"alertPolicy\": {\n    \"backupRunStatus\": [\n      \"kFailure\"\n    ],\n    \"alertTargets\": []\n  },\n  \"vmwareParams\": {\n    \"objects\": [\n      {\n        \"id\": 3328,\n        \"isAutoprotected\": false\n      }\n    ],\n    \"excludeObjectIds\": [],\n    \"vmTagIds\": [],\n    \"excludeVmTagIds\": [],\n    \"appConsistentSnapshot\": false,\n    \"fallbackToCrashConsistentSnapshot\": true,\n    \"skipPhysicalRDMDisks\": false,\n    \"globalExcludeDisks\": [],\n    \"leverageSanTransport\": false,\n    \"enableNBDSSLFallback\": true,\n    \"leverageHyperflexSnapshots\": false,\n    \"leverageNutanixSnapshots\": false,\n    \"leverageStorageSnapshots\": false,\n    \"cloudMigration\": false,\n    \"indexingPolicy\": {\n      \"enableIndexing\": true,\n      \"includePaths\": [\n        \"/\"\n      ],\n      \"excludePaths\": [\n        \"/$Recycle.Bin\",\n        \"/Windows\",\n        \"/Program Files\",\n        \"/Program Files (x86)\",\n        \"/ProgramData\",\n        \"/System Volume Information\",\n        \"/Users/*/AppData\",\n        \"/Recovery\",\n        \"/var\",\n        \"/usr\",\n        \"/sys\",\n        \"/proc\",\n        \"/lib\",\n        \"/grub\",\n        \"/grub2\",\n        \"/opt\",\n        \"/splunk\"\n      ]\n    },\n    \"excludeFilters\": [],\n    \"standbyResourceObjects\": []\n  }\n}"}],"_postman_id":"758ca7b7-a74e-4758-b2af-19d9ccabab43"},{"name":"Run Protection Group","event":[{"listen":"test","script":{"id":"26fa1bf8-cb17-43ba-a9da-1df3f052ef10","exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 202\", function () {","    sleep(5000);","});"],"type":"text/javascript"}}],"id":"4675e114-c320-4bcd-8c7b-28553ea9b1a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"runType\": \"kRegular\",\n    \"objects\": [\n        {\n            \"id\": 59124\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Runs the Protection Group created for protecting your VMware VMs.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"ae0d73e7-bc7c-4594-a381-192c87570d1a","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"runType\": \"kRegular\",\n    \"objects\": [\n        {\n            \"id\": 6922\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"protectionGroupId\": \"8046495520451254:1678033142627:123\"\n}"}],"_postman_id":"4675e114-c320-4bcd-8c7b-28553ea9b1a8"},{"name":"Get Protection Group Runs Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","  return new Promise(resolve => setTimeout(resolve, ms));","}","var job_id = pm.environment.get(\"protectionJobId\");","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var resp = pm.response.json();","    var status = resp.runs[0].localBackupInfo.status;","    pm.environment.set(\"instanceId\", resp.runs[0].protectionGroupInstanceId);","    pm.environment.set(\"startTimeUsecs\", resp.runs[0].localBackupInfo.startTimeUsecs);","    if (status !== \"Running\") {","        jsonData = resp.runs;","        console.log(jsonData);","        for (var i=0; i<jsonData.length; i++) {","            pm.expect(jsonData[i].localBackupInfo).to.be.an('object')","            pm.expect(jsonData[i].localBackupInfo.runType).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.startTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.indexingTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.successfulAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.failedObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.successfulObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesWritten).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.bytesRead).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localSnapshotStats.logicalSizeBytes).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.endTimeUsecs).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.localTaskId).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.status).to.be.a('string')","            pm.expect(jsonData[i].localBackupInfo.failedAppObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].localBackupInfo.cancelledObjectsCount).to.be.a('number')","            pm.expect(jsonData[i].id).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupId).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupName).to.be.a('string')","            pm.expect(jsonData[i].environment).to.be.a('string')","            pm.expect(jsonData[i].protectionGroupInstanceId).to.be.a('number')","            pm.expect(jsonData[i].permissions).to.be.a('array')","        }","    }","});"],"type":"text/javascript","id":"affc704c-40b7-413e-9d2b-967c0184ff6a"}}],"id":"ab87b1aa-8d43-4eec-807a-9d544115ab5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}/runs","description":"<p>Returns the status of the Protection Group run.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n<p>If the <code>status</code> of the Protection Group run is success, you can recover the VMs of the VMware vCenter.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}","runs"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"59c250ac-41e9-47d7-8c9e-462beb069cdf","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionJobId}}/runs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677871733"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 19:28:52 GMT"},{"key":"Content-Length","value":"547"}],"cookie":[],"responseTime":null,"body":"{\n    \"runs\": [\n        {\n            \"id\": \"123:1678164918849503\",\n            \"protectionGroupInstanceId\": 1127,\n            \"protectionGroupId\": \"8046495520451254:1678033142627:123\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"VMware_backup\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"isSlaViolated\": false,\n                \"startTimeUsecs\": 1678164918849503,\n                \"endTimeUsecs\": 1678164954852185,\n                \"status\": \"Succeeded\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 1,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 10737418240,\n                    \"bytesWritten\": 295970,\n                    \"bytesRead\": 3211264\n                },\n                \"indexingTaskId\": \"indexing_123_1127\",\n                \"localTaskId\": \"8046495520451254:1678033142627:1691811\",\n                \"dataLockConstraints\": {\n                    \"mode\": \"Compliance\",\n                    \"expiryTimeUsecs\": 1678769718849503\n                }\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kVMware\"\n        },\n                {\n            \"id\": \"123:1678083782619363\",\n            \"protectionGroupInstanceId\": 124,\n            \"protectionGroupId\": \"8046495520451254:1678033142627:123\",\n            \"isReplicationRun\": false,\n            \"protectionGroupName\": \"VMware_backup\",\n            \"objects\": null,\n            \"localBackupInfo\": {\n                \"runType\": \"kRegular\",\n                \"isSlaViolated\": false,\n                \"startTimeUsecs\": 1678083782619363,\n                \"endTimeUsecs\": 1678083910632483,\n                \"status\": \"Succeeded\",\n                \"messages\": null,\n                \"successfulObjectsCount\": 1,\n                \"failedObjectsCount\": 0,\n                \"cancelledObjectsCount\": 0,\n                \"successfulAppObjectsCount\": 0,\n                \"failedAppObjectsCount\": 0,\n                \"cancelledAppObjectsCount\": 0,\n                \"localSnapshotStats\": {\n                    \"logicalSizeBytes\": 10737418240,\n                    \"bytesWritten\": 1364321549,\n                    \"bytesRead\": 4594860032\n                },\n                \"indexingTaskId\": \"indexing_123_124\",\n                \"localTaskId\": \"8046495520451254:1678033142627:27009\",\n                \"dataLockConstraints\": {\n                    \"mode\": \"Compliance\",\n                    \"expiryTimeUsecs\": 1772691782619363\n                }\n            },\n            \"onLegalHold\": false,\n            \"permissions\": [],\n            \"hasLocalSnapshot\": true,\n            \"environment\": \"kVMware\"\n        }\n    ],\n    \"totalRuns\": 2\n}"}],"_postman_id":"ab87b1aa-8d43-4eec-807a-9d544115ab5b"},{"name":"Get  Latest Snapshot","event":[{"listen":"test","script":{"exec":["console.log(pm.response.json());","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"snapshotId\", jsonData.objects[0].latestSnapshotsInfo[0].localSnapshotInfo.snapshotId);","});"],"type":"text/javascript","id":"74351b83-325b-4682-8324-a1a32b1cee45"}}],"id":"8e080c05-83d4-4baa-8afb-9151b6073d59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverVMs&searchString=*&environments=kVMware","description":"<p>Returns information on the latest snapshots of the VMware VMs that are being protected on the Cohesity cluster.</p>\n<p>The snapshot ID of an object from the response is required for recovering that object.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","search","protected-objects"],"host":["{{cluster_vip}}"],"query":[{"key":"snapshotActions","value":"RecoverVMs"},{"key":"searchString","value":"*"},{"key":"environments","value":"kVMware"}],"variable":[]}},"response":[{"id":"daf9e9f9-bc9f-4a27-80ef-1ec6358a8995","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{cluster_vip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverVMs&searchString=*&environments=kVMware","protocol":"https","host":["{{cluster_vip}}"],"path":["v2","data-protect","search","protected-objects"],"query":[{"key":"snapshotActions","value":"RecoverVMs"},{"key":"searchString","value":"*"},{"key":"environments","value":"kVMware"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677871820"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 19:30:19 GMT"},{"key":"Content-Length","value":"1441"}],"cookie":[],"responseTime":null,"body":"{\n  \"objects\": [\n    {\n      \"id\": 3328,\n      \"name\": \"{{VM_name}}\",\n      \"sourceId\": 1,\n      \"environment\": \"kVMware\",\n      \"objectType\": \"kVirtualMachine\",\n      \"uuid\": \"{{uuid}}\",\n      \"osType\": \"kLinux\",\n      \"protectionStats\": null,\n      \"vmwareParams\": {\n        \"isTemplate\": false\n      },\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8046495520451254:1678033142627:123\",\n          \"protectionGroupName\": \"UI_Auto_VM_backup_Job\",\n          \"runInstanceId\": 1127,\n          \"storageDomainId\": 31,\n          \"protectionRunId\": \"123:1678164918849503\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1678164918849503,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 10737418240\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 1,\n        \"name\": \"{{vCenter_name}}\",\n        \"environment\": \"kVMware\",\n        \"objectType\": \"kVCenter\",\n        \"uuid\": \"{{uuid}}\",\n        \"vCenterSummary\": {\n          \"isCloudEnv\": false\n        }\n      }\n    },\n    {\n      \"id\": 3332,\n      \"name\": \"{{VM_name}}\",\n      \"sourceId\": 1,\n      \"environment\": \"kVMware\",\n      \"objectType\": \"kVirtualMachine\",\n      \"uuid\": \"{{uuid}}\",\n      \"osType\": \"kLinux\",\n      \"protectionStats\": null,\n      \"vmwareParams\": {\n        \"isTemplate\": false\n      },\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8046495520451254:1678033142627:171\",\n          \"protectionGroupName\": \"backupjob_for_ubuntu_VM\",\n          \"runInstanceId\": 661,\n          \"storageDomainId\": 31,\n          \"protectionRunId\": \"171:1678128466909810\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1678128466909810,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 10737418240\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 1,\n        \"name\": \"{{vCenter_name}}\",\n        \"environment\": \"kVMware\",\n        \"objectType\": \"kVCenter\",\n        \"uuid\": \"{{uuid}}\",\n        \"vCenterSummary\": {\n          \"isCloudEnv\": false\n        }\n      }\n    },\n    {\n      \"id\": 11311,\n      \"name\": \"{{VM_name}}\",\n      \"sourceId\": 10877,\n      \"environment\": \"kVMware\",\n      \"objectType\": \"kVirtualMachine\",\n      \"uuid\": \"{{uuid}}\",\n      \"osType\": \"kLinux\",\n      \"protectionStats\": null,\n      \"vmwareParams\": {\n        \"isTemplate\": false\n      },\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8046495520451254:1678033142627:381\",\n          \"protectionGroupName\": \"PatchAuto_singledisk_cloudspin_aws_UbuntuLinux\",\n          \"runInstanceId\": 384,\n          \"storageDomainId\": 106411,\n          \"protectionRunId\": \"381:1678109378913846\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1678109378913846,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 5368709120\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 10877,\n        \"name\": \"{{vCenter_name}}\",\n        \"environment\": \"kVMware\",\n        \"objectType\": \"kVCenter\",\n        \"uuid\": \"{{uuid}}\",\n        \"vCenterSummary\": {\n          \"isCloudEnv\": false\n        }\n      }\n    },\n    {\n      \"id\": 11499,\n      \"name\": \"{{VM_name}}\",\n      \"sourceId\": 10877,\n      \"environment\": \"kVMware\",\n      \"objectType\": \"kVirtualMachine\",\n      \"uuid\": \"{{uuid}}\",\n      \"osType\": \"kWindows\",\n      \"protectionStats\": null,\n      \"vmwareParams\": {\n        \"isTemplate\": false\n      },\n      \"latestSnapshotsInfo\": [\n        {\n          \"archivalSnapshotsInfo\": null,\n          \"indexingStatus\": \"Done\",\n          \"protectionGroupId\": \"8046495520451254:1678033142627:261\",\n          \"protectionGroupName\": \"Protection_job_on_clone\",\n          \"runInstanceId\": 262,\n          \"storageDomainId\": 31,\n          \"protectionRunId\": \"261:1678091938696409\",\n          \"runType\": \"kRegular\",\n          \"protectionRunStartTimeUsecs\": 1678091938696409,\n          \"localSnapshotInfo\": {\n            \"snapshotId\": \"{{snapshotId}}\",\n            \"logicalSizeBytes\": 472446402560\n          }\n        }\n      ],\n      \"sourceInfo\": {\n        \"id\": 10877,\n        \"name\": \"{{vCenter_name}}\",\n        \"environment\": \"kVMware\",\n        \"objectType\": \"kVCenter\",\n        \"uuid\": \"{{uuid}}\",\n        \"vCenterSummary\": {\n          \"isCloudEnv\": false\n        }\n      }\n    }\n  ],\n  \"numResults\": 8,\n  \"metadata\": {\n    \"uniqueProtectionGroupIdentifiers\": [\n      {\n        \"protectionGroupId\": \"8046495520451254:1678033142627:123\",\n        \"protectionGroupName\": \"UI_Auto_VM_backup_Job\"\n      },\n      {\n        \"protectionGroupId\": \"8046495520451254:1678033142627:171\",\n        \"protectionGroupName\": \"backupjob_for_ubuntu_VM\"\n      },\n      {\n        \"protectionGroupId\": \"8046495520451254:1678033142627:381\",\n        \"protectionGroupName\": \"PatchAuto_singledisk_cloudspin_aws_UbuntuLinux\"\n      },\n      {\n        \"protectionGroupId\": \"8046495520451254:1678033142627:261\",\n        \"protectionGroupName\": \"Protection_job_on_clone\"\n      }\n    ]\n  }\n}"}],"_postman_id":"8e080c05-83d4-4baa-8afb-9151b6073d59"},{"name":"Recover VMware VMs","event":[{"listen":"prerequest","script":{"exec":["var restoreTaskName = \"RestoreTask-\" + (new Date()).getTime()","pm.environment.set(\"restoreTaskName\", restoreTaskName);"],"type":"text/javascript","id":"d83f4646-804c-4a36-a513-67e090d64117"}},{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 201\", function() {","    pm.response.to.have.status(201);","    var resp = pm.response.json();","    pm.environment.set(\"restoreId\", resp.id);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","    pm.environment.set(\"restoreId\", jsonData.id)","    sleep(30000)","});"],"type":"text/javascript","id":"f0c62c0c-0d2d-42e2-856c-a389774cbf4b"}}],"id":"882cc2f3-c504-47db-9942-ef56b108e4c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"{{RestoreTaskName}}\",\n  \"snapshotEnvironment\": \"kVMware\",\n  \"vmwareParams\": {\n    \"objects\": [],\n    \"recoveryAction\": \"RecoverVMs\",\n    \"recoverVmParams\": {\n      \"targetEnvironment\": \"kVMware\",\n      \"recoverProtectionGroupRunsParams\": [\n        {\n          \"protectionGroupRunId\": \"123:1678170183596405\",\n          \"protectionGroupInstanceId\": 1211\n        }\n      ],\n      \"vmwareTargetParams\": {\n        \"recoveryTargetConfig\": {\n          \"recoverToNewSource\": true,\n          \"newSourceConfig\": {\n            \"sourceType\": \"kVCenter\",\n            \"vCenterParams\": {\n              \"source\": {\n                \"id\": 1\n              },\n              \"networkConfig\": {\n                \"detachNetwork\": true\n              },\n              \"datastores\": [\n                {\n                  \"type\": 1,\n                  \"vmwareEntity\": {\n                    \"type\": 6,\n                    \"moref\": {\n                      \"item\": \"datastore-970298\",\n                      \"type\": \"Datastore\"\n                    },\n                    \"name\": \"ISO\",\n                    \"datastoreInfo\": {\n                      \"capacity\": 86958389051392,\n                      \"freeSpace\": 36908768772096,\n                      \"datacenterName\": \"{{datacenterName}}\"\n                    }\n                  },\n                  \"id\": {{datastoreId}},\n                  \"parentId\": 1,\n                  \"displayName\": \"ISO\"\n                }\n              ],\n              \"resourcePool\": {\n                \"id\": {{resourcePoolId}}\n              },\n              \"vmFolder\": {\n                \"id\": {{vmFolderId}}\n              }\n            }\n          }\n        },\n        \"renameRecoveredVAppsParams\": null,\n        \"renameRecoveredVmsParams\": {\n          \"prefix\": \"copy-\",\n          \"suffix\": null\n        },\n        \"recoveryProcessType\": \"InstantRecovery\",\n        \"powerOnVms\": true,\n        \"continueOnError\": false,\n        \"isMultiStageRestore\": false\n      }\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}v2/data-protect/recoveries","description":"<p>Recover the objects specified in the request body.</p>\n","urlObject":{"protocol":"https","path":["data-protect","recoveries"],"host":["{{cluster_vip}}v2"],"query":[],"variable":[]}},"response":[{"id":"dc2b4332-302a-4551-a1dc-2e2af98b85ba","name":"Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{restoreTaskName}}\",\n    \"snapshotEnvironment\": \"kVMware\",\n    \"vmwareParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"pointInTimeUsecs\": {{startTimeUsecs}},\n                \"protectionGroupId\": \"{{protectionJobId}}\",\n                \"protectionGroupName\": \"{{protectionJobName}}\"\n            }\n        ],\n        \"recoveryAction\": \"RecoverVMs\",\n        \"recoverVmParams\": {\n            \"targetEnvironment\": \"kVMware\",\n            \"vmwareTargetParams\": {\n                \"renameRecoveredVmsParams\": {\n                    \"prefix\": \"pref\",\n                    \"suffix\": \"suff\"\n                },\n                \"powerOnVms\": true\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{cluster_vip}}/v2/data-protect/recoveries"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677871957"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 19:32:36 GMT"},{"key":"Content-Length","value":"841"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"8046495520451254:1678033142627:1414\",\n  \"name\": \"{{RestoreTaskName}}\",\n  \"startTimeUsecs\": 1678182755181347,\n  \"status\": \"Accepted\",\n  \"snapshotEnvironment\": \"kVMware\",\n  \"recoveryAction\": \"RecoverVMs\",\n  \"permissions\": [],\n  \"creationInfo\": {\n    \"userName\": \"admin\"\n  },\n  \"canTearDown\": false,\n  \"messages\": null,\n  \"retrieveArchiveTasks\": null,\n  \"isMultiStageRestore\": false,\n  \"vmwareParams\": {\n    \"objects\": [\n      {\n        \"snapshotId\": \"{{snapshotId}}\",\n        \"protectionGroupId\": \"8046495520451254:1678033142627:123\",\n        \"snapshotCreationTimeUsecs\": 1678170183596405,\n        \"snapshotTargetType\": \"Local\",\n        \"storageDomainId\": 31,\n        \"progressTaskId\": \"/restore_object_0\",\n        \"messages\": null,\n        \"objectInfo\": {\n          \"id\": 3328,\n          \"name\": \"{{VM_name}}\",\n          \"sourceId\": 1,\n          \"sourceName\": \"{{vCenter_name}}\",\n          \"environment\": \"kVMware\",\n          \"objectType\": \"kVirtualMachine\",\n          \"uuid\": \"{{uuid}}\",\n          \"osType\": \"kLinux\"\n        },\n        \"datastoreMigrationInfo\": {\n          \"progressTaskId\": \"/restore_object_0/storage_vmotion\"\n        },\n        \"instantRecoveryInfo\": {\n          \"progressTaskId\": \"/restore_object_0/create_vm\"\n        },\n        \"childSnapshots\": null\n      }\n    ],\n    \"recoveryAction\": \"RecoverVMs\",\n    \"recoverVmParams\": {\n      \"recoverProtectionGroupRunsParams\": null,\n      \"targetEnvironment\": \"kVMware\",\n      \"vmwareTargetParams\": {\n        \"powerOnVms\": true,\n        \"continueOnError\": false,\n        \"recoveryProcessType\": \"InstantRecovery\",\n        \"isMultiStageRestore\": false,\n        \"recoveryTargetConfig\": {\n          \"recoverToNewSource\": true,\n          \"newSourceConfig\": {\n            \"sourceType\": \"kVCenter\",\n            \"vCenterParams\": {\n              \"datastores\": [\n                {\n                  \"id\": {{datastoresId}},\n                  \"name\": \"ISO\"\n                }\n              ],\n              \"networkConfig\": {\n                \"detachNetwork\": true,\n                \"newNetworkConfig\": {}\n              },\n              \"resourcePool\": {\n                \"id\": {{resourcePoolId}},\n                \"name\": \"Resources\"\n              },\n              \"source\": {\n                \"id\": 1,\n                \"name\": \"{{Target_vCenter_name}}\"\n              },\n              \"vmFolder\": {\n                \"id\": {{vmFolderId}},\n                \"name\": \"vm_folder-c4da-279764678\"\n              }\n            }\n          }\n        },\n        \"renameRecoveredVmsParams\": {\n          \"prefix\": \"copy-\"\n        }\n      }\n    }\n  }\n}\n\n\n"}],"_postman_id":"882cc2f3-c504-47db-9942-ef56b108e4c9"},{"name":"Get Recovery Status","event":[{"listen":"test","script":{"exec":["function sleep(ms) {","    return new Promise(resolve => setTimeout(resolve, ms));","}","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","pm.test(\"Validating response\", function() {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.a('string')","    pm.expect(jsonData.name).to.be.a('string')","    pm.expect(jsonData.startTimeUsecs).to.be.a('number')","    pm.expect(jsonData.status).to.be.a('string')","    pm.expect(jsonData.snapshotEnvironment).to.be.a('string')","    pm.expect(jsonData.recoveryAction).to.be.a('string')","    pm.expect(jsonData.permissions).to.be.an('array')","    pm.expect(jsonData.creationInfo).to.be.an('object')","    pm.expect(jsonData.creationInfo.userName).to.be.a('string')","    pm.expect(jsonData.canTearDown).to.be.a('boolean')","    pm.expect(jsonData.physicalParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.objects).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.objects.length; i++) {","        pm.expect(jsonData.physicalParams.objects[i].snapshotId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].protectionGroupId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].snapshotCreationTimeUsecs).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].snapshotTargetType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].storageDomainId).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].progressTaskId).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo).to.be.an('object')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.id).to.be.a('number')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.sourceName).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.name).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.objectType).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.environment).to.be.a('string')","        pm.expect(jsonData.physicalParams.objects[i].objectInfo.osType).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoveryAction).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders).to.be.an('array')","    for (var i = 0; i < jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders.length; i++) {","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].absolutePath).to.be.a('string')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].isDirectory).to.be.a('boolean')","        pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.filesAndFolders[i].status).to.be.a('string')","    }","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.targetEnvironment).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.restoreToOriginalPaths).to.be.a('boolean')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget).to.be.an('object')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.id).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.name).to.be.a('string')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceId).to.be.a('number')","    pm.expect(jsonData.physicalParams.recoverFileAndFolderParams.physicalTargetParams.recoverTarget.parentSourceName).to.be.a('string')","","    if (jsonData.status === \"Running\") {","        sleep(5000)","        postman.setNextRequest(\"Get Recovery Status\");","    }","});"],"type":"text/javascript","id":"515ee437-ded1-4c53-9f7a-0fbdf0951b03"}}],"id":"4eecb426-e32c-4ffc-9403-645a803baffe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/recoveries/{{restoreId}}","description":"<p>Returns the status of the recovery task.</p>\n<p>You can fetch the restore ID (<code>restoreId</code>) to be specified in the API URL from the <strong>Recover VMware VMs</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","recoveries","{{restoreId}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"591e840d-00b9-4628-981e-630d857e7c43","name":"Sample Response","originalRequest":{"method":"GET","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/recoveries/{{restoreId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src https: data:; font-src data: https:"},{"key":"Content-Type","value":"application/json"},{"key":"Permissions-Policy","value":"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=()"},{"key":"Pragma","value":"no-cache"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Ratelimit-Limit","value":"10000"},{"key":"X-Ratelimit-Remaining","value":"9999"},{"key":"X-Ratelimit-Reset","value":"1677872035"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Fri, 03 Mar 2023 19:34:06 GMT"},{"key":"Content-Length","value":"857"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8046495520451254:1678033142627:1414\",\n    \"name\": \"API_recover\",\n    \"startTimeUsecs\": 1678182755181347,\n    \"endTimeUsecs\": 1678183860335694,\n    \"status\": \"Succeeded\",\n    \"progressTaskId\": \"recover_1414\",\n    \"snapshotEnvironment\": \"kVMware\",\n    \"recoveryAction\": \"RecoverVMs\",\n    \"permissions\": [],\n    \"creationInfo\": {\n        \"userName\": \"{{username}}\"\n    },\n    \"canTearDown\": false,\n    \"messages\": null,\n    \"retrieveArchiveTasks\": null,\n    \"isMultiStageRestore\": false,\n    \"vmwareParams\": {\n        \"objects\": [\n            {\n                \"snapshotId\": \"{{snapshotId}}\",\n                \"protectionGroupId\": \"8046495520451254:1678033142627:123\",\n                \"protectionGroupName\": \"UI_Auto_VM_backup_Job\",\n                \"snapshotCreationTimeUsecs\": 1678170183596405,\n                \"snapshotTargetType\": \"Local\",\n                \"storageDomainId\": 31,\n                \"progressTaskId\": \"recover_1414/restore_object_0\",\n                \"status\": \"Succeeded\",\n                \"startTimeUsecs\": 1678182755000000,\n                \"endTimeUsecs\": 1678183849000000,\n                \"messages\": null,\n                \"objectInfo\": {\n                    \"id\": 3328,\n                    \"name\": \"{{VM_name}}\",\n                    \"sourceId\": 1,\n                    \"sourceName\": \"{{vCenter_name}}\",\n                    \"environment\": \"kVMware\",\n                    \"objectType\": \"kVirtualMachine\",\n                    \"uuid\": \"{{uuid}}\",\n                    \"osType\": \"kLinux\"\n                },\n                \"datastoreMigrationInfo\": {\n                    \"progressTaskId\": \"recover_1414/restore_object_0/storage_vmotion\",\n                    \"status\": \"Succeeded\",\n                    \"startTimeUsecs\": 1678182755000000,\n                    \"endTimeUsecs\": 1678183849000000\n                },\n                \"instantRecoveryInfo\": {\n                    \"progressTaskId\": \"recover_1414/restore_object_0/create_vm\",\n                    \"status\": \"Succeeded\",\n                    \"startTimeUsecs\": 1678182755000000,\n                    \"endTimeUsecs\": 1678182767000000\n                },\n                \"childSnapshots\": null\n            }\n        ],\n        \"recoveryAction\": \"RecoverVMs\",\n        \"recoverVmParams\": {\n            \"recoverProtectionGroupRunsParams\": null,\n            \"targetEnvironment\": \"kVMware\",\n            \"vmwareTargetParams\": {\n                \"powerOnVms\": true,\n                \"continueOnError\": false,\n                \"recoveryProcessType\": \"InstantRecovery\",\n                \"isMultiStageRestore\": false,\n                \"recoveryTargetConfig\": {\n                    \"recoverToNewSource\": true,\n                    \"newSourceConfig\": {\n                        \"sourceType\": \"kVCenter\",\n                        \"vCenterParams\": {\n                            \"datastores\": [\n                                {\n                                    \"id\": {{datastoresId}},\n                                    \"name\": \"ISO\"\n                                }\n                            ],\n                            \"networkConfig\": {\n                                \"detachNetwork\": true,\n                                \"newNetworkConfig\": {}\n                            },\n                            \"resourcePool\": {\n                                \"id\": {{resourcePoolId}},\n                                \"name\": \"Resources\"\n                            },\n                            \"source\": {\n                                \"id\": 1,\n                                \"name\": \"{{Target_vCenter_name}}\"\n                            },\n                            \"vmFolder\": {\n                                \"id\": {{vmFolderId}},\n                                \"name\": \"vm_folder-c4da-279764678\"\n                            }\n                        }\n                    }\n                },\n                \"renameRecoveredVmsParams\": {\n                    \"prefix\": \"copy-\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"4eecb426-e32c-4ffc-9403-645a803baffe"},{"name":"Delete Protection Group","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"b4da4c20-2ac4-4455-b570-45b2db0b6980"}}],"id":"2dadb4aa-523a-4ea0-9e05-d5807eb8efdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?useCachedData=false&pruneSourceIds=true&pruneExcludedSourceIds=true&isDeleted=false&includeTenants=true&includeLastRunInfo=true","description":"<p>Deletes the Protection Group from the Cohesity cluster.</p>\n<p>The ID (<code>protectionGrouId</code>) of the Protection Group to be deleted must be specified in the API URL.</p>\n<p>You can fetch the <code>ProtectionGroupId</code> to be specified in the API URL from the <strong>Create Protection Group</strong> API response.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"host":["{{cluster_vip}}"],"query":[{"key":"useCachedData","value":"false"},{"key":"pruneSourceIds","value":"true"},{"key":"pruneExcludedSourceIds","value":"true"},{"key":"isDeleted","value":"false"},{"key":"includeTenants","value":"true"},{"key":"includeLastRunInfo","value":"true"}],"variable":[]}},"response":[{"id":"f3639717-fa95-4f29-a9b3-5fd5f502c32f","name":"Sample Response","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://{{cluster_vip}}/v2/data-protect/protection-groups/{{protectionGroupId}}?useCachedData=false&pruneSourceIds=true&pruneExcludedSourceIds=true&isDeleted=false&includeTenants=true&includeLastRunInfo=true","protocol":"https","host":["{{cluster_vip}}"],"path":["v2","data-protect","protection-groups","{{protectionGroupId}}"],"query":[{"key":"useCachedData","value":"false"},{"key":"pruneSourceIds","value":"true"},{"key":"pruneExcludedSourceIds","value":"true"},{"key":"isDeleted","value":"false"},{"key":"includeTenants","value":"true"},{"key":"includeLastRunInfo","value":"true"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2dadb4aa-523a-4ea0-9e05-d5807eb8efdf"},{"name":"Unregister VMware vCenter Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});"],"type":"text/javascript","id":"275ba3c2-68fd-4072-bc52-021d469e05ad"}}],"id":"9a2140fb-d865-485a-b32f-0ff2c65ecb27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{cluster_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceIdRegistered}}","description":"<p>Unregisters the VMware vCenter source from the Cohesity cluster.</p>\n","urlObject":{"protocol":"https","path":["v2","data-protect","sources","registrations","{{sourceIdRegistered}}"],"host":["{{cluster_vip}}"],"query":[],"variable":[]}},"response":[{"id":"2def33ec-3789-418c-8f48-42fa98c9e412","name":"Sample Response","originalRequest":{"method":"DELETE","header":[],"url":"https://{{cluster_vip}}/v2/data-protect/sources/registrations/{{sourceIdRegistered}}"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"9a2140fb-d865-485a-b32f-0ff2c65ecb27"}],"id":"4de5fb2e-186b-4a3b-9618-1bddc935e9cb","description":"<p>Perform the following steps using the API operations to protect and recover VMware vCenter VMs using Cohesity:</p>\n<ul>\n<li>Generate the access token for the user to access the Cohesity cluster resources.</li>\n<li>Register the VMware vCenter as a source with the Cohesity cluster.</li>\n<li>Get the Protection Policy ID required for creating the Protection Group.</li>\n<li>Get the Storage Domain ID required for creating the Protection Group.</li>\n<li>Create a Protection Group for protecting the VMware vCenter VMs.</li>\n<li>Run the Protection Group.</li>\n<li>Obtain the Protection Group run status.</li>\n<li>Get the latest snapshot of the VMs you want to recover.</li>\n<li>Recover the VMs from the latest snapshot.</li>\n<li>Delete the Protection Group.</li>\n<li>Unregister the VMware vCenter from the Cohesity cluster.</li>\n</ul>\n","_postman_id":"4de5fb2e-186b-4a3b-9618-1bddc935e9cb"}],"id":"1e772c67-f6e2-4ace-bd18-8825061a5f70","description":"<p>More advanced workflows are listed here.</p>\n","_postman_id":"1e772c67-f6e2-4ace-bd18-8825061a5f70"}]}