Verwenden Sie die API, um ein vorhandenes Konfigurationspaket zu aktualisieren
Sie können die StyleBook-API verwenden, um die vorhandenen Konfigurationspakete in ADM zu aktualisieren.
PUT: https://<ADM-endpoint-name>/stylebook/nitro/v2/config/configpacks/<configpack-ID>?mode=async
Nutzlast:
{
"configpack": {
"parameters": {
"name": "TestApp1",
"lbname": "my-lbv",
"waf-settings": {
"rule": "true",
"type": [
"HTML"
],
"profile-settings": {
"logeverypolicyhit": false,
"enablesignatures": {
"signaturename": "waf-sign1"
},
"sqlinjection-settings": {
"sqlinjectionaction": [
"log",
"stats"
],
"sqlinjection-default-settings": {
"sqlinjectiontransformspecialchars": true,
"sqlinjectionchecksqlwildchars": true,
"sqlinjectiontype": "SQLSplCharANDKeyword",
"sqlinjectionparsecomments": "checkall",
"sqlinjectiongrammar": "OFF"
}
},
"bufferoverflow-settings": {
"bufferoverflowaction": [
"log"
],
"bufferoverflowmaxurllength": "2048",
"bufferoverflowmaxheaderlength": "4096",
"bufferoverflowmaxcookielength": "4096",
"bufferoverflowmaxquerylength": "65535",
"bufferoverflowmaxtotalheaderlength": "65535"
}
}
}
},
"config_key": "",
"targets": [
{
"instance_id": "1b322685-3b23-4111-a9ce-56dd1c659e4c"
}
],
"stylebook": {
"name": "waf-adv",
"namespace": "com.citrix.adc.stylebooks",
"version": "1.3"
}
}
}
<!--NeedCopy-->
Verwenden Sie die API, um Zielinstanzen zu aktualisieren
Ändern Sie in der Payload des Update Config Packs den targets
Abschnitt, um eine ADC-Instanz hinzuzufügen, zu entfernen oder zu ersetzen.
Beispiel:
{
"targets": [
{
"instance_id": "Existing-ADC-instance-ID"
},
{
"instance_id": "New-ADC-instance-ID"
}
],
}
<!--NeedCopy-->
Verwenden Sie die API, um ein vorhandenes Konfigurationspaket zu aktualisieren
Kopiert!
Fehler!