Provisioning SAP Replication Server databases


Use the following procedures to provision an SAP Replication Server database:

The base URL for the API is:

https://<managerHostName>/bda/rest/api

Creating an SAP Replication Server database

Use the following procedure to create an SAP Replication Server database.

Syntax

/1.0/sybase/add_repserver

Method

POST

Required parameters

The required parameters are as follows:

  • inst_name—Use the display name of the database.
  • node—Use the fully qualified nodeId.
  • version—Use the Sybase version for which you want to create the database.
  • template_id—Use the ID provided in the templates of BDA interface.

Optional parameters

Use the parameter override_values to override the custom field values in the supplied Sybase template. You must provide values in this field when the following conditions exist:

  • The custom fields are not defined in the supplied template.
  • You have not provided the default values in the supplied template.

Note

Use a comma to separate multiple override_values, as shown in the following example:

override_values="cleanup_agent_logs=true,fenced_user_name=db2fenc1"

Example API response

A sample response is as follows:

{
  "status": "success",
  "status_code": 200,
  "data": {
    "job_id": "479",
    "result": "Please check job '479' for info!!"
  }
}

Example API command

A sample example is as follows:

Example
curl -k -H "x-auth-token: ad7aaa89fbf0ef648ddd1607007e819f" –data "inst_name=<inst_name>&node=<node_fqn>&version=<sybase_repserver_version>&template_id=<template_id>" https://my.bda.manager.com/bda/rest/api/1.0/sybase/add_repserver

Creating an SAP Replication Server Home

Use the following procedure to create an SAP Replication Server Home.

Syntax

/1.0/sybase/add_repserver_home

Method

POST

Required parameters

The required parameters are as follows:

  • inst_name—Use the display name of the instance.
  • node—Use the fully qualified nodeId.
  • version—Use the Sybase version for which you want to create the instance.
  • template_id—Use the ID provided in the templates of BDA interface.

Optional parameters

Use the parameter override_values to override the custom field values in the supplied Sybase template. You must provide values in this field when the following conditions exist:

  • The custom fields are not defined in the supplied template.
  • You have not provided the default values in the supplied template.

Note

Use a comma to separate multiple override_values, as shown in the following example:

override_values="cleanup_agent_logs=true,fenced_user_name=db2fenc1"

Example API response

A sample response is as follows:

{
  "status": "success",
  "status_code": 200,
  "data": {
    "job_id": "479",
    "result": "Please check job '479' for info!!"
  }
}

Example API command

A sample example is as follows:

Example
curl -k -H "x-auth-token: ad7aaa89fbf0ef648ddd1607007e819f" –data " inst_name=<inst_name>&node=<node_fqn>&version=<sybase_repserver_version>&template_id=<template_id>" https://my.bda.manager.com/bda/rest/api/1.0/sybase/add_repserver_home

Starting an SAP Replication Server database

Use the following procedure to start an SAP Replication Server database.

Syntax

/1.0/sybase/repserver_start

Method

POST

Required parameters

The required parameters are as follows:

  • inst_name—Use the display name of the database.
  • node—Use the fully qualified nodeId.
  • sa_password—Use the sa_password of the instance.

Example API response

A sample response is as follows:

{
  "status": "success",
  "status_code": 200,
  "data": {
    "job_id": "479",
    "result": "Please check job '479' for info!!"
  }
}

Example API command

A sample example is as follows:

Example
curl -k -H "x-auth-token: ad7aaa89fbf0ef648ddd1607007e819f" –data "inst_name=<inst_name>&node=<node_fqn>&sa_password=<sa_password>" https://my.bda.manager.com/bda/rest/api/1.0/sybase/repserver_start

Stopping an SAP Replication Server instance

Use the following procedure to stop an SAP Replication Server instance.

Syntax

/1.0/sybase/repserver_stop

Method

POST

Required parameters

The required parameters are as follows:

  • inst_name—Use the display name of the instance.
  • node—Use the fully qualified nodeId.
  • sa_password—Use the sa_password of the instance.

Example API response

A sample response is as follows:

{
  "status": "success",
  "status_code": 200,
  "data": {
    "job_id": "479",
    "result": "Please check job '479' for info!!"
  }
}

Example API command

A sample example is as follows:

Example
curl -k -H "x-auth-token: ad7aaa89fbf0ef648ddd1607007e819f" –data "inst_name=<inst_name>&node=<node_fqn>&sa_password=<sa_password>" https://my.bda.manager.com/bda/rest/api/1.0/sybase/repserver_stop

Removing an SAP Replication Server instance

Use the following procedure to remove an SAP Replication Server instance.

Syntax

/1.0/sybase/remove_repserver

Method

POST

Required parameters

The required parameters are as follows:

  • inst_name—Use the display name of the instance.
  • node—Use the fully qualified nodeId.
  • sa_password—Use the sa_password of the instance.
  • template_id—Use the ID provided in the templates of BDA interface.

Example API response

A sample response is as follows:

{
  "status": "success",
  "status_code": 200,
  "data": {
    "job_id": "479",
    "result": "Please check job '479' for info!!"
  }
}

Example API command

A sample example is as follows:

Example
curl -k -H "x-auth-token: ad7aaa89fbf0ef648ddd1607007e819f" –data "inst_name=<inst_name>&node=<node_fqn>&sa_password=<sa_password>& template_id=<template_id>" https://my.bda.manager.com/bda/rest/api/1.0/sybase/remove_repserver

Removing an SAP Replication Server Home

Use the following procedure to remove an SAP Replication Server Home.

Syntax

/1.0/sybase/remove_repserver_home

Method

POST

Required parameters

The required parameters are as follows:

  • inst_name—Use the display name of the instance.
  • node—Use the fully qualified nodeId.
  • template_id—Use the ID provided in the templates of BDA interface.

Example API response

A sample response is as follows:

{
  "status": "success",
  "status_code": 200,
  "data": {
    "job_id": "479",
    "result": "Please check job '479' for info!!"
  }
}

Example API command

A sample example is as follows:

Example
curl -k -H "x-auth-token: ad7aaa89fbf0ef648ddd1607007e819f" –data " inst_name=<inst_name>&node=<node_fqn>&template_id=<template_id>" https://my.bda.manager.com/bda/rest/api/1.0/sybase/remove_repserver_home



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*