Skip to content

Latest commit

 

History

History
851 lines (541 loc) · 24.3 KB

GoogleEMMApi.md

File metadata and controls

851 lines (541 loc) · 24.3 KB

\GoogleEMMApi

All URIs are relative to https://console.jumpcloud.com/api/v2

Method HTTP request Description
DevicesGetDevice Get /google-emm/devices/{deviceId} Get device
DevicesGetDeviceAndroidPolicy Get /google-emm/devices/{deviceId}/policy_results Get the policy JSON of a device
DevicesLockDevice Post /google-emm/devices/{deviceId}/lock Lock device
DevicesRelinquishOwnership Post /google-emm/devices/{deviceId}/relinquishownership Relinquish Ownership of COPE device
DevicesResetPassword Post /google-emm/devices/{deviceId}/resetpassword Reset Password of a device
EnterprisesCreateEnterprise Post /google-emm/enterprises Create a Google Enterprise
EnterprisesDeleteEnterprise Delete /google-emm/enterprises/{enterpriseId} Delete a Google Enterprise
EnterprisesGetConnectionStatus Get /google-emm/enterprises/{enterpriseId}/connection-status Test connection with Google
EnterprisesListEnterprises Get /google-emm/enterprises List Google Enterprises
EnterprisesPatchEnterprise Patch /google-emm/enterprises/{enterpriseId} Update a Google Enterprise
SignupURLsCreate Post /google-emm/signup-urls Get a Signup URL to enroll Google enterprise
WebTokensCreateWebToken Post /google-emm/web-tokens Get a web token to render Google Play iFrame

DevicesGetDevice

JumpcloudGoogleEmmDevice DevicesGetDevice(ctx, deviceId).Execute()

Get device

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    deviceId := string(BYTE_ARRAY_DATA_HERE) // string | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.DevicesGetDevice(context.Background(), deviceId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.DevicesGetDevice``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DevicesGetDevice`: JumpcloudGoogleEmmDevice
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.DevicesGetDevice`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
deviceId string

Other Parameters

Other parameters are passed through a pointer to a apiDevicesGetDeviceRequest struct via the builder pattern

Name Type Description Notes

Return type

JumpcloudGoogleEmmDevice

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DevicesGetDeviceAndroidPolicy

JumpcloudGoogleEmmDeviceAndroidPolicy DevicesGetDeviceAndroidPolicy(ctx, deviceId).Execute()

Get the policy JSON of a device

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    deviceId := string(BYTE_ARRAY_DATA_HERE) // string | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.DevicesGetDeviceAndroidPolicy(context.Background(), deviceId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.DevicesGetDeviceAndroidPolicy``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DevicesGetDeviceAndroidPolicy`: JumpcloudGoogleEmmDeviceAndroidPolicy
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.DevicesGetDeviceAndroidPolicy`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
deviceId string

Other Parameters

Other parameters are passed through a pointer to a apiDevicesGetDeviceAndroidPolicyRequest struct via the builder pattern

Name Type Description Notes

Return type

JumpcloudGoogleEmmDeviceAndroidPolicy

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DevicesLockDevice

map[string]interface{} DevicesLockDevice(ctx, deviceId).Body(body).Execute()

Lock device

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    deviceId := string(BYTE_ARRAY_DATA_HERE) // string | 
    body := map[string]interface{}{ ... } // map[string]interface{} | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.DevicesLockDevice(context.Background(), deviceId).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.DevicesLockDevice``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DevicesLockDevice`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.DevicesLockDevice`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
deviceId string

Other Parameters

Other parameters are passed through a pointer to a apiDevicesLockDeviceRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

map[string]interface{}

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DevicesRelinquishOwnership

map[string]interface{} DevicesRelinquishOwnership(ctx, deviceId).Body(body).Execute()

Relinquish Ownership of COPE device

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    deviceId := string(BYTE_ARRAY_DATA_HERE) // string | 
    body := map[string]interface{}{ ... } // map[string]interface{} | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.DevicesRelinquishOwnership(context.Background(), deviceId).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.DevicesRelinquishOwnership``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DevicesRelinquishOwnership`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.DevicesRelinquishOwnership`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
deviceId string

Other Parameters

Other parameters are passed through a pointer to a apiDevicesRelinquishOwnershipRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

map[string]interface{}

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DevicesResetPassword

map[string]interface{} DevicesResetPassword(ctx, deviceId).Body(body).Execute()

Reset Password of a device

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    deviceId := string(BYTE_ARRAY_DATA_HERE) // string | 
    body := *openapiclient.NewDevicesResetPasswordRequest() // DevicesResetPasswordRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.DevicesResetPassword(context.Background(), deviceId).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.DevicesResetPassword``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DevicesResetPassword`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.DevicesResetPassword`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
deviceId string

Other Parameters

Other parameters are passed through a pointer to a apiDevicesResetPasswordRequest struct via the builder pattern

Name Type Description Notes

body | DevicesResetPasswordRequest | |

Return type

map[string]interface{}

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterprisesCreateEnterprise

JumpcloudGoogleEmmEnterprise EnterprisesCreateEnterprise(ctx).Body(body).Execute()

Create a Google Enterprise

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    body := *openapiclient.NewJumpcloudGoogleEmmCreateEnterpriseRequest() // JumpcloudGoogleEmmCreateEnterpriseRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.EnterprisesCreateEnterprise(context.Background()).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.EnterprisesCreateEnterprise``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EnterprisesCreateEnterprise`: JumpcloudGoogleEmmEnterprise
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.EnterprisesCreateEnterprise`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiEnterprisesCreateEnterpriseRequest struct via the builder pattern

Name Type Description Notes
body JumpcloudGoogleEmmCreateEnterpriseRequest

Return type

JumpcloudGoogleEmmEnterprise

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterprisesDeleteEnterprise

map[string]interface{} EnterprisesDeleteEnterprise(ctx, enterpriseId).Execute()

Delete a Google Enterprise

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    enterpriseId := string(BYTE_ARRAY_DATA_HERE) // string | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.EnterprisesDeleteEnterprise(context.Background(), enterpriseId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.EnterprisesDeleteEnterprise``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EnterprisesDeleteEnterprise`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.EnterprisesDeleteEnterprise`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
enterpriseId string

Other Parameters

Other parameters are passed through a pointer to a apiEnterprisesDeleteEnterpriseRequest struct via the builder pattern

Name Type Description Notes

Return type

map[string]interface{}

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterprisesGetConnectionStatus

JumpcloudGoogleEmmConnectionStatus EnterprisesGetConnectionStatus(ctx, enterpriseId).Execute()

Test connection with Google

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    enterpriseId := string(BYTE_ARRAY_DATA_HERE) // string | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.EnterprisesGetConnectionStatus(context.Background(), enterpriseId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.EnterprisesGetConnectionStatus``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EnterprisesGetConnectionStatus`: JumpcloudGoogleEmmConnectionStatus
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.EnterprisesGetConnectionStatus`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
enterpriseId string

Other Parameters

Other parameters are passed through a pointer to a apiEnterprisesGetConnectionStatusRequest struct via the builder pattern

Name Type Description Notes

Return type

JumpcloudGoogleEmmConnectionStatus

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterprisesListEnterprises

JumpcloudGoogleEmmListEnterprisesResponse EnterprisesListEnterprises(ctx).QueryParametersLimit(queryParametersLimit).QueryParametersSkip(queryParametersSkip).QueryParametersFields(queryParametersFields).Execute()

List Google Enterprises

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    queryParametersLimit := "queryParametersLimit_example" // string |  (optional)
    queryParametersSkip := "queryParametersSkip_example" // string |  (optional)
    queryParametersFields := []string{"Inner_example"} // []string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.EnterprisesListEnterprises(context.Background()).QueryParametersLimit(queryParametersLimit).QueryParametersSkip(queryParametersSkip).QueryParametersFields(queryParametersFields).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.EnterprisesListEnterprises``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EnterprisesListEnterprises`: JumpcloudGoogleEmmListEnterprisesResponse
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.EnterprisesListEnterprises`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiEnterprisesListEnterprisesRequest struct via the builder pattern

Name Type Description Notes
queryParametersLimit string
queryParametersSkip string
queryParametersFields []string

Return type

JumpcloudGoogleEmmListEnterprisesResponse

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterprisesPatchEnterprise

JumpcloudGoogleEmmEnterprise EnterprisesPatchEnterprise(ctx, enterpriseId).Body(body).Execute()

Update a Google Enterprise

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    enterpriseId := string(BYTE_ARRAY_DATA_HERE) // string | 
    body := *openapiclient.NewEnterprisesPatchEnterpriseRequest() // EnterprisesPatchEnterpriseRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.EnterprisesPatchEnterprise(context.Background(), enterpriseId).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.EnterprisesPatchEnterprise``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EnterprisesPatchEnterprise`: JumpcloudGoogleEmmEnterprise
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.EnterprisesPatchEnterprise`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
enterpriseId string

Other Parameters

Other parameters are passed through a pointer to a apiEnterprisesPatchEnterpriseRequest struct via the builder pattern

Name Type Description Notes

body | EnterprisesPatchEnterpriseRequest | |

Return type

JumpcloudGoogleEmmEnterprise

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SignupURLsCreate

JumpcloudGoogleEmmSignupURL SignupURLsCreate(ctx).Execute()

Get a Signup URL to enroll Google enterprise

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.SignupURLsCreate(context.Background()).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.SignupURLsCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `SignupURLsCreate`: JumpcloudGoogleEmmSignupURL
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.SignupURLsCreate`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiSignupURLsCreateRequest struct via the builder pattern

Return type

JumpcloudGoogleEmmSignupURL

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

WebTokensCreateWebToken

JumpcloudGoogleEmmWebToken WebTokensCreateWebToken(ctx).Body(body).Execute()

Get a web token to render Google Play iFrame

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/conductorone/baton-jumpcloud/pkg/jcapi2"
)

func main() {
    body := *openapiclient.NewJumpcloudGoogleEmmCreateWebTokenRequest() // JumpcloudGoogleEmmCreateWebTokenRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.GoogleEMMApi.WebTokensCreateWebToken(context.Background()).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GoogleEMMApi.WebTokensCreateWebToken``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `WebTokensCreateWebToken`: JumpcloudGoogleEmmWebToken
    fmt.Fprintf(os.Stdout, "Response from `GoogleEMMApi.WebTokensCreateWebToken`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiWebTokensCreateWebTokenRequest struct via the builder pattern

Name Type Description Notes
body JumpcloudGoogleEmmCreateWebTokenRequest

Return type

JumpcloudGoogleEmmWebToken

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]