All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
V1ReturnToServiceGet | Get /v1/return-to-service | Get all Return to Service Configurations |
V1ReturnToServiceIdDelete | Delete /v1/return-to-service/{id} | Delete a Return To Service Configuration with the supplied id |
V1ReturnToServiceIdGet | Get /v1/return-to-service/{id} | Retrieve a Return to Service Configuration with the supplied id |
V1ReturnToServiceIdPut | Put /v1/return-to-service/{id} | Update a Return to Service Configuration |
V1ReturnToServicePost | Post /v1/return-to-service | Create a Return to Service Configuration |
ReturnToServiceConfigurationSearchResults V1ReturnToServiceGet(ctx).Execute()
Get all Return to Service Configurations
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReturnToServiceAPI.V1ReturnToServiceGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReturnToServiceAPI.V1ReturnToServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1ReturnToServiceGet`: ReturnToServiceConfigurationSearchResults
fmt.Fprintf(os.Stdout, "Response from `ReturnToServiceAPI.V1ReturnToServiceGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV1ReturnToServiceGetRequest struct via the builder pattern
ReturnToServiceConfigurationSearchResults
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ReturnToServiceIdDelete(ctx, id).Execute()
Delete a Return To Service Configuration with the supplied id
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
id := "id_example" // string | Return To Service Configurations identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ReturnToServiceAPI.V1ReturnToServiceIdDelete(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReturnToServiceAPI.V1ReturnToServiceIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Return To Service Configurations identifier |
Other parameters are passed through a pointer to a apiV1ReturnToServiceIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReturnToServiceConfiguration V1ReturnToServiceIdGet(ctx, id).Execute()
Retrieve a Return to Service Configuration with the supplied id
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
id := "id_example" // string | Return to Service Configuration identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReturnToServiceAPI.V1ReturnToServiceIdGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReturnToServiceAPI.V1ReturnToServiceIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1ReturnToServiceIdGet`: ReturnToServiceConfiguration
fmt.Fprintf(os.Stdout, "Response from `ReturnToServiceAPI.V1ReturnToServiceIdGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Return to Service Configuration identifier |
Other parameters are passed through a pointer to a apiV1ReturnToServiceIdGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReturnToServiceConfiguration V1ReturnToServiceIdPut(ctx, id).ReturnToServiceConfigurationRequest(returnToServiceConfigurationRequest).Execute()
Update a Return to Service Configuration
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
id := "id_example" // string | Return to Service Configuration identifier
returnToServiceConfigurationRequest := *openapiclient.NewReturnToServiceConfigurationRequest() // ReturnToServiceConfigurationRequest | Return to Service Configuration to update
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReturnToServiceAPI.V1ReturnToServiceIdPut(context.Background(), id).ReturnToServiceConfigurationRequest(returnToServiceConfigurationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReturnToServiceAPI.V1ReturnToServiceIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1ReturnToServiceIdPut`: ReturnToServiceConfiguration
fmt.Fprintf(os.Stdout, "Response from `ReturnToServiceAPI.V1ReturnToServiceIdPut`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Return to Service Configuration identifier |
Other parameters are passed through a pointer to a apiV1ReturnToServiceIdPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
returnToServiceConfigurationRequest | ReturnToServiceConfigurationRequest | Return to Service Configuration to update |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HrefResponse V1ReturnToServicePost(ctx).ReturnToServiceConfigurationRequest(returnToServiceConfigurationRequest).Execute()
Create a Return to Service Configuration
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
returnToServiceConfigurationRequest := *openapiclient.NewReturnToServiceConfigurationRequest() // ReturnToServiceConfigurationRequest | Return to Service Configuration to create. ids defined in this body will be ignored
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReturnToServiceAPI.V1ReturnToServicePost(context.Background()).ReturnToServiceConfigurationRequest(returnToServiceConfigurationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReturnToServiceAPI.V1ReturnToServicePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1ReturnToServicePost`: HrefResponse
fmt.Fprintf(os.Stdout, "Response from `ReturnToServiceAPI.V1ReturnToServicePost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiV1ReturnToServicePostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
returnToServiceConfigurationRequest | ReturnToServiceConfigurationRequest | Return to Service Configuration to create. ids defined in this body will be ignored |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]