nipyapi
nipyapi copied to clipboard
How to supply bundle path when calling `create_extension_bundle_version_with_http_info`
While this works
nipyapi.registry.BucketBundlesApi().get_extension_bundles("UUID")
This:
nipyapi.registry.BucketBundlesApi().create_extension_bundle_version_with_http_info(
bucket_id="UUID",
bundle_type="nifi-nar",
)
Throws this error:
File "/usr/local/lib/python3.7/site-packages/nipyapi/registry/apis/bucket_bundles_api.py", line 154, in create_extension_bundle_version_with_http_info
collection_formats=collection_formats)
File "/usr/local/lib/python3.7/site-packages/nipyapi/registry/api_client.py", line 334, in call_api
_return_http_data_only, collection_formats, _preload_content, _request_timeout)
File "/usr/local/lib/python3.7/site-packages/nipyapi/registry/api_client.py", line 155, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python3.7/site-packages/nipyapi/registry/api_client.py", line 379, in request
body=body)
File "/usr/local/lib/python3.7/site-packages/nipyapi/registry/rest.py", line 279, in POST
body=body)
File "/usr/local/lib/python3.7/site-packages/nipyapi/registry/rest.py", line 235, in request
raise ApiException(http_resp=r)
nipyapi.registry.rest.ApiException: (400)
Reason: Bad Request
HTTP response body: Entity is empty.
I cannot see what parameter should I supply in order to create a new Bundle in Nifi Registry...
I basically want to replicate what happens here but with nipyapi:
curl -v -F file=@/path/to/my-processors-1.0.0.nar http://localhost:18080/nifi-registry-api/buckets/de8e08c9-592d-4e10-affe-b3752698f1d9/bundles/nifi-nar
How can I do that?
Sorry I missed this @andyadamides , did you resolve it already? I have not worked with this API call at all, so would have to set up a test and investigate.
@Chaffelson Nope not yet, for now I use curl for this type of operation
Roger. I will put it on my list.