Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3a9e66a
Add new 2.0-preview.1 version for IoT Central
yang-hai-feng Jul 19, 2021
c8968b9
fix typo on enum value
yang-hai-feng Jul 19, 2021
c0e5dbe
rollback 1.0 changes, applied 2.0-preview.1
yang-hai-feng Jul 19, 2021
45e3f2e
fix typo
yang-hai-feng Jul 19, 2021
bbcdbea
remove non-used examples
yang-hai-feng Jul 19, 2021
be39cf4
fix style
yang-hai-feng Jul 19, 2021
fa694d2
update version from 2.0-preview.1 to 1.1-preview
yang-hai-feng Jul 21, 2021
91dbc26
update code review comments, fix patch consumes with json-patch suppo…
yang-hai-feng Aug 6, 2021
14f9ad6
add nextLink to collection of orgs
yang-hai-feng Aug 6, 2021
877f355
fix typo
yang-hai-feng Aug 6, 2021
36b8337
fix wrong position of paging
yang-hai-feng Aug 6, 2021
522888b
fix the paging
yang-hai-feng Aug 6, 2021
b1cdf8d
add . to description
yang-hai-feng Aug 9, 2021
51a2fe6
update default to use enum for api-version
yang-hai-feng Aug 9, 2021
f9b1419
Merge remote-tracking branch 'upstream/master'
yang-hai-feng Oct 12, 2021
8dbb1c5
add oct release with query, cde v2, device filter, device template fi…
yang-hai-feng Oct 20, 2021
3233291
update examples
yang-hai-feng Oct 22, 2021
c08f427
fix lint error, model validation
yang-hai-feng Oct 22, 2021
a0b2fbe
merge master changes
yang-hai-feng Oct 22, 2021
5d98c63
fix missing type in examples, remove url format
yang-hai-feng Oct 25, 2021
722618d
fix ID case
yang-hai-feng Oct 25, 2021
efdb8bb
fix id case
yang-hai-feng Oct 25, 2021
f562c0c
fix ID case
yang-hai-feng Oct 25, 2021
1540b18
add iotc query language reference
yang-hai-feng Oct 25, 2021
fe669b2
fix typo
yang-hai-feng Oct 25, 2021
a0302ec
merge upstream/master, fix conflict
yang-hai-feng Oct 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2414,6 +2414,11 @@ pmem
rawphysical
rawvirtual
sesparse
blobstorage
dataexplorer
servicebusqueue
servicebustopic
dataexports
stackset
CSPM
autoprovisioning
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"title": "Create data export ADX destination",
"description": "Create an ADX destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "Azure Data Explorer",
"type": "dataexplorer@v1",
"clusterUrl": "https://[clusterName].westus2.kusto.windows.net",
"database": "database1",
"table": "table1",
"authorization": {
"type": "servicePrincipal",
"clientId": "3b420743-2020-44c6-9b70-cc42f945db0x",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"clientSecret": "[Secret]"
}
}
},
"responses": {
"200": {
"body": {
"id": "destination1",
"displayName": "Azure Data Explorer",
"type": "dataexplorer@v1",
"clusterUrl": "https://[clusterName].westus2.kusto.windows.net",
"database": "database1",
"table": "table1",
"authorization": {
"type": "servicePrincipal",
"clientId": "3b420743-2020-44c6-9b70-cc42f945db0x",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"clientSecret": "*****"
},
"status": "waiting"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"title": "Create data export Blob Storage destination",
"description": "Create a Blob Storage destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "Blob Storage",
"type": "blobstorage@v1",
"authorization": {
"type": "connectionString",
"connectionString": "DefaultEndpointsProtocol=https;AccountName=[accountName];AccountKey=[key];EndpointSuffix=core.windows.net",
"containerName": "test"
}
}
},
"responses": {
"200": {
"body": {
"id": "destination1",
"displayName": "Blob Storage",
"type": "blobstorage@v1",
"authorization": {
"type": "connectionString",
"connectionString": "DefaultEndpointsProtocol=https;AccountName=[accountName];AccountKey=*****;EndpointSuffix=core.windows.net",
"containerName": "test"
},
"status": "waiting"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "Create data export Event Hub destination",
"description": "Create an Event hub destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "Event Hub",
"type": "eventhubs@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[hubName].servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=[Key];EntityPath=entityPath1"
}
}
},
"responses": {
"200": {
"body": {
"id": "destination1",
"displayName": "Event Hub",
"type": "eventhubs@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[hubName].servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=*****;EntityPath=entityPath1"
},
"status": "waiting"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "Create data export Service Bus Queue destination",
"description": "Create an Service Bus Queue destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "Service Bus Queue",
"type": "servicebusqueue@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespance].servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=[key];EntityPath=[name]"
}
}
},
"responses": {
"200": {
"body": {
"id": "destination1",
"displayName": "Service Bus Queue",
"type": "servicebusqueue@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=*****;EntityPath=[name]"
},
"status": "waiting"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "Create data export Event Hub destination",
"description": "Create an Event hub destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "Service Bus Topic",
"type": "servicebustopic@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=[key];EntityPath=[name]"
}
}
},
"responses": {
"200": {
"body": {
"id": "destination1",
"displayName": "Service Bus Topic",
"type": "servicebustopic@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=*****;EntityPath=[name]"
},
"status": "waiting"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": "Create data export Webhook destination",
"description": "Create a Webhook destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "Webhook No Auth",
"type": "webhook@v1",
"url": "https://webhook.site/9bda8769-d540-4d92-946b-48c5a01e59bd",
"headerCustomizations": {
"x-custom-region": {
"value": "westcentralus",
"secret": false
}
}
}
},
"responses": {
"200": {
"body": {
"id": "destination1",
"displayName": "Webhook No Auth",
"type": "webhook@v1",
"url": "https://webhook.site/9bda8769-d540-4d92-946b-48c5a01e59bd",
"headerCustomizations": {
"x-custom-region": {
"value": "westcentralus",
"secret": false
}
},
"status": "waiting"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"title": "Delete data export destination",
"description": "Delete a data export destination with Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "List all data exports connected to the given destination",
"description": "Get a list of data exports connected to the given destination, returned exports include everything except the destination.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"api-version": "1.1-preview",
"destinationId": "destination1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "newTest",
"displayName": "Test Export 1",
"enabled": true,
"source": "telemetry",
"filter": "SELECT * FROM devices WHERE $displayName != \"abc\" AND $id = \"a\"",
"enrichments": {
"abc": {
"path": "$templateDisplayName"
}
},
"destinations": [],
"status": "healthy"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "Get data export destination",
"description": "Get a data export destination with Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview"
},
"responses": {
"200": {
"body": {
"id": "1021f12a-6969-4eff-8518-57cac5f128ab",
"displayName": "Webhook No Auth",
"type": "webhook@v1",
"url": "https://webhook.site/9bda8769-d540-4d92-946b-48c5a01e59bd",
"headerCustomizations": {
"x-custom-region": {
"value": "westcentralus",
"secret": false
}
},
"status": "error",
"errors": [
{
"code": "InvalidResponse",
"message": "The webhook returned a 4xx status code."
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"title": "List data export destinations in your application",
"description": "Get a list of data export destinations in your application.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"api-version": "1.1-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "1021f12a-6969-4eff-8518-57cac5f128ab",
"displayName": "Webhook No Auth",
"type": "webhook@v1",
"url": "https://webhook.site/9bda8769-d540-4d92-946b-48c5a01e59bd",
"headerCustomizations": {
"x-custom-region": {
"value": "westcentralus",
"secret": false
}
},
"status": "waiting"
},
{
"id": "70bb70e7-e308-4628-95aa-706596646f02",
"displayName": "Service Bus Queue",
"type": "servicebusqueue@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=*****;EntityPath=[queue name]"
},
"status": "waiting"
},
{
"id": "7308456f-c72b-43d8-99ba-22a49ea5d51a",
"displayName": "Service Bus Topic",
"type": "servicebustopic@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=*****;EntityPath=[topic name]"
},
"status": "waiting"
},
{
"id": "b3bfe8f0-ea63-42f9-82e1-bbade5250aba",
"displayName": "Azure Data Explorer",
"type": "dataexplorer@v1",
"clusterUrl": "https://[clusterName].westus2.kusto.windows.net",
"database": "iiot",
"table": "demo",
"authorization": {
"type": "servicePrincipal",
"clientId": "5b420743-2020-44c6-9b70-cc42f945db0c",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"clientSecret": "*****"
},
"status": "waiting"
},
{
"id": "beb083d0-cec9-4e7e-8e4b-22b88e8e3479",
"displayName": "Azure Blob Storage",
"type": "blobstorage@v1",
"authorization": {
"type": "connectionString",
"connectionString": "DefaultEndpointsProtocol=https;AccountName=[accountName];AccountKey=*****;EndpointSuffix=core.windows.net",
"containerName": "test"
},
"status": "waiting"
},
{
"id": "c0e2a49f-6d5b-4bc1-b448-069806b72781",
"displayName": "Event Hub",
"type": "eventhubs@v1",
"authorization": {
"type": "connectionString",
"connectionString": "Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=*****;EntityPath=[hub name]"
},
"status": "waiting"
}
]
}
}
}
}
Loading