All URIs are relative to https://api.opal.dev/v1
Method | HTTP request | Description |
---|---|---|
GetApp | Get /apps/{app_id} | |
GetApps | Get /apps |
App GetApp(ctx, appId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/opalsecurity/opal-go"
)
func main() {
appId := "32acc112-21ff-4669-91c2-21e27683eaa1" // string | The ID of the app.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AppsApi.GetApp(context.Background(), appId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppsApi.GetApp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApp`: App
fmt.Fprintf(os.Stdout, "Response from `AppsApi.GetApp`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
appId | string | The ID of the app. |
Other parameters are passed through a pointer to a apiGetAppRequest 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]
AppsList GetApps(ctx).AppTypeFilter(appTypeFilter).OwnerFilter(ownerFilter).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/opalsecurity/opal-go"
)
func main() {
appTypeFilter := []openapiclient.AppTypeEnum{openapiclient.AppTypeEnum("ACTIVE_DIRECTORY")} // []AppTypeEnum | A list of app types to filter by. (optional)
ownerFilter := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | An owner ID to filter by. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AppsApi.GetApps(context.Background()).AppTypeFilter(appTypeFilter).OwnerFilter(ownerFilter).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppsApi.GetApps``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApps`: AppsList
fmt.Fprintf(os.Stdout, "Response from `AppsApi.GetApps`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetAppsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
appTypeFilter | []AppTypeEnum | A list of app types to filter by. | |
ownerFilter | string | An owner ID to filter by. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]