To interact with your API you will be using cURL, it is a tool commonly used to interact with HTTP(s) servers. cURL is already installed on your Cloud9 instance.
Without logging into your cluster, start by running the following command in the Cloud9 terminal to list the compute nodes attached to your Slurm cluster.
curl -s POST "${INVOKE_URL}/slurm?instanceid=${HEAD_NODE_ID}&function=list_nodes" # Note the function name "list_nodes"
Initiate a second cURL call to list the partitions in your cluster
curl -s POST "${INVOKE_URL}/slurm?instanceid=${HEAD_NODE_ID}&function=list_partitions" # Note the function name "list_partitions"