async function findCloudGatewayRest() {
    const gateways = await SAP_DeviceManagement.apis.Gateways.getGatewaysUsingGET(                {
            tenantId: config.SAP_tenantID,
            filter: "alternateId eq 'GATEWAY_CLOUD_REST'"
        }
    );
    if (!(gateways.ok && Array.isArray(gateways.body) && gateways.body.length > 0)) {
        throw new Error('Lookup of Cloud REST gateway failed!');
    }
    console.info(`Cloud REST gateway ID is '${gateways.body[0].id}'`);
    return gateways.body[0].id;
}
/**
 * Find the ID of the SAP IoT Service REST gateway
 * @return {string}  the ID of the gateway used by SAP IoT Services
 * @throws {Error} Raises an exception when SAP IoT Service returns an error.
 */
Find the ID of the SAP IoT Service REST gateway
@return {string}  the ID of the gateway used by SAP IoT Services
@throws {Error} Raises an exception when SAP IoT Service returns an error.
Find the ID of the SAP IoT Service REST gateway @return { string } the ID of the gateway used by SAP IoT Services @throws { Error } Raises an exception when SAP IoT Service returns an error .
async function findCloudGatewayRest() {
    const gateways = await SAP_DeviceManagement.apis.Gateways.getGatewaysUsingGET(                {
            tenantId: config.SAP_tenantID,
            filter: "alternateId eq 'GATEWAY_CLOUD_REST'"
        }
    );
    if (!(gateways.ok && Array.isArray(gateways.body) && gateways.body.length > 0)) {
        throw new Error('Lookup of Cloud REST gateway failed!');
    }
    console.info(`Cloud REST gateway ID is '${gateways.body[0].id}'`);
    return gateways.body[0].id;
}
async function findCloudGatewayRest ( ) { const gateways = await SAP_DeviceManagement . apis . Gateways . getGatewaysUsingGET ( { tenantId : config . SAP_tenantID , filter : "alternateId eq 'GATEWAY_CLOUD_REST'" } ) ; if ( ! ( gateways . ok && Array . isArray ( gateways . body ) && gateways . body . length > 0 ) ) { throw new Error ( 'Lookup of Cloud REST gateway failed!' ) ; } console . info ( ` ${ gateways . body [ 0 ] . id } ` ) ; return gateways . body [ 0 ] . id ; }
Find the ID of the SAP IoT Service REST gateway
 @return {string}  the ID of the gateway used by SAP IoT Services
 @throws {Error} Raises an exception when SAP IoT Service returns an error.
Find the ID of the SAP IoT Service REST gateway @return { string } the ID of the gateway used by SAP IoT Services @throws { Error } Raises an exception when SAP IoT Service returns an error .