diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/IotHub_ManualFailover.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/IotHub_ManualFailover.json index 455f5516c291..7e43d1c3e2fa 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/IotHub_ManualFailover.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/IotHub_ManualFailover.json @@ -10,6 +10,11 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo", + "Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih" + } + } } } diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_delete.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_delete.json index 9013a4fa96b6..ff38a72f29d4 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_delete.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_delete.json @@ -113,6 +113,10 @@ }, "204": {}, "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo", + "Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih" + }, "body": { "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub", "name": "testHub", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_deleteprivateendpointconnection.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_deleteprivateendpointconnection.json index ed74eeacf3bc..b00ba2358fff 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_deleteprivateendpointconnection.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_deleteprivateendpointconnection.json @@ -25,6 +25,10 @@ } }, "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo", + "Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih" + }, "body": { "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection", "name": "myPrivateEndpointConnection", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_routingendpointhealth.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_routingendpointhealth.json index 3a8b1ff3dde0..0018e63b5fb9 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_routingendpointhealth.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_routingendpointhealth.json @@ -12,8 +12,8 @@ { "endpointId": "id1", "healthStatus": "healthy", - "lastSuccessfulSendAttemptTime": "2020-03-26T21:20:57Z", - "lastSendAttemptTime": "2020-03-26T21:24:57Z" + "lastSuccessfulSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT", + "lastSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT" }, { "endpointId": "id2", @@ -23,9 +23,9 @@ "endpointId": "id3", "healthStatus": "unhealthy", "lastKnownError": "NotFound", - "lastKnownErrorTime": "2020-03-26T21:24:57Z", - "lastSuccessfulSendAttemptTime": "2020-03-26T21:20:57Z", - "lastSendAttemptTime": "2020-03-26T21:24:57Z" + "lastKnownErrorTime": "Wed, 13 Sep 2022 18:04:32 GMT", + "lastSuccessfulSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT", + "lastSendAttemptTime": "Wed, 13 Sep 2022 18:04:32 GMT" } ] } diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_stats.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_stats.json index 1a7bcb918e7e..731a537fdcee 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_stats.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/examples/iothub_stats.json @@ -2,7 +2,7 @@ "parameters": { "resourceName": "testHub", "resourceGroupName": "myResourceGroup", - "api-version": "2018-04-01", + "api-version": "2023-06-30", "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" }, "responses": { diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/iothub.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/iothub.json index f5c1c6475efe..41fb7c5cf082 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/iothub.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2023-06-30/iothub.json @@ -269,6 +269,15 @@ ], "responses": { "202": { + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "type": "string" + } + }, "description": "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.", "schema": { "$ref": "#/definitions/IotHubDescription" @@ -1718,6 +1727,15 @@ "description": "Long running manual failover operation for the IoT hub completed" }, "202": { + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "type": "string" + } + }, "description": "Manual failover initiated" }, "default": { @@ -2003,6 +2021,15 @@ ], "responses": { "202": { + "headers": { + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Location": { + "type": "string" + } + }, "description": "This is a long running operation. The operation returns a 202 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.", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" @@ -3174,7 +3201,7 @@ "name", "containerName" ] - }, + }, "RoutingCosmosDBSqlApiProperties": { "description": "The properties related to a cosmos DB sql container endpoint.", "type": "object",