Apigee 與北向 Private Service Connect 的連線問題

當您嘗試為客戶消費者專案設定北向 Private Service Connect 端點,連至 Apigee 執行個體時,網路端點群組狀態會維持在 Pending,不會進展到 Accepted。

問題

在客戶消費者專案中,Private Service Connect 端點的狀態為「Pending」。

錯誤訊息

沒有錯誤訊息。

設定的 Private Service Connect 端點卡在 Pending 狀態。

可能原因

原因 說明
設有 Private Service Connect 端點的專案,不在 Apigee 執行個體的用戶接受清單中。 Private Service Connect 端點所在的專案必須新增至 Apigee 執行個體。

原因 1:缺少 Private Service Connect 端點專案

設有 Private Service Connect 端點的專案,不在 Apigee 執行個體的用戶接受清單中。

診斷

  1. 在客戶消費者專案的端點設定中,找出 Apigee 服務連結資訊。
  2. 檢查用戶專案是否已新增至 Apigee 執行個體的用戶接受清單。這項操作可透過 Management API 或控制台 UI 完成。

API 範例

下列輸出內容不含 consumerAcceptList 中的用戶專案。

指令範例:

curl -H "Authorization: Bearer $TOKEN" "https://apigee.googleapis.com/v1/organizations/$ORG_NAME/instances"

其中 ORG_NAME 是 Apigee 組織的 ID。

輸出內容範例:

{
  "instances": [
    {
      "name": "apigee-dev-us-central1-instance",
      "location": "us-central1",
      "host": "10.71.132.2",
      "port": "443",
      "createdAt": "1746546423661",
      "lastModifiedAt": "1747937301425",
      "state": "ACTIVE",
      "peeringCidrRange": "SLASH_22",
      "runtimeVersion": "1-15-0-apigee-4",
      "ipRange": "10.71.132.0/22,10.71.136.0/28",
      "consumerAcceptList": [
        "prj-example-dev"
      ],
      "serviceAttachment": "projects/a1b2c3d4e5f6g7h8ip-tp/regions/us-central1/serviceAttachments/apigee-us-central1-7xxw",
      "accessLoggingConfig": {
        "enabled": true
      }
    }
  ]
}

解析度

請按照「使用 Private Service Connect 建立北向網路」說明文件,透過 Apigee UI 或 Management API,將 Apigee 執行個體的 consumerAcceptList 更新為新的端點群組專案。