Purpose

Retrieves a list of supported backend data stores and their options.

URL

https://<myserver>:<port>/api/mgmt/datastores

Method

GET

URL Parameters

<myserver> is the hostname or IP address of the machine hosting the Hybrid Data Pipeline server for a non-load balancer deployment, or the machine hosting the load balancer for a load balancer deployment. For a non-load balancer deployment, <port> is the port number specified as the Server Access Port during deployment. For a load balancer deployment, <port> must be either 80 for http or 443 for https. Whenever port 80 or 443 are used, it is not necessary to include the port number in the URL.

Response Definition

The response takes the following format. The properties of the response are described in the table that follows.

{
  "dataStores": [
    {
      "id": datastore_id,
      "name": "datastore_name",
      "isBeta": boolean,
      "isGroup": boolean,
      "driver": {driver_details}
      "authorized": boolean,
      "connectionType": {connection_type_details}
    },
    ...
  ]
}
Properties Description Valid Values
"id" The integer ID of the data store The data store ID
"name" The name of the data store The name of the data store
"isBeta" Indicates whether the data store is beta or GA true | false

If true, the data store is a beta data store.

If false, the data store is GA.

"isGroup" Indicates whether the data store is the group data store (as opposed to a specific back end data store such as Oracle)

The group data store enables the creation of group data sources. A group data source is comprised of multiple member data sources that connect to one or more back end data stores such as Salesforce or SQL Server.

The group data store is named DataSource Group, and its ID is 56.

true | false

If true, the data store is the group data store.

If false, the data store is not the group data store.

"driver" Provides details on the underlying driver used to connect to the data source. The driver details include the name of the driver jar file, the version number, and a help URL.
"authorized" Indicates whether the user making the request can create a data source on the data store true | false

If true, the user making the request is authorized to create a data source for this data store.

If false, the user making the request is not authorized to create a data source for this data store.

"connectionType" Provides details about a supported data store. Connection type details include descriptions for parameters and the values that may be specified for them. See connectionType-details Object for more information.

Sample Server Success Response

{
    "dataStores": [
        {
            "id": 1,
            "name": "Salesforce",
            "isBeta": false,
            "isGroup": false,
            "driver": {
                "name": "ddsforce.jar",
                "version": "6.0.0.2603",
                "helpURL": "https://docs.progress.com/bundle/datadirect-hybrid-data-
                            pipeline-46/page/Salesforce-parameters.html"
                },
            "authorized": true,
            "connectionType": [
                {
                    "name": "Cloud",
                    "category": [
                        {
                            "name": "General",
                            "options": [
                                {
                                    "id": "Name",
                                    "displayName": "Data Source Name",
                                    "documentation": "A name you provide to uniquely
                                        identify this Data Source.",
                                    "required": true,
                                    "maxLength": 128,
                                    "type": "string"
                                },
                                ...
                                {
                                    "id": "SecurityToken",
                                    "displayName": "Security Token",
                                    "documentation": "The security token is required to
                                        log in to Salesforce from an untrusted network.
                                        ... A new token will be sent by e-mail.",
                                    "type": "string"
                                }
                            ]
                        },
                        ...
                        {
                            "name": "Advanced",
                            "options": [
                                {
                                    "id": "StmtCallLimit",
                                    "displayName": "Web Service Call Limit",
                                    "documentation": "The maximum number of Web service
                                        calls allowed to Salesforce for a single SQL
                                        statement or metadata query.",
                                    "minInclusive": 0,
                                    "maxInclusive": 2000000000,
                                    "type": "integer",
                                    "default": "0"
                                },
                                ...
                                {
                                    "id": "HDPMetadataExposedSchemas",
                                    "displayName": "Metadata Exposed Schemas",
                                    "documentation": "Defines the schemas to be allowed
                                        in the metadata queries.",
                                    "type": "string"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        ...
        {
            "id": 43,
            "name": "Oracle",
            "isBeta": false,
            "isGroup": false,
                "name": "ddoracle.jar",
                "version": "6.0.0.1235",
                "helpURL": "https://docs.progress.com/bundle/datadirect-hybrid-data-
                            pipeline-46/page/Oracle-parameters.html"
                },
            "authorized": true,
            "connectionType": [
                {
                    "name": "Hybrid",
                    "category": [
                        {
                            "name": "General",
                            "options": [
                                {
                                    "id": "Name",
                                    "displayName": "Data Source Name",
                                    "documentation": "A name you provide to uniquely
                                        identify this Data Source.",
                                    "required": true,
                                    "maxLength": 128,
                                    "type": "string"
                                },
                                ...
                                {
                                    "id": "TNSServerName",
                                    "displayName": "TNS Server Name",
                                    "documentation": "The Oracle net service name that
                                        is used to reference the connection information
                                        in a tnsnames.ora file.",
                                    "type": "string"
                                }
                            ]
                        },
                        ...
                        {
                            "name": "Advanced",
                            "options": [
                                {
                                    "id": "AlternateServers",
                                    "displayName": "Alternate Servers",
                                    "documentation": "The server name (servername1,
                                        servername2, and so on) is required for each
                                        ... default port number of 1521 is used. For
                                        more information, see the Help.",
                                    "type": "string"
                                },
                                ...
                                {
                                    "id": "HDPMetadataExposedSchemas",
                                    "displayName": "Metadata Exposed Schemas",
                                    "documentation": "Defines the schemas to be allowed
                                        in the metadata queries.",
                                    "type": "string"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        ...
        }
    ]
}

Sample Server Failure Response


{
  "error": {
    "code": "222206007",
    "message": {
      "lang": "en-US",
      "value": "Invalid user ID or password"
    }
  }
}
					

Authentication

Basic Authentication using Login ID and Password.

Authorization

The user must have the MgmtAPI (11) permission.

Related topics