UpdateSftpConnection
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
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
id | ID! | ✓ | — | — |
label | String | — | New name of the connection; null leaves the stored name unchanged | |
host | String | — | New server address; null leaves the stored address unchanged | |
port | Int | — | New server port; null leaves the stored port unchanged | |
user | String | — | User of the connection; null leaves the stored user unchanged | |
authenticationMethod | SftpAuthenticationMethod | — | 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
}
}