Service host connection test
Test connection to host for the given payload.
HTTP method and URI path
POST /v3/service-hosts/validate-host-connection
Standard headers
- Content-Type: application/json
- Authorization: <Bearer token>
Required authorizations
- sysadm
- mladm
- appuser
Request body
The request content is expected to contain a JSON object. See the following table for the description of the fields.
|
Parameter |
Type |
Required or optional |
Description |
|
hostAlias |
String |
Required |
Unique alias of host. Must be an exact match CDA name for credential retrieval. |
|
hostIp |
String |
Required |
IP address or host name of host. |
|
hostSshPort |
String |
Required |
SSHPort |
|
hostType |
String |
Required |
zcx or zlinux |
|
IparName |
String |
Required |
Name of LPAR where host resides |
|
cpcName |
String |
Required |
Name of CPC where host resides |
|
credentialType |
String |
Required |
Method of user authentication on host (password or passphrase) |
{
"hostAlias": "zcx-Host",
"hostIp": "1.2.3.4",
"hostSshPort": "8022",
"hostType": "zcx",
"lparName": "my-lpar",
"cpcName": "my-cpc",
"credentialType": "password"
}
Expected response
On completion, the service returns an HTTP response, which includes a status code that indicates whether your request is completed. Status code 200 indicates a successful completion. A status code of 4nn or 5nn indicates an error.
HTTP status codes
|
HTTP status code |
Error response |
Description |
|
401 |
ALNC810E |
Unauthorized to make request. |
|
400 |
Various |
Bad request payload format. |