Method: installer.validate
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memvalidasi identitas Penginstal Profesional Bersertifikasi (CPI).
Permintaan HTTP
POST https://sasportal.googleapis.com/v1alpha1/installer:validate
URL menggunakan sintaksis gRPC Transcoding.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"installerId": string,
"secret": string,
"encodedSecret": string
} |
Kolom |
installerId |
string
Wajib. ID penginstal unik (ID CPI) dari database Penginstal Profesional Bersertifikasi.
|
secret |
string
Wajib. Secret yang ditampilkan oleh installer.generateSecret .
|
encodedSecret |
string
Wajib. Token Web JSON yang ditandatangani menggunakan kunci pribadi CPI. Payload harus menyertakan klaim "secret" yang nilainya adalah rahasia.
|
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan Otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/sasportal
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eValidates the identity of a Certified Professional Installer (CPI) using a provided installer ID, secret, and encoded secret.\u003c/p\u003e\n"],["\u003cp\u003eThe request is sent as a \u003ccode\u003ePOST\u003c/code\u003e request to the specific endpoint \u003ccode\u003ehttps://sasportal.googleapis.com/v1alpha1/installer:validate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/sasportal\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful validation results in an empty response body.\u003c/p\u003e\n"]]],["The core actions involve validating a Certified Professional Installer (CPI). This is done via a `POST` request to `https://sasportal.googleapis.com/v1alpha1/installer:validate`. The request body, formatted as JSON, requires three string fields: `installerId` (CPI ID), `secret` (from `installer.generateSecret`), and `encodedSecret` (a JWT signed by the CPI's private key with a \"secret\" claim). A successful request returns an empty response body. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"],null,["# Method: installer.validate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nValidates the identity of a Certified Professional Installer (CPI).\n\n### HTTP request\n\n`POST https://sasportal.googleapis.com/v1alpha1/installer:validate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------|\n| ``` { \"installerId\": string, \"secret\": string, \"encodedSecret\": string } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `installerId` | `string` Required. Unique installer id (CPI ID) from the Certified Professional Installers database. |\n| `secret` | `string` Required. Secret returned by the [installer.generateSecret](/spectrum-access-system/reference/rest/v1alpha1/installer/generateSecret#spectrum.sas.portal.v1alpha1.DeviceManager.GenerateSecret). |\n| `encodedSecret` | `string` Required. JSON Web Token signed using a CPI private key. Payload must include a \"secret\" claim whose value is the secret. |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/sasportal`"]]