Method: customers.devices.updateSigned
Yêu cầu HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
name |
string
Bắt buộc. Tên của thiết bị cần cập nhật.
|
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 |
{
"encodedDevice": string,
"installerId": string
} |
Các trường |
encodedDevice |
string (bytes format)
Bắt buộc. Mã thông báo Web JSON được ký bằng khóa cá nhân CPI. Dung lượng phải là mã hoá JSON của device . Chuỗi được mã hoá base64.
|
installerId |
string
Bắt buộc. Mã trình cài đặt duy nhất (CPI ID) từ cơ sở dữ liệu Trình cài đặt chuyên nghiệp được chứng nhận.
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Device
.
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/userinfo.email
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: 2022-09-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2022-09-26 UTC."],[[["This documentation outlines the process for updating a signed device using a `PATCH` request to the specified endpoint."],["The request requires path and body parameters, including device name, encoded device data, and installer ID."],["If successful, the response returns the updated device information."],["Authorization requires the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This document details updating a signed device via a PATCH request to `https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned`. The request requires a `name` path parameter identifying the device. The request body, in JSON, includes `encodedDevice`, a base64-encoded, signed JSON Web Token representing the device, and `installerId`, a unique CPI ID. A successful response returns an instance of the updated `Device`. Authorization requires the `https://www.googleapis.com/auth/userinfo.email` OAuth scope.\n"]]