Skip to main content

UpdateSftpConnection

Stable

Updates the given values of a SFTP connection, an omitted value is kept; the last connection test is kept when the address and the user do not change

Signature​

mutation {
UpdateSftpConnection(id: ...)
}

Retourne : SftpConnection!

Arguments​

NomTypeRequisDéfautDescription
idID!✓——
labelString—New name of the connection; null leaves the stored name unchanged
hostString—New server address; null leaves the stored address unchanged
portInt—New server port; null leaves the stored port unchanged
userString—User of the connection; null leaves the stored user unchanged
authenticationMethodSftpAuthenticationMethod—PrivateKey deletes the stored password and requires a stored key pair; Password is refused, SetSftpConnectionPassword sets it; null leaves the method unchanged

Exemple​

mutation {
UpdateSftpConnection(
id: $id
) {
id
label
enabled
host
port
user
publicKey
authenticationMethod {}
lastConnectionTest {}
lastActivityAt
}
}