POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates?api-version=2021-11-01
Parametry identyfikatora URI
Nazwa
W
Wymagane
Typ
Opis
managedInstanceName
path
True
string
Nazwa wystąpienia zarządzanego.
resourceGroupName
path
True
string
Nazwa grupy zasobów zawierającej zasób. Tę wartość można uzyskać z interfejsu API Resource Manager platformy Azure lub portalu.
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/testtdecert/providers/Microsoft.Sql/managedInstances/testtdecert/tdeCertificates?api-version=2021-11-01
{
"properties": {
"privateBlob": "MIIXXXXXXXX"
}
}
import com.azure.resourcemanager.sql.models.TdeCertificate;
/**
* Samples for ManagedInstanceTdeCertificates Create.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/ManagedInstanceTdeCertificate.json
*/
/**
* Sample code: Upload a TDE certificate.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void uploadATDECertificate(com.azure.resourcemanager.AzureResourceManager azure) {
azure.sqlServers().manager().serviceClient().getManagedInstanceTdeCertificates().create("testtdecert",
"testtdecert", new TdeCertificate().withPrivateBlob("MIIXXXXXXXX"), com.azure.core.util.Context.NONE);
}
}