Skip to main content

Generate a Gateway Installation Command

Generate a gateway installation command for an operating system. This API requires data source module permissions.

Endpoint: /openapi/v1/gateway/generateCommand

Method: GET

Request parameters

ParameterTypeRequiredDescription
gatewayIdStringYesGateway ID.
osTypeStringYesOperating system of the gateway host: Windows, macOS, or Linux.
regionIdStringNoPreferred region. When omitted, NineData selects from the Stub endpoint list.

Response parameters

ParameterTypeDescription
data.endpointStringConnection endpoint.
data.stubEndpointListAddressStringStub endpoint list.
data.tokenStringGateway token.
data.proxyStringProxy gateway address.
data.commandStringComplete installation command.
data.windowsDownloadUrlStringDownload URL for the Windows gateway.
caution

data.token and data.command contain gateway registration information. Use them only in a controlled environment. Do not expose them or write them to logs.

Success response

{
"success": true,
"requestId": "<requestId>",
"data": {
"endpoint": "<endpoint>",
"stubEndpointListAddress": "<stubEndpointListAddress>",
"token": "<gatewayToken>",
"proxy": "",
"command": "<installationCommand>",
"windowsDownloadUrl": "<windowsDownloadUrl>"
}
}