Forum Discussion
create http monitoring in case of status 500 or higher disable node or pool-member
I need the string with the parameters below:
curl --location --request POST 'http://192.168.0.100:8080/ClayRestApi/NMON40'\
--header 'Content-Type: application/json'\
--data-raw '{ "workflow": "modelSTUB",
"recordType": "NMON40",
"source": "SOURCE",
"dest": "PMAX",
"tranCode": "200",
"dataSpecificationVersion": "2.0",
"extendedHeader": "Via_Var",
"clientIdFromHeader": "U_ORO001_CR",
"recordCreationDate": "20230208",
"recordCreationTime": "190706",
"recordCreationMilliseconds": "016",
"gmtOffset": "-03.00"
}'
cleiton_82 In this comment is it necessary to send creation information and time offset or just the other header fields?
- cleiton_82Feb 09, 2023Nimbostratus
Paulius Those same header fields that are in the curl command
--header 'Content-Type: application/json'\
--data-raw '{ "workflow": "modelSTUB",
"recordType": "NMON40",
"source": "SOURCE",
"dest": "PMAX",
"tranCode": "200",
"dataSpecificationVersion": "2.0",
"extendedHeader": "Via_Var",
"clientIdFromHeader": "U_ORO001_CR",
"recordCreationDate": "20230208",
"recordCreationTime": "190706",
"recordCreationMilliseconds": "016",
"gmtOffset": "-03.00"
}'- PauliusFeb 09, 2023MVP
cleiton_82 This might work for you for the send string but I'm not 100% positive on it because I have never had to send data in an HTTP monitor.
POST /ClayRestApi/NMON40 HTTP/1.0\r\nContent-Type: application/json\r\n\r\n{"workflow": "modelSTUB",\r\n"recordType": "NMON40",\r\n"source": "SOURCE",\r\n"dest": "PMAX",\r\n"tranCode": "200",\r\n"dataSpecificationVersion": "2.0",\r\n"extendedHeader": "Via_Var",\r\n"clientIdFromHeader": "U_ORO001_CR",\r\n"recordCreationDate": "20230208",\r\n"recordCreationTime": "190706",\r\n"recordCreationMilliseconds": "016",\r\n"gmtOffset": "-03.00"\r\n}\r\n\r\n
I had been rethinking the receive string and do you want a valid response to be any HTTP status code ranging from 1xx to 4xx and only a 5xx would be an invalid response?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com