Skip to main content

Fetch options for SQL restore

Select

SaaS
Customer Managed

This operation fetches information needed to perform a SQL database restore

Request Body
  • restoreType integer required

    Default value: 2

    Internal field

  • restoreDbType integer required

    Internal field

  • sourceInstanceId integer required

    ID of the instance where database is present

  • selectedDatabases object[]
  • databaseName string required

    Database name

Responses

OK


Schema
  • sqlDbdeviceItem object[]
  • fileName string

    Physical file name of the DB

  • logicalFileName string

    Logical file name of the DB

  • fileMaxSize integer
  • id integer
  • sqlDBInfo object
  • databaseName string

    Database name

  • databaseId integer

    Database ID as present in the SQL server instance

  • sqlDestinationInstances object[]

    List of possible destination servers

  • serverType string
  • genericEntity object
  • clientId integer
  • instanceName string
  • osType string
  • clientName string
  • instanceId integer
  • _type_ integer
  • error object
  • errorMessage string
  • errorCode integer
POST /sql/restoreoptions    

Authorization

type: apiKeyname: Authtokenin: header

Request

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

{
"restoreType": 2,
"restoreDbType": 0,
"sourceInstanceId": 0,
"selectedDatabases": [
{
"databaseName": "string"
}
]
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/SQL/RestoreOptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreType": 2,
"restoreDbType": 0,
"sourceInstanceId": 0,
"selectedDatabases": [
{
"databaseName": "string"
}
]
}'