Add MySQL Instance
This operation adds a MySQL Instance in Client
- application/json
Request Body
instanceProperties object required
Responses
- 200
- 400
- 401
- 409
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
processinginstructioninfo object
response object
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"response": {
"warningCode": 0,
"errorCode": 0,
"warningMessage": "string",
"entity": {
"subclientId": 0,
"clientId": 0,
"instanceName": "string",
"instanceId": 0,
"_type_": 0
}
}
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "exitval",
"value": "0"
}
]
},
"response": {
"warningCode": 0,
"errorCode": 0,
"warningMessage": "",
"entity": {
"subclientId": 0,
"clientId": 5,
"instanceName": "mysqlwin_3306",
"instanceId": 20,
"_type_": 0
}
}
}
Bad Request
Response Headers
- application/json
- Schema
- Example
Schema
- string
Request body is empty or format is invalid
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}
Conflict
- application/json
- Schema
- Example (from schema)
- Example 2
Schema
- errorMessage string
- errorCode integer
entity object
{
"errorMessage": "string",
"errorCode": 0,
"entity": {
"subclientId": 0,
"clientId": 0,
"instanceName": "string",
"instanceId": 0,
"_type_": 0
}
}
{
"errorMessage": "An instance by this name already exists.",
"errorCode": 3,
"entity": {
"subclientId": 0,
"clientId": 5,
"instanceName": "mysqlwin_3306",
"instanceId": -1,
"_type_": 0
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Invalid My S Q L Enterprise Backup binary directory
Schema
- errorMessage string
- errorCode integer
entity object
{
"errorMessage": "string",
"errorCode": 0,
"entity": {
"subclientId": 0,
"clientId": 0,
"instanceName": "string",
"instanceId": 0,
"_type_": 0
}
}
{
"errorMessage": "Invalid MEB bin directory.",
"errorCode": 4444,
"entity": {
"subclientId": 0,
"clientId": 200,
"instanceName": "mysql_3306",
"instanceId": 430,
"_type_": 0
}
}
POST /instance
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceName": "string",
"applicationId": 104,
"clientId": 0,
"clientName": "string"
},
"mySqlInstance": {
"BinaryDirectory": "string",
"LogDataDirectory": "string",
"ConfigFile": "string",
"port": "string",
"EnableAutoDiscovery": true,
"SAUser": {
"userName": "string",
"password": "string"
},
"NTUser": {
"userName": "string",
"password": "string"
},
"proxySettings": {
"isProxyEnabled": true,
"proxyInstance": {
"instanceId": 0
},
"isUseSSL": true,
"runBackupOnProxy": true
},
"xtraBackupSettings": {
"enableXtraBackup": true
},
"mebSettings": {
"enableMEB": true
},
"sslEnabled": true
},
"planEntity": {
"planId": 0
}
}
}'