Skip to main content

API Tempate

  1. POST Command for File Protection Tasks
    /{versionNumber}/products/{productType}/clusters/{clusterName}/tasks

    JSON Body Payload Example:

    CODE
    {
    "taskID": 0,
    		"taskName": "MDTask15jun_REST",
    		"taskDescription": "d",
    		"expressionList": [],
    		"scanFileTypeIds": "4",
    		"hadoopAgent": "",
    		"scanLocations": ["/Ankit/AVRO"],
    		"hadoopScanPathInfoList": [{
    		"domainName": "",
    		"scanPath": "/Ankit/AVRO",
    		"structName": "",
    		"verifyStruct": false,
    		"structureType": ""
    		}],
    		"lastUpdatedTime": "",
    		"incrementalDiscovery": true,
    		"taskType": "MD",
    		"FileModStartTime": null,
    		"FileModEndTime": null,
    		"skippedFlag": false,
    		"outputColumnForm": "replace",
    		"deleteOriginal": false,
    		"discoveryCriteria": false,
    		"fullFileScan": null,
    		"valueSeparator": "",
    		"batchSize": 30,
    		"batchMinBytes": 0,
    		"policyIds": "",
    		"excludedFileExtensions": null,
    		"excludedScanPathList": null,
    		"structured": false,
    		"deleteExclusionList": false,
    		"clusterId": "1",
    		"clusterType": "hdfs",
    		"emrClusterConfigId": 0,
    		"reportUniqueCount": false,
    		"fileTypes": ["avro"],
    		"recursionLevel": -1,
    		"samplingId": null,
    		"customJobConfig": {},
    		"dumpMetadata": false
    }

  2. POST Commands for Database Protection Tasks
    /{versionNumber}/products/Masking/modules/DBMS/tasks
    /{versionNumber}/products/Masking/modules/RDS/tasks

    JSON Body Payload Example:

    CODE
    {
    "maskParams": 
    {
    "taskID": 0,
    "taskName": "Valid_rest_Api_masking",
    "taskDescription": "testing",
    "lastUpdatedTime": "",
    "connectionList": "2",
    "commitSize": "0",
    "maxWorkers": "0",
    "oracleSchema": "SANKUSH",
    "sqlServerSchema": "sonam_user",
    "sqlServerDLLFilePath": "",
    "oracleEnableFlash": "Y",
    "oracleEnableLogging": "Y",
    "enableWaterMark": "0",
    "workerWaitTime": "0",
    "isGlobal": "N",
    "globalDomain": "DEFAULT",
    "taskType": "task"
    },
    "linkedCols": [],
    "maskCols": [{
    "columnName": "TELEPHONE_NO",
    "columnID": 10,
    "tableName": "ALL_DATA",
    "databaseName": "",
    "schemaName": "SANKUSH",
    "dataType": "VARCHAR2",
    "dataLength": 100,
    "dataPrecision": 0,
    "dataScale": 0,
    "param1": "Telephone Numbers",
    "param2": "stdwos",
    "param3": "",
    "param4": "",
    "param5": "",
    "param6": "",
    "param7": "False",
    "param8": "",
    "param9": "",
    "consistent": "N",
    "unique": "N",
    "persistent": "N",
    "synchronizeWith": "N",
    "keepNull": "M",
    "persistentColumnID": "",
    "checkCode": "",
    "constraintName": "",
    "constraintType": "",
    "dataTypeNumber": -1,
    "dbLink": "",
    "ifNullValue": "",
    "ifValueNotFound": "M",
    "isIdentity": false,
    "isNullable": true,
    "tableMaskSeq": 1,
    "maskFlag": "true",
    "maskSeq": 1000,
    "missingValuesAs": "",
    "regexId": 0,
    "isFph": false,
    "hitCount": null,
    "id": 0,
    "maskingOption": 3
    }]
    }

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.