Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions specification/sql/resource-manager/Microsoft.Sql/SQL/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -7988,6 +7988,28 @@ model EndpointCertificateProperties {
* The certificate public blob
*/
publicBlob?: string;

/**
* Trusted root certificates required to validate the instance certificate
*/
#suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
trustedRootCertificates?: EndpointTrustedRootCertificateInfo[];
}

/**
* Trusted root certificate required to validate the instance certificate
*/
model EndpointTrustedRootCertificateInfo {
/**
* Root certificate subject name
*/
subject?: string;

/**
* Root certificate public blob as DER encoded hex string
*/
publicBlob?: string;
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "38e0dc56-907f-45ba-a97c-74233baad471",
"resourceGroupName": "testrg",
"managedInstanceName": "testcl",
"endpointType": "DATABASE_MIRRORING",
"api-version": "2025-08-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"publicBlob": "0x308203B23082021AA003020102021034C597BA",
"trustedRootCertificates": [
{
"publicBlob": "0x3082038E30820276A0030201020210033AF1E6",
"subject": "CN=DigiCert Global Root G2"
}
]
},
"id": "/subscriptions/38e0dc56-907f-45ba-a97c-74233baad471/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/endpointCertificates/DATABASE_MIRRORING",
"name": "DATABASE_MIRRORING",
"type": "Microsoft.Sql/managedInstances/endpointCertificates"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "38e0dc56-907f-45ba-a97c-74233baad471",
"resourceGroupName": "testrg",
"managedInstanceName": "testcl",
"api-version": "2025-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"publicBlob": "0x308203B23082021AA003020102021034C597BA",
"trustedRootCertificates": [
{
"publicBlob": "0x3082038E30820276A0030201020210033AF1E6",
"subject": "CN=DigiCert Global Root G2"
}
]
},
"id": "/subscriptions/38e0dc56-907f-45ba-a97c-74233baad471/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/endpointCertificates/SERVICE_BROKER",
"name": "SERVICE_BROKER",
"type": "Microsoft.Sql/managedInstances/endpointCertificates"
},
{
"properties": {
"publicBlob": "0x308203B23082021AA003020102021034C597BA",
"trustedRootCertificates": [
{
"publicBlob": "0x3082038E30820276A0030201020210033AF1E6",
"subject": "CN=DigiCert Global Root G2"
}
]
},
"id": "/subscriptions/38e0dc56-907f-45ba-a97c-74233baad471/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/endpointCertificates/DATABASE_MIRRORING",
"name": "DATABASE_MIRRORING",
"type": "Microsoft.Sql/managedInstances/endpointCertificates"
}
]
}
}
}
}
Loading