Use this REST request to get the metadata of a stream or window to which you wish to connect. This REST request is a POST type request.
http://serverDetails/espws/restservice/stream/<stream/windowname>?action=get&workspace=<workspaceName>&project=<projectName>
Element | Description |
---|---|
defaultCluster |
(Optional) Specify a default cluster for the REST server to which you are connecting. This element contains the credentialselement below. If you specify this element, the workspace name specified in the URI is ignored. Specify either this element or the connectionDetails element. If you specify both elements, you will receive an error. |
credentials | (Optional) Specify a value based on the type of authentication the
ESP Server is using.
|
connectionDetails |
(Required only if defaultCluster is not specified) Element containing clusterName, port, and authentication details below. Specify either this element or the defaultCluster element. If you specify both elements, you will receive an error. |
clusterName |
Type: string (Required if no default is specified) The name of the cluster on which the project that you wish to update is running. |
port |
Type: integer (Required) Specify the port on which the cluster is running. |
authentication |
(Required) Element containing authentication details (type, data, and sslEnabled). |
type |
Type: string (Required) Specify the type of authentication the ESP Server is using. Valid values are user, RSA, and Kerberos. |
data |
Type: string (Required) Specify a value based on the type of authentication you specified in the
type element. For example,
|
sslEnabled |
Type: boolean (Required) Specify whether SSL is enabled on the cluster on which the project is running. The default value is false. |
http://localhost:9091/espws/restservice/stream/mystream?action=get&workspace=default&project=my_project
{ "defaultCluster" : { "credentials" : "<username>:<password>" } }
{
"connectionDetails": {
"clusterName": "iltlvl231.dhcp.sap.corp",
"port": "19011",
"authentication": {
"type": "user",
"data": "lroot:<password>",
"sslEnabled": "true"
}
}