All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
ActivateControllerServices | Put /flow/process-groups/{id}/controller-services | Enable or disable Controller Services in the specified Process Group. |
GenerateClientId | Get /flow/client-id | Generates a client id. |
GetAboutInfo | Get /flow/about | Retrieves details about this NiFi to put in the About dialog |
GetAction | Get /flow/history/{id} | Gets an action |
GetBanners | Get /flow/banners | Retrieves the banners for this NiFi |
GetBuckets | Get /flow/registries/{id}/buckets | Gets the buckets from the specified registry for the current user |
GetBulletinBoard | Get /flow/bulletin-board | Gets current bulletins |
GetBulletins | Get /flow/controller/bulletins | Retrieves Controller level bulletins |
GetClusterSummary | Get /flow/cluster/summary | The cluster summary for this NiFi |
GetComponentHistory | Get /flow/history/components/{componentId} | Gets configuration history for a component |
GetConnectionStatistics | Get /flow/connections/{id}/statistics | Gets statistics for a connection |
GetConnectionStatus | Get /flow/connections/{id}/status | Gets status for a connection |
GetConnectionStatusHistory | Get /flow/connections/{id}/status/history | Gets the status history for a connection |
GetControllerServiceTypes | Get /flow/controller-service-types | Retrieves the types of controller services that this NiFi supports |
GetControllerServicesFromController | Get /flow/controller/controller-services | Gets controller services for reporting tasks |
GetControllerServicesFromGroup | Get /flow/process-groups/{id}/controller-services | Gets all controller services |
GetControllerStatus | Get /flow/status | Gets the current status of this NiFi |
GetCurrentUser | Get /flow/current-user | Retrieves the user identity of the user making the request |
GetFlow | Get /flow/process-groups/{id} | Gets a process group |
GetFlowConfig | Get /flow/config | Retrieves the configuration for this NiFi flow |
GetFlowMetrics | Get /flow/metrics/{producer} | Gets all metrics for the flow from a particular node |
GetFlows | Get /flow/registries/{registry-id}/buckets/{bucket-id}/flows | Gets the flows from the specified registry and bucket for the current user |
GetInputPortStatus | Get /flow/input-ports/{id}/status | Gets status for an input port |
GetOutputPortStatus | Get /flow/output-ports/{id}/status | Gets status for an output port |
GetParameterContexts | Get /flow/parameter-contexts | Gets all Parameter Contexts |
GetPrioritizers | Get /flow/prioritizers | Retrieves the types of prioritizers that this NiFi supports |
GetProcessGroupStatus | Get /flow/process-groups/{id}/status | Gets the status for a process group |
GetProcessGroupStatusHistory | Get /flow/process-groups/{id}/status/history | Gets status history for a remote process group |
GetProcessorStatus | Get /flow/processors/{id}/status | Gets status for a processor |
GetProcessorStatusHistory | Get /flow/processors/{id}/status/history | Gets status history for a processor |
GetProcessorTypes | Get /flow/processor-types | Retrieves the types of processors that this NiFi supports |
GetRegistries | Get /flow/registries | Gets the listing of available registries |
GetRemoteProcessGroupStatus | Get /flow/remote-process-groups/{id}/status | Gets status for a remote process group |
GetRemoteProcessGroupStatusHistory | Get /flow/remote-process-groups/{id}/status/history | Gets the status history |
GetReportingTaskTypes | Get /flow/reporting-task-types | Retrieves the types of reporting tasks that this NiFi supports |
GetReportingTasks | Get /flow/reporting-tasks | Gets all reporting tasks |
GetTemplates | Get /flow/templates | Gets all templates |
GetVersions | Get /flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versions | Gets the flow versions from the specified registry and bucket for the specified flow for the current user |
QueryHistory | Get /flow/history | Gets configuration history |
ScheduleComponents | Put /flow/process-groups/{id} | Schedule or unschedule components in the specified Process Group. |
SearchCluster | Get /flow/cluster/search-results | Searches the cluster for a node with the specified address |
SearchFlow | Get /flow/search-results | Performs a search against this NiFi using the specified search term |
ActivateControllerServicesEntity ActivateControllerServices(ctx, id).Body(body).Execute()
Enable or disable Controller Services in the specified Process Group.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The process group id.
body := *openapiclient.NewActivateControllerServicesEntity() // ActivateControllerServicesEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.ActivateControllerServices(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.ActivateControllerServices``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ActivateControllerServices`: ActivateControllerServicesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.ActivateControllerServices`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The process group id. |
Other parameters are passed through a pointer to a apiActivateControllerServicesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ActivateControllerServicesEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. |
ActivateControllerServicesEntity
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GenerateClientId(ctx).Execute()
Generates a client id.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GenerateClientId(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GenerateClientId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GenerateClientId`: string
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GenerateClientId`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGenerateClientIdRequest struct via the builder pattern
string
No authorization required
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AboutEntity GetAboutInfo(ctx).Execute()
Retrieves details about this NiFi to put in the About dialog
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetAboutInfo(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetAboutInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAboutInfo`: AboutEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetAboutInfo`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetAboutInfoRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ActionEntity GetAction(ctx, id).Execute()
Gets an action
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The action id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetAction(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetAction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAction`: ActionEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetAction`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The action id. |
Other parameters are passed through a pointer to a apiGetActionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BannerEntity GetBanners(ctx).Execute()
Retrieves the banners for this NiFi
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetBanners(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetBanners``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBanners`: BannerEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetBanners`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetBannersRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BucketsEntity GetBuckets(ctx, id).Execute()
Gets the buckets from the specified registry for the current user
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The registry id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetBuckets(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetBuckets``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBuckets`: BucketsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetBuckets`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The registry id. |
Other parameters are passed through a pointer to a apiGetBucketsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BulletinBoardEntity GetBulletinBoard(ctx).After(after).SourceName(sourceName).Message(message).SourceId(sourceId).GroupId(groupId).Limit(limit).Execute()
Gets current bulletins
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
after := "after_example" // string | Includes bulletins with an id after this value. (optional)
sourceName := "sourceName_example" // string | Includes bulletins originating from this sources whose name match this regular expression. (optional)
message := "message_example" // string | Includes bulletins whose message that match this regular expression. (optional)
sourceId := "sourceId_example" // string | Includes bulletins originating from this sources whose id match this regular expression. (optional)
groupId := "groupId_example" // string | Includes bulletins originating from this sources whose group id match this regular expression. (optional)
limit := "limit_example" // string | The number of bulletins to limit the response to. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetBulletinBoard(context.Background()).After(after).SourceName(sourceName).Message(message).SourceId(sourceId).GroupId(groupId).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetBulletinBoard``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBulletinBoard`: BulletinBoardEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetBulletinBoard`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetBulletinBoardRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
after | string | Includes bulletins with an id after this value. | |
sourceName | string | Includes bulletins originating from this sources whose name match this regular expression. | |
message | string | Includes bulletins whose message that match this regular expression. | |
sourceId | string | Includes bulletins originating from this sources whose id match this regular expression. | |
groupId | string | Includes bulletins originating from this sources whose group id match this regular expression. | |
limit | string | The number of bulletins to limit the response to. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ControllerBulletinsEntity GetBulletins(ctx).Execute()
Retrieves Controller level bulletins
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetBulletins(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetBulletins``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBulletins`: ControllerBulletinsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetBulletins`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetBulletinsRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClusteSummaryEntity GetClusterSummary(ctx).Execute()
The cluster summary for this NiFi
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetClusterSummary(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetClusterSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetClusterSummary`: ClusteSummaryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetClusterSummary`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetClusterSummaryRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComponentHistoryEntity GetComponentHistory(ctx, componentId).Execute()
Gets configuration history for a component
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
componentId := "componentId_example" // string | The component id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetComponentHistory(context.Background(), componentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetComponentHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetComponentHistory`: ComponentHistoryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetComponentHistory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
componentId | string | The component id. |
Other parameters are passed through a pointer to a apiGetComponentHistoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectionStatisticsEntity GetConnectionStatistics(ctx, id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets statistics for a connection
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The connection id.
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the statistics. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetConnectionStatistics(context.Background(), id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetConnectionStatistics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConnectionStatistics`: ConnectionStatisticsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetConnectionStatistics`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The connection id. |
Other parameters are passed through a pointer to a apiGetConnectionStatisticsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the statistics. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectionStatusEntity GetConnectionStatus(ctx, id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets status for a connection
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The connection id.
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the status. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetConnectionStatus(context.Background(), id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetConnectionStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConnectionStatus`: ConnectionStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetConnectionStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The connection id. |
Other parameters are passed through a pointer to a apiGetConnectionStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the status. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatusHistoryEntity GetConnectionStatusHistory(ctx, id).Execute()
Gets the status history for a connection
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The connection id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetConnectionStatusHistory(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetConnectionStatusHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConnectionStatusHistory`: StatusHistoryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetConnectionStatusHistory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The connection id. |
Other parameters are passed through a pointer to a apiGetConnectionStatusHistoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ControllerServiceTypesEntity GetControllerServiceTypes(ctx).ServiceType(serviceType).ServiceBundleGroup(serviceBundleGroup).ServiceBundleArtifact(serviceBundleArtifact).ServiceBundleVersion(serviceBundleVersion).BundleGroupFilter(bundleGroupFilter).BundleArtifactFilter(bundleArtifactFilter).TypeFilter(typeFilter).Execute()
Retrieves the types of controller services that this NiFi supports
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceType := "serviceType_example" // string | If specified, will only return controller services that are compatible with this type of service. (optional)
serviceBundleGroup := "serviceBundleGroup_example" // string | If serviceType specified, is the bundle group of the serviceType. (optional)
serviceBundleArtifact := "serviceBundleArtifact_example" // string | If serviceType specified, is the bundle artifact of the serviceType. (optional)
serviceBundleVersion := "serviceBundleVersion_example" // string | If serviceType specified, is the bundle version of the serviceType. (optional)
bundleGroupFilter := "bundleGroupFilter_example" // string | If specified, will only return types that are a member of this bundle group. (optional)
bundleArtifactFilter := "bundleArtifactFilter_example" // string | If specified, will only return types that are a member of this bundle artifact. (optional)
typeFilter := "typeFilter_example" // string | If specified, will only return types whose fully qualified classname matches. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetControllerServiceTypes(context.Background()).ServiceType(serviceType).ServiceBundleGroup(serviceBundleGroup).ServiceBundleArtifact(serviceBundleArtifact).ServiceBundleVersion(serviceBundleVersion).BundleGroupFilter(bundleGroupFilter).BundleArtifactFilter(bundleArtifactFilter).TypeFilter(typeFilter).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetControllerServiceTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetControllerServiceTypes`: ControllerServiceTypesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetControllerServiceTypes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetControllerServiceTypesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
serviceType | string | If specified, will only return controller services that are compatible with this type of service. | |
serviceBundleGroup | string | If serviceType specified, is the bundle group of the serviceType. | |
serviceBundleArtifact | string | If serviceType specified, is the bundle artifact of the serviceType. | |
serviceBundleVersion | string | If serviceType specified, is the bundle version of the serviceType. | |
bundleGroupFilter | string | If specified, will only return types that are a member of this bundle group. | |
bundleArtifactFilter | string | If specified, will only return types that are a member of this bundle artifact. | |
typeFilter | string | If specified, will only return types whose fully qualified classname matches. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ControllerServicesEntity GetControllerServicesFromController(ctx).Execute()
Gets controller services for reporting tasks
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetControllerServicesFromController(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetControllerServicesFromController``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetControllerServicesFromController`: ControllerServicesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetControllerServicesFromController`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetControllerServicesFromControllerRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ControllerServicesEntity GetControllerServicesFromGroup(ctx, id).IncludeAncestorGroups(includeAncestorGroups).IncludeDescendantGroups(includeDescendantGroups).Execute()
Gets all controller services
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The process group id.
includeAncestorGroups := true // bool | Whether or not to include parent/ancestory process groups (optional) (default to true)
includeDescendantGroups := true // bool | Whether or not to include descendant process groups (optional) (default to false)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetControllerServicesFromGroup(context.Background(), id).IncludeAncestorGroups(includeAncestorGroups).IncludeDescendantGroups(includeDescendantGroups).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetControllerServicesFromGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetControllerServicesFromGroup`: ControllerServicesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetControllerServicesFromGroup`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The process group id. |
Other parameters are passed through a pointer to a apiGetControllerServicesFromGroupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
includeAncestorGroups | bool | Whether or not to include parent/ancestory process groups | [default to true] includeDescendantGroups | bool | Whether or not to include descendant process groups | [default to false]
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ControllerStatusEntity GetControllerStatus(ctx).Execute()
Gets the current status of this NiFi
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetControllerStatus(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetControllerStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetControllerStatus`: ControllerStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetControllerStatus`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetControllerStatusRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CurrentUserEntity GetCurrentUser(ctx).Execute()
Retrieves the user identity of the user making the request
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetCurrentUser(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetCurrentUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCurrentUser`: CurrentUserEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetCurrentUser`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetCurrentUserRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProcessGroupFlowEntity GetFlow(ctx, id).Execute()
Gets a process group
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The process group id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetFlow(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetFlow``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFlow`: ProcessGroupFlowEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetFlow`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The process group id. |
Other parameters are passed through a pointer to a apiGetFlowRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FlowConfigurationEntity GetFlowConfig(ctx).Execute()
Retrieves the configuration for this NiFi flow
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetFlowConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetFlowConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFlowConfig`: FlowConfigurationEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetFlowConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetFlowConfigRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} GetFlowMetrics(ctx, producer).Execute()
Gets all metrics for the flow from a particular node
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
producer := "producer_example" // string | The producer for flow file metrics. Each producer may have its own output format.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetFlowMetrics(context.Background(), producer).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetFlowMetrics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFlowMetrics`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetFlowMetrics`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
producer | string | The producer for flow file metrics. Each producer may have its own output format. |
Other parameters are passed through a pointer to a apiGetFlowMetricsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VersionedFlowsEntity GetFlows(ctx, registryId, bucketId).Execute()
Gets the flows from the specified registry and bucket for the current user
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
registryId := "registryId_example" // string | The registry id.
bucketId := "bucketId_example" // string | The bucket id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetFlows(context.Background(), registryId, bucketId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetFlows``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFlows`: VersionedFlowsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetFlows`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
registryId | string | The registry id. | |
bucketId | string | The bucket id. |
Other parameters are passed through a pointer to a apiGetFlowsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortStatusEntity GetInputPortStatus(ctx, id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets status for an input port
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The input port id.
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the status. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetInputPortStatus(context.Background(), id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetInputPortStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetInputPortStatus`: PortStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetInputPortStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The input port id. |
Other parameters are passed through a pointer to a apiGetInputPortStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the status. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortStatusEntity GetOutputPortStatus(ctx, id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets status for an output port
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The output port id.
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the status. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetOutputPortStatus(context.Background(), id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetOutputPortStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOutputPortStatus`: PortStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetOutputPortStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The output port id. |
Other parameters are passed through a pointer to a apiGetOutputPortStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the status. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ParameterContextsEntity GetParameterContexts(ctx).Execute()
Gets all Parameter Contexts
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetParameterContexts(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetParameterContexts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetParameterContexts`: ParameterContextsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetParameterContexts`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetParameterContextsRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PrioritizerTypesEntity GetPrioritizers(ctx).Execute()
Retrieves the types of prioritizers that this NiFi supports
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetPrioritizers(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetPrioritizers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPrioritizers`: PrioritizerTypesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetPrioritizers`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetPrioritizersRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProcessGroupStatusEntity GetProcessGroupStatus(ctx, id).Recursive(recursive).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets the status for a process group
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The process group id.
recursive := true // bool | Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional) (default to false)
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the status. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetProcessGroupStatus(context.Background(), id).Recursive(recursive).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetProcessGroupStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProcessGroupStatus`: ProcessGroupStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetProcessGroupStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The process group id. |
Other parameters are passed through a pointer to a apiGetProcessGroupStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
recursive | bool | Whether all descendant groups and the status of their content will be included. Optional, defaults to false | [default to false] nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the status. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatusHistoryEntity GetProcessGroupStatusHistory(ctx, id).Execute()
Gets status history for a remote process group
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The process group id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetProcessGroupStatusHistory(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetProcessGroupStatusHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProcessGroupStatusHistory`: StatusHistoryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetProcessGroupStatusHistory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The process group id. |
Other parameters are passed through a pointer to a apiGetProcessGroupStatusHistoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProcessorStatusEntity GetProcessorStatus(ctx, id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets status for a processor
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The processor id.
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the status. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetProcessorStatus(context.Background(), id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetProcessorStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProcessorStatus`: ProcessorStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetProcessorStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The processor id. |
Other parameters are passed through a pointer to a apiGetProcessorStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the status. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatusHistoryEntity GetProcessorStatusHistory(ctx, id).Execute()
Gets status history for a processor
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The processor id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetProcessorStatusHistory(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetProcessorStatusHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProcessorStatusHistory`: StatusHistoryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetProcessorStatusHistory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The processor id. |
Other parameters are passed through a pointer to a apiGetProcessorStatusHistoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProcessorTypesEntity GetProcessorTypes(ctx).BundleGroupFilter(bundleGroupFilter).BundleArtifactFilter(bundleArtifactFilter).Type_(type_).Execute()
Retrieves the types of processors that this NiFi supports
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
bundleGroupFilter := "bundleGroupFilter_example" // string | If specified, will only return types that are a member of this bundle group. (optional)
bundleArtifactFilter := "bundleArtifactFilter_example" // string | If specified, will only return types that are a member of this bundle artifact. (optional)
type_ := "type__example" // string | If specified, will only return types whose fully qualified classname matches. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetProcessorTypes(context.Background()).BundleGroupFilter(bundleGroupFilter).BundleArtifactFilter(bundleArtifactFilter).Type_(type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetProcessorTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProcessorTypes`: ProcessorTypesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetProcessorTypes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetProcessorTypesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
bundleGroupFilter | string | If specified, will only return types that are a member of this bundle group. | |
bundleArtifactFilter | string | If specified, will only return types that are a member of this bundle artifact. | |
type_ | string | If specified, will only return types whose fully qualified classname matches. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegistryClientsEntity GetRegistries(ctx).Execute()
Gets the listing of available registries
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetRegistries(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetRegistries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRegistries`: RegistryClientsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetRegistries`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetRegistriesRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemoteProcessGroupStatusEntity GetRemoteProcessGroupStatus(ctx, id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
Gets status for a remote process group
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The remote process group id.
nodewise := true // bool | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false)
clusterNodeId := "clusterNodeId_example" // string | The id of the node where to get the status. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetRemoteProcessGroupStatus(context.Background(), id).Nodewise(nodewise).ClusterNodeId(clusterNodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetRemoteProcessGroupStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRemoteProcessGroupStatus`: RemoteProcessGroupStatusEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetRemoteProcessGroupStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The remote process group id. |
Other parameters are passed through a pointer to a apiGetRemoteProcessGroupStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodewise | bool | Whether or not to include the breakdown per node. Optional, defaults to false | [default to false] clusterNodeId | string | The id of the node where to get the status. |
RemoteProcessGroupStatusEntity
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatusHistoryEntity GetRemoteProcessGroupStatusHistory(ctx, id).Execute()
Gets the status history
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The remote process group id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetRemoteProcessGroupStatusHistory(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetRemoteProcessGroupStatusHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRemoteProcessGroupStatusHistory`: StatusHistoryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetRemoteProcessGroupStatusHistory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The remote process group id. |
Other parameters are passed through a pointer to a apiGetRemoteProcessGroupStatusHistoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportingTaskTypesEntity GetReportingTaskTypes(ctx).BundleGroupFilter(bundleGroupFilter).BundleArtifactFilter(bundleArtifactFilter).Type_(type_).Execute()
Retrieves the types of reporting tasks that this NiFi supports
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
bundleGroupFilter := "bundleGroupFilter_example" // string | If specified, will only return types that are a member of this bundle group. (optional)
bundleArtifactFilter := "bundleArtifactFilter_example" // string | If specified, will only return types that are a member of this bundle artifact. (optional)
type_ := "type__example" // string | If specified, will only return types whose fully qualified classname matches. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetReportingTaskTypes(context.Background()).BundleGroupFilter(bundleGroupFilter).BundleArtifactFilter(bundleArtifactFilter).Type_(type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetReportingTaskTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetReportingTaskTypes`: ReportingTaskTypesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetReportingTaskTypes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetReportingTaskTypesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
bundleGroupFilter | string | If specified, will only return types that are a member of this bundle group. | |
bundleArtifactFilter | string | If specified, will only return types that are a member of this bundle artifact. | |
type_ | string | If specified, will only return types whose fully qualified classname matches. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportingTasksEntity GetReportingTasks(ctx).Execute()
Gets all reporting tasks
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetReportingTasks(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetReportingTasks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetReportingTasks`: ReportingTasksEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetReportingTasks`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetReportingTasksRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplatesEntity GetTemplates(ctx).Execute()
Gets all templates
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetTemplates(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTemplates`: TemplatesEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetTemplates`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetTemplatesRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VersionedFlowSnapshotMetadataSetEntity GetVersions(ctx, registryId, bucketId, flowId).Execute()
Gets the flow versions from the specified registry and bucket for the specified flow for the current user
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
registryId := "registryId_example" // string | The registry id.
bucketId := "bucketId_example" // string | The bucket id.
flowId := "flowId_example" // string | The flow id.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.GetVersions(context.Background(), registryId, bucketId, flowId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.GetVersions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetVersions`: VersionedFlowSnapshotMetadataSetEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.GetVersions`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
registryId | string | The registry id. | |
bucketId | string | The bucket id. | |
flowId | string | The flow id. |
Other parameters are passed through a pointer to a apiGetVersionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
VersionedFlowSnapshotMetadataSetEntity
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HistoryEntity QueryHistory(ctx).Offset(offset).Count(count).SortColumn(sortColumn).SortOrder(sortOrder).StartDate(startDate).EndDate(endDate).UserIdentity(userIdentity).SourceId(sourceId).Execute()
Gets configuration history
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
offset := "offset_example" // string | The offset into the result set.
count := "count_example" // string | The number of actions to return.
sortColumn := "sortColumn_example" // string | The field to sort on. (optional)
sortOrder := "sortOrder_example" // string | The direction to sort. (optional)
startDate := "startDate_example" // string | Include actions after this date. (optional)
endDate := "endDate_example" // string | Include actions before this date. (optional)
userIdentity := "userIdentity_example" // string | Include actions performed by this user. (optional)
sourceId := "sourceId_example" // string | Include actions on this component. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.QueryHistory(context.Background()).Offset(offset).Count(count).SortColumn(sortColumn).SortOrder(sortOrder).StartDate(startDate).EndDate(endDate).UserIdentity(userIdentity).SourceId(sourceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.QueryHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `QueryHistory`: HistoryEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.QueryHistory`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiQueryHistoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
offset | string | The offset into the result set. | |
count | string | The number of actions to return. | |
sortColumn | string | The field to sort on. | |
sortOrder | string | The direction to sort. | |
startDate | string | Include actions after this date. | |
endDate | string | Include actions before this date. | |
userIdentity | string | Include actions performed by this user. | |
sourceId | string | Include actions on this component. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ScheduleComponentsEntity ScheduleComponents(ctx, id).Body(body).Execute()
Schedule or unschedule components in the specified Process Group.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The process group id.
body := *openapiclient.NewScheduleComponentsEntity() // ScheduleComponentsEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.ScheduleComponents(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.ScheduleComponents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ScheduleComponents`: ScheduleComponentsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.ScheduleComponents`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The process group id. |
Other parameters are passed through a pointer to a apiScheduleComponentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ScheduleComponentsEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClusterSearchResultsEntity SearchCluster(ctx).Q(q).Execute()
Searches the cluster for a node with the specified address
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
q := "q_example" // string | Node address to search for.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.SearchCluster(context.Background()).Q(q).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.SearchCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchCluster`: ClusterSearchResultsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.SearchCluster`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
q | string | Node address to search for. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResultsEntity SearchFlow(ctx).Q(q).A(a).Execute()
Performs a search against this NiFi using the specified search term
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
q := "q_example" // string | (optional)
a := "a_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FlowApi.SearchFlow(context.Background()).Q(q).A(a).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FlowApi.SearchFlow``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchFlow`: SearchResultsEntity
fmt.Fprintf(os.Stdout, "Response from `FlowApi.SearchFlow`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchFlowRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
q | string | ||
a | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]