Update DB2 MultiNode Instance Properties
Select
SaaS
Customer Managed
This operation is used to update DB2 MultiNode Instance properties
Path Parameters
- InstanceID integer required
ID of the DB2 MultiNode Instance
- application/json
Request Body
association object
instanceProperties object required
Responses
- 200
- 400
- 401
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example 1
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": 0,
"instanceName": "",
"instanceId": 0,
"_type_": 0
}
}
]
}
Bad Request
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access denied",
"errorCode": 5
}
Not Found
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Unknown Instance information. Please provide valid instance id to complete the operation.",
"errorCode": 587206385
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "User does not have [Use Plan] rights on plan(s)-[Invalid PlanId].",
"errorCode": 1
}
POST /instance/:instanceid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Instance/:InstanceID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
}
]
},
"instanceProperties": {
"instance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 103,
"clientId": 0,
"clientName": "string",
"commCellId": 0
},
"planEntity": {
"planId": 0
},
"db2Instance": {
"homeDirectory": "string",
"pureScale": true,
"dpfpartitionclients": [
{
"nodenum": 0,
"nodeClient": {
"clientId": 0,
"clientName": "string",
"_type_": 3
},
"nodeNumber": "string"
}
],
"userAccount": {
"userName": "string",
"password": "string"
}
}
}
}'