Interface IotHubs
-
public interface IotHubs
Resource collection API of IotHubs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
manualFailover(String iotHubName, String resourceGroupName, FailoverInput failoverInput)
Manually initiate a failover for the IoT Hub to its secondary region.void
manualFailover(String iotHubName, String resourceGroupName, FailoverInput failoverInput, com.azure.core.util.Context context)
Manually initiate a failover for the IoT Hub to its secondary region.
-
-
-
Method Detail
-
manualFailover
void manualFailover(String iotHubName, String resourceGroupName, FailoverInput failoverInput)
Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover.- Parameters:
iotHubName
- Name of the IoT hub to failover.resourceGroupName
- Name of the resource group containing the IoT hub resource.failoverInput
- Region to failover to. Must be the Azure paired region. Get the value from the secondary location in the locations property. To learn more, see https://aka.ms/manualfailover/region.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorDetailsException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
manualFailover
void manualFailover(String iotHubName, String resourceGroupName, FailoverInput failoverInput, com.azure.core.util.Context context)
Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover.- Parameters:
iotHubName
- Name of the IoT hub to failover.resourceGroupName
- Name of the resource group containing the IoT hub resource.failoverInput
- Region to failover to. Must be the Azure paired region. Get the value from the secondary location in the locations property. To learn more, see https://aka.ms/manualfailover/region.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorDetailsException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-