2022-09-04 10:45:03 +00:00
|
|
|
fragment userFields on User{
|
|
|
|
username
|
|
|
|
userType
|
|
|
|
sshKeys
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
query AllUsers {
|
|
|
|
users {
|
|
|
|
allUsers {
|
2022-09-04 10:45:03 +00:00
|
|
|
...userFields
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
2022-09-05 04:01:36 +00:00
|
|
|
rootUser: getUser(username: "root") {
|
|
|
|
...userFields
|
|
|
|
}
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query GetUser($username: String!) {
|
|
|
|
users {
|
|
|
|
getUser(username: $username) {
|
2022-09-04 10:45:03 +00:00
|
|
|
...userFields
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-04 10:45:03 +00:00
|
|
|
mutation CreateUser($user: UserMutationInput!) {
|
|
|
|
createUser(user: $user) {
|
2022-08-24 05:35:49 +00:00
|
|
|
...basicMutationReturnFields
|
|
|
|
user {
|
2022-09-04 10:45:03 +00:00
|
|
|
...userFields
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation DeleteUser($username: String!) {
|
|
|
|
deleteUser(username: $username) {
|
|
|
|
...basicMutationReturnFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation UpdateUser($user: UserMutationInput!) {
|
|
|
|
updateUser(user: $user) {
|
|
|
|
...basicMutationReturnFields
|
|
|
|
user {
|
2022-09-04 10:45:03 +00:00
|
|
|
...userFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation AddSshKey($sshInput: SshMutationInput!) {
|
|
|
|
addSshKey(sshInput: $sshInput) {
|
|
|
|
...basicMutationReturnFields
|
|
|
|
user {
|
|
|
|
...userFields
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-04 10:45:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mutation RemoveSshKey($sshInput: SshMutationInput!) {
|
|
|
|
removeSshKey(sshInput: $sshInput) {
|
|
|
|
...basicMutationReturnFields
|
|
|
|
user {
|
|
|
|
...userFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|