你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Endpoint Certificates - Get
获取在具有给定 ID 的终结点上使用的证书。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/endpointCertificates/{endpointType}?api-version=2021-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
endpoint
|
path | True |
string |
要查找其证书的终结点的类型。 |
managed
|
path | True |
string |
托管实例的名称。 |
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索终结点证书。 |
|
Other Status Codes |
错误响应: ***
|
示例
Gets an endpoint certificate.
示例请求
示例响应
{
"properties": {
"publicBlob": "0x308203B23082021AA003020102021034C597BA"
},
"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"
}
定义
EndpointCertificate
托管实例上的终结点上使用的证书。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.publicBlob |
string |
证书公共 Blob |
type |
string |
资源类型。 |