OpenFlowLogService - 開通流日誌功能
調用OpenFlowLogService介面開通流日誌功能。
介面說明
-
OpenFlowLogService 介面不支援在同一個阿里雲帳號(主帳號)並發開通流日誌功能。
-
您可以調用 GetFlowLogServiceStatus 介面查詢流日誌功能的開通狀態。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:OpenFlowLogService |
create |
*FlowLogService
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
是 |
流日誌所屬的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| RegionId |
string |
是 |
流日誌所屬的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
請求 ID。 |
||
| RequestId |
string |
請求 ID。 |
28CF47AB-B6C0-5FA2-80C7-2B28826A92CB |
| Code |
string |
狀態代碼。 |
200 |
| Message |
string |
流日誌開通成功返回的資訊。 |
successful |
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationFailed.ExceedPurchaseLimit | You have reached the limit of purchase quantity. | 您已達到最大購買量。 |
| 400 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | |
| 400 | OperationFailed.AliGroupUserCanNotBuyInnerCommodity | Vpc_flowlog_public has no group cloud product label, and users within the group are not allowed to purchase. | vpc_flowlog_public 無集團上雲商品標籤,不允許集團內部使用者購買。 |
| 400 | OperationFailed.QuotaNotEnough | Your quota is insufficient. Please contact your channel partner to increase your quota | 您當前quota配額不足,請您可以聯絡渠道夥伴為您增加額度 |
| 400 | Order.NoRealNameAuthentication | Real-name verification has not been completed for the account. | 您尚未進行實名認證,請前往帳號中心完成實名認證。 |
| 400 | OperationFailed.BasicInfoUncompleted | You have not completed your basic personal information, please complete the information and try again. | 您未完善個人基本資料,請完善資訊後重新操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。