Skip to main content

Create Template

Select

SaaS
Customer Managed

This operation is used to create sandbox seeding template.

Path Parameters
  • ClientId integer required

    Client Id of the salesforce organization

Request Body
  • policy object
  • policyName string required

    Template name

  • config object
  • userSelectedMaskingPolicy object
  • policyId integer

    Data masking policy Id

  • policyName string

    Data masking policy name

  • seedingOptions object[] required
  • objectName string required

    Object name

  • dependentRestoreLevel integer required

    Children restore level Ex: All- -1, No- 0, Immediate- 1

  • restoreParentType integer required

    Parent restore level Ex: No parents- 0, All parents- 1

  • type integer required

    Seeding rule Ex: SQL- 0, Updated in n days- 1, Recently updated n records- 2, All records- 3

  • excludeObject boolean

    Set true to exclude children from restore

  • excludedObjects string[]

    Objects to exclude from restore

  • nDays integer

    Number of days for seeding type 1

  • query string
  • queryBlock object

    Query block for seeding type 0

  • blocks object[]

    List of rule groups

  • isAnd boolean

    Set true to perform AND between rules of the group

  • rules object[]

    Rule groups

  • column string

    Column name for rule

  • condition integer

    Condition 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

  • columnType integer

    Column Type Ex: STRING-0, INTEGER-1, DOUBLE-2, DATE-3, BOOLEAN-4, ENUM-5, DATETIME-6, TIME-7

  • stringParam1 string

    Provide first parameter if required with operation

  • stringParam2 string

    Provide second parameter if required with operation

  • isAnd boolean

    Set true to perform AND between Rule Groups

  • nrows integer

    Number of recfor seeding type 2

Responses

OK

POST /salesforce/:clientid/sandbox/seeding/templates    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
ClientId — path required
Body

{
"policy": {
"policyName": "string"
},
"config": {
"userSelectedMaskingPolicy": {
"policyId": 0,
"policyName": "string"
},
"seedingOptions": [
{
"objectName": "string",
"dependentRestoreLevel": 0,
"restoreParentType": 0,
"type": 0,
"excludeObject": true,
"excludedObjects": [
"string"
],
"nDays": 0,
"query": "string",
"queryBlock": {
"blocks": [
{
"isAnd": true,
"rules": [
{
"column": "string",
"condition": 0,
"columnType": 0,
"stringParam1": "string",
"stringParam2": "string"
}
]
}
],
"isAnd": true
},
"nrows": 0
}
]
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Salesforce/:ClientId/Sandbox/Seeding/Templates' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"policy": {
"policyName": "string"
},
"config": {
"userSelectedMaskingPolicy": {
"policyId": 0,
"policyName": "string"
},
"seedingOptions": [
{
"objectName": "string",
"dependentRestoreLevel": 0,
"restoreParentType": 0,
"type": 0,
"excludeObject": true,
"excludedObjects": [
"string"
],
"nDays": 0,
"query": "string",
"queryBlock": {
"blocks": [
{
"isAnd": true,
"rules": [
{
"column": "string",
"condition": 0,
"columnType": 0,
"stringParam1": "string",
"stringParam2": "string"
}
]
}
],
"isAnd": true
},
"nrows": 0
}
]
}
}'