Method: installer.validate
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Xác thực danh tính của Chuyên gia lắp đặt được chứng nhận (CPI).
Yêu cầu HTTP
POST https://sasportal.googleapis.com/v1alpha1/installer:validate
URL sử dụng cú pháp Chuyển mã gRPC.
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"installerId": string,
"secret": string,
"encodedSecret": string
} |
Trường |
installerId |
string
Bắt buộc. Mã nhận dạng duy nhất của người cài đặt (CPI ID) trong cơ sở dữ liệu của Certified Professional Installers.
|
secret |
string
Bắt buộc. Khoá bí mật do installer.generateSecret trả về.
|
encodedSecret |
string
Bắt buộc. Mã thông báo Web JSON được ký bằng khoá riêng tư CPI. Tải trọng phải bao gồm một khai báo "secret" có giá trị là khoá bí mật.
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/sasportal
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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`"]]