HttpRequest
For Graph templates we added the HTTP entity that allows you to make a HTTP request during template provisioning. These requests can be anonymous to any endpoint or authenticated for graph endpoints. The results of a call are written to the log file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<Configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.mavention.com/Graph/Make">
<Providers>
<Provider NodeName="Graph" Class="Mavention.Make.Engine.Providers.GraphProvider" Assembly="Mavention.Make.Engine"/>
</Providers>
<Graph>
<HttpRequests>
<HttpRequest Url="https://graph.microsoft.com/v1.0/teams/6bca8a5e-efa5-4a5e-a4a5-55c814762f6e" Method="GET" Authenticated="true">
<Headers>
<Header Name="Test" Value="TestValue"></Header>
</Headers>
<Content MediaType="application/json">
<Headers>
<Header Name="TestBody" Value="TestBodyValue"></Header>
</Headers>
<Body>TestBody</Body>
</Content>
</HttpRequest>
</HttpRequests>
</Graph>
</Configurator>
|