Skip to main content

users

Creates, updates, deletes, gets or lists a users resource.

Overview

Nameusers
TypeResource
Idgoogle.oslogin.users

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
import_ssh_public_keyexecusersIdregions, projectIdAdds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
usersIdstring
projectIdstring
regionsstring

Lifecycle Methods

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.

EXEC google.oslogin.users.import_ssh_public_key 
@usersId='{{ usersId }}' --required,
@regions='{{ regions }}',
@projectId='{{ projectId }}'
@@json=
'{
"expirationTimeUsec": "{{ expirationTimeUsec }}",
"key": "{{ key }}"
}'
;