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
tenant: <tenantName>
authorisation: HTTP Basic Auth
accept: application/json
permissions: SPCM_OAM_READ_PERMISSION
JSON response
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. |
{
"name": "tenant.0.1",
"config": {
"jdbc.username": "greatest-user",
"jdbc.password": "secret-password",
"jdbc.url": "jdbc:mysql://localhost/database1"
},
"name": "tenant.1.1",
"config": {
"jdbc.username": "greatest-user-ever",
"jdbc.password": "secret-password-again",
"jdbc.url": "jdbc:mysql://localhost/database2"
}
}
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 |
||||
|
request rejected due to overload |