All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| AuthorizeIngestionApiKey | Post /security/ingestion/authorize | Check authorization for an Ingestion Api Key |
AuthorizeIngestionApiKey(ctx).AuthorizeIngestionApiKeyRequest(authorizeIngestionApiKeyRequest).WithReceiverKey(withReceiverKey).Execute()
Check authorization for an Ingestion Api Key
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
authorizeIngestionApiKeyRequest := *openapiclient.NewAuthorizeIngestionApiKeyRequest("ApiKey_example") // AuthorizeIngestionApiKeyRequest |
withReceiverKey := true // bool | By default, the endpoint uses only Ingestion API Keys, true value - to verify also Receiver API Key (optional) (default to false)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AuthorizeIngestionApiKeyApi.AuthorizeIngestionApiKey(context.Background()).AuthorizeIngestionApiKeyRequest(authorizeIngestionApiKeyRequest).WithReceiverKey(withReceiverKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthorizeIngestionApiKeyApi.AuthorizeIngestionApiKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiAuthorizeIngestionApiKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| authorizeIngestionApiKeyRequest | AuthorizeIngestionApiKeyRequest | ||
| withReceiverKey | bool | By default, the endpoint uses only Ingestion API Keys, true value - to verify also Receiver API Key | [default to false] |
(empty response body)
ApiToken, ServiceBearer, ServiceToken
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]