Method: operations.delete
Xoá một thao tác đang diễn ra trong thời gian dài. Phương thức này cho biết rằng ứng dụng khách không còn quan tâm đến kết quả của thao tác. Thao tác này không huỷ thao tác. Nếu không hỗ trợ phương thức này, máy chủ sẽ trả về google.rpc.Code.UNIMPLEMENTED
.
Yêu cầu HTTP
DELETE https://routeoptimization.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 thao tác cần xoá.
|
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ẽ là một đối tượng JSON trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/cloud-platform
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-02-10 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-02-10 UTC."],[[["Deletes a long-running operation, signaling the client is no longer interested in the result, but doesn't cancel the operation itself."],["Uses a DELETE HTTP request with the operation's name as a path parameter."],["Requires an empty request body and returns an empty response body upon success."],["Needs authorization with the `https://www.googleapis.com/auth/cloud-platform` scope."],["If unsupported by the server, it returns a `google.rpc.Code.UNIMPLEMENTED` error."]]],["This document details how to delete a long-running operation via an HTTP DELETE request. The target URL is constructed using a path parameter, `name`, which specifies the operation resource to be deleted. The request body must be empty. A successful deletion returns an empty JSON object in the response body. This action indicates client disinterest and doesn't cancel the operation. The request requires authorization through the `https://www.googleapis.com/auth/cloud-platform` OAuth scope.\n"]]