showdomains

package
v0.0.0-...-e34edbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 9 Imported by: 0

README

gsuitemdm Cloud Function showdomains

A cloud Function component of the gsuitemdm package that outputs a list of all G Suite domains currently configured in the gsuitemdm system.

The showdomains API is used by the mdmtool command line utility (showdomains command).

HOW-TO Configure showdomains

showdomains uses a .yaml file containing several environment variables the cloud function reads during app startup. These environment variables point the app to the shared master cloud function configuration and API key that are stored as Secret Manager secrets. An example .yaml file for showdomains:

APPNAME: showdomains
SM_APIKEY_ID: projects/12334567890/secrets/gsuitemdm_apikey
SM_CONFIG_ID: projects/12334567890/secrets/gsuitemdm_conf

HOW-TO Deploy showdomains

$ gcloud functions deploy ShowDomains \
  --runtime go111 \
  --trigger-http \
  --env-vars-file env_showdomains.yaml

HOW-TO Use showdomains

API

Example expected JSON to show all configured domains:

{
	"action": "showdomains",
	"key": "0123456789"
}

Example command line using curl and the above JSON to show all configured domains:

FIX
mdmtool

Example command line using mdmtool to show all configured domains:

FIX

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowDomains

func ShowDomains(w http.ResponseWriter, r *http.Request)

Show all configured domains

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL