Skip to main content

Sybase Restore Options

Select

SaaS
Customer Managed

This operation is used to perform Sybase Restores

Request Body
  • taskInfo object
  • task object
  • taskType string required

    Default value: IMMEDIATE

    Possible values: [IMMEDIATE, SCHEDULE, SCHEDULE_POLICY, SAVED_REPORT]

  • initiatedFrom string required

    Default value: GUI

  • associations object[]
  • clientId integer

    ID of the Client

  • instanceName string required

    Name of the Instance

  • appName string required

    Default value: Sybase

    Name of the application

  • applicationId integer required

    Default value: 5 for Sybase

  • clientName string required

    Name of the Client

  • instanceId integer

    ID of the Instance

  • subTasks object[]
  • subTask object
  • subTaskType string required

    Default value: RESTORE

  • operationType string required

    Default value: RESTORE

  • options object
  • restoreOptions object
  • browseOption object
  • commCellId integer required

    Default value: 2

  • timeRange object
  • toTime integer required

    Time range in Unix Timestamp

  • destination object required
  • destClient object required
  • clientId integer

    Destinatoin Client ID

  • clientName string required

    Destination Client Name

  • destinationInstance object
  • instanceId integer

    Destination Instance ID

  • instanceName string required

    Destination Instance Name

  • applicationId integer required

    Default value: 5

  • appName string required

    Default value: Sybase

  • clientId integer
  • clientName string required
  • sybaseRstOption object
  • sybaseRecoverType string required

    Default value: STATE_RECOVER

  • pointofTime boolean required

    Default value: true

  • fromTime object
  • time integer required
  • refTime object
  • time integer required

    Time to which you want to restore

  • destinationServer object
  • id integer

    Instance ID of destination

  • name string

    Instance name of destination

  • pointInTime object
  • time integer required

    Time to which you want to restore

  • instanceRestore boolean required
  • sybaseDatabase object[]
  • databaseId object
  • id integer required

    ID of the databases to be restored

  • name string required

    Name of the database to be restored

  • creationTimeInt object
  • time integer

    Creation Time of database in linux timestamp

  • associatedSubClientId integer

    Subclient ID for the databases to be restored

  • devices string[] required

    subclientId:databaseId:DeviceId:olddeviceName:newDeviceName:physicalDeviceName:deviceSize:targetDbName

  • systemDataBase boolean required

    True if database to be restored is system database

  • renameDatabases boolean

    True if you want to rename databases

  • restoreOptions boolean
  • restoreType string
  • isTableLevel boolean required
  • fileOption object
  • sourceItem string[]

    For Instance Restore it is the list of databases to be Restored, For Restore to disk operation it is of the format commcellID:JobID

  • commonOptions object
  • sybaseCreateDevices boolean required
  • restoreToDisk boolean required
  • commonOpts object
  • notifyUserOnJobCompletion boolean required
Responses

OK


Schema
  • taskId integer
  • jobIds string[]
POST /createtask    

Authorization

type: apiKeyname: Authtokenin: header

Request

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

{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"clientId": 0,
"instanceName": "string",
"appName": "Sybase",
"applicationId": "5 for Sybase",
"clientName": "string",
"instanceId": 0
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"timeRange": {
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 5,
"appName": "Sybase",
"clientId": 0,
"clientName": "string"
}
},
"sybaseRstOption": {
"sybaseRecoverType": "STATE_RECOVER",
"pointofTime": true,
"fromTime": {
"time": 0
},
"refTime": {
"time": 0
},
"destinationServer": {
"id": 0,
"name": "string"
},
"pointInTime": {
"time": 0
},
"instanceRestore": true,
"sybaseDatabase": [
{
"databaseId": {
"id": 0,
"name": "string"
},
"creationTimeInt": {
"time": 0
},
"associatedSubClientId": 0,
"devices": [
"string"
],
"systemDataBase": true
}
],
"renameDatabases": true,
"restoreOptions": true,
"restoreType": "string",
"isTableLevel": true
},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {
"sybaseCreateDevices": true,
"restoreToDisk": true
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"clientId": 0,
"instanceName": "string",
"appName": "Sybase",
"applicationId": "5 for Sybase",
"clientName": "string",
"instanceId": 0
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"timeRange": {
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 5,
"appName": "Sybase",
"clientId": 0,
"clientName": "string"
}
},
"sybaseRstOption": {
"sybaseRecoverType": "STATE_RECOVER",
"pointofTime": true,
"fromTime": {
"time": 0
},
"refTime": {
"time": 0
},
"destinationServer": {
"id": 0,
"name": "string"
},
"pointInTime": {
"time": 0
},
"instanceRestore": true,
"sybaseDatabase": [
{
"databaseId": {
"id": 0,
"name": "string"
},
"creationTimeInt": {
"time": 0
},
"associatedSubClientId": 0,
"devices": [
"string"
],
"systemDataBase": true
}
],
"renameDatabases": true,
"restoreOptions": true,
"restoreType": "string",
"isTableLevel": true
},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {
"sybaseCreateDevices": true,
"restoreToDisk": true
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'