Skip to content

Instantly share code, notes, and snippets.

@jongio
Last active February 26, 2021 15:55
Show Gist options
  • Save jongio/b13944eafa9a08b907e924010c2e47cd to your computer and use it in GitHub Desktop.
Save jongio/b13944eafa9a08b907e924010c2e47cd to your computer and use it in GitHub Desktop.
Azure REST APIs with Insomnia Workspace
{
"_type":"export",
"__export_format":4,
"__export_date":"2021-02-26T15:46:44.984Z",
"__export_source":"insomnia.desktop.app:v2020.5.2",
"resources":[
{
"_id":"req_7bbaa70817c34e55bf70f64a26c0eff2",
"parentId":"fld_e3ddc403c123493a9bdd56aa59192655",
"modified":1614354317200,
"created":1614349277043,
"url":"{{tokenUrl}}",
"name":"Get Token",
"description":"",
"method":"GET",
"body":{
"mimeType":"multipart/form-data",
"params":[
{
"name":"grant_type",
"value":"client_credentials",
"description":"",
"id":"pair_26d96a9d14d548c392321d3197a842e5"
},
{
"name":"client_id",
"value":"{{clientId}}",
"description":"",
"id":"pair_3945bd203a374b2187dd1997ba5a5374"
},
{
"name":"client_secret",
"value":"{{clientSecret}}",
"description":"",
"id":"pair_979281e0465641c3994d396da60691c8"
},
{
"name":"resource",
"value":"{{resource}}",
"description":"",
"id":"pair_79915ca6e6a046f0a138a37a7bedcfdf"
}
]
},
"parameters":[
],
"headers":[
{
"name":"Content-Type",
"value":"multipart/form-data",
"id":"pair_e242c56ebc7d4af5b76fd158a00ea6a2"
}
],
"authentication":{
},
"metaSortKey":-1614349528263,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"fld_e3ddc403c123493a9bdd56aa59192655",
"parentId":"wrk_1f224eae86ae46cba6c10d2025d1f0aa",
"modified":1614350403065,
"created":1614350403065,
"name":"Authentication",
"description":"",
"environment":{
},
"environmentPropertyOrder":null,
"metaSortKey":-1614350403065,
"_type":"request_group"
},
{
"_id":"wrk_1f224eae86ae46cba6c10d2025d1f0aa",
"parentId":null,
"modified":1614348856456,
"created":1614348736056,
"name":"Azure REST 2021",
"description":"",
"scope":null,
"_type":"workspace"
},
{
"_id":"req_3b2620b3bbd949f28420cac9ac13ccfc",
"parentId":"fld_b5b5b4b41438472f9e58bbb9e2d0b13f",
"modified":1614350394621,
"created":1614348952343,
"url":"https://management.azure.com/subscriptions/{{subscriptionId}}/resourcegroups?api-version=2017-05-10",
"name":"Get Resource Groups",
"description":"",
"method":"GET",
"body":{
},
"parameters":[
],
"headers":[
{
"name":"",
"value":"",
"description":"",
"id":"pair_5e914dfa6edf4f1a876c233c014df9fc"
}
],
"authentication":{
},
"metaSortKey":-1614349528213,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"fld_b5b5b4b41438472f9e58bbb9e2d0b13f",
"parentId":"wrk_1f224eae86ae46cba6c10d2025d1f0aa",
"modified":1614350392788,
"created":1614350392788,
"name":"Resource Groups",
"description":"",
"environment":{
},
"environmentPropertyOrder":null,
"metaSortKey":-1614350392789,
"_type":"request_group"
},
{
"_id":"req_1ea29f0e680d4399bca02640a45cbada",
"parentId":"fld_b5b5b4b41438472f9e58bbb9e2d0b13f",
"modified":1614350410256,
"created":1614349528163,
"url":"https://management.azure.com/subscriptions/{{subscriptionId}}/resourcegroups/AzureRESTResourceGroup1?api-version=2020-09-01",
"name":"Create Resource Group",
"description":"",
"method":"PUT",
"body":{
"mimeType":"application/json",
"text":"{\"location\": \"westus\"}"
},
"parameters":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json",
"id":"pair_e5f39bf027b84ab7abe2ceef8a47b87e"
}
],
"authentication":{
},
"metaSortKey":-1614349528163,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"env_b8cc6efb20309d790ef23511433afbd5430ad73c",
"parentId":"wrk_1f224eae86ae46cba6c10d2025d1f0aa",
"modified":1614348736216,
"created":1614348736216,
"name":"Base Environment",
"data":{
},
"dataPropertyOrder":null,
"color":null,
"isPrivate":false,
"metaSortKey":1614348736216,
"_type":"environment"
},
{
"_id":"jar_b8cc6efb20309d790ef23511433afbd5430ad73c",
"parentId":"wrk_1f224eae86ae46cba6c10d2025d1f0aa",
"modified":1614354364298,
"created":1614348736222,
"name":"Default Jar",
"cookies":[
],
"_type":"cookie_jar"
},
{
"_id":"spc_8d9c6b0fb2f349989b3ebf3b4feeada1",
"parentId":"wrk_1f224eae86ae46cba6c10d2025d1f0aa",
"modified":1614348736066,
"created":1614348736066,
"fileName":"Azure REST",
"contents":"",
"contentType":"yaml",
"_type":"api_spec"
},
{
"_id":"env_beb1da363efa4fd896623af024594f5a",
"parentId":"env_b8cc6efb20309d790ef23511433afbd5430ad73c",
"modified":1614354358745,
"created":1614348892211,
"name":"Azure REST",
"data":{
"clientId":"",
"clientSecret":"",
"tenantId":"",
"subscriptionId":"",
"resource":"https://management.azure.com/",
"tokenUrl":"https://login.microsoftonline.com/{{tenantId}}/oauth2/token",
"DEFAULT_HEADERS":{
"Authorization":"Bearer {% response 'body', 'req_7bbaa70817c34e55bf70f64a26c0eff2', 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}"
}
},
"dataPropertyOrder":{
"&":[
"clientId",
"clientSecret",
"tenantId",
"subscriptionId",
"resource",
"tokenUrl",
"DEFAULT_HEADERS"
],
"&~|DEFAULT_HEADERS":[
"Authorization"
]
},
"color":null,
"isPrivate":false,
"metaSortKey":1614348892211,
"_type":"environment"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment