本頁說明如何檢查長時間執行的 Cloud Domains 作業狀態。如果作業因某些原因而中斷,檢查作業狀態就很有用。
下表中的程序會使用長時間執行的作業。
gcloud 指令 |
API 方法 |
---|---|
register |
register |
update |
patch |
delete |
delete |
configure contacts |
configureContactSettings |
configure dns |
configureDnsSettings |
configure management |
configureManagementSettings |
查看作業狀態
如要查看每項作業的狀態,請完成下列步驟。
gcloud
如要列出專案中的所有 Cloud Domains 作業,請使用
gcloud domains registrations operations list
指令:gcloud domains registrations operations list
如要取得專案中 Cloud Domains 作業的相關資訊,請使用
gcloud domains registrations operations describe
指令:gcloud domains registrations operations describe OPERATION_ID
將
OPERATION_ID
替換為您要取得資訊的作業 ID。如要等待指定的 Cloud Domains 作業完成,請使用
gcloud domains registrations operations wait
指令:gcloud domains registrations operations wait OPERATION_ID
將
OPERATION_ID
替換為您要等待完成的作業的 ID 或完整修飾符 ID。
API
如要列出專案中的所有 Cloud Domains 作業,請使用
operations.list
方法,並搭配空白內容:GET https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/operations
將
PROJECT_ID
替換為您的專案名稱。如要取得專案中 Cloud Domains 作業的相關資訊,請使用
operations.get
方法,並附上空白內容:GET https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/operations/OPERATION_ID
更改下列內容:
PROJECT_ID
:專案名稱OPERATION_ID
:您要取得詳細資料的作業 ID 或完全限定 ID
後續步驟
- 如要查看稽核記錄,請參閱 Cloud Domains 稽核記錄資訊。
- 如要存取 API 資訊,請參閱 Cloud Domains API。
- 如要找出使用 Cloud Domains 時可能遇到的常見問題解決方案,請參閱疑難排解。