查看MongoDBLog Service的配置。
介面說明
本介面適用於規格類型為通用型本地碟版和獨享型本地碟版執行個體。
您可以根據業務需求開通ApsaraDB for MongoDB 審計日誌功能,開通方法請參見開通審計日誌。
從 2022 年 01 月 06 日起,各地區將陸續上線正式版審計日誌,並終止申請免費試用審計日誌。具體請參見【通知】ApsaraDB for MongoDB 上線按量收費的正式版審計日誌及終止申請免費試用。
正式版審計日誌根據審計日誌的儲存用量和保留時間長度按量收費,收費標準請參見ApsaraDB for MongoDB 詳細價格資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dds:DescribeMongoDBLogConfig |
get |
*dbinstance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBInstanceId |
string |
是 |
執行個體 ID。您可以通過調用 DescribeDBInstances 進行查詢。 |
dds-bp12c5b040dc**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
審計日誌的配置資訊。 |
||
| UserProjectName |
string |
審計日誌的 project 名稱。 |
nosql-176498472570****-cn-hangzhou |
| RequestId |
string |
請求 ID。 |
664ECE26-658A-47C5-88F6-870B0132E8D2 |
| IsUserProjectLogstoreExist |
integer |
當前地區中是否存在審計日誌的 project。取值:
|
1 |
| IsEtlMetaExist |
integer |
是否已建立將審計日誌分發到 Logtail 的規則。關於 Logtail 的詳細資料,請參見 Logtail 簡介。取值:
|
1 |
| ServiceType |
string |
審計日誌的版本類型。
|
Standard |
| EnableAudit |
boolean |
是否開啟ApsaraDB for MongoDB 審計日誌功能。
|
true |
| TtlForTrail |
integer |
免費試用審計日誌的保留時間長度,單位為天。 |
1 |
| UsedStorageForTrail |
integer |
免費試用審計日誌已使用的儲存容量,單位為位元組。 |
12548178759 |
| PreserveStorageForTrail |
integer |
免費試用審計日誌可使用儲存容量的上限,單位為位元組。可設定最高上限為 107374182400 位元組。 |
107374182400 |
| TtlForStandard |
integer |
正式版審計日誌的保留時間長度,取值範圍為 1~365 天。 |
30 |
| UsedStorageForStandard |
integer |
正式版審計日誌已使用的儲存容量,單位為位元組。 |
20163 |
| PreserveStorageForStandard |
integer |
正式版審計日誌可使用儲存容量的上限。如果值為-1,說明未設定上限。 |
-1 |
| HotTtlForV2Standard |
integer |
在 V2_Standard(DAS 企業版(NOSQL 相容)審計日誌)版本審計日誌中表示熱儲存天數。 |
7 |
| TtlForV2Standard |
integer |
在 V2_Standard(DAS 企業版(NOSQL 相容)審計日誌)版本審計日誌中表示冷儲存天數。 |
30 |
樣本
正常返回樣本
JSON格式
{
"UserProjectName": "nosql-176498472570****-cn-hangzhou",
"RequestId": "664ECE26-658A-47C5-88F6-870B0132E8D2",
"IsUserProjectLogstoreExist": 1,
"IsEtlMetaExist": 1,
"ServiceType": "Standard",
"EnableAudit": true,
"TtlForTrail": 1,
"UsedStorageForTrail": 12548178759,
"PreserveStorageForTrail": 107374182400,
"TtlForStandard": 30,
"UsedStorageForStandard": 20163,
"PreserveStorageForStandard": -1,
"HotTtlForV2Standard": 7,
"TtlForV2Standard": 30
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。