User Tools

Site Tools


rest-api:curl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rest-api:curl [2023/09/29 14:04] – created odeftarest-api:curl [2023/09/29 14:06] (current) odefta
Line 5: Line 5:
 </code> </code>
  
-<code> +  - **URL**: https://host:port/rest-endpoint?onlyAlerts=false&action=navigate
-curl -u Admin:Admin "https://item-ax33089.wks.axway.int:1309/SentinelWebAlerts/rest/ruleServices/rules?onlyAlerts=false&action=navigate" -k -v -X POST -H "Content-Type: application/json" -d '{"sortColumn":"name","sortDirection":"asc","filters":[]}' > out.txt +
-</code> +
- +
-  - **URL**: ''https://<host>:<port>/<rest-endpoint>?onlyAlerts=false&action=navigate''+
   - **Username**: user   - **Username**: user
   - **Password**: pwd   - **Password**: pwd
Line 15: Line 11:
   - **Headers**:   - **Headers**:
     - **Content-Type**: application/json     - **Content-Type**: application/json
-  - **Data/Payload**: ''{"sortColumn":"name","sortDirection":"asc","filters":[]}'' +  - **Data/Payload**: {"sortColumn":"name","sortDirection":"asc","filters":[]} 
-  - **Output**: The output of the command will be redirected to a file named ''out.txt''.+  - **Output**: The output of the command will be redirected to a file named out.txt.
   - **-k**: This option allows curl to proceed and operate even for server connections otherwise considered insecure.   - **-k**: This option allows curl to proceed and operate even for server connections otherwise considered insecure.
   - **-v**: Makes the operation more talkative. You can see information about the SSL certificate, the headers, and more.   - **-v**: Makes the operation more talkative. You can see information about the SSL certificate, the headers, and more.
 +
  
  
rest-api/curl.1695985457.txt.gz · Last modified: 2023/09/29 14:04 by odefta