Successful operation
{- "_pageInfo": {
- "numberOnPage": 0,
- "total": 0
}, - "responseList": [
- {
- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
]
}
The Mainframe Dataset connector to create
Successful operation
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
Successful operation
Invalid mainframeDatasetConnectorId supplied
Forbidden access
Mainframe Dataset Connector not found
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
The updated Mainframe Dataset connector
Successful operation
Invalid mainframeDatasetConnectorId supplied
Forbidden access
Mainframe Dataset Connector not found
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
Note that even the names of files in the directory path that are not readable or writable will be returned
Successful operation
Invalid mainframeDatasetConnectorId supplied
Forbidden access
Mainframe Dataset Connector not found
[- "string"
]
WARNING: There is a known bug in the API Client where it is impossible to submit a request with an 'empty' body. As such, only the 'full' body variant of this endpoint can be used through the API Client. To use the 'empty' body variant of this endpoint, please do not use the API Client, but instead use curl or some other method of issuing HTTP requests.
The Mainframe Dataset connector to test. This field is optional and if no password or sshkey is supplied with the connector then the password associated with the fileConnectorId will be used.
Successful operation
Invalid mainframeDatasetConnectorId supplied
Forbidden access
Mainframe Dataset Connector not found
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
{- "response": "string"
}
The Mainframe Dataset connector to test
Success
Bad request
Forbidden access
Not found
{- "connectorName": "mainframe_dataset_connector_via_sftp",
- "environmentId": 123,
- "connectionInfo": {
- "connectionMode": "SFTP",
- "path": "/path/to/files",
- "host": "host123.server.com",
- "loginName": "ftpuser",
- "port": 23456,
- "sshKey": "ssh_host_rsa_key",
- "userDirIsRoot": false
}
}
{- "response": "string"
}