Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Expand Up @@ -9,7 +9,7 @@
"responses": {
"200": {
"body": {
"idScope": "0ne0005F266",
"idScope": "<idScope>",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"title": "Set device attestation - Symmetric key",
"description": "Creates or updates the symmetric key attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "CheckoutThermostat",
"body": {
"type": "SymmetricKeyAttestation",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
}
}
},
"responses": {
"200": {
"body": {
"type": "SymmetricKeyAttestation",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
}
}
}
}
}
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": "AToAAQALAAMAsgAgg3GXZ0SEs/gakMyNRqXXJP1S124GUgtk8qHaGzMUaaoABgCAAEMAEAgAAAAAAAEAxsj2gUScTk1UjuioeTlfGYZrrimExB+bScH75adUMRIi2UOMxG1kw4y+9RW/IVoMl4e620VxZad0ARX2gUqVjYO7KPVt3dyKhZS3dkcvfBisBhP1XH9B33VqHG9SHnbnQXdBUaCgKAfxome8UmBKfe+naTsE5fkvjb/do3/dD6l4sGBwFCnKRdln4XpM03zLpoHFao8zOwt8l/uP3qUIxmCYv9A7m69Ms+5/pCkTu/rK4mRDsfhZ0QLfbzVI6zQFOKF/rwsfBtFeWlWtcuJMKlXdD8TXWElTzgh7JS4qhFzreL0c1mI0GCj+Aws0usZh7dLIVPnlgZcBhgy1SSDQMQ=="
}
}
},
"responses": {
"200": {
"body": {
"type": "TpmAttestation",
"tpm": {
"endorsementKey": "AToAAQALAAMAsgAgg3GXZ0SEs/gakMyNRqXXJP1S124GUgtk8qHaGzMUaaoABgCAAEMAEAgAAAAAAAEAxsj2gUScTk1UjuioeTlfGYZrrimExB+bScH75adUMRIi2UOMxG1kw4y+9RW/IVoMl4e620VxZad0ARX2gUqVjYO7KPVt3dyKhZS3dkcvfBisBhP1XH9B33VqHG9SHnbnQXdBUaCgKAfxome8UmBKfe+naTsE5fkvjb/do3/dD6l4sGBwFCnKRdln4XpM03zLpoHFao8zOwt8l/uP3qUIxmCYv9A7m69Ms+5/pCkTu/rK4mRDsfhZ0QLfbzVI6zQFOKF/rwsfBtFeWlWtcuJMKlXdD8TXWElTzgh7JS4qhFzreL0c1mI0GCj+Aws0usZh7dLIVPnlgZcBhgy1SSDQMQ=="
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Set device attestation",
"description": "Creates or updates the attestation for a device.",
"title": "Set device attestation - X509",
"description": "Creates or updates the X509 attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"discriminator": "type"
},
"SymmetricKeyAttestation": {
"x-ms-discriminator-value": "SymmetricKeyAttestation",
"allOf": [
{
"$ref": "#/definitions/Attestation"
Expand All @@ -95,6 +96,7 @@
]
},
"X509Attestation": {
"x-ms-discriminator-value": "X509Attestation",
"allOf": [
{
"$ref": "#/definitions/Attestation"
Expand All @@ -114,6 +116,7 @@
]
},
"TpmAttestation": {
"x-ms-discriminator-value": "TpmAttestation",
"allOf": [
{
"$ref": "#/definitions/Attestation"
Expand Down Expand Up @@ -1549,8 +1552,14 @@
}
],
"x-ms-examples": {
"Create or update device attestation": {
"$ref": "./examples/devices_attestations_set.json"
"Create or update device attestation - Symmetric Key": {
"$ref": "./examples/devices_attestations_set_symmetricKey.json"
},
"Create or update device attestation - X509": {
"$ref": "./examples/devices_attestations_set_x509.json"
},
"Create or update device attestation - TPM": {
"$ref": "./examples/devices_attestations_set_tpm.json"
}
},
"responses": {
Expand Down