Update uri.py (#67688)
Adds an example of creating workspaces in Log analytics Azure Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
This commit is contained in:
parent
66e38bf499
commit
4317c2c80c
1 changed files with 14 additions and 0 deletions
|
@ -278,6 +278,20 @@ EXAMPLES = r'''
|
||||||
src: /path/to/my/file.json
|
src: /path/to/my/file.json
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
|
- name: Create workspaces in Log analytics Azure
|
||||||
|
uri:
|
||||||
|
url: https://www.mms.microsoft.com/Embedded/Api/ConfigDataSources/LogManagementData/Save
|
||||||
|
method: POST
|
||||||
|
body_format: json
|
||||||
|
status_code: [200, 202]
|
||||||
|
return_content: true
|
||||||
|
headers:
|
||||||
|
Content-Type: application/json
|
||||||
|
x-ms-client-workspace-path: /subscriptions/{{ sub_id }}/resourcegroups/{{ res_group }}/providers/microsoft.operationalinsights/workspaces/{{ w_spaces }}
|
||||||
|
x-ms-client-platform: ibiza
|
||||||
|
x-ms-client-auth-token: "{{ token_az }}"
|
||||||
|
body:
|
||||||
|
|
||||||
- name: Pause play until a URL is reachable from this host
|
- name: Pause play until a URL is reachable from this host
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.0.2.1/some/test"
|
url: "http://192.0.2.1/some/test"
|
||||||
|
|
Loading…
Reference in a new issue