Skip to main content

projects

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

Overview​

Nameprojects
TypeResource
Idgoogle.oslogin.projects

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
deletedeleteusersId, projectsIdDeletes a POSIX account.
provision_posix_accountexecusersId, projectsIdAdds a POSIX account 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
projectsIdstring
usersIdstring

DELETE examples​

Deletes a POSIX account.

DELETE FROM google.oslogin.projects
WHERE usersId = '{{ usersId }}' --required
AND projectsId = '{{ projectsId }}' --required
;

Lifecycle Methods​

Adds a POSIX account 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.projects.provision_posix_account
@usersId='{{ usersId }}' --required,
@projectsId='{{ projectsId }}' --required
@@json=
'{
"regions": "{{ regions }}"
}'
;