Name: nodejs-os-login
Owner: Google APIs
Description: Google Cloud OS Login API: Manages OS login configuration for Directory API users.
Created: 2017-12-20 22:22:22.0
Updated: 2018-05-22 18:33:04.0
Pushed: 2018-05-22 18:33:02.0
Homepage: https://cloud.google.com/compute/docs/oslogin/rest/
Size: 778
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Node.js idiomatic client for Cloud OS Login API.
The Google Cloud OS Login API manages OS login configuration for Google account users.
Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.
Table of contents:
Select or create a Cloud Platform project.
Enable billing for your project.
Enable the Google Cloud OS Login API API.
Set up authentication with a service account so you can access the API from your local workstation.
npm install --save @google-cloud/os-login
rocess.env.GCLOUD_PROJECT ||
rocess.env.GOOGLE_APPLICATION_CREDENTIALS
row new Error(
'Usage: GCLOUD_PROJECT=<project_id> GOOGLE_APPLICATION_CREDENTIALS=<path to key json file> node #{$0}'
t oslogin = require('@google-cloud/os-login');
t projectId = process.env.GCLOUD_PROJECT;
t client = new oslogin.OsLoginServiceClient({
ojectId: projectId,
t request = {
me: 'users/1234abcd',
nt
etLoginProfile(request)
hen(responses => {
const loginProfile = responses[0];
console.log(loginProfile);
atch(err => {
console.error('ERROR:', err);
;
The Cloud OS Login API Node.js Client API Reference documentation also contains samples.
This library follows Semantic Versioning.
This library is considered to be in alpha. This means it is still a work-in-progress and under active development. Any release is subject to backwards-incompatible changes at any time.
More Information: Google Cloud Platform Launch Stages
Contributions welcome! See the Contributing Guide.
Apache Version 2.0
See LICENSE