Update DB2 Instance Properties
This operation is used to update DB2 instance properties
Path Parameters
- InstanceID integer required
ID of the instance
- application/json
Request Body
association object
entity object[]
instanceId integerID of the instance
instanceName stringName of the instance
applicationId integerPossible values: [
62
,37
]application ID for DB2 Unix is 62 and application ID for DB2 windows is 37
clientId integerID of the client
clientName stringName of the client
commCellId integerinstanceProperties object required
pass the properties that needs to be updated in this object
instance object
instanceId integerinstanceName stringapplicationId integerclientId integerclientName stringcommCellId integerplanEntity object
pass this object to update plan of the instance
planId integerId of the new plan
db2Instance object
pass this object to update db2 home directory or the user details
homeDirectory stringpass the new home directory for db2 instance
userAccount object
pass this object if the user details needs to be changed for the instance
userName stringusername to connect to specified instance
password stringBase64 encoded password
- newName string
New instance name
Responses
- 200
- 400
- 401
- 404
- 409
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
processinginstructioninfo object
attributes object[]
name stringvalue stringresponse object[]
warningCode integererrorCode integerwarningMessage stringentity object
subclientId integerclientId integerinstanceName stringinstanceId integer_type_ integer
{
"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
}
Conflict
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "An instance by this name already exists.",
"errorCode": 3
}
Loading...