Method: operations.cancel
장기 실행 작업에 대한 비동기 취소를 시작합니다. 서버는 작업이 취소되도록 최선을 다하지만 성공한다고 보장되지 않습니다. 서버에서 이 메서드를 지원하지 않으면 google.rpc.Code.UNIMPLEMENTED
가 반환됩니다. 클라이언트는 Operations.GetOperation
또는 다른 메서드를 사용하여 취소가 성공했는지 또는 취소에도 불구하고 작업이 완료되었는지 여부를 확인할 수 있습니다. 취소가 성공하면 작업은 삭제되지 않고 대신 Operation.error
값을 갖는 작업이 되며 google.rpc.Status.code
가 1로 설정됩니다. 이 값은 Code.CANCELLED
에 해당합니다.
HTTP 요청
POST https://adsdatahub.googleapis.com/v1/{name=operations/**}:cancel
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
매개변수 |
name |
string
취소할 작업 리소스의 이름입니다.
|
응답 본문
성공한 경우 응답 본문은 비어 있습니다.
승인 범위
다음과 같은 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/adsdatahub
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2022-09-26(UTC)
[null,null,["최종 업데이트: 2022-09-26(UTC)"],[[["Initiates asynchronous cancellation for long-running operations, although success isn't guaranteed."],["If the server supports cancellation, the operation is marked with an error code indicating cancellation but isn't deleted."],["Clients should use Operations.GetOperation to verify cancellation status or operation completion."],["Utilizes an HTTP POST request with specific path parameter for the operation to be cancelled."],["Requires the 'https://www.googleapis.com/auth/adsdatahub' OAuth scope for authorization."]]],[]]