How do I send a request in the form of json format and get back an answer?
I tried sending a post request but I keep getting "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
Is there a format?
Thanks.
See here for sample code to post requests: https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/quickstarts/csharp
QnA Maker is now GA (until recently it was in preview)
PREVIEW Version
POST request to your end-point and you need to set two header parameters in the request
endpoint looks like
https://westus.api.cognitive.microsoft.com/qnamaker/v2.0/knowledgebases/SOME_ID_STRING/generateAnswer
Content-Type=application/json
Ocp-Apim-Subscription-Key=YOUR_SUBSCRIPTION_KEY
GA Version
You will first spin the resource in regular portal and go to qnamaker.ai site to create a KB)
endpoint looks like https://YOUR_END_POINT.azurewebsites.net/qnamaker/knowledgebases/SOME_ID_AFTER_PUBLISHING_KB/generateAnswer
header parameters changed
Content-Type=application/json
Authorization=EndpointKey <YOUR_AUTH_KEY>
Related
when I called the azure blob storage with REST API, I found inside the response header, it discloses the Server and its version.
Are there any ways to disable the Server key? I don't want the response header showing the Server information.
AFAIK it is not possible to suppress response headers or programmatically control whic response headers to send back.
I'm just starting to work with Webhooks in Talend cloud.
how do I access the webhook callback header?
So far I have successfully:
Created a job
Published the artifact to the cloud
configured the environment and engine
invoked the webhook from the command line with curl
Output the payload via the context.resource_webhook_payload variable
I see my problem. I'm still learning API calls and such and Smartsheet API indicated they would send Header attributes.
When in fact this is simply in the payload, not a separate header designation.
Sorry for the naive question.
How do I send a JSON payload to a Zabbix Trapper Item without using Zabbix Sender?
I see the documentation on how to format the sender request and I see the documentation related to the header, but I haven't found how to use the header with a JSON payload.
My goal is to send Azure Activity Logs to Zabbix a Trapper Item using Azure Alerts.
I don't want to setup a Script Item or equivalent that would pull the information from the Azure API, as I would then have to worry about hitting the query limit for the Azure Management APIs and being throttled by the Azure platform.
How is the header incorporated into the request payload?
You need to use an implementation of the same protocol, for example:
in go: https://github.com/adubkov/go-zabbix
in python: https://github.com/adubkov/py-zabbix
and put that in a cloud function to send the payload to Zabbix.
I hosted a web API on azure app service using a docker image (linux)
And for production purpose I need all http requests to be logged.
I tried " Diagnostic settings (preview)" and I selected "Archive to a storage account"
, But when I checked my logs I found all http request data except request & response body and header.
So, is there a way to log this details for debugging purpose.
Thanks in advance.
You won't get the response body and header values in the AppServiceHTTPLogs. You can find the description of the log over at https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/appservicehttplogs.
The feature; however, is still in preview though so that means you can submit feedback asking to include the body and header values.
I am trying to get change notifications for users using microsoft graph api. For testing purpose I have been using ngrok as suggested by many.
But now I want to use the real notification url to test my code.
How do I do it? The microsoft documentation says "This URL must make use of the HTTPS protocol".
Do I create an endpoint in azure or what are the other options?
Thanks in advance.
The notificationUrl is just your proxy URL. See the example here: https://github.com/OfficeDev/hands-on-labs/blob/master/O3653/O3653-19%20WebHooks/Lab.md
The one in the sample using ngrok looks like:
https://74c48253.ngrok.io/notification/listen
You could use a Power Automate Instant Cloud Flow with the trigger as "When an HTTP request is received" and the subsequent steps could include emails with the details of the notification.
When you save the flow a URI will be generated which you can copy and use as your Graph change notification URI.