Skip to content

Instantly share code, notes, and snippets.

@focrensh
Last active February 2, 2021 14:57
Show Gist options
  • Save focrensh/03a09d4c6f7685ba522d92e9485ff703 to your computer and use it in GitHub Desktop.
Save focrensh/03a09d4c6f7685ba522d92e9485ff703 to your computer and use it in GitHub Desktop.
as3_json
curl -vX POST -u admin http://localhost:8100/mgmt/shared/appsvcs/declare -d @as3.json \
--header "Content-Type: application/json"
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.22.0",
"remark": "test",
"Common": {
"Shared": {
"class": "Application",
"template": "shared",
"telemetry_local_rule": {
"class": "iRule",
"iRule": "when CLIENT_ACCEPTED {\n node 127.0.0.1 6514\n}"
},
"telemetry_local": {
"class": "Service_TCP",
"virtualAddresses": [
"255.255.255.254"
],
"virtualPort": 6514,
"iRules": [
"telemetry_local_rule"
]
},
"telemetry": {
"class": "Pool",
"members": [
{
"enable": true,
"serverAddresses": [
"255.255.255.254"
],
"servicePort": 6514
}
],
"monitors": [
{
"bigip": "/Common/tcp"
}
]
},
"telemetry_hsl": {
"class": "Log_Destination",
"type": "remote-high-speed-log",
"protocol": "tcp",
"pool": {
"use": "telemetry"
}
},
"telemetry_formatted": {
"class": "Log_Destination",
"type": "splunk",
"forwardTo": {
"use": "telemetry_hsl"
}
},
"telemetry_publisher": {
"class": "Log_Publisher",
"destinations": [
{
"use": "telemetry_formatted"
}
]
},
"telemetry_security_log_profile": {
"class": "Security_Log_Profile",
"application": {
"localStorage": false,
"remoteStorage": "splunk",
"protocol": "tcp",
"servers": [
{
"address": "255.255.255.254",
"port": "6514"
}
],
"storageFilter": {
"requestType": "all"
}
}
},
"avr_http": {
"class": "Analytics_Profile",
"collectedStatsExternalLogging": true,
"capturedTrafficExternalLogging": false,
"publishIruleStatistics": true,
"collectMaxTpsAndThroughput": true,
"collectPageLoadTime": true,
"collectClientSideStatistics": true,
"collectUserSession": true,
"collectUrl": true,
"collectGeo": true,
"collectIp": true,
"collectSubnet": true,
"collectResponseCode": true,
"collectUserAgent": true,
"collectMethod": true,
"collectOsAndBrowser": true,
"sessionTimeoutMinutes": 30
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment