Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger and examples for Microsoft.DataBoxEdge RP #4952

Merged
merged 12 commits into from
Jan 7, 2019

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"name": "159a00c7-8543-4343-9435-263ac87df3bb",

"x-ms-client-request-id": [
"a93b39a3-1ff4-42b8-a56f-43368d47e37a"
],
"accept-language": [
"en-US"
]
},
"responses": {
"200": {
"body": {
"properties": {
"title": "Could not scan for updates. Error message : 'An internal error has occurred. Please contact Microsoft Support.'.",
"alertType": "UpdateScanFailedEvent",
"appearedAtDateTime": "2018-12-18T02:18:51.4270267Z",
"recommendation": "Resolve the error : An internal error has occurred. Please contact Microsoft Support.",
"severity": "Critical",
"errorDetails": {
"errorCode": "",
"errorMessage": "",
"occurences": 1
},
"detailedInformation": {}
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/alerts/159a00c7-8543-4343-9435-263ac87df3bb",
"name": "159a00c7-8543-4343-9435-263ac87df3bb",
"type": "dataBoxEdgeDevices/alerts"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"x-ms-client-request-id": [
"a93b39a3-1ff4-42b8-a56f-43368d47e37a"
],
"accept-language": [
"en-US"
]
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"title": "Device password has changed",
"alertType": "PasswordChangedEvent",
"appearedAtDateTime": "2018-12-18T02:29:15.2325577Z",
"recommendation": "The device administrator password has changed. This is a required action as part of the first time device setup or regular password reset. No further action is required.",
"severity": "Informational",
"errorDetails": {
"errorCode": "",
"errorMessage": "",
"occurences": 2
},
"detailedInformation": {}
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/alerts/83eccd0b-134b-40b0-ad62-b5f124d03790",
"name": "83eccd0b-134b-40b0-ad62-b5f124d03790",
"type": "dataBoxEdgeDevices/alerts"
},
{
"properties": {
"title": "Could not scan for updates. Error message : 'An internal error has occurred. Please contact Microsoft Support.'.",
"alertType": "UpdateScanFailedEvent",
"appearedAtDateTime": "2018-12-18T02:18:51.4270267Z",
"recommendation": "Resolve the error : An internal error has occurred. Please contact Microsoft Support.",
"severity": "Critical",
"errorDetails": {
"errorCode": "",
"errorMessage": "",
"occurences": 1
},
"detailedInformation": {}
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/alerts/159a00c7-8543-4343-9435-263ac87df3bb",
"name": "159a00c7-8543-4343-9435-263ac87df3bb",
"type": "dataBoxEdgeDevices/alerts"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"name": "bandwidth-1",

"accept-language": [
"en-US"
]

},
"responses": {
"200": { "body": "" },
"202": { "body": "" },
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"name": "bandwidth-1",

"accept-language": [
"en-US"
]

},
"responses": {
"200": {
"body": {
"properties": {
"start": "00:00:00",
"stop": "13:59:00",
"rateInMbps": 100,
"days": [
"Sunday",
"Monday"
]
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/bandwidthSchedules/bandwidth-1",
"name": "bandwidth-1",
"type": "dataBoxEdgeDevices/bandwidthSchedules"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",

"accept-language": [
"en-US"
]

},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"start": "00:00:00",
"stop": "13:59:00",
"rateInMbps": 100,
"days": [
"Sunday",
"Monday"
]
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/bandwidthSchedules/bandwidth-1",
"name": "bandwidth-1",
"type": "dataBoxEdgeDevices/bandwidthSchedules"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"name": "bandwidth-1",

"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
"200"
],
"x-ms-client-request-id": [
"a93b39a3-1ff4-42b8-a56f-43368d47e37a"
],
"accept-language": [
"en-US"
],
"parameters": {
"properties": {
"start": "0:0:0",
"stop": "13:59:0",
"rateInMbps": 100,
"days": [
"Sunday",
"Monday"
]
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/bandwidthSchedules/bandwidth-1",
"name": "bandwidth-1",
"type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices/bandwidthSettings"
}
},
"responses": {
"200": {
"body": {
"properties": {
"start": "00:00:00",
"stop": "13:59:00",
"rateInMbps": 100,
"days": [
"Sunday",
"Monday"
]
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/bandwidthSchedules/bandwidth-1",
"name": "bandwidth-1",
"type": "dataBoxEdgeDevices/bandwidthSchedules"
}
},
"202": { "body": "" }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"x-ms-client-request-id": [
"a93b39a3-1ff4-42b8-a56f-43368d47e37a"
],
"accept-language": [
"en-US"
]
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"deviceName": "testedgedevice",
"x-ms-client-request-id": [
"a93b39a3-1ff4-42b8-a56f-43368d47e37a"
],
"accept-language": [
"en-US"
]
},
"responses": {
"200": {
"body": {
"location": "WUS",
"tags": {},
"sku": {
"name": "Edge",
"tier": "Standard"
},
"etag": "\"W/\"datetime'2018-12-16T08%3A03%3A27.61Z'\"_W/\"datetime'2018-12-16T08%3A03%3A27.653Z'\"\"",
"properties": {
"dataBoxEdgeDeviceStatus": "ReadyToSetup",
"deviceType": "DataBoxEdgeDevice",
"deviceLocalCapacity": 0
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice",
"name": "testedgedevice",
"type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"parameters": {
"api-version": "2018-07-01",
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "GroupForEdgeAutomation",
"x-ms-client-request-id": [
"a93b39a3-1ff4-42b8-a56f-43368d47e37a"
],
"accept-language": [
"en-US"
]
},
"responses": {
"200": {
"body": {
"value": [
{
"location": "WUS",
"tags": {},
"sku": {
"name": "Edge",
"tier": "Standard"
},
"etag": "\"W/\"datetime'2018-12-17T10%3A31%3A06.493Z'\"_W/\"datetime'2018-12-17T10%3A31%3A06.597Z'\"\"",
"properties": {
"dataBoxEdgeDeviceStatus": "ReadyToSetup",
"deviceType": "DataBoxEdgeDevice",
"deviceLocalCapacity": 0
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice",
"name": "testedgedevice",
"type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices"
},
{
"location": "WUS",
"tags": {},
"sku": {
"name": "Edge",
"tier": "Standard"
},
"etag": "\"W/\"datetime'2018-09-27T09%3A45%3A09.15Z'\"_W/\"datetime'2018-09-27T09%3A45%3A09.177Z'\"\"",
"properties": {
"dataBoxEdgeDeviceStatus": "ReadyToSetup",
"deviceType": "DataBoxEdgeDevice",
"deviceLocalCapacity": 0
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice2",
"name": "testedgedevice2",
"type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices"
},
{
"location": "WUS",
"tags": {},
"sku": {
"name": "Edge",
"tier": "Standard"
},
"etag": "\"W/\"datetime'2018-12-17T10%3A31%3A00.293Z'\"_W/\"datetime'2018-12-17T10%3A31%3A00.34Z'\"\"",
"properties": {
"dataBoxEdgeDeviceStatus": "ReadyToSetup",
"deviceType": "DataBoxEdgeDevice",
"deviceLocalCapacity": 0
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice3",
"name": "testedgedevice3",
"type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices"
}
]
}
}
}
}
Loading