Secret getPayload() openstack4j
Srinivasan T
tsrini.alr at gmail.com
Tue Sep 6 04:31:45 UTC 2022
Hi,
Does anyone have any idea on this?
>From the REST API documentation, it seems GET /v1/secret/{uuid} may not
fetch the payload and we need to use a different endpoint GET
/v1/secret/{uuid}/payload .
Is there any equivalent Java API (openstack4j) for this?
Regards,
Srini
On Mon, Sep 5, 2022 at 11:08 PM Srinivasan T <tsrini.alr at gmail.com> wrote:
> Thanks Artem for the response.
>
> I face the same issue when using the below version as well (snippet from
> pom.xml),
>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>openstack4j-core</artifactId>
> <name>OpenStack4j Core</name>
> <description>OpenStack Java API</description>
> <url>http://github.com/openstack4j/openstack4j/</url>
>
> Regards,
> Srini
>
> On Mon, Sep 5, 2022 at 9:48 PM Artem Goncharov <artem.goncharov at gmail.com>
> wrote:
>
>> Hi,
>>
>> The library is not an official OpenStack delivery. I guess nobody here
>> would be able to give you proper suggestion. Moreover it does not look like
>> being actively maintained.
>>
>> Regards,
>> Artem
>>
>> On 5. Sep 2022, at 18:03, Srinivasan T <tsrini.alr at gmail.com> wrote:
>>
>> Hi,
>>
>> I'm unable to get the secret's payload from openstack4j, it always
>> returns null.
>>
>> Secret secret = os.barbican().secrets().get("19cbc4e8-cd06-450b-aa5d-2a4d20bf7d60");
>> secret.getPayload(); //Always returns null
>>
>> The same works when using the OpenStack CLI,
>>
>> openstack secret get --payload_content_type 'application/octet-stream' --file secret-payload http://x.x.x.x:9311/v1/secrets/19cbc4e8-cd06-450b-aa5d-2a4d20bf7d60
>>
>> I'm using the below OpenStack4j version,
>>
>> Bundle-Name: OpenStack4j Core
>>
>> Bundle-Version: 3.6.0
>>
>> OpenStack is in Queens version.
>>
>> Let me know if someone can help on this.
>> Regards,
>> Srini
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20220906/e157b4f8/attachment.htm>
More information about the openstack-discuss
mailing list