Get requestor configuration in the cluster
GET method to get the list of host factory requestors that are registered in the cluster.
| Method | URL | Description |
|---|---|---|
| GET | https://host_name:port/platform/rest/hostfactory/requestors | Gets a list of requestors, along with configuration details. |
Prerequisite
You must be the cluster administrator, a read-only cluster administrator, or your user account must be assigned the HF_ALL_REQUESTOR_VIEW or the HF_ALL_REQUESTOR_MANAGE permission.
Request
GET https://host_name:port/platform/rest/hostfactory/requestors?parameter
| Parameter | Type | Required/Optional | Description |
|---|---|---|---|
| hfcsrftoken | string | Optional | CSRF token that is obtained with successful login. |
If you use curl, the command might look like the following
example:
curl --header -b /tmp/cookie --cacert /opt/ibm/spectrumcomputing/wlp/usr/shared/resources/security/cacert.pem --tlsv1.2 -X GET https://myprimaryhost.example.com:9443/platform/rest/hostfactory/requestors?hfcsrftoken=915ee7644f431e630dac68b9ab3e40bcResponse
The command returns the hostRequestors.json requestor file at $EGO_ESRVDIR/hostfactory/conf/requestors/.
| Status code | Description |
|---|---|
| 200 | OK |
| 500 | Internal server error. Check the log files and look for hints in the API response body. |