Get current tenant database configuration
This GET
operation retrieves a list of the current tenant database configuration which includes the database username, password, and url.
GET /pcc/spcm/oam/tenants
HEADER INFO
authorisation: HTTP Basic Auth
accept: application/json
permissions: SPCM_OAM_READ_PERMISSION
JSON response
Sharded environment
When you run this API operation, you receive a JSON response including an array of tenants which includes the name and the configuration.
The configuration includes the username, password, and url of the tenant database. |
{
"tenants":[
{
"tenant":"A",
"slice":"0",
"shard":"0",
"routingKey":"A.0.0",
"state":"added",
"scheduler":{
"state":"running"
},
"config":{
"jdbc.password":"password",
"jdbc.url":"jdbc:mysql://db1/pmsdb",
"jdbc.username":"userName"
}
},
{
"tenant":"A",
"slice":"1",
"shard":"0",
"routingKey":"A.1.0",
"state":"ignored",
"config":{
"jdbc.password":"password",
"jdbc.url":"jdbc:mysql://db2/pmsdb",
"jdbc.username":"userName"
}
}
],
"filters":[
"A.0"
]
}
Standard environment
{
"tenants":[
{
"tenant":"A",
"routingKey":"A",
"state":"added",
"scheduler":{
"state":"running"
},
"config":{
"jdbc.password":"password",
"jdbc.url":"jdbc:mysql://db1/pmsdb",
"jdbc.username":"userName",
}
},
{
"tenant":"B",
"routingKey":"B",
"state":"ignored"
"config":{
"jdbc.password":"password",
"jdbc.url":"jdbc:mysql://db2/pmsdb",
"jdbc.username":"userName"
}
}
],
"filters":[
"A"
]
}
OAM tenant configuration descriptions
These are the JSON key-value pair descriptions for the SPCM OM API tenant configuration operations.
Field | Type | Description | ||
---|---|---|---|---|
|
string |
The name of the tenant, slice, and shard.
|
||
|
list |
An object list containing the following:
|
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success! |
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
tenant not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. example
|
||||
|
failed processing (after passing validation). example
|
||||
|
internal error example
|
||||
|
request rejected due to overload |