Appelle l'opération ModifyFlowLogAttribute pour modifier le nom et la description d'un journal de flux.
Description de l'opération
- ModifyFlowLogAttribute est une opération asynchrone. Après l'envoi d'une requête, le système renvoie un identifiant de requête. Cependant, le journal de flux n'a pas encore été modifié car la tâche de modification est toujours en cours d'exécution en arrière-plan. Vous pouvez appeler DescribeFlowLogs pour interroger l'état de la modification du journal de flux :
Si le journal de flux est dans l'état Modifying, le journal de flux est en cours de modification.
Si le journal de flux est dans l'état Active ou Inactive, le journal de flux a été modifié.
ModifyFlowLogAttribute ne prend pas en charge les modifications simultanées du même journal de flux.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
vpc:ModifyFlowLogAttribute |
update |
*FlowLog
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
L'identifiant de la région du journal de flux.\n\nVous pouvez appeler DescribeRegions pour obtenir la liste des régions la plus récente. |
cn-qingdao |
| FlowLogId |
string |
Oui |
L'identifiant du journal de flux. |
fl-m5e8vhz2t21sel1nq**** |
| FlowLogName |
string |
Non |
Le nouveau nom du journal de flux.\n\nLe nom doit comporter de 1 à 128 caractères et ne peut pas commencer par |
myFlowlog |
| Description |
string |
Non |
La nouvelle description du journal de flux.\n\nLa description doit comporter de 1 à 256 caractères et ne peut pas commencer par |
This is my Flowlog |
| AggregationInterval |
integer |
Non |
Le nouvel intervalle d'échantillonnage du journal de flux. Unité : minutes. Valeurs valides : 1, 5 et 10. |
1 |
| IpVersion |
string |
Non |
La version IP du trafic capturé par le journal de flux. |
IPv4 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
L'identifiant de la requête. |
||
| Success |
string |
Indique si l'opération a réussi. Valeurs valides :
|
true |
| RequestId |
string |
L'identifiant de la requête. |
F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1 |
Exemples
JSON format
{
"Success": "true",
"RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1"
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.FlowLog | The business status of flowLog is incorrect. | |
| 400 | InvalidInstanceId | Instance does not exist. | |
| 400 | ProjectOrLogstoreNotExist | The specified project or logstore does not exist. | |
| 400 | SourceProjectNotExist | The Source Project or logstore does not exist. | |
| 400 | Unauthorized | This api does not support sub user or role. | |
| 400 | InvalidInstanceId.NotFound | The specfied instance is not existed. | |
| 400 | RuleExist | The rule has already existed. | |
| 400 | InvalidHdMonitorStatus | Current instance status is not valid for this action. | |
| 400 | FlowLogNumberOverLimit | This user has reached the maximum instance number of flowlog. | |
| 400 | InvalidTrafficType.NotFound | Invalid traffic type. | |
| 400 | IncorrectStatus.flowlog | Invalid flowlog status. | |
| 400 | InvalidName.Malformed | The specified name is not valid. | |
| 400 | IllegalParam.AggregationInterval | The param of aggregationInterval is illegal. | |
| 400 | Forbidden.OperateManagedFlowLog | Authentication is failed for operate managed flowlog. | |
| 400 | UnsupportedFeature.IpVersion | The ipversion type is not supported. | |
| 400 | IllegalParam.IpVersion | The parameter of IpVersion is illegal. | |
| 400 | OperationDenied.NisTrafficAnalyzerAggregationIntervalMismatch | The sampling interval of the FlowLog is greater than the sampling interval of the NIS Traffic Analyzer. | |
| 400 | OperationDenied.NisTrafficAnalyzerNotActive | The specified NIS Traffic Analyzer is not enabled. | |
| 400 | OperationDenied.NisTrafficAnalyzerNotFound | The specified NIS Traffic Analyzer does not exist. | |
| 400 | OperationFailed.InternalError | The request processing has failed due to some unknown error. | |
| 400 | OperationDenied.InvalidInstanceDeliverScope | When modifying the delivery purpose of the FlowLog instance or starting and stopping NIS traffic analysis, you specify the type of delivery that is not allowed. | |
| 400 | IllegalParam.LogFormat | The specified parameter of LogFormat is invalid. | |
| 400 | OperationDenied.UnsupportedField | LogFormat contains unsupported fields. | |
| 400 | UnsupportedFeature.LogFormat | The ability to customize subscription fields for flow logs is not yet available, so stay tuned. | |
| 400 | UnsupportedFeature.LogFormatNisTrafficAnalyze | The flow log for which NIS traffic analysis is enabled does not support custom subscription fields. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.