擷取用於登入 Google Compute Engine 上的虛擬機器的個人資訊。
HTTP 要求
GET https://oslogin.googleapis.com/v1/{name=users/*}/loginProfile
此網址使用 Google API HTTP 註解語法。
路徑參數
參數 | |
---|---|
name |
使用者專屬 ID 的格式如下: |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會包含 LoginProfile
的例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/compute
詳情請參閱驗證總覽。