<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div>
<div><span>Hello,</span></div>
<br />
<div><span>Hope this email finds you well.</span></div>
<br />
<div><span>Shall I please ask a question about the openstacksdk identity service, the application credential?</span></div>
<br />
<div><span>We would like to get the expiration date of an application credential using the Identity v3 method get_application_credential or find_appplication_credential. We found that they require both the user id and the application credential id in order to get it. The code I'm using is as the following, and this works for us.</span></div>
<br />
<div><span>conn = connection.Connection(</span></div>
<div><span>session=sess,</span></div>
<div><span>region_name='Victoria,</span></div>
<div><span>identity_api_version='3')</span></div>
<br />
<div><span>keystone = conn.identity</span></div>
<br />
<div><span>find = keystone.get_application_credential(user='my_user_id', application_credential = 'app_cred_id')</span></div>
<br />
<div><span>expire_date = find</span><span>[</span><span>'expires_at'</span><span>]</span></div>
<br />
<div><span>We are wondering if we could use the user name to get it instead of the user id? If I do get_application_credential(user='catherine', application_credential = 'app_cred_id'), then it will show me an error that "You are not authorized to perform the requested action: identity:get_application_credential". Is there any method that no need user info, can just use the application credential id to get the expiration date? We also didn't find any documentation about the application credential in openstacksdk identity service docs.</span></div>
<br />
<div><span>Thanks and have a great day!</span></div>
<br />
<div><span>Catherine</span></div>
</div>

</body></html>