AI Cloud Governance Center hizmetinin etkinleştirme durumunu sorgular.
Operation description
AI Cloud Governance Center hizmetinin durumunu bölge kimliğine göre sorgular. Hem etkinleştirme hem de devre dışı bırakma işlemleri eşzamansız olarak yürütülür. Çağrı yapan taraf, nihai bir duruma ulaşılana kadar API'yi yoklamalıdır. Sorgu başarılıysa ve ServiceStatus EnableFailed veya DisableFailed ise, hata nedeni FailureCode ve FailureMessage alanlarında döndürülür; bu durum yine de başarılı bir sorgu olarak kabul edilir. Enabling ve Disabling, devam eden durumlardır. Etkinleştirme telafisi tamamlanmamışsa veya bir hatadan sonra telafi işlemi devam ediyorsa durum Enabling olarak kalır. Hata yanıtları yalnızca eksik veya geçersiz bölgeler, bölge ve uç nokta uyuşmazlıkları veya izin eksikliği gibi istek sorunları için döndürülür. Alt hizmetlerin iş mantığı hataları, sorgu isteği hatalarına dönüştürülmemelidir. Mevcut etkinleştirme kayıtları orijinal uyumluluk kriterlerini korur. Bu API tarafından başlatılan yeni etkinleştirme istekleri için durum, yalnızca hem AI Cloud Governance Center hem de yönetişim olgunluk kontrolü başarıyla etkinleştirildikten sonra Enabled olarak döndürülür.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
governance:GetGovernanceServiceStatus |
get |
*All resources.
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Bölge kimliği. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| RequestId |
string |
İstek kimliği. |
60D54503-F1F6-51B6-B6FA-A70CBDA2A68C |
| ServiceStatus |
string |
Cloud Governance Center hizmetinin durumu. Valid values:
|
Enabled |
| FailureCode |
string |
Etkinleştirme veya devre dışı bırakma hatasının nedenini tanımlayan kod. ServiceStatus EnableFailed veya DisableFailed olduğunda döndürülür; aksi takdirde bu parametre boştur veya atlanır. |
Governance.DisableFailed |
| FailureMessage |
string |
Etkinleştirme veya devre dışı bırakma hatasının açıklaması ve önerilen eylem. ServiceStatus EnableFailed veya DisableFailed olduğunda döndürülür; aksi takdirde bu parametre boştur veya atlanır. |
The service could not be disabled. Query the service status before retrying. If the problem persists, submit a ticket. |
Examples
Success response
JSON format
{
"RequestId": "60D54503-F1F6-51B6-B6FA-A70CBDA2A68C",
"ServiceStatus": "Enabled",
"FailureCode": "Governance.DisableFailed",
"FailureMessage": "The service could not be disabled. Query the service status before retrying. If the problem persists, submit a ticket."
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The required parameter RegionId is missing. | Gerekli RegionId parametresi eksik. İstekte bir bölge kimliği belirtin. |
| 400 | InvalidParameter.RegionId | The specified RegionId is invalid. | Belirtilen RegionId geçersiz. Geçerli bir bölge kimliği belirtin. |
| 500 | InternalError | A system error occurred. | Bir sistem hatası oluştu. |
| 403 | InvalidRegion.NotMatch | The specified region is invalid. Please switch to the region where the service is activated. | İstenen bölge, hizmet bölgesiyle eşleşmiyor. Doğru bölgeye geçiş yapın ve yeniden deneyin. |
| 403 | NoPermission | You are not authorized to perform this operation. Action: %s. Resource: %s. | Mevcut hesap bu işlemi gerçekleştirme izinlerine sahip değil. |
| 404 | InvalidUser.NotFound | The specified user does not exist. | Kullanıcı mevcut değil. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.