Yönetilen örnekte zaman uyumsuz işlemi iptal eder.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel?api-version=2021-11-01
URI Parametreleri
Name
İçinde
Gerekli
Tür
Description
managedInstanceName
path
True
string
Yönetilen örneğin adı.
operationId
path
True
string
uuid
resourceGroupName
path
True
string
Kaynağı içeren kaynak grubunun adı. Bu değeri Azure Resource Manager API'sinden veya portaldan alabilirsiniz.
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/11111111-1111-1111-1111-111111111111/cancel?api-version=2021-11-01
import java.util.UUID;
/**
* Samples for ManagedInstanceOperations Cancel.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/CancelManagedInstanceOperation.json
*/
/**
* Sample code: Cancel the managed instance management operation.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void
cancelTheManagedInstanceManagementOperation(com.azure.resourcemanager.AzureResourceManager azure) {
azure.sqlServers().manager().serviceClient().getManagedInstanceOperations().cancelWithResponse(
"sqlcrudtest-7398", "sqlcrudtest-4645", UUID.fromString("11111111-1111-1111-1111-111111111111"),
com.azure.core.util.Context.NONE);
}
}