{ "uuid": "548179b2-d2cd-49bf-bcee-ab98c5f442c4", "lastMigration": 29, "name": "iotHubClient", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "6e4ef4a4-f9b6-4404-8e25-602c0fc8232b", "documentation": "Lists all of the available IoT Hub REST API operations.", "method": "get", "endpoint": "providers/Microsoft.Devices/operations", "responses": [ { "uuid": "ab05edaf-542f-49b1-a4db-7ae369196c04", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"display\": {\n \"description\": \"\",\n \"operation\": \"\",\n \"provider\": \"\",\n \"resource\": \"\"\n },\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK. The request has succeeded.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "389d94cc-0b23-4735-b581-e5b0786bd669", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "939a59a2-d111-44b0-ad6f-4a44ecb5eed1", "documentation": "Get all the IoT hubs in a subscription", "method": "get", "endpoint": "subscriptions/:subscriptionId/providers/Microsoft.Devices/IotHubs", "responses": [ { "uuid": "492160fa-f0b9-4585-8e92-c752a75b0596", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the IoT hubs in the subscription.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f4b4af87-8699-4571-a359-99e6e537fda3", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2f4b5061-479a-48df-8029-221aedc0fc6e", "documentation": "Check if an IoT hub name is available", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/Microsoft.Devices/checkNameAvailability", "responses": [ { "uuid": "72b73921-14fc-462d-a5b8-cccca2c11694", "body": "{\n \"message\": \"\",\n \"nameAvailable\": {{faker 'datatype.boolean'}},\n \"reason\": \"{{oneOf (array 'Invalid' 'AlreadyExists')}}\"\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the IoT hub name is available. If the name is not available, the body contains the reason.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c7657264-9678-46f9-b994-2fde66cc324f", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6f56e8b9-11ca-4135-b30e-2f285426926d", "documentation": "Get the number of iot hubs in the subscription", "method": "get", "endpoint": "subscriptions/:subscriptionId/providers/Microsoft.Devices/usages", "responses": [ { "uuid": "d7fce3a2-110c-4534-9443-5b845103b081", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b43d8fc6-7c51-4b55-b6c2-ca57f478f151", "body": "", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9c0e2a33-474b-4f72-908b-23fa0d61b657", "documentation": "Get all the IoT hubs in a resource group", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs", "responses": [ { "uuid": "c677d273-12b6-4338-8b33-b63db802023f", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the IoT hubs in the resource group.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "457c0a41-97dd-4c91-aa46-ef789f136e3e", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e0bed527-4c0a-411d-a891-e36499d7eaa7", "documentation": "Manually initiate a failover for the IoT Hub to its secondary region", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:iotHubName/failover", "responses": [ { "uuid": "5f8c6227-cb55-459e-8b85-69bf266cf581", "body": "", "latency": 0, "statusCode": 200, "label": "Long running manual failover operation for the IoT hub completed", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "33766ebd-e26f-4641-9cfc-02bf0eeeff3d", "body": "", "latency": 0, "statusCode": 202, "label": "Manual failover initiated", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ae4ad93d-4d39-4743-8325-41b8519fcfa7", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "22ac72ce-d42b-4231-80e7-4db6745da9f6", "documentation": "Test all routes", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:iotHubName/routing/routes/$testall", "responses": [ { "uuid": "404ac4d3-5cfb-46e4-be7f-7cca44f8daa3", "body": "{\n \"routes\": [\n {\n \"properties\": {\n \"condition\": \"\",\n \"endpointNames\": [\n \"\"\n ],\n \"isEnabled\": {{faker 'datatype.boolean'}},\n \"name\": \"\",\n \"source\": \"{{oneOf (array 'Invalid' 'DeviceMessages' 'TwinChangeEvents' 'DeviceLifecycleEvents' 'DeviceJobLifecycleEvents')}}\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "690a8dc9-61a6-4175-9f19-f9582bed1c23", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "61b7f7ba-db29-4ff7-99e4-9d816b8ef6c7", "documentation": "Test the new route", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:iotHubName/routing/routes/$testnew", "responses": [ { "uuid": "f6b29b64-8048-49a6-b2bb-02911bde599b", "body": "{\n \"details\": {\n \"compilationErrors\": [\n {\n \"location\": {\n \"end\": {\n \"column\": {{faker 'number.int' max=99999}},\n \"line\": {{faker 'number.int' max=99999}}\n },\n \"start\": {\n \"column\": {{faker 'number.int' max=99999}},\n \"line\": {{faker 'number.int' max=99999}}\n }\n },\n \"message\": \"\",\n \"severity\": \"{{oneOf (array 'error' 'warning')}}\"\n }\n ]\n },\n \"result\": \"{{oneOf (array 'undefined' 'false' 'true')}}\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1e1b2086-64e8-4dfc-81a3-c178ba902f7a", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "73281e9c-795e-41de-bfa8-d17a71571f5d", "documentation": "Get the health for routing endpoints", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:iotHubName/routingEndpointsHealth", "responses": [ { "uuid": "48fd48ff-c1fd-43d1-8246-5556b8ee8614", "body": "", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e10c1f9e-5eb1-4045-9fdc-40e75469aa16", "body": "", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2a1cadf1-9e5d-4766-bac3-46f7ad846a28", "documentation": "Delete an IoT hub", "method": "delete", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName", "responses": [ { "uuid": "e3bce837-9747-495b-88af-ed64f6c0e75f", "body": "{\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e35f46e8-b41d-4eab-99e1-02eaba96e6d5", "body": "{\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 202, "label": "The Iot Hub resource provider always returns a 202 Accepted status code with valid Location and Retry-After headers. The resource provider also sets the Azure-AsyncOperation header with a URL that points to the operation resource for this operation. Subsequent GET attempts on the resource after a DELETE operation return a resource representation that indicates a transitional provisioning state (such as Terminating). To retrieve the status of the operation, a client can either poll the URL returned in the Location header after the Retry-After interval, get the IoT Hub service status directly, or query the operation resource.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "af43c817-1235-45f7-8cd9-6f0131ae4cec", "body": "", "latency": 0, "statusCode": 204, "label": "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the Iot hub metadata in the service and the status of the delete operation is set to a completed state.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e029f0b3-bf26-497e-bbdc-8dd572b1e340", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9a719d16-c302-4adc-9d33-e3d6cd8f8f17", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "93d2fba4-10c6-4e93-b1df-73ebb120ca09", "documentation": "Get the non-security related metadata of an IoT hub", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName", "responses": [ { "uuid": "c66e0d80-5fbc-4a9c-8c83-5e7c15a2bdf4", "body": "{\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The body contains all the non-security properties of the IoT hub. Security-related properties are set to null.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "005ae1f3-b55d-437d-a56e-517d4a098b8a", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "55f142a3-fe1e-4cde-8c8c-1a44cbb13728", "documentation": "Update an existing IoT Hubs tags.", "method": "patch", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName", "responses": [ { "uuid": "b366b707-9f7c-4359-bb96-42dcb8908b5f", "body": "{\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Iot Hub was successfully updated", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2ef60fbe-8bbb-4f5d-8885-bcadbba9f382", "documentation": "Create or update the metadata of an IoT hub.", "method": "put", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName", "responses": [ { "uuid": "f009d85e-52ec-49ac-a602-f73d0c0f3e62", "body": "{\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "2241e4e1-6d3c-4047-8ebf-b320188c515c", "body": "{\n \"id\": \"\",\n \"location\": \"\",\n \"name\": \"\",\n \"tags\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 201, "label": "This is a long running operation. The operation returns a 201 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation. If successful, the operation returns HTTP status code of 201 (OK).", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4792461c-542b-441c-bc0d-3a5155cebbfe", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e4ed5721-0060-438f-9ff0-baefbf9af655", "documentation": "Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/IotHubKeys/:keyName/listkeys", "responses": [ { "uuid": "3788f69b-abcb-48e3-b71f-b22cd0d7f677", "body": "{\n \"keyName\": \"\",\n \"primaryKey\": \"\",\n \"rights\": \"{{oneOf (array 'RegistryRead' 'RegistryWrite' 'ServiceConnect' 'DeviceConnect' 'RegistryRead, RegistryWrite' 'RegistryRead, ServiceConnect' 'RegistryRead, DeviceConnect' 'RegistryWrite, ServiceConnect' 'RegistryWrite, DeviceConnect' 'ServiceConnect, DeviceConnect' 'RegistryRead, RegistryWrite, ServiceConnect' 'RegistryRead, RegistryWrite, DeviceConnect' 'RegistryRead, ServiceConnect, DeviceConnect' 'RegistryWrite, ServiceConnect, DeviceConnect' 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect')}}\",\n \"secondaryKey\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized shared access policy, including keys, that you can use to access one or more IoT hub endpoints.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "215ccf94-7fa4-4072-b588-f5f22f62f83b", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "853d4f48-fbde-428b-8f14-f2dca8631054", "documentation": "Get the statistics from an IoT hub", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/IotHubStats", "responses": [ { "uuid": "964bb82c-1de2-4447-bf38-2d39fb28ebb8", "body": "{\n \"disabledDeviceCount\": {{faker 'number.int' max=99999}},\n \"enabledDeviceCount\": {{faker 'number.int' max=99999}},\n \"totalDeviceCount\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains JSON-serialized statistics from the identity registry in the IoT hub.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e3986cdf-72c0-4926-a05a-1bd8e973dbd2", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "311a7e61-205e-491b-910b-a8c6a1b033e6", "documentation": "Get the certificate list.", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/certificates", "responses": [ { "uuid": "10079827-c8c8-454b-9671-cd45f196076f", "body": "{\n \"value\": [\n {\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {\n \"certificate\": \"\",\n \"created\": \"\",\n \"expiry\": \"\",\n \"isVerified\": {{faker 'datatype.boolean'}},\n \"subject\": \"\",\n \"thumbprint\": \"\",\n \"updated\": \"\"\n },\n \"type\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "The body contains all the certificate list.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b42a9881-135d-4b0a-9b7a-8cfdd4f0e714", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b296b4a8-2c55-47af-8d6a-10f15cec6e45", "documentation": "Delete an X509 certificate.", "method": "delete", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/certificates/:certificateName", "responses": [ { "uuid": "dd20730c-45d3-4cc3-b620-600051387c18", "body": "", "latency": 0, "statusCode": 200, "label": "Certificate has been deleted.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "fbeaa479-039b-4a8f-91af-a0c9153b5690", "body": "", "latency": 0, "statusCode": 204, "label": "Certificate does not exist.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "173c0678-5476-406d-a371-022f3b33fa6b", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0ce986c8-3797-4d08-9c34-92d8b709a404", "documentation": "Get the certificate.", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/certificates/:certificateName", "responses": [ { "uuid": "ad9b6c25-fa0d-42f4-bc0e-fed745fa9985", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {\n \"certificate\": \"\",\n \"created\": \"\",\n \"expiry\": \"\",\n \"isVerified\": {{faker 'datatype.boolean'}},\n \"subject\": \"\",\n \"thumbprint\": \"\",\n \"updated\": \"\"\n },\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The body contains the certificate.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a5786ace-d21c-4948-93ea-7aea49293a58", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0e5d67e5-7a64-4bff-a69a-a7377fbaf8cd", "documentation": "Upload the certificate to the IoT hub.", "method": "put", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/certificates/:certificateName", "responses": [ { "uuid": "13cd4817-ca18-4b9b-b2a7-e79fa64643cb", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {\n \"certificate\": \"\",\n \"created\": \"\",\n \"expiry\": \"\",\n \"isVerified\": {{faker 'datatype.boolean'}},\n \"subject\": \"\",\n \"thumbprint\": \"\",\n \"updated\": \"\"\n },\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "If certificate already exist and update was successful, the operation returns HTTP status code of 201 (OK).", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "620cbc8c-2ef3-4dae-bd25-90d23689f221", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {\n \"certificate\": \"\",\n \"created\": \"\",\n \"expiry\": \"\",\n \"isVerified\": {{faker 'datatype.boolean'}},\n \"subject\": \"\",\n \"thumbprint\": \"\",\n \"updated\": \"\"\n },\n \"type\": \"\"\n}", "latency": 0, "statusCode": 201, "label": "If certificate didn't exist creation was successful, the operation returns HTTP status code of 201 (OK).", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d5be971b-4210-43b8-90af-cac0a5a53d7b", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "55f1f7fe-82ea-499b-8d0e-7c5b1efc0254", "documentation": "Generate verification code for proof of possession flow.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/certificates/:certificateName/generateVerificationCode", "responses": [ { "uuid": "7c000612-9af0-49d4-b871-b0bb445a16a2", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {\n \"certificate\": \"\",\n \"created\": \"\",\n \"expiry\": \"\",\n \"isVerified\": {{faker 'datatype.boolean'}},\n \"subject\": \"\",\n \"thumbprint\": \"\",\n \"updated\": \"\",\n \"verificationCode\": \"\"\n },\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The body contains the certificate.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9b8f053e-8a20-4f7b-8821-67038719249c", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "86c3ec9e-6800-472b-a576-55168c8c4da4", "documentation": "Verify certificate's private key possession.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/certificates/:certificateName/verify", "responses": [ { "uuid": "41609d66-7053-4aa0-b8a8-4b711187f749", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {\n \"certificate\": \"\",\n \"created\": \"\",\n \"expiry\": \"\",\n \"isVerified\": {{faker 'datatype.boolean'}},\n \"subject\": \"\",\n \"thumbprint\": \"\",\n \"updated\": \"\"\n },\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The body contains the certificate.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9ed47101-13b2-48c3-8f59-8980ab423512", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "462bf035-9a31-4be8-ae3f-0d90007e7f3f", "documentation": "Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/eventHubEndpoints/:eventHubEndpointName/ConsumerGroups", "responses": [ { "uuid": "9df1b27e-46bb-4b90-b0c2-6669d79e3ffc", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {},\n \"type\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized list of the consumer groups in the Event Hub-compatible endpoint in this IoT hub", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "720f08d6-1640-4e39-9395-9656e2813087", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "3f4d5a62-1ba6-4e77-9fba-7857ccb14716", "documentation": "Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub", "method": "delete", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/eventHubEndpoints/:eventHubEndpointName/ConsumerGroups/:name", "responses": [ { "uuid": "e66f08a3-5193-4ff7-8594-de39018f0742", "body": "", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "af147d42-bd57-4731-bbdc-9e4e9120a0a5", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2934941f-6811-4817-85b2-c8034fdec53e", "documentation": "Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/eventHubEndpoints/:eventHubEndpointName/ConsumerGroups/:name", "responses": [ { "uuid": "35cdd359-d9ec-473b-82e8-ec12ab18bf55", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized consumer group.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ec6b3b23-c6c2-4f58-86a1-b5a6ab58dc4f", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "395ddbe9-ccee-4322-876d-e71f45b518f7", "documentation": "Add a consumer group to an Event Hub-compatible endpoint in an IoT hub", "method": "put", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/eventHubEndpoints/:eventHubEndpointName/ConsumerGroups/:name", "responses": [ { "uuid": "42f6b6a6-19be-431f-a2b7-e1c7cec39d83", "body": "{\n \"etag\": \"\",\n \"id\": \"\",\n \"name\": \"\",\n \"properties\": {},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "cd2bfab3-9dd0-4618-a52e-d389443b8b69", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e5a1336b-399a-4269-af7a-9c02faa3ee7b", "documentation": "Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/exportDevices", "responses": [ { "uuid": "f3f1db5f-89ee-42d7-8787-b4339e57a20f", "body": "{\n \"endTimeUtc\": \"\",\n \"failureReason\": \"\",\n \"jobId\": \"\",\n \"parentJobId\": \"\",\n \"startTimeUtc\": \"\",\n \"status\": \"{{oneOf (array 'unknown' 'enqueued' 'running' 'completed' 'failed' 'cancelled')}}\",\n \"statusMessage\": \"\",\n \"type\": \"{{oneOf (array 'unknown' 'export' 'import' 'backup' 'readDeviceProperties' 'writeDeviceProperties' 'updateDeviceConfiguration' 'rebootDevice' 'factoryResetDevice' 'firmwareUpdate')}}\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "be45f461-0f6f-44e3-a308-b3fff8a7c7fa", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e05fb58f-e617-462d-bea0-6f997ca510df", "documentation": "Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/importDevices", "responses": [ { "uuid": "68bdd026-32e1-4ade-a7df-100ae8088678", "body": "{\n \"endTimeUtc\": \"\",\n \"failureReason\": \"\",\n \"jobId\": \"\",\n \"parentJobId\": \"\",\n \"startTimeUtc\": \"\",\n \"status\": \"{{oneOf (array 'unknown' 'enqueued' 'running' 'completed' 'failed' 'cancelled')}}\",\n \"statusMessage\": \"\",\n \"type\": \"{{oneOf (array 'unknown' 'export' 'import' 'backup' 'readDeviceProperties' 'writeDeviceProperties' 'updateDeviceConfiguration' 'rebootDevice' 'factoryResetDevice' 'firmwareUpdate')}}\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "85bb6e88-339d-42d3-bad3-51889d27785a", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7c68da18-120b-4ed9-b224-35d16824efb1", "documentation": "Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/jobs", "responses": [ { "uuid": "09c416bc-e323-4f15-ac3d-bdf7614ded01", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"endTimeUtc\": \"\",\n \"failureReason\": \"\",\n \"jobId\": \"\",\n \"parentJobId\": \"\",\n \"startTimeUtc\": \"\",\n \"status\": \"{{oneOf (array 'unknown' 'enqueued' 'running' 'completed' 'failed' 'cancelled')}}\",\n \"statusMessage\": \"\",\n \"type\": \"{{oneOf (array 'unknown' 'export' 'import' 'backup' 'readDeviceProperties' 'writeDeviceProperties' 'updateDeviceConfiguration' 'rebootDevice' 'factoryResetDevice' 'firmwareUpdate')}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The response contains a JSON-serialized array of all the jobs in the IoT hub.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c82e6446-60e8-4e42-9877-acce4895fb36", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d8d06277-3d41-4e6e-9d15-187cf386353f", "documentation": "Get the details of a job from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/jobs/:jobId", "responses": [ { "uuid": "9ab6b092-c58d-41c2-a91d-f5a74057f36c", "body": "{\n \"endTimeUtc\": \"\",\n \"failureReason\": \"\",\n \"jobId\": \"\",\n \"parentJobId\": \"\",\n \"startTimeUtc\": \"\",\n \"status\": \"{{oneOf (array 'unknown' 'enqueued' 'running' 'completed' 'failed' 'cancelled')}}\",\n \"statusMessage\": \"\",\n \"type\": \"{{oneOf (array 'unknown' 'export' 'import' 'backup' 'readDeviceProperties' 'writeDeviceProperties' 'updateDeviceConfiguration' 'rebootDevice' 'factoryResetDevice' 'firmwareUpdate')}}\"\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The response contains a JSON-serialized description of the job in the IoT hub.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "92e9805e-1b16-4055-a809-7cf6698f5404", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6a0ddad3-6103-487f-a1d4-55aa4a21d41e", "documentation": "Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/listkeys", "responses": [ { "uuid": "5d14cb79-b6d8-4e4c-9b63-8ed8017b49ed", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"keyName\": \"\",\n \"primaryKey\": \"\",\n \"rights\": \"{{oneOf (array 'RegistryRead' 'RegistryWrite' 'ServiceConnect' 'DeviceConnect' 'RegistryRead, RegistryWrite' 'RegistryRead, ServiceConnect' 'RegistryRead, DeviceConnect' 'RegistryWrite, ServiceConnect' 'RegistryWrite, DeviceConnect' 'ServiceConnect, DeviceConnect' 'RegistryRead, RegistryWrite, ServiceConnect' 'RegistryRead, RegistryWrite, DeviceConnect' 'RegistryRead, ServiceConnect, DeviceConnect' 'RegistryWrite, ServiceConnect, DeviceConnect' 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect')}}\",\n \"secondaryKey\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized array of shared access policies, including keys, that you can use to access the IoT hub endpoints.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f53c67e2-f8ac-4818-a78d-7d55e38c3469", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "018d850f-92f7-4ba9-a248-6b6806c68a8b", "documentation": "Get the quota metrics for an IoT hub", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/quotaMetrics", "responses": [ { "uuid": "0ef441ce-3ba0-42f0-a595-b8ffe940c391", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"currentValue\": {{faker 'number.int' max=99999}},\n \"maxValue\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The response contains a JSON-serialized array of the quota metrics for the IoT hub.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "82b5787a-3606-4ea5-a38e-b96266593502", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7832e918-95c1-4df4-a984-50ee494e56c4", "documentation": "Get the list of valid SKUs for an IoT hub", "method": "get", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Devices/IotHubs/:resourceName/skus", "responses": [ { "uuid": "5f64ed68-0380-480b-9fab-7ff0c54d5463", "body": "{\n \"nextLink\": \"\",\n \"value\": [\n {\n \"capacity\": {\n \"default\": {{faker 'number.int' max=99999}},\n \"maximum\": {{faker 'number.int' max=99999}},\n \"minimum\": {{faker 'number.int' max=99999}},\n \"scaleType\": \"{{oneOf (array 'Automatic' 'Manual' 'None')}}\"\n },\n \"resourceType\": \"\",\n \"sku\": {\n \"capacity\": {{faker 'number.int' max=99999}},\n \"name\": \"{{oneOf (array 'F1' 'S1' 'S2' 'S3' 'B1' 'B2' 'B3')}}\",\n \"tier\": \"{{oneOf (array 'Free' 'Standard' 'Basic')}}\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "This is a synchronous operation. The body contains a JSON-serialized array of the valid SKUs for this IoT hub.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f3871747-7557-41ec-a265-130db7f550b7", "body": "{\n \"code\": \"\",\n \"details\": \"\",\n \"httpStatusCode\": \"\",\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "DefaultErrorResponse", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "6e4ef4a4-f9b6-4404-8e25-602c0fc8232b" }, { "type": "route", "uuid": "939a59a2-d111-44b0-ad6f-4a44ecb5eed1" }, { "type": "route", "uuid": "2f4b5061-479a-48df-8029-221aedc0fc6e" }, { "type": "route", "uuid": "6f56e8b9-11ca-4135-b30e-2f285426926d" }, { "type": "route", "uuid": "9c0e2a33-474b-4f72-908b-23fa0d61b657" }, { "type": "route", "uuid": "e0bed527-4c0a-411d-a891-e36499d7eaa7" }, { "type": "route", "uuid": "22ac72ce-d42b-4231-80e7-4db6745da9f6" }, { "type": "route", "uuid": "61b7f7ba-db29-4ff7-99e4-9d816b8ef6c7" }, { "type": "route", "uuid": "73281e9c-795e-41de-bfa8-d17a71571f5d" }, { "type": "route", "uuid": "2a1cadf1-9e5d-4766-bac3-46f7ad846a28" }, { "type": "route", "uuid": "93d2fba4-10c6-4e93-b1df-73ebb120ca09" }, { "type": "route", "uuid": "55f142a3-fe1e-4cde-8c8c-1a44cbb13728" }, { "type": "route", "uuid": "2ef60fbe-8bbb-4f5d-8885-bcadbba9f382" }, { "type": "route", "uuid": "e4ed5721-0060-438f-9ff0-baefbf9af655" }, { "type": "route", "uuid": "853d4f48-fbde-428b-8f14-f2dca8631054" }, { "type": "route", "uuid": "311a7e61-205e-491b-910b-a8c6a1b033e6" }, { "type": "route", "uuid": "b296b4a8-2c55-47af-8d6a-10f15cec6e45" }, { "type": "route", "uuid": "0ce986c8-3797-4d08-9c34-92d8b709a404" }, { "type": "route", "uuid": "0e5d67e5-7a64-4bff-a69a-a7377fbaf8cd" }, { "type": "route", "uuid": "55f1f7fe-82ea-499b-8d0e-7c5b1efc0254" }, { "type": "route", "uuid": "86c3ec9e-6800-472b-a576-55168c8c4da4" }, { "type": "route", "uuid": "462bf035-9a31-4be8-ae3f-0d90007e7f3f" }, { "type": "route", "uuid": "3f4d5a62-1ba6-4e77-9fba-7857ccb14716" }, { "type": "route", "uuid": "2934941f-6811-4817-85b2-c8034fdec53e" }, { "type": "route", "uuid": "395ddbe9-ccee-4322-876d-e71f45b518f7" }, { "type": "route", "uuid": "e5a1336b-399a-4269-af7a-9c02faa3ee7b" }, { "type": "route", "uuid": "e05fb58f-e617-462d-bea0-6f997ca510df" }, { "type": "route", "uuid": "7c68da18-120b-4ed9-b224-35d16824efb1" }, { "type": "route", "uuid": "d8d06277-3d41-4e6e-9d15-187cf386353f" }, { "type": "route", "uuid": "6a0ddad3-6103-487f-a1d4-55aa4a21d41e" }, { "type": "route", "uuid": "018d850f-92f7-4ba9-a248-6b6806c68a8b" }, { "type": "route", "uuid": "7832e918-95c1-4df4-a984-50ee494e56c4" } ] }