Skip to content

Commit

Permalink
Add scope parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
icodetolive committed Apr 10, 2019
1 parent 2b5a2a4 commit 3a6a09e
Show file tree
Hide file tree
Showing 50 changed files with 84 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "100"
"billingAccountId": "100",
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"billingAccountId": "100",
"$expand": "properties/data",
"$top": 5
"$top": 5,
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"billingAccountId": "100",
"$expand": "properties/data",
"$top": 5,
"$filter": "properties/category eq 'resourceId'"
"$filter": "properties/category eq 'resourceId'",
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "70664866",
"scope": "billingAccounts/"
"parameters":{
"type": "Usage",
"timeframe": "MonthToDate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "70664866",
"scope": "billingAccounts/"
"parameters":{
"type": "Usage",
"timeframe": "TheLastMonth",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "100",
"departmentId": "123"
"departmentId": "123",
"scope": "billingAccounts/100/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"billingAccountId": "100",
"departmentId": "123",
"$expand": "properties/data",
"$top": 5
"$top": 5,
"scope": "billingAccounts/100/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"departmentId": "123",
"$expand": "properties/data",
"$top": 5,
"$filter": "properties/category eq 'resourceId'"
"$filter": "properties/category eq 'resourceId'",
"scope": "billingAccounts/100/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"billingAccountId": "70664866",
"departmentId": "123",
"scope": "billingAccounts/70664866/departments/",
"parameters":{
"type": "Usage",
"timeframe": "MonthToDate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"billingAccountId": "70664866",
"departmentId": "123",
"scope": "billingAccounts/70664866/departments/",
"parameters":{
"type": "Usage",
"timeframe": "TheLastMonth",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "100",
"enrollmentAccountId": "456"
"enrollmentAccountId": "456",
"scope": "billingAccounts/100/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"billingAccountId": "100",
"enrollmentAccountId": "456",
"$expand": "properties/data",
"$top": 5
"$top": 5,
"scope": "billingAccounts/100/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"enrollmentAccountId": "456",
"$expand": "properties/data",
"$top": 5,
"$filter": "properties/category eq 'resourceId'"
"$filter": "properties/category eq 'resourceId'",
"scope": "billingAccounts/100/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"billingAccountId": "70664866",
"enrollmentAccountId": "456",
"scope": "billingAccounts/70664866/enrollmentAccounts/",
"parameters": {
"type": "Usage",
"timeframe": "MonthToDate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"billingAccountId": "70664866",
"enrollmentAccountId": "456",
"scope": "billingAccounts/70664866/enrollmentAccounts/",
"parameters":{
"type": "Usage",
"timeframe": "TheLastMonth",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "subscriptions/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccount/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"departmentId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"enrollmentAccountId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/enrollmentAccounts"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"exportName": "TestExport",
"scope": "subscriptions/",
"parameters": {
"properties": {
"schedule":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"billingAccountId": "123456",
"exportName": "TestExport",
"scope": "billingAccounts/",
"parameters": {
"properties": {
"schedule":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"departmentId": "1234",
"exportName": "TestExport",
"scope": "billingAccounts/12/departments/",
"parameters": {
"properties": {
"schedule":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"api-version": "2019-01-01",
"enrollmentAccountId": "1234",
"exportName": "TestExport",
"scope": "billingAccounts/12/enrollmentAccounts/",
"parameters": {
"properties": {
"schedule":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "subscriptions/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"departmentId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"enrollmentAccountId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "subscriptions"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"departmentId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"enrollmentAccountId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "subscriptions/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"departmentId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"enrollmentAccountId": "1234",
"exportName": "TestExport"
"exportName": "TestExport",
"scope": "billingAccounts/12/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG"
"resourceGroupName": "MYDEVTESTRG",
"scope": "subscriptions/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456"
"billingAccountId": "123456",
"scope": "billingAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-01-01",
"departmentId": "1234"
"departmentId": "1234",
"scope": "billingAccounts/12/departments/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-01-01",
"departmentId": "1234"
"departmentId": "1234",
"scope": "billingAccounts/12/enrollmentAccounts/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-01-01",
"managementGroupId": "MyMgId"
"managementGroupId": "MyMgId",
"scope": "managementGroups/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"managementGroupId": "MyMgId",
"$expand": "properties/data",
"$top": 5
"$top": 5,
"scope": "managementGroups/"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"managementGroupId": "MyMgId",
"$expand": "properties/data",
"$top": 5,
"$filter": "properties/category eq 'resourceId'"
"$filter": "properties/category eq 'resourceId'",
"scope": "managementGroups/"
},
"responses": {
"200": {
Expand Down
Loading

0 comments on commit 3a6a09e

Please sign in to comment.