Provisioning MSSQL databases
Use the following procedures to provision a Microsoft SQL Server (MSSQL) database:
The base URL for the API is:
Creating an MSSQL Server Instance
Use the following procedure to create an MSSQL Server Instance.
Syntax
Method
POST
Required parameters
- inst_name—Use the name of the MSSQL Server Instance.
- node—Use the fully qualified node name.
- node_name—Use the host name of the Agent.
- version—Use the MSSQL version you are using currently.
- template_id—Use the ID provided in the templates of BDA interface.
Optional parameters
None
Response
"status": "success",
"status_code": 200,
"data": {
"job_id": "462",
"result": "Please check job '462' for info!!"
}
}
Example
To create an MSSQL Server Instance:
Creating an MSSQL database
Use the following procedure to create an MSSQL database on an MSSQL Server Instance.
Syntax
Method
POST
Required parameters
- inst_name—Use the name of the MSSQL Server Instance.
- node—Use the fully qualified node name.
- node_name—Use the host name of the Agent.
- db_name—Use the name of the MSSQL database.
- template_id—Use the ID provided in the templates of BDA interface.
Optional parameters
None
Response
"status": "success",
"status_code": 200,
"data": {
"job_id": "467",
"result": "Please check job '467' for info!!"
}
}
Example
To create an MSSQL database on an MSSQL Server Instance:
Removing an MSSQL database
Use the following procedure to remove an MSSQL database.
Syntax
Method
POST
Required parameters
- inst_name—Use the name of the MSSQL Server Instance.
- node—Use the fully qualified node name.
- node_name—Use the host name of the Agent.
- db_name—Use the name of the MSSQL database.
- template_id—Use the ID provided in the templates of BDA interface.
Optional parameters
None
Response
"status": "success",
"status_code": 200,
"data": {
"job_id": "468",
"result": "Please check job '468' for info!!"
}
}
Example
To remove an MSSQL database:
Removing an MSSQL Server Instance
Use the following procedure to remove an MSSQL Server Instance.
Syntax
Method
POST
Required parameters
- inst_name—Use the name of the MSSQL Server Instance.
- node—Use the fully qualified node name.
- node_name—Use the host name of the Agent.
- template_id—Use the ID provided in the templates of BDA interface.
Optional parameters
None
Response
"status": "success",
"status_code": 200,
"data": {
"job_id": "471",
"result": "Please check job '471' for info!!"
}
}
Example
To remove an MSSQL Server Instance:
Starting an MSSQL Server Instance
Use the following procedure to start an MSSQL Server Instance.
Syntax
Method
POST
Required parameters
- inst_name—Use the name of the MSSQL Server Instance.
- node—Use the fully qualified node name.
- node_name—Use the host name of the Agent.
- node_ip—Use the IP address of the Agent.
Optional parameters
None
Response
"status": "success",
"status_code": 200,
"data": {
"job_id": "470",
"result": "Please look into job for result"
}
}
Example
To start an MSSQL Server Instance:
Stopping an MSSQL Server Instance
Use the following procedure to stop an MSSQL Server Instance.
Syntax
Method
POST
Required parameters
- inst_name—Use the name of the MSSQL Server Instance.
- node—Use the fully qualified node name.
- node_name—Use the host name of the Agent.
- node_ip—Use the IP address of the Agent.
Optional parameters
None
Response
"status": "success",
"status_code": 200,
"data": {
"job_id": "469",
"result": "Please look into job for result"
}
}
Example
To stop an MSSQL Server Instance:
Related topic