<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763">Hi,</div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763">Does anyone have any idea on this?</div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763">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 .</div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763">Is there any equivalent Java API (openstack4j) for this?</div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763">Regards,</div><div class="gmail_default" style="font-family:arial,sans-serif;color:#073763">Srini</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 5, 2022 at 11:08 PM Srinivasan T <<a href="mailto:tsrini.alr@gmail.com">tsrini.alr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)">Thanks Artem for the response. </div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)">I face the same issue when using the below version as well (snippet from pom.xml),</div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)"><modelVersion>4.0.0</modelVersion><br><artifactId>openstack4j-core</artifactId><br><name>OpenStack4j Core</name><br><description>OpenStack Java API</description><br><url><a href="http://github.com/openstack4j/openstack4j/" target="_blank">http://github.com/openstack4j/openstack4j/</a></url><br></div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)">Regards,</div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)">Srini</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 5, 2022 at 9:48 PM Artem Goncharov <<a href="mailto:artem.goncharov@gmail.com" target="_blank">artem.goncharov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi,<div><br></div><div>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.</div><div><br></div><div>Regards,</div><div>Artem<br><div><br><blockquote type="cite"><div>On 5. Sep 2022, at 18:03, Srinivasan T <<a href="mailto:tsrini.alr@gmail.com" target="_blank">tsrini.alr@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif"><span style="color:rgb(35,38,41);font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit">Hi,</span></div><div class="gmail_default" style="font-family:arial,sans-serif"><span style="color:rgb(35,38,41);font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit"><br></span></div><div class="gmail_default" style="font-family:arial,sans-serif"><span style="color:rgb(35,38,41);font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit">I'm unable to get the secret's payload from openstack4j, it always returns null.</span></div><div class="gmail_default" style="font-family:arial,sans-serif"><span style="color:rgb(35,38,41);font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit"><br></span></div><div class="gmail_default" style="font-family:arial,sans-serif;color:rgb(7,55,99)"><div style="margin:0px;padding-top:0px;padding-bottom:0px;padding-left:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Adjusted","Segoe UI","Liberation Sans",sans-serif;font-size:13px;vertical-align:top;box-sizing:inherit;width:auto;min-width:0px;color:rgb(35,38,41)"><div style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;width:658.333px"><pre style="margin-top:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit;border-radius:0px">Secret secret = os.barbican().secrets().get("19cbc4e8-cd06-450b-aa5d-2a4d20bf7d60");
secret.getPayload(); //Always returns null
</code></pre><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">The same works when using the OpenStack CLI,</p><pre style="margin-top:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit;border-radius:0px">openstack secret get --payload_content_type 'application/octet-stream' --file secret-payload <a href="http://x.x.x.x:9311/v1/secrets/19cbc4e8-cd06-450b-aa5d-2a4d20bf7d60" target="_blank">http://x.x.x.x:9311/v1/secrets/19cbc4e8-cd06-450b-aa5d-2a4d20bf7d60</a>
</code></pre><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">I'm using the below OpenStack4j version,</p><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">Bundle-Name: OpenStack4j Core </p><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">Bundle-Version: 3.6.0</p><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">OpenStack is in Queens version.</p><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">Let me know if someone can help on this.</p><div style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">Regards, </div><div style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">Srini</div></div></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div>