設定 API 存取權

Cloud de Confiance API 可協助您透過程式輔助方式,從指令列、自動化指令碼或自家應用程式存取服務。 Cloud de Confiance

舉例來說,您可能想開發應用程式,協助管理員分析多個雲端供應商的資源使用情況。如要執行這項操作,您需要存取 Cloud de Confiance 資源的記錄資料。

如要設定 API 存取權,請實作下列項目:

事前準備

為確保您能設定 API 和使用工具,請要求管理員完成下列工作:

  • 建立帳戶,用於登入及使用 Cloud de Confiance產品,包括 Cloud de Confiance 控制台和 Google Cloud CLI。
  • 建立專案,做為Cloud de Confiance 資源的存取範圍。
  • 啟用專案的帳單功能,以便支付服務和 API 用量費用。

如需完成設定步驟的詳細操作說明,請參閱「Cloud de Confiance by S3NS 設定導覽流程」。

Cloud de Confiance API:透過程式存取服務

Cloud de Confiance API 是服務的程式輔助介面。 Cloud de Confiance您可以使用 API 存取運算、網路、儲存空間和其他服務。舉例來說,您可以建立資源使用率應用程式,從Cloud de Confiance 資源提取記錄資料。如要擷取所需資料,請使用 Cloud Logging API。

您可以使用 REST 呼叫或用戶端程式庫存取 Cloud de Confiance API。建議您使用用戶端程式庫,這類程式庫支援多種常見的程式設計語言。您也可以使用 Google Cloud CLI 工具或 Cloud de Confiance 控制台存取 Cloud API。

如需啟用 API 的步驟,請參閱 Cloud API 說明文件中的「開始使用」。

Cloud 用戶端程式庫:以偏好的語言存取 API

有了 Cloud 用戶端程式庫,您可以透過支援的語言,更輕鬆地存取 Cloud de Confiance API。每個程式庫都支援您偏好的語言慣例,並簡化您在應用程式中編寫的程式碼。用戶端程式庫可以處理常見的 API 程序,包括驗證、錯誤處理、重試和酬載驗證。舉例來說,如果您偏好的開發語言是 Java,可以搭配使用 Java 程式庫的 Cloud Logging。

如要選擇及安裝程式庫,請參閱「Cloud 用戶端程式庫」。

後續步驟