Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Create or update export",
"description": "Create a new export or update an existing export, specifying its Id.",
"title": "Create or replace export",
"description": "Create a new export or replace an existing export, specifying its Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"title": "Update export",
"description": "Update parts of an existing continuous data export, specifying its Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"export_id": "abc",
"body": {
"displayName": "Updated export name",
"endpoint": {
"type": "StorageEndpoint",
"connectionString": "<updated connection string>",
"name": "Blob 1"
},
"enabled": false,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
}
},
"responses": {
"200": {
"body": {
"id": "abc",
"etag": "493aface-4c5e-4318-89e9-f6586f687009",
"displayName": "Updated export name",
"endpoint": {
"type": "StorageEndpoint",
"connectionString": "<updated connection string",
"name": "Blob 1"
},
"status": "stopped",
"enabled": false,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"title": "Update device attestation - Symmetric key",
"description": "Update parts or all of the symmetric key attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "CheckoutThermostat",
"body": {
"type": "SymmetricKeyAttestation",
"symmetricKey": {
"primaryKey": "<new primary key>",
"secondaryKey": "<new secondary key>"
}
}
},
"responses": {
"200": {
"body": {
"type": "SymmetricKeyAttestation",
"symmetricKey": {
"primaryKey": "<new primary key>",
"secondaryKey": "<new secondary key>"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "Set device attestation - TPM",
"description": "Creates or updates the TPM attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "CheckoutThermostat",
"body": {
"type": "TpmAttestation",
"tpm": {
"endorsementKey": "<endorsement key>"
}
}
},
"responses": {
"200": {
"body": {
"type": "TpmAttestation",
"tpm": {
"endorsementKey": "<endorsement key>"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Update device attestation - X509",
"description": "Updates the existing X509 attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "CheckoutThermostat",
"body": {
"type": "X509Attestation",
"x509": {
"clientCertificates": {
"primary": {
"certificate": "<new string representation of the certificate>"
}
}
}
}
},
"responses": {
"200": {
"body": {
"type": "X509Attestation",
"x509": {
"clientCertificates": {
"primary": {
"info": {
"sha1Thumbprint": "<thumbprint>"
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Replace cloud properties of a device",
"description": "Replace cloud properties of a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"body": {
"AssetID": "123abc"
},
"device_id": "mx1"
},
"responses": {
"200": {
"body": {
"AssetID": "123abc"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"title": "Update cloud properties of a device",
"description": "Update cloud properties of a device.",
"description": "Update some or all cloud properties of a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"body": {
"AssetID": "123abc"
"AssetID": "updated value"
},
"device_id": "mx1"
},
"responses": {
"200": {
"body": {
"AssetID": "123abc"
"AssetID": "updated value"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@
"component_name": "Thermostat_1o",
"command_name": "CoolDown",
"body": {
"connectionTimeout": 10,
"responseTimeout": 10,
"request": {
"tempVal": 30
}
}
},
"responses": {
"201": {
"body": {}
"request": {
"tempVal": 30
},
"connectionTimeout": 10,
"responseTimeout": 10,
"response": "Sample response value",
"responseCode": 200
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Update device properties in component",
"description": "Update some or all of the read-write property values within a component of a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "mx1",
"component_name": "settings",
"body": {
"fanSpeed": 101,
"irSwitch": true
}
},
"responses": {
"202": {
"body": {
"$metadata": {
"fanSpeed": {
"desiredValue": 101
},
"irSwitch": {
"desiredValue": true
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Set device properties",
"description": "Replace the values of read-write device properties of a device",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "mx1",
"body": {
"settings": {
"voltage": 25,
"current": 7
}
}
},
"responses": {
"202": {
"body": {
"settings": {
"$metadata": {
"voltage": {
"desiredValue": 25
},
"current": {
"desiredValue": 7
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Update device properties",
"description": "Update the values of read-write properties of a device",
"description": "Update some or all values of read-write device properties of a device",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Create a device",
"description": "Create a device with an Id.",
"title": "Create or replace a device",
"description": "Create or replace device with an Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"title": "Update a device",
"description": "Update parts of an existing device with an Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "ccc",
"body": {
"displayName": "Updated displayName",
"instanceOf": "urn:baacbx8bk:modelDefinition:lgxugnniks",
"approved": false
}
},
"responses": {
"200": {
"body": {
"id": "ccc",
"etag": "eyJoZWFkZXIiOiJcIjAxMDAyNmVjLTAwMDAtMGQwMC0wMDAwLTVkYmZkMjFhMDAwMFwiIn0",
"displayName": "Updated displayName",
"instanceOf": "urn:baacbx8bk:modelDefinition:lgxugnniks",
"simulated": false,
"provisioned": true,
"approved": false
}
}
}
}
Loading