Description

This article provides CURL commands through which a user can download the following items on EC2 or any other Server for GenRocket Installation. You can also replace 'curl' with 'wget' if wget is supported on your machine. 

  • GenRocket Runtime
  • GenRocket Jar
  • GenRocket Engine Jar
  • GenRocket Generator jar
  • GenRocket Receiver Jar
  • GenRocket G-Repository Server Jar
  • GenRocket G-Repository Client Jar
  • GenRocket Docker Image
  • Server Profile from the Resource
  • Individual User Profile


In This Article


What Information is Needed to Use CURL Commands?

For each command below, you will need to have three essential pieces of information: 

  1. Organization URL 
    • Virtual Private Cloud (VPC) - app.genrocket.com
    • Dedicated Private Cloud (DPC) - This varies per organization. Please refer to your Org Admin for the login screen URL. 
  2. Organization ID (Shown in this article)
  3. Version Number (Shown in this article)


Where is the Version Number Information?

The latest GenRocket Runtime and Jar files can be found by expanding the Options menu, as shown below. This information is needed for CURL commands.



Where is the Organization ID?

This information is needed for CURL commands. To find the Organization ID of your organization, complete these steps: 

  1. Select the Organization Menu
  2. Select My Organization.



  3. Use the ExternalId.


CURL Commands for GenRocket Runtime and Jars

Note: genrocket-3.5.22.zip -> 3.5.22 in the below commands represents the GenRocket Runtime version. The version number may be different depending on the currently active Runtime version. 


Download GenRocket Runtime:

Please take a look at the installation or update articles for more information. 

curl https://app.genrocket.com/rest/download/runtime/<ORGANIZATION ID> --output genrocket-3.5.22.zip


Download GenRocket Jar:

The command prompt or terminal window must point to the genrocket/lib directory.

curl https://app.genrocket.com/rest/download/genrocket/<ORGANIZATION ID> --output genrocket-3.5.22.2.jar


Download GenRocket Engine Jar:

The command prompt or terminal window must point to the genrocket/lib directory.

curl https://app.genrocket.com/rest/download/engine/<ORGANIZATION ID> --output gr-engine-3.5.22.11.jar


Download GenRocket Generator Jar:

The command prompt or terminal window must point to the genrocket/lib directory.

curl https://app.genrocket.com/rest/download/generator/<ORGANIZATION ID> --output gr-generators-3.5.22.6.jar

 

Download GenRocket Receiver Jar:

The command prompt or terminal window must point to the genrocket/lib directory.

curl https://app.genrocket.com/rest/download/receiver/<ORGANIZATION ID>--output gr-receivers-3.5.22.7.jar


Download G-Repository Server Jar:

The command prompt or terminal window must point to the genrocket/lib directory.

curl https://app.genrocket.com/rest/download/repositoryServer/<ORGANIZATION ID> --output gr-grepository-servers-3.5.22.2.jar


Download G-Repository Client Jar:

The command prompt or terminal window must point to the genrocket/lib directory.

curl https://app.genrocket.com/rest/download/repositoryClient/<ORGANIZATION ID> --output gr-grepository-clients-3.5.22.2.jar


Download GenRocket Runtime Docker Image:

Please take a look at the Docker article for more information.

curl https://app.genrocket.com/rest/download/dockerImage/<ORGANIZATION ID> --output genrocket-runtime-3.5.22.tar

 

Steps to Download GenRocket Server or User Profile

A CURL command can be used to download the Server Profile (shown below): 



A CURL command can be used to download a User Profile (shown below): 



You must use two CURL commands to get the Access Token and then download the Server or User profile. These commands are provided below: 

 

Step 1 - Curl Command for getting Access Token via GenRocket Login API

curl -X POST -H "Content-Type: application/json" -d '{"username": "Provide Login Username here","password": "Provide Password here"}' https://app.genrocket.com/rest/login


Response Example:

{
   "username": "email@example.com",
   "roles": [
     "ROLE_ORG_ADMIN",
     "ROLE_USER"
  ],
   "accessToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

 

Step 2a - Curl Command for Downloading Server Profile

curl -X POST "https://app.genrocket.com/rest/server/profile/download" -H  "accept: application/json" -H  "x-auth-token: Provide Access Token Received" -H  "Content-Type: application/json" -d '{"organizationId": "Provide Organization ID here", "serverName": "Provide Server Name here"}' --output "GRXXXXXXXProfile.grp"

 

Curl Example:

curl -X POST "https://app.genrocket.com/rest/server/profile/download" -H  "accept: application/json" -H  "x-auth-token: XXXXXXXXXXXXXXXXXXXXXXX" -H  "Content-Type: application/json" -d '{"organizationId": "XXXXXXXXX-b0d2-426a-899c-XXXXXXXXXXXX",  "serverName": "gen-tdm-ec2"}' --output "GRXXXXXXXProfile.grp"


Step 2b - Curl Command for Downloading User Profile

curl -X POST "https://app.genrocket.com/rest/profile/download" -H  "accept: application/json" -H  "x-auth-token: Provide Access Token Received" -H  "Content-Type: application/json" -d '{"organizationId": "Provide Organization ID here"}' --output "GRXXXXXXXProfile.grp"

 

Curl Example:

curl -X POST "https://app.genrocket.com/rest/profile/download" -H  "accept: application/json" -H  "x-auth-token: XXXXXXXXXXXXXXXXXXXXXXX" -H  "Content-Type: application/json" -d '{"organizationId": "XXXXXXXXX-b0d2-426a-899c-XXXXXXXXXXXX"}' --output "GRXXXXXXXProfile.grp"