Create MySQL Database Group
This operation creates a database group in a MySQL Instance
- application/json
Request Body
subClientProperties object
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,
"_type_": 0
}
}
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "exitval",
"value": "0"
}
]
},
"response": {
"warningCode": 0,
"errorCode": 0,
"warningMessage": "",
"entity": {
"subclientId": 1081,
"_type_": 0
}
}
}
Bad Request
- 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
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "A subclient by this name already exists as part of this backup set.",
"errorCode": 3
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Failed to create new subclient.",
"errorCode": 1
}
{
"errorMessage": "User does not have [Use Plan] rights on plan(s)-[Invalid PlanId].",
"errorCode": 1
}
POST /subclient
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/subclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"subClientProperties": {
"subClientEntity": {
"subclientName": "string",
"instanceName": "string",
"appName": "MySQL",
"clientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
}
},
"commonProperties": {},
"content": [
{
"mySQLContent": {
"databaseName": "string"
}
}
],
"contentOperationType": "OVERWRITE",
"mySqlSubclientProp": {
"numberOfBackupStreams": 2,
"numberOfTransactionLogStreams": 1,
"fullInstanceXtraBackup": false
},
"planEntity": {
"planName": "string"
}
}
}'