All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| DeleteIngestionApiKey | Delete /security/ingestion/api_keys/{ingestionApiKeyId} | Delete Ingestion Api Key |
| GenerateIngestionApiKey | Post /security/ingestion/api_keys | Generate a new Ingestion Api Key |
| GetIngestionApiKeys | Get /security/ingestion/api_keys | List Ingestion Api Keys |
DeleteIngestionApiKey(ctx, ingestionApiKeyId).Execute()
Delete Ingestion Api Key
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ingestionApiKeyId := int64(789) // int64 | The identifier of a key
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IngestionApiKeyApi.DeleteIngestionApiKey(context.Background(), ingestionApiKeyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IngestionApiKeyApi.DeleteIngestionApiKey``: %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. | |
| ingestionApiKeyId | int64 | The identifier of a key |
Other parameters are passed through a pointer to a apiDeleteIngestionApiKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeneratedIngestionApiKeyResponse GenerateIngestionApiKey(ctx).GenerateIngestionApiKeyRequest(generateIngestionApiKeyRequest).Execute()
Generate a new Ingestion Api Key
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
generateIngestionApiKeyRequest := *openapiclient.NewGenerateIngestionApiKeyRequest("Name_example") // GenerateIngestionApiKeyRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IngestionApiKeyApi.GenerateIngestionApiKey(context.Background()).GenerateIngestionApiKeyRequest(generateIngestionApiKeyRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IngestionApiKeyApi.GenerateIngestionApiKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GenerateIngestionApiKey`: GeneratedIngestionApiKeyResponse
fmt.Fprintf(os.Stdout, "Response from `IngestionApiKeyApi.GenerateIngestionApiKey`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGenerateIngestionApiKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| generateIngestionApiKeyRequest | GenerateIngestionApiKeyRequest |
GeneratedIngestionApiKeyResponse
ApiToken, ServiceBearer, ServiceToken
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]IngestionApiKey GetIngestionApiKeys(ctx).Execute()
List Ingestion Api Keys
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IngestionApiKeyApi.GetIngestionApiKeys(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IngestionApiKeyApi.GetIngestionApiKeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetIngestionApiKeys`: []IngestionApiKey
fmt.Fprintf(os.Stdout, "Response from `IngestionApiKeyApi.GetIngestionApiKeys`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetIngestionApiKeysRequest struct via the builder pattern
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]