Stability Level Preview

The connectRemoteTableConfig() GraphQL mutation is used to add a remote table configuration to a specified view.

There are a few mutation fields related to this query. Use createRemoteTableConfig() for creating a new remote table configuration, updateRemoteTableConfig() to make changes. You would use disconnectRemoteTableConfig() to disconnect a remote table. The query field, getConnectedRemoteTableConfigsInView() query will return the remote table configurations for a view.

Syntax

graphql
connectRemoteTableConfig(
     input: ConnectRemoteTableConfigInput!
   ): RemoteTableConfig!

For the input, you'd enter the name of the view and connection related to the remote table. In return, you can get the configuration parameters and URL — by drilling down in the mutation parameters.

Example

The example below shows how you might make connection from a view to a remote table.

Raw
graphql
mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: "our_view",
       connectionName: "remote_table" }
  ) { connectionDescription }
}
Mac OS or Linux (curl)
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: \"our_view\",
       connectionName: \"remote_table\" }
  ) { connectionDescription }
}"
}
EOF
Mac OS or Linux (curl) One-line
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: \"our_view\",
       connectionName: \"remote_table\" }
  ) { connectionDescription }
}"
}
EOF
Windows Cmd and curl
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql ^
    -H "Authorization: Bearer $TOKEN" ^
    -H "Content-Type: application/json" ^
    -d @'{"query" : "mutation { ^
  connectRemoteTableConfig( ^
    input: {  ^
       viewName: \"our_view\", ^
       connectionName: \"remote_table\" } ^
  ) { connectionDescription } ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: \"our_view\",
       connectionName: \"remote_table\" }
  ) { connectionDescription }
}"
}'
    "$YOUR_LOGSCALE_URL/graphql"
Perl
perl
#!/usr/bin/perl

use HTTP::Request;
use LWP;

my $TOKEN = "TOKEN";

my $uri = '$YOUR_LOGSCALE_URL/graphql';

my $query = "mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: \"our_view\",
       connectionName: \"remote_table\" }
  ) { connectionDescription }
}";
$query =~ s/\n/ /g;
my $json = sprintf('{"query" : "%s"}',$query);
my $req = HTTP::Request->new("POST", $uri );

$req->header("Authorization" => "Bearer $TOKEN");
$req->header("Content-Type" => "application/json");

$req->content( $json );

my $lwp = LWP::UserAgent->new;

my $result = $lwp->request( $req );

print $result->{"_content"},"\n";
Python
python
#! /usr/local/bin/python3

import requests

url = '$YOUR_LOGSCALE_URL/graphql'
mydata = r'''{"query" : "mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: \"our_view\",
       connectionName: \"remote_table\" }
  ) { connectionDescription }
}"
}'''

resp = requests.post(url,
                     data = mydata,
                     headers = {
   "Authorization" : "Bearer $TOKEN",
   "Content-Type" : "application/json"
}
)

print(resp.text)
Node.js
javascript
const https = require('https');

const data = JSON.stringify(
    {"query" : "mutation {
  connectRemoteTableConfig(
    input: { 
       viewName: \"our_view\",
       connectionName: \"remote_table\" }
  ) { connectionDescription }
}"
}
);


const options = {
  hostname: '$YOUR_LOGSCALE_URL',
  path: 'graphql',
  port: 443,
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Content-Length': data.length,
    Authorization: 'BEARER ' + process.env.TOKEN,
    'User-Agent': 'Node',
  },
};

const req = https.request(options, (res) => {
  let data = '';
  console.log(`statusCode: ${res.statusCode}`);

  res.on('data', (d) => {
    data += d;
  });
  res.on('end', () => {
    console.log(JSON.parse(data).data);
  });
});

req.on('error', (error) => {
  console.error(error);
});

req.write(data);
req.end();
Example Responses
Success (HTTP Response Code 200 OK)
json
{
  "data": {
    "connectRemoteTableConfig": {
      "connectionDescription": "Out of the Way Table"
    }
  }
}

Given Datatype

For this input datatype, you would give the names of the view, and the name of the connection for the remote table configuration of a view. These parameters are listed and described below:

Table: ConnectRemoteTableConfigInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in the results.
Table last updated: Jan 26, 2026
connectionNamestringyes PreviewThe name of the remote table configuration.
viewNamestringyes PreviewThe name of the view to add the remote table configuration.

Returned Datatype

With the return datatype and sub-datatype, you can get the URL and the configuration of a remote table. These are partly described in the table below, but you'll have to click on the one special datatype and further for more details.

Table: RemoteTableConfig

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in the results.
Table last updated: Feb 16, 2026
accessRequirementRemoteTableAccessRequirementyes PreviewAn access requirement needed to run a remote table query based on this configuration. See RemoteTableAccessRequirement.
connectionConfigRemoteTableGenericConnectionSensitiveConfigyes PreviewThe configuration of the remote table connection. See RemoteTableGenericConnectionSensitiveConfig.
connectionDescriptionstringyes PreviewThe description of the remote table configuration.
connectionNamestringyes PreviewThe name of the remote table connection.
viewIds[string]yes PreviewThe identifiers for the views to which the configuration is connected.