2.1 Connect to Control Center Database (CCDB)

2.1.1 Connect to CCDB

Description

Connect to CCDB and return index of CCDB connected

NOTE:This allows user to perform operations on more than one CCDB using its index. This index is RepIndex, which is used in all endpoints. It is an integer value returned from POST operation on Repository endpoint.

Operation

Name: POST

Format: JSON

Example:

{
"server" : "server091",
"instance" : "NQAATEST",
"database": "NQCCDB356",
"user": "sa",
"password": "Control123"
}

Path/Endpoint

/Repository

Example:

http://hostname/NQAppManagerAPI/Service.svc/Repository

NOTE:“NQAppManagerAPI” is the site created in IIS

Resource

Repository

(i.e.,CCDB)

2.1.2 Get list of all connected CCDBs

Description

List all connected CCDBs

Operation

Name: GET

Format: JSON

Example:

{
server: "server776"
database: "NQCCDB"
repositoryindex: 0
version: "9.2.0.569"
}

Path/Endpoint

/Repository

Example:

http://hostname/NQAppManagerAPI/Service.svc/Repository

NOTE:“NQAppManagerAPI” is the site created in IIS. The “Service.svc” is a common attribute, which needs to be present in all endpoints.

Resource

Repository

(i.e., CCDB)