
YumaM.99654 (Customer) asked a question.
APIなどからEntityIDを取得する方法を調査しております。
GUIから検索せずに、登録APPのメタデータを取得する方法を調査しております。
方法としては、「”GET”APP」でメタデータのURLを取得する方法を既に試し終えています。
ただこの方法から抽出されるURLは、APPIDに基づくもので、entityIDの記載がありません。
そのためか、実際のSaaS連携においてAPPIDにもとづくURLを記入しても、メタデータの登録に失敗してしまう。反対に、GUIから抽出したEntityIDにもとづくURLでは連携可能です。
そのため、APIなどからEntityIDを取得する方法を調査しております。
なにか良い方法はあるでしょうか?

(English)
Hi! Thank you for reaching out to the community.
Forgive me for any incorrect translation, as I am utilizing Google Translate to assist me here.
From what I understand you are looking to retrieve the Entity ID value from an App utilizing the API and not the GUI.
Please check out the Okta Apps API for this ask, and specifically, look at this API call and it should return the information that you are looking for:
"GET/api/v1/apps/${applicationId}/sso/saml/metadata"
Link: https://developer.okta.com/docs/reference/api/apps/#preview-saml-metadata-for-application
Preview SAML metadata for application
Thanks! I do hope this helps! Please feel free to reach out if you have any questions or concerns.
(Google Translated to Japanese)
やあ!コミュニティにアクセスしていただきありがとうございます。
ここで私を支援するためにGoogle翻訳を利用しているため、間違った翻訳を許してください.
私が理解していることから、GUI ではなく API を使用してアプリからエンティティ ID の値を取得しようとしています。
この質問については、Okta Apps API を確認してください。具体的には、この API 呼び出しを確認してください。探している情報が返されるはずです。"GET
/api/v1/apps/${applicationId}/sso/saml/metadata"
リンク: https://developer.okta.com/docs/reference/api/apps/#preview-saml-metadata-for-application
ありがとう!これが役立つことを願っています!ご質問やご不明な点がございましたら、お気軽にお問い合わせください。
Thank you for response
I'd already did this.
Link: https://developer.okta.com/docs/reference/api/apps/#preview-saml-metadata-for-application
Preview SAML metadata for application
but code show me [ 'Bad request. Accept and/or Content-Type headers likely do not match supported values.]
do you have any idea to fix it?
Hi! You need to add the kid to the end of the query, and take note that the "Accept" header is "application/xml".
Seen here in the link above:
thankyou
finally ,i imporve me code
thanks a lot!!