本頁內容適用於 Apigee 和 Apigee Hybrid。
查看
Apigee Edge 說明文件。
刪除 API Proxy 時,Apigee 會移除該 API Proxy,並從叢集取消部署。
刪除 API Proxy 的方式與取消部署 API Proxy 類似, 但您可以返回編輯取消部署的修訂版本。刪除 API Proxy 後,就無法再編輯。
Apigee UI
如要使用 Apigee UI 刪除 API Proxy,請按照下列步驟操作:
在 Google Cloud 控制台中,前往「Apigee」>「Proxy 開發」>「API Proxy」頁面。
- 在要刪除的 Proxy 所在列中,按一下「動作」下方的 「刪除」。
- 在確認對話方塊中按一下「刪除」。
Apigee API
對下列資源發出 DELETE 要求,即可刪除 Apigee 機構中的 API Proxy:
https://apigee.googleapis.com/v1/organizations/$ORG/apis/$API
舉例來說,如要刪除 helloworld API Proxy,請執行下列指令:
curl "https://apigee.googleapis.com/v1/organizations/myorg/apis/helloworld" \ -X DELETE \ -H "Authorization: Bearer $TOKEN"
其中 $TOKEN 是您設定的 OAuth 2.0 存取權杖,如「取得 OAuth 2.0 存取權杖」一文所述。如要瞭解本範例中使用的 curl 選項,請參閱「使用 curl」。如要瞭解可使用的環境變數,請參閱「為 Apigee API 要求設定環境變數」。
以下是回應輸出內容的範例:
{
"metaData": {
"createdAt": "1559145292799",
"lastModifiedAt": "1559145292799",
"subType": "Proxy"
},
"name": "helloworld",
"revision": [
"1"
]
}詳情請參閱「API Proxy API」。