Follow this quick tutorial to make your first API call.
In this tutorial, you’ll log a user into Grassfish IXM Aqua to retrieve their token and then request all visible IXM Aqua clients.
Prerequisites
For the tutorial, make sure you meet the following requirements:
You have a Grassfish IXM Aqua client.
You’ve requested an API user from your Grassfish contact person.
Step 1: Retrieve the token
Use the following request to log a user into Grassfish IXM Aqua and retrieve their token:
Replace the credentials in the request with your own credentials. The credentials you see here are for example purposes only.
Check the URL to ensure it’s the correct environment.
Send your request.
POST https://identity.eu01.grassfish.com/connect/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id=TestUser
&client_secret=TestScret123
&scope=aquaconnect
The HTTP response should contain the access_token
. It looks like this:
{
"access_token": "xxx",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "aquaconnect"
}
Step 2: Retrieve the clients
Use the following request to get all visible IXM Aqua clients:
Copy the
access_token
from the response of your token request.Paste the token directly after
Bearer
in this request.Check the URL to ensure it’s the correct environment.
Send your request.
POST https://connect.eu01.grassfish.com/api/selectclients
Authorization: Bearer xxx
Content-Type: application/json
{}
The HTTP response should contain information on all visible IXM Aqua clients. It looks like this:
{
"clients": [
{
"code": "clientCode",
"id": "clientId",
"name": "ClientName",
"settings": [
{
"id": "Setting01",
"value": "100",
"displayName": "Setting-01",
"fieldType": "String",
"description": "Setting 01",
"placeholder": "",
"inherit": false,
"isDefinitionEditable": true,
"hasOverrides": false
}
],
}
],
"totalCount": 1,
"success": {
"ok": true,
"notFound": true,
"correlationToken": "XXXXXXXX:00000001"
}
}
✨ Congratulations! You’ve made your first IXM Aqua API call.
Check out the API reference to see what else you can do.