本文說明如何查看 Secure Access Connect 連結和連結詳細資料。
必要的角色
如要取得查看附件詳細資料所需的權限,請要求管理員授予您專案的「Compute Network 檢視者 」(roles/compute.networkViewer) IAM 角色。如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
查看區域中的所有附件
如要查看區域中的所有附件,請按照下列步驟操作。
控制台
前往 Google Cloud 控制台的「Secure Access Connect Attachments」(安全存取連線附件) 頁面。
在左上方選擇要查看附件的專案,附件就會顯示在頁面上。
gcloud
執行 gcloud network-security secure-access-connect attachments list 指令:
gcloud network-security secure-access-connect attachments list \
--project=PROJECT_ID \
--location=REGION
更改下列內容:
PROJECT_ID:專案 IDREGION:附件所在的區域
API
使用 projects.locations.sacAttachments.list 方法
GET https://networksecurity.googleapis.com/v1/{parent=project/PROJECT_ID/locations/REGION}/sacAttachments
更改下列內容:
PROJECT_ID:專案 IDREGION:附件所在的區域
查看附件詳細資料
如要查看附件的詳細資料,請按照下列步驟操作。
控制台
前往 Google Cloud 控制台的「Secure Access Connect Attachments」(安全存取連線附件) 頁面。
按一下要查看詳細資料的附件。
gcloud
執行 gcloud network-security secure-access-connect attachments describe 指令:
gcloud network-security secure-access-connect attachments describe ATTACHMENT_ID \
--project=PROJECT_ID \
--location=REGION
更改下列內容:
ATTACHMENT_ID:附件的 IDPROJECT_ID:專案 IDREGION:附件所在的區域
API
使用 projects.locations.sacAttachments.get 方法
GET https://networksecurity.googleapis.com/v1/{parent=project/PROJECT_ID/locations/REGION}/sacAttachments/ATTACHMENT_ID
更改下列內容:
PROJECT_ID:專案 IDREGION:附件所在的區域ATTACHMENT_ID:附件的 ID