Method: operations.get
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.
Lấy trạng thái mới nhất của một hoạt động chạy trong thời gian dài. Ứng dụng có thể sử dụng phương thức này để thăm dò kết quả hoạt động theo đề xuất của dịch vụ API.
Yêu cầu HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{name=operations/**}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
name |
string
Tên của tài nguyên toán tử.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
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 Operation
.
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidworkprovisioning
Để biết thêm thông tin, hãy xem bài viết Tổng quan về OAuth 2.0.
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\u003eThis page documents how to get the latest state of a long-running operation using the API.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a GET method to a specified URL, following gRPC Transcoding syntax, and requiring the resource's name.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty, so no information is required to send.\u003c/p\u003e\n"],["\u003cp\u003eA successful response contains an \u003ccode\u003eOperation\u003c/code\u003e instance detailing the current state of the operation.\u003c/p\u003e\n"],["\u003cp\u003eThe required OAuth scope for this operation is \u003ccode\u003ehttps://www.googleapis.com/auth/androidworkprovisioning\u003c/code\u003e.\u003c/p\u003e\n"]]],["This describes retrieving the latest status of a long-running operation. A `GET` request is sent to a specified URL using gRPC Transcoding syntax. The `name` of the operation is provided as a path parameter in the URL. The request body is empty. A successful response returns an `Operation` instance. Authorization requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope. Clients are advised to poll for results using this API method at intervals.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.\n\nHTTP request\n\n`GET https://androiddeviceprovisioning.googleapis.com/v1/{name=operations/**}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------|----------------------------------------------|\n| `name` | `string` The name of the operation resource. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body\n\nIf successful, the response body contains an instance of [Operation](/zero-touch/reference/reseller/rest/v1/operations#Operation).\n\nAuthorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidworkprovisioning`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]