你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Ca Certificates - Get
获取 CA 证书。
获取 CA 证书的属性。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/caCertificates/{caCertificateName}?api-version=2025-02-15
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
ca
|
path | True |
string |
CA 证书的名称。 正则表达式模式: |
namespace
|
path | True |
string |
命名空间的名称。 正则表达式模式: |
resource
|
path | True |
string |
用户订阅中的资源组的名称。 |
subscription
|
path | True |
string |
唯一标识Microsoft Azure 订阅的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
要用于客户端请求的 API 的版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行 |
|
Other Status Codes |
如果请求失败,则返回错误响应。 |
示例
CaCertificates_Get
示例请求
GET https://management.azure.com/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1?api-version=2025-02-15
示例响应
{
"properties": {
"encodedCertificate": "base64EncodePemFormattedCertificateString",
"issueTimeInUtc": "2022-09-12T23:06:43+00:00",
"expiryTimeInUtc": "2022-10-12T23:06:43+00:00",
"provisioningState": "Succeeded",
"description": "This is a test Root certificate"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1",
"name": "exampleCACertificateName1",
"type": "Microsoft.EventGrid/namespaces/caCertificates"
}
定义
名称 | 说明 |
---|---|
Ca |
CA 证书资源。 |
Ca |
CA 证书资源的预配状态。 |
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
system |
与创建和上次修改资源相关的元数据。 |
CaCertificate
CA 证书资源。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定标识符。 |
name |
string |
资源的名称。 |
properties.description |
string |
CA 证书资源的说明。 |
properties.encodedCertificate |
string |
Base64 编码的 PEM(隐私增强邮件)格式证书数据。 |
properties.expiryTimeInUtc |
string |
证书过期时间(UTC)。 这是一个只读字段。 |
properties.issueTimeInUtc |
string |
UTC 格式的证书颁发时间。 这是一个只读字段。 |
properties.provisioningState |
CA 证书资源的预配状态。 |
|
systemData |
与事件网格资源相关的系统元数据。 |
|
type |
string |
资源的类型。 |
CaCertificateProvisioningState
CA 证书资源的预配状态。
值 | 说明 |
---|---|
Canceled | |
Creating | |
Deleted | |
Deleting | |
Failed | |
Succeeded | |
Updating |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |