Fetch All Templates
Select
SaaS
Customer Managed
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
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
response object
policies object[]
{
"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"
}
}
]
}
GET /salesforce/:clientid/sandbox/seeding/templates
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'