Method: operations.get
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รับสถานะล่าสุดของการดำเนินการที่ใช้เวลานาน ไคลเอ็นต์ใช้วิธีนี้เพื่อทำแบบสำรวจผลการดำเนินการได้เป็นระยะๆ ตามที่บริการ API แนะนำ
คำขอ HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{name=operations/**}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ชื่อของทรัพยากรการดำเนินการ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Operation
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidworkprovisioning
สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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,["# Method: operations.get\n\n- [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\n### HTTP request\n\n`GET https://androiddeviceprovisioning.googleapis.com/v1/{name=operations/**}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|----------------------------------------------|\n| `name` | `string` The name of the operation resource. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/zero-touch/reference/reseller/rest/v1/operations#Operation).\n\n### Authorization 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)."]]