Global Policy – Google Integration

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

JSON Table

Attribute Data Type Description
policyCreatedAtLocId Not supported.
policyType String Specifies the type of policy. The applicable value over here is GOOGLE_EDU_INTEGRATION_POLICY.
integrationConfigs application/json Wrapper which includes all the authorization data and status of the policy.
configId int Configuration ID. It is always 0.
filename String Name of the client authorization file for Google Edu.
adminEmail String Email address of the admin for which authorization data is provided.
lastSyncTime long Last google edu server sync time.
lastSyncStatus String Last google edu server sync status.
lastSyncErrorMessage int Error message received during the last sync operation.

Copy Sample JSON
Sample JSON
{
	"policyCreatedAtLocId": null,
	"policyType": "GOOGLE_EDU_INTEGRATION_POLICY",
	"integrationConfigs": [{
		"configId": 0,
		"filename": "DipakT-e2367ed0b6e5.json",
		"adminEmail": "[email protected]",
		"lastSyncTime": 1552891809991,
		"lastSyncStatus": "ERROR",
		"lastSyncErrorMessage": "6"
	}]
}
API Calls

/V5/globalpolicies/googleintegration/{isDefault}

/V5/globalpolicies/googleintegration

Get Google Integration Policy Details

Description Retrieves google integration policy details.
Who Can Execute? Superuser, Administrator, Operator, and Viewer.
Syntax
GET <Base_URL>/globalpolicies/googleintegration/{isDefault}?locationid=0&nodeid=0
  • isDefault

    A true or false value indicating whether to fetch default policy or customized policy. It takes a boolean value.

  • locationid

    It is an integer value specifying the location for which the list of groups is to be fetched. To retrieve the value for location id refer Locationcall.

  • nodeid

    It is an integer value specifying the node in a server cluster setup.

Sample code
GET https://training.mojonetworks.com/new/webservice/V3/globalpolicies/googleintegration
/false?locationid=0&nodeid=0
Request Body This API call does not require any request body parameters.
Response Body If the API call is successful, the HTTP response status is 200.
The response body contains the details of the google integration policy.
The response is in the application/json format.

Save Google Integration Policy Details

Description Saves the google integration policy details.
Who Can Execute? Superuser, Administrator, and Operator.
Syntax
POST <Base_URL>/globalpolicies/googleintegration?locationid=0&nodeid=0
  • locationid

    It is an integer value specifying the location for which the list of groups is to be fetched. To retrieve the value for location id refer Location call.

  • nodeid

    It is an integer value specifying the node in a server cluster setup.

Sample code
POST https://training.mojonetworks.com/new/webservice/V3/globalpolicies/googleintegration?locationid=0&nodeid=0
Request Body This API call requires details of the google integration policy to be saved. The parameters
are passed in the application/json format.A sample request body is as follows:

{
	"policyType": "GOOGLE_EDU_INTEGRATION_POLICY",
	"integrationConfigs": [{
		"configId": 0,
		"filename": "DipakT-e2367ed0b6e5.json",
		"clientSecretKey": "0e14288a-7fa4-411c-a0ee-bef8dd8b44f6",
		"adminEmail": "[email protected]"
	}]
}
Response Body If the API call is successful, the HTTP response status is 204.
The response body does not contain any other information.