Object Change Notifications에 대한 Google Cloud Platform 설명서의 예를 따르고 있습니다.Google Cloud Platform의 객체 변경 알림
버킷은 하나의 애플리케이션 (application-1
)이 소유하고 있으며 알림을 수신해야하는 App Engine 앱은 별도의 애플리케이션 (application-2
)입니다. 두 응용 프로그램의 서비스 계정은 버킷의 Storage Object Admins입니다.
그러나 버킷을 볼 수있는 알림 채널을 만들 수 없습니다. 내가 그렇게 할 gsutil
를 사용하려고하면 오류가 반환됩니다 : 나는 도메인 (https://application-2.appspot.com
)는 검색 콘솔 확인 프로세스를 사용하여 검증 확인하고 두 프로젝트에 대한은 webhook 알림 도메인으로 구성되어
gsutil notification watchbucket https://application-2.appspot.com gs://bucket
Watching bucket gs://bucket/ with application URL https://application-2.appspot.com ...
ServiceException: 401 Unauthorized WebHook callback channel: https://appication-2.appspot.com
.