HTTP GET example
Below is an example of an HTTP GET call to the contentmanagement.lookupProject
API.
In a GET request, method parameters must be sent as query string key-value pairs.
The JSON output is pretty-printed for clarity.
$ API=https://manager.example.com/rhn/manager/api
$ curl -H "Content-Type: application/json" --cookie "pxt-session-cookie<tokenhash>;" \
> $API/contentmanagement/lookupProject?projectLabel=myproject
{
"success": true,
"result": {
"name": "My Project",
"description": "My CLM project",
"id": 1,
"label": "myproject",
"orgId": 1
}
}