Create Cluster
This operation is used to create a Cluster Setup for DB2 nodes
- application/json
Request Body
clientInfo object required
entity object required
clusterClientsInfo object required
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
processinginstructioninfo object
response object
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"response": {
"errorString": "string",
"errorCode": 0,
"entity": {
"clientId": 0,
"clientName": "string",
"_type_": 0
}
}
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "exitval",
"value": "0"
}
]
},
"response": {
"errorString": "Cluster Group [db2hadr-vikramhadr] configuration was saved on CommServe successfully.\nRemote nodes updated successfully:[vikramhadr1] [vikramhadr2] \n",
"errorCode": 2,
"entity": {
"clientId": 1506,
"clientName": "db2hadr-vikramhadr",
"_type_": 3
}
}
}
Bad Request
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "XML error: please refer to logs for more details.",
"errorCode": 1
}
POST /pseudoclient
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/pseudoClient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientInfo": {
"clientType": "string",
"plan": {
"planId": 0,
"planName": "string"
}
},
"entity": {
"hostName": "string",
"displayName": "string",
"clientId": 0,
"clientName": "string",
"entityTypeName": "string",
"_type_": "string"
},
"clusterClientsInfo": {
"clusterClientProperties": {
"clusterGroupAssociation": [
{
"clientId": 0,
"clientName": "string"
}
],
"configuredAgents": [
{
"ComponentId": 0,
"ComponentName": "string",
"NoApplicationRequired": true,
"osType": "string"
}
],
"clusterGroupAssociationOperationType": "string",
"configuredAgentsOperationType": "string",
"forceSyncConfigOnRemoteNodes": true
},
"jobResultsDir": {
"path": "string"
}
}
}'