Discover DB2 Instances and Databases Automatically
This operation is used to enable automatic discovery of DB2 Instances and the databases present inside the DB2 instances once the instance is configured
- application/json
Request Body
association object
agentProperties object
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": [
{
"errorCode": 0
}
]
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "exitval",
"value": "0"
}
]
},
"response": [
{
"errorCode": 0
}
]
}
Bad Request
- text/html
- Schema
- Example (from schema)
- Example 1
Schema
- object
{}
Request body is empty or format is invalid.
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access denied",
"errorCode": 5
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Failed to set Application properties.",
"errorCode": 1
}
POST /agent
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Agent' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"association": {
"entity": [
{
"clientId": 0,
"applicationId": 37,
"_type_": 0
}
]
},
"agentProperties": {
"db2Prop": {
"isAutoDiscoveredEnabled": true
}
}
}'