Skip to content

Latest commit

 

History

History
2560 lines (1636 loc) · 83.7 KB

MobileDevicePrestagesApi.md

File metadata and controls

2560 lines (1636 loc) · 83.7 KB

\MobileDevicePrestagesApi

All URIs are relative to /api

Method HTTP request Description
V1MobileDevicePrestagesGet Get /v1/mobile-device-prestages Search for sorted and paged Mobile Device Prestages
V1MobileDevicePrestagesIdAttachmentsDelete Delete /v1/mobile-device-prestages/{id}/attachments Remove an attachment for a Mobile Device Prestage
V1MobileDevicePrestagesIdAttachmentsGet Get /v1/mobile-device-prestages/{id}/attachments Get attachments for a Mobile Device Prestage
V1MobileDevicePrestagesIdAttachmentsPost Post /v1/mobile-device-prestages/{id}/attachments Add an attachment to a Mobile Device Prestage
V1MobileDevicePrestagesIdDelete Delete /v1/mobile-device-prestages/{id} Delete a Mobile Device Prestage with the supplied id
V1MobileDevicePrestagesIdGet Get /v1/mobile-device-prestages/{id} Retrieve a Mobile Device Prestage with the supplied id
V1MobileDevicePrestagesIdHistoryGet Get /v1/mobile-device-prestages/{id}/history Get sorted and paged Mobile Device Prestage history objects
V1MobileDevicePrestagesIdHistoryPost Post /v1/mobile-device-prestages/{id}/history Add Mobile Device Prestage history object notes
V1MobileDevicePrestagesIdPut Put /v1/mobile-device-prestages/{id} Update a Mobile Device Prestage
V1MobileDevicePrestagesIdScopeDelete Delete /v1/mobile-device-prestages/{id}/scope Remove Device Scope for a specific Mobile Device Prestage
V1MobileDevicePrestagesIdScopeGet Get /v1/mobile-device-prestages/{id}/scope Get Device Scope for a specific Mobile Device Prestage
V1MobileDevicePrestagesIdScopePost Post /v1/mobile-device-prestages/{id}/scope Add Device Scope for a specific Mobile Device Prestage
V1MobileDevicePrestagesIdScopePut Put /v1/mobile-device-prestages/{id}/scope Replace Device Scope for a specific Mobile Device Prestage
V1MobileDevicePrestagesPost Post /v1/mobile-device-prestages Create a Mobile Device Prestage
V1MobileDevicePrestagesScopeGet Get /v1/mobile-device-prestages/scope Get all Device Scope for all Mobile Device Prestages
V1MobileDevicePrestagesSyncGet Get /v1/mobile-device-prestages/sync Get all Prestage sync States for all prestages
V1MobileDevicePrestagesSyncIdGet Get /v1/mobile-device-prestages/sync/{id} Get all prestage sync states for a single prestage
V1MobileDevicePrestagesSyncIdLatestGet Get /v1/mobile-device-prestages/sync/{id}/latest Get the latest Sync State for a single Prestage
V2MobileDevicePrestagesGet Get /v2/mobile-device-prestages Get sorted and paged Mobile Device Prestages
V2MobileDevicePrestagesIdAttachmentsDeleteMultiplePost Post /v2/mobile-device-prestages/{id}/attachments/delete-multiple Remove an attachment for a Mobile Device Prestage
V2MobileDevicePrestagesIdAttachmentsGet Get /v2/mobile-device-prestages/{id}/attachments Get attachments for a Mobile Device Prestage
V2MobileDevicePrestagesIdAttachmentsPost Post /v2/mobile-device-prestages/{id}/attachments Add an attachment to a Mobile Device Prestage
V2MobileDevicePrestagesIdDelete Delete /v2/mobile-device-prestages/{id} Delete a Mobile Device Prestage with the supplied id
V2MobileDevicePrestagesIdGet Get /v2/mobile-device-prestages/{id} Retrieve a Mobile Device Prestage with the supplied id
V2MobileDevicePrestagesIdHistoryGet Get /v2/mobile-device-prestages/{id}/history Get sorted and paged Mobile Device Prestage history objects
V2MobileDevicePrestagesIdHistoryPost Post /v2/mobile-device-prestages/{id}/history Add Mobile Device Prestage history object notes
V2MobileDevicePrestagesIdPut Put /v2/mobile-device-prestages/{id} Update a Mobile Device Prestage
V2MobileDevicePrestagesIdScopeDeleteMultiplePost Post /v2/mobile-device-prestages/{id}/scope/delete-multiple Remove Device Scope for a specific Mobile Device Prestage
V2MobileDevicePrestagesIdScopeGet Get /v2/mobile-device-prestages/{id}/scope Get Device Scope for a specific Mobile Device Prestage
V2MobileDevicePrestagesIdScopePost Post /v2/mobile-device-prestages/{id}/scope Add Device Scope for a specific Mobile Device Prestage
V2MobileDevicePrestagesIdScopePut Put /v2/mobile-device-prestages/{id}/scope Replace Device Scope for a specific Mobile Device Prestage
V2MobileDevicePrestagesIdSyncsGet Get /v2/mobile-device-prestages/{id}/syncs Get all prestage sync states for a single prestage
V2MobileDevicePrestagesIdSyncsLatestGet Get /v2/mobile-device-prestages/{id}/syncs/latest Get the latest Sync State for a single Prestage
V2MobileDevicePrestagesPost Post /v2/mobile-device-prestages Create a Mobile Device Prestage
V2MobileDevicePrestagesScopeGet Get /v2/mobile-device-prestages/scope Get all Device Scope for all Mobile Device Prestages
V2MobileDevicePrestagesSyncsGet Get /v2/mobile-device-prestages/syncs Get all Prestage sync States for all prestages

V1MobileDevicePrestagesGet

MobileDevicePrestageSearchResults V1MobileDevicePrestagesGet(ctx).Page(page).Size(size).Pagesize(pagesize).PageSize(pageSize).Sort(sort).Execute()

Search for sorted and paged Mobile Device Prestages

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    page := int32(56) // int32 |  (optional) (default to 0)
    size := int32(56) // int32 |  (optional) (default to 100)
    pagesize := int32(56) // int32 |  (optional) (default to 100)
    pageSize := int32(56) // int32 |  (optional) (default to 100)
    sort := "sort_example" // string | Sorting criteria in the format: property:asc/desc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=date:desc,name:asc  (optional) (default to "id:asc")

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V1MobileDevicePrestagesGet(context.Background()).Page(page).Size(size).Pagesize(pagesize).PageSize(pageSize).Sort(sort).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V1MobileDevicePrestagesGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `V1MobileDevicePrestagesGet`: MobileDevicePrestageSearchResults
    fmt.Fprintf(os.Stdout, "Response from `MobileDevicePrestagesApi.V1MobileDevicePrestagesGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
page int32 [default to 0]
size int32 [default to 100]
pagesize int32 [default to 100]
pageSize int32 [default to 100]
sort string Sorting criteria in the format: property:asc/desc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=date:desc,name:asc [default to "id:asc"]

Return type

MobileDevicePrestageSearchResults

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdAttachmentsDelete

V1MobileDevicePrestagesIdAttachmentsDelete(ctx, id).FileAttachmentDelete(fileAttachmentDelete).Execute()

Remove an attachment for a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    fileAttachmentDelete := *openapiclient.NewFileAttachmentDelete() // FileAttachmentDelete | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V1MobileDevicePrestagesIdAttachmentsDelete(context.Background(), id).FileAttachmentDelete(fileAttachmentDelete).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V1MobileDevicePrestagesIdAttachmentsDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

fileAttachmentDelete | FileAttachmentDelete | |

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdAttachmentsGet

[]FileAttachment V1MobileDevicePrestagesIdAttachmentsGet(ctx, id).Execute()

Get attachments for a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

[]FileAttachment

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdAttachmentsPost

PrestageFileAttachment V1MobileDevicePrestagesIdAttachmentsPost(ctx, id).File(file).Execute()

Add an attachment to a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Identifier of the Mobile Device Prestage the attachment should be assigned to
    file := os.NewFile(1234, "some_file") // *os.File | The file to upload

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Identifier of the Mobile Device Prestage the attachment should be assigned to

Other Parameters

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

Name Type Description Notes

file | *os.File | The file to upload |

Return type

PrestageFileAttachment

Authorization

Bearer

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

V1MobileDevicePrestagesIdDelete

V1MobileDevicePrestagesIdDelete(ctx, id).Execute()

Delete a Mobile Device Prestage with the supplied id

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V1MobileDevicePrestagesIdDelete(context.Background(), id).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V1MobileDevicePrestagesIdDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

V1MobileDevicePrestagesIdGet

GetMobileDevicePrestage V1MobileDevicePrestagesIdGet(ctx, id).Execute()

Retrieve a Mobile Device Prestage with the supplied id

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

GetMobileDevicePrestage

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdHistoryGet

HistorySearchResults V1MobileDevicePrestagesIdHistoryGet(ctx, id).Page(page).Size(size).Pagesize(pagesize).PageSize(pageSize).Sort(sort).Execute()

Get sorted and paged Mobile Device Prestage history objects

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    page := int32(56) // int32 |  (optional) (default to 0)
    size := int32(56) // int32 |  (optional) (default to 100)
    pagesize := int32(56) // int32 |  (optional) (default to 100)
    pageSize := int32(56) // int32 |  (optional) (default to 100)
    sort := []string{"Inner_example"} // []string | Sorting criteria in the format: property,asc/desc. Default sort order is descending. Multiple sort criteria are supported and must be entered on separate lines in Swagger UI. In the URI the 'sort' query param is duplicated for each sort criterion, e.g., ...&sort=name%2Casc&sort=date%2Cdesc (optional) (default to ["date:desc"])

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V1MobileDevicePrestagesIdHistoryGet(context.Background(), id).Page(page).Size(size).Pagesize(pagesize).PageSize(pageSize).Sort(sort).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V1MobileDevicePrestagesIdHistoryGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `V1MobileDevicePrestagesIdHistoryGet`: HistorySearchResults
    fmt.Fprintf(os.Stdout, "Response from `MobileDevicePrestagesApi.V1MobileDevicePrestagesIdHistoryGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

page | int32 | | [default to 0] size | int32 | | [default to 100] pagesize | int32 | | [default to 100] pageSize | int32 | | [default to 100] sort | []string | Sorting criteria in the format: property,asc/desc. Default sort order is descending. Multiple sort criteria are supported and must be entered on separate lines in Swagger UI. In the URI the 'sort' query param is duplicated for each sort criterion, e.g., ...&sort=name%2Casc&sort=date%2Cdesc | [default to ["date:desc"]]

Return type

HistorySearchResults

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdHistoryPost

ObjectHistory V1MobileDevicePrestagesIdHistoryPost(ctx, id).ObjectHistoryNote(objectHistoryNote).Execute()

Add Mobile Device Prestage history object notes

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    objectHistoryNote := *openapiclient.NewObjectHistoryNote("A generic note can sometimes be useful, but generally not.") // ObjectHistoryNote | History notes to create

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

objectHistoryNote | ObjectHistoryNote | History notes to create |

Return type

ObjectHistory

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdPut

GetMobileDevicePrestage V1MobileDevicePrestagesIdPut(ctx, id).PutMobileDevicePrestage(putMobileDevicePrestage).Execute()

Update a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    putMobileDevicePrestage := *openapiclient.NewPutMobileDevicePrestage("Example Mobile Prestage Name", false, true, "5555555555", "example@example.com", "Oxbow", false, int32(-1), true, true, true, "LDAP authentication prompt", true, true, int32(5), *openapiclient.NewLocationInformation("name", "realName", "123-456-7890", "test@jamf.com", "room", "postion", int32(1), int32(1), int32(0), int32(1)), *openapiclient.NewPrestagePurchasingInformation(int32(0), true, true, "abcd", "53-1", "Example Vendor", "$500", int32(5), "admin", "true", "2019-01-01", "2019-01-01", "2019-01-01", int32(1)), true, true, true, int32(10), true, true) // PutMobileDevicePrestage | Mobile Device Prestage to update

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

putMobileDevicePrestage | PutMobileDevicePrestage | Mobile Device Prestage to update |

Return type

GetMobileDevicePrestage

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdScopeDelete

PrestageScopeResponse V1MobileDevicePrestagesIdScopeDelete(ctx, id).PrestageScopeUpdate(prestageScopeUpdate).Execute()

Remove Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    prestageScopeUpdate := *openapiclient.NewPrestageScopeUpdate([]string{"SerialNumbers_example"}, int32(1)) // PrestageScopeUpdate | Serial Numbers to remove from scope

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

prestageScopeUpdate | PrestageScopeUpdate | Serial Numbers to remove from scope |

Return type

PrestageScopeResponse

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdScopeGet

PrestageScopeResponse V1MobileDevicePrestagesIdScopeGet(ctx, id).Execute()

Get Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

PrestageScopeResponse

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdScopePost

PrestageScopeResponse V1MobileDevicePrestagesIdScopePost(ctx, id).PrestageScopeUpdate(prestageScopeUpdate).Execute()

Add Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    prestageScopeUpdate := *openapiclient.NewPrestageScopeUpdate([]string{"SerialNumbers_example"}, int32(1)) // PrestageScopeUpdate | Serial Numbers to scope

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

prestageScopeUpdate | PrestageScopeUpdate | Serial Numbers to scope |

Return type

PrestageScopeResponse

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesIdScopePut

PrestageScopeResponse V1MobileDevicePrestagesIdScopePut(ctx, id).PrestageScopeUpdate(prestageScopeUpdate).Execute()

Replace Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier
    prestageScopeUpdate := *openapiclient.NewPrestageScopeUpdate([]string{"SerialNumbers_example"}, int32(1)) // PrestageScopeUpdate | Serial Numbers to scope

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

prestageScopeUpdate | PrestageScopeUpdate | Serial Numbers to scope |

Return type

PrestageScopeResponse

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesPost

GetMobileDevicePrestage V1MobileDevicePrestagesPost(ctx).MobileDevicePrestage(mobileDevicePrestage).Execute()

Create a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    mobileDevicePrestage := *openapiclient.NewMobileDevicePrestage("Example Mobile Prestage Name", false, true, "5555555555", "example@example.com", "Oxbow", false, int32(-1), true, true, true, "LDAP authentication prompt", true, true, int32(5), *openapiclient.NewLocationInformation("name", "realName", "123-456-7890", "test@jamf.com", "room", "postion", int32(1), int32(1), int32(0), int32(1)), *openapiclient.NewPrestagePurchasingInformation(int32(0), true, true, "abcd", "53-1", "Example Vendor", "$500", int32(5), "admin", "true", "2019-01-01", "2019-01-01", "2019-01-01", int32(1)), true, true, true, int32(10), true, true) // MobileDevicePrestage | Mobile Device Prestage to create. ids defined in this body will be ignored

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

Path Parameters

Other Parameters

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

Name Type Description Notes
mobileDevicePrestage MobileDevicePrestage Mobile Device Prestage to create. ids defined in this body will be ignored

Return type

GetMobileDevicePrestage

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesScopeGet

PrestageScope V1MobileDevicePrestagesScopeGet(ctx).Execute()

Get all Device Scope for all Mobile Device Prestages

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

PrestageScope

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesSyncGet

[]PrestageSyncStatus V1MobileDevicePrestagesSyncGet(ctx).Execute()

Get all Prestage sync States for all prestages

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]PrestageSyncStatus

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesSyncIdGet

[]PrestageSyncStatus V1MobileDevicePrestagesSyncIdGet(ctx, id).Execute()

Get all prestage sync states for a single prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

[]PrestageSyncStatus

Authorization

Bearer

HTTP request headers

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

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

V1MobileDevicePrestagesSyncIdLatestGet

PrestageSyncStatus V1MobileDevicePrestagesSyncIdLatestGet(ctx, id).Execute()

Get the latest Sync State for a single Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := int32(56) // int32 | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

PrestageSyncStatus

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesGet

MobileDevicePrestageSearchResultsV2 V2MobileDevicePrestagesGet(ctx).Page(page).PageSize(pageSize).Sort(sort).Execute()

Get sorted and paged Mobile Device Prestages

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    page := int32(56) // int32 |  (optional) (default to 0)
    pageSize := int32(56) // int32 |  (optional) (default to 100)
    sort := []string{"Inner_example"} // []string | Sorting criteria in the format: property:asc/desc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=date:desc,name:asc  (optional) (default to ["id:desc"])

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V2MobileDevicePrestagesGet(context.Background()).Page(page).PageSize(pageSize).Sort(sort).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V2MobileDevicePrestagesGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `V2MobileDevicePrestagesGet`: MobileDevicePrestageSearchResultsV2
    fmt.Fprintf(os.Stdout, "Response from `MobileDevicePrestagesApi.V2MobileDevicePrestagesGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
page int32 [default to 0]
pageSize int32 [default to 100]
sort []string Sorting criteria in the format: property:asc/desc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=date:desc,name:asc [default to ["id:desc"]]

Return type

MobileDevicePrestageSearchResultsV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdAttachmentsDeleteMultiplePost

V2MobileDevicePrestagesIdAttachmentsDeleteMultiplePost(ctx, id).Ids(ids).Execute()

Remove an attachment for a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    ids := *openapiclient.NewIds() // Ids | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V2MobileDevicePrestagesIdAttachmentsDeleteMultiplePost(context.Background(), id).Ids(ids).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V2MobileDevicePrestagesIdAttachmentsDeleteMultiplePost``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

ids | Ids | |

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdAttachmentsGet

[]FileAttachmentV2 V2MobileDevicePrestagesIdAttachmentsGet(ctx, id).Execute()

Get attachments for a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

[]FileAttachmentV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdAttachmentsPost

PrestageFileAttachmentV2 V2MobileDevicePrestagesIdAttachmentsPost(ctx, id).File(file).Execute()

Add an attachment to a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Identifier of the Mobile Device Prestage the attachment should be assigned to
    file := os.NewFile(1234, "some_file") // *os.File | The file to upload

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Identifier of the Mobile Device Prestage the attachment should be assigned to

Other Parameters

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

Name Type Description Notes

file | *os.File | The file to upload |

Return type

PrestageFileAttachmentV2

Authorization

Bearer

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

V2MobileDevicePrestagesIdDelete

V2MobileDevicePrestagesIdDelete(ctx, id).Execute()

Delete a Mobile Device Prestage with the supplied id

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V2MobileDevicePrestagesIdDelete(context.Background(), id).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V2MobileDevicePrestagesIdDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

V2MobileDevicePrestagesIdGet

GetMobileDevicePrestageV2 V2MobileDevicePrestagesIdGet(ctx, id).Execute()

Retrieve a Mobile Device Prestage with the supplied id

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

GetMobileDevicePrestageV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdHistoryGet

HistorySearchResults V2MobileDevicePrestagesIdHistoryGet(ctx, id).Page(page).PageSize(pageSize).Sort(sort).Execute()

Get sorted and paged Mobile Device Prestage history objects

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    page := int32(56) // int32 |  (optional) (default to 0)
    pageSize := int32(56) // int32 |  (optional) (default to 100)
    sort := []string{"Inner_example"} // []string | Sorting criteria in the format: property,asc/desc. Default sort order is descending. Multiple sort criteria are supported and must be entered on separate lines in Swagger UI. In the URI the 'sort' query param is duplicated for each sort criterion, e.g., ...&sort=name%2Casc&sort=date%2Cdesc (optional) (default to ["date:desc"])

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MobileDevicePrestagesApi.V2MobileDevicePrestagesIdHistoryGet(context.Background(), id).Page(page).PageSize(pageSize).Sort(sort).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MobileDevicePrestagesApi.V2MobileDevicePrestagesIdHistoryGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `V2MobileDevicePrestagesIdHistoryGet`: HistorySearchResults
    fmt.Fprintf(os.Stdout, "Response from `MobileDevicePrestagesApi.V2MobileDevicePrestagesIdHistoryGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

page | int32 | | [default to 0] pageSize | int32 | | [default to 100] sort | []string | Sorting criteria in the format: property,asc/desc. Default sort order is descending. Multiple sort criteria are supported and must be entered on separate lines in Swagger UI. In the URI the 'sort' query param is duplicated for each sort criterion, e.g., ...&sort=name%2Casc&sort=date%2Cdesc | [default to ["date:desc"]]

Return type

HistorySearchResults

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdHistoryPost

HrefResponse V2MobileDevicePrestagesIdHistoryPost(ctx, id).ObjectHistoryNote(objectHistoryNote).Execute()

Add Mobile Device Prestage history object notes

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    objectHistoryNote := *openapiclient.NewObjectHistoryNote("A generic note can sometimes be useful, but generally not.") // ObjectHistoryNote | History notes to create

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

objectHistoryNote | ObjectHistoryNote | History notes to create |

Return type

HrefResponse

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdPut

GetMobileDevicePrestageV2 V2MobileDevicePrestagesIdPut(ctx, id).PutMobileDevicePrestageV2(putMobileDevicePrestageV2).Execute()

Update a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    putMobileDevicePrestageV2 := *openapiclient.NewPutMobileDevicePrestageV2("Example Mobile Prestage Name", false, true, "5555555555", "example@example.com", "Oxbow", false, "-1", true, true, true, "LDAP authentication prompt", true, true, "5", *openapiclient.NewLocationInformationV2("name", "realName", "123-456-7890", "test@jamf.com", "room", "postion", "1", "1", "-1", int32(1)), *openapiclient.NewPrestagePurchasingInformationV2("-1", true, true, "abcd", "53-1", "Example Vendor", "$500", int32(5), "admin", "true", "2019-01-01", "2019-01-01", "2019-01-01", int32(1)), true, true, true, true, int32(10), true, true, "America/Chicago", int32(4096), true) // PutMobileDevicePrestageV2 | Mobile Device Prestage to update

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

putMobileDevicePrestageV2 | PutMobileDevicePrestageV2 | Mobile Device Prestage to update |

Return type

GetMobileDevicePrestageV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdScopeDeleteMultiplePost

PrestageScopeResponseV2 V2MobileDevicePrestagesIdScopeDeleteMultiplePost(ctx, id).PrestageScopeUpdate(prestageScopeUpdate).Execute()

Remove Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    prestageScopeUpdate := *openapiclient.NewPrestageScopeUpdate([]string{"SerialNumbers_example"}, int32(1)) // PrestageScopeUpdate | Serial Numbers to remove from scope

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

prestageScopeUpdate | PrestageScopeUpdate | Serial Numbers to remove from scope |

Return type

PrestageScopeResponseV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdScopeGet

PrestageScopeResponseV2 V2MobileDevicePrestagesIdScopeGet(ctx, id).Execute()

Get Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

PrestageScopeResponseV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdScopePost

PrestageScopeResponseV2 V2MobileDevicePrestagesIdScopePost(ctx, id).PrestageScopeUpdate(prestageScopeUpdate).Execute()

Add Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    prestageScopeUpdate := *openapiclient.NewPrestageScopeUpdate([]string{"SerialNumbers_example"}, int32(1)) // PrestageScopeUpdate | Serial Numbers to scope

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

prestageScopeUpdate | PrestageScopeUpdate | Serial Numbers to scope |

Return type

PrestageScopeResponseV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdScopePut

PrestageScopeResponseV2 V2MobileDevicePrestagesIdScopePut(ctx, id).PrestageScopeUpdate(prestageScopeUpdate).Execute()

Replace Device Scope for a specific Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier
    prestageScopeUpdate := *openapiclient.NewPrestageScopeUpdate([]string{"SerialNumbers_example"}, int32(1)) // PrestageScopeUpdate | Serial Numbers to scope

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

prestageScopeUpdate | PrestageScopeUpdate | Serial Numbers to scope |

Return type

PrestageScopeResponseV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdSyncsGet

[]PrestageSyncStatusV2 V2MobileDevicePrestagesIdSyncsGet(ctx, id).Execute()

Get all prestage sync states for a single prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

[]PrestageSyncStatusV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesIdSyncsLatestGet

PrestageSyncStatusV2 V2MobileDevicePrestagesIdSyncsLatestGet(ctx, id).Execute()

Get the latest Sync State for a single Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "id_example" // string | Mobile Device Prestage identifier

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Mobile Device Prestage identifier

Other Parameters

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

Name Type Description Notes

Return type

PrestageSyncStatusV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesPost

HrefResponse V2MobileDevicePrestagesPost(ctx).MobileDevicePrestageV2(mobileDevicePrestageV2).Execute()

Create a Mobile Device Prestage

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    mobileDevicePrestageV2 := *openapiclient.NewMobileDevicePrestageV2("Example Mobile Prestage Name", false, true, "5555555555", "example@example.com", "Oxbow", false, "-1", true, true, true, "LDAP authentication prompt", true, true, "5", *openapiclient.NewLocationInformationV2("name", "realName", "123-456-7890", "test@jamf.com", "room", "postion", "1", "1", "-1", int32(1)), *openapiclient.NewPrestagePurchasingInformationV2("-1", true, true, "abcd", "53-1", "Example Vendor", "$500", int32(5), "admin", "true", "2019-01-01", "2019-01-01", "2019-01-01", int32(1)), true, true, true, true, int32(10), true, true, "America/Chicago", int32(4096), true) // MobileDevicePrestageV2 | Mobile Device Prestage to create. ids defined in this body will be ignored

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

Path Parameters

Other Parameters

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

Name Type Description Notes
mobileDevicePrestageV2 MobileDevicePrestageV2 Mobile Device Prestage to create. ids defined in this body will be ignored

Return type

HrefResponse

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesScopeGet

PrestageScopeV2 V2MobileDevicePrestagesScopeGet(ctx).Execute()

Get all Device Scope for all Mobile Device Prestages

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

PrestageScopeV2

Authorization

Bearer

HTTP request headers

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

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

V2MobileDevicePrestagesSyncsGet

[]PrestageSyncStatusV2 V2MobileDevicePrestagesSyncsGet(ctx).Execute()

Get all Prestage sync States for all prestages

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]PrestageSyncStatusV2

Authorization

Bearer

HTTP request headers

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

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