Fetch All Templates
Select
This operation can be used to retrieve all the template details
Path Parameters
- ClientId integer required
Client Id of the salesforce organization
Query Parameters
- backupsetId integer
Backupset Id of the salesforce organization
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
response object
errorMessage stringerrorCode integerpolicies object[]
createdTime integerCreation time of the template
association object
Associated salesforce client details
applicationId integerFor Salesforce use 134
backupsetId integerinstanceId integerbackupsetName stringconfig object
seedingOptions object[]
restoreParentType integerParent restore level Ex: No parents- 0, All parents- 1
nRows integerNumber of records for seeding type 2
excludeObject booleanSet true to exclude some childrens from restore
objectName stringObject name
type integerSeeding rule Ex: SQL- 0, Updated in n days- 1, Recently updated n records- 2, All records- 3
dependentRestoreLevel integerChildren restore level Ex: All- -1, No- 0, Immediate- 1
excludedObjects string[]Objects to exclude from restore
query stringSQL query to use with where clause
queryBlock object
Query block to build query for seeding type 0
isAnd booleanSet true to perform AND between Rule Groups otherwise OR will be used
blocks object[]
isAnd booleanSet true to perform AND between rules of the group otherwise OR will be used
rules object[]
columnType integerColumn Type Ex: STRING-0, INTEGER-1, DOUBLE-2, DATE-3, BOOLEAN-4, ENUM-5, DATETIME-6, TIME-7
condition integerCondition Ex: equals to-0, does not equal to-1, contains-2, does not contain-3, less than-4, less than or equal to-5, greater than-6, greater than or equal to-7, between-8, starts with-12, ends with-13, is null-14, is not null-15, not between-18
stringParam1 stringProvide first parameter if required with operation
column stringColumn name for rule
stringParam2 stringProvide second parameter if required with operation
nDays integerNumber of days for seeding type 1
userSelectedMaskingPolicy object
policyId integerAssociated data masking policy Id
policyName stringAssociated data masking policy name
_type_ integerpolicy object
policyId integerTemplate Id
policyName stringTemplate name
{
"response": {
"errorMessage": "string",
"errorCode": 0
},
"policies": [
{
"createdTime": 0,
"association": {
"applicationId": 0,
"backupsetId": 0,
"instanceId": 0,
"backupsetName": "string"
},
"config": {
"seedingOptions": [
{
"restoreParentType": 0,
"nRows": 0,
"excludeObject": true,
"objectName": "string",
"type": 0,
"dependentRestoreLevel": 0,
"excludedObjects": [
"string"
],
"query": "string",
"queryBlock": {
"isAnd": true,
"blocks": [
{
"isAnd": true,
"rules": [
{
"columnType": 0,
"condition": 0,
"stringParam1": "string",
"column": "string",
"stringParam2": "string"
}
]
}
]
},
"nDays": 0
}
],
"userSelectedMaskingPolicy": {
"policyId": 0,
"policyName": "string",
"_type_": 0
}
},
"policy": {
"policyId": 0,
"policyName": "string"
}
}
]
}
{
"response": {
"errorMessage": "",
"errorCode": 0
},
"policies": [
{
"createdTime": 1705562092,
"association": {
"applicationId": 134,
"backupsetId": 98,
"instanceId": 95,
"backupsetName": "test@force.com"
},
"config": {
"seedingOptions": [
{
"restoreParentType": 0,
"objectName": "Account",
"type": 3,
"dependentRestoreLevel": -1
},
{
"restoreParentType": 1,
"excludeObject": true,
"query": "",
"objectName": "Contact",
"type": 0,
"dependentRestoreLevel": -1,
"excludedObjects": [
"ContactHistory"
],
"queryBlock": {
"isAnd": false,
"blocks": [
{
"isAnd": true,
"rules": [
{
"columnType": 0,
"condition": 2,
"stringParam1": "xyz",
"column": "LastName"
},
{
"columnType": 0,
"condition": 12,
"stringParam1": "va",
"column": "FirstName"
}
]
},
{
"isAnd": true,
"rules": [
{
"columnType": 0,
"condition": 15,
"column": "LastName"
},
{
"columnType": 6,
"stringParam2": "1706534054242",
"condition": 8,
"stringParam1": "1705216331284",
"column": "CreatedDate"
}
]
}
]
}
}
],
"userSelectedMaskingPolicy": {
"policyId": 27,
"policyName": "dm1"
}
},
"policy": {
"policyId": 28,
"policyName": "temp1"
}
},
{
"createdTime": 1705562457,
"association": {
"applicationId": 134,
"backupsetId": 98,
"instanceId": 95,
"backupsetName": "test@force.com"
},
"config": {
"seedingOptions": [
{
"restoreParentType": 0,
"objectName": "Account",
"type": 3,
"dependentRestoreLevel": -1
},
{
"restoreParentType": 1,
"excludeObject": true,
"objectName": "Contact",
"type": 0,
"dependentRestoreLevel": 1,
"excludedObjects": [
"ContactHistory"
],
"queryBlock": {
"isAnd": false,
"blocks": [
{
"isAnd": true,
"rules": [
{
"columnType": 0,
"condition": 2,
"stringParam1": "xyz",
"column": "LastName"
},
{
"columnType": 0,
"condition": 12,
"stringParam1": "v",
"column": "FirstName"
}
]
},
{
"isAnd": true,
"rules": [
{
"columnType": 0,
"condition": 15,
"column": "LastName"
},
{
"columnType": 6,
"stringParam2": "1706534054242",
"condition": 8,
"stringParam1": "1705216331284",
"column": "CreatedDate"
}
]
}
]
}
},
{
"restoreParentType": 0,
"objectName": "Case",
"type": 1,
"dependentRestoreLevel": 0
},
{
"restoreParentType": 0,
"objectName": "testobj__c",
"type": 2,
"dependentRestoreLevel": 0
}
],
"userSelectedMaskingPolicy": {
"_type_": 172,
"policyId": 27
}
},
"policy": {
"policyId": 29,
"policyName": "temp2"
}
}
]
}