Consulta os certificados de servidor em uma região.
Descrição da operação
Por motivos de segurança, apenas as impressões digitais e os nomes dos certificados de servidor são retornados. O conteúdo dos certificados de servidor e das chaves privadas não é retornado.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
slb:DescribeServerCertificates |
list |
*ServerCertificate
|
|
Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Não |
A região onde a instância CLB está implantada. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. Nota
Se o endpoint da região selecionada for slb.aliyuncs.com, você deve especificar |
cn-hangzhou |
| ServerCertificateId |
string |
Não |
O ID do certificado de servidor. |
12315790*******_166f8204689_1714763408_709981430 |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. |
rg-atstuj3rtop**** |
| Tag |
array<object> |
Não |
As tags. |
|
|
object |
Não |
As tags. |
||
| Key |
string |
Não |
A chave da tag do recurso. Você pode especificar até 20 chaves de tag. A chave da tag não pode ser uma string vazia. A chave da tag deve ter de 1 a 64 caracteres e não pode começar com |
test |
| Value |
string |
Não |
O valor da tag do recurso. Você pode especificar até 20 valores de tag. O valor da tag não pode ser uma string vazia. O valor da tag pode ter até 128 caracteres e não pode começar com |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| ServerCertificates |
object |
||
| ServerCertificate |
array<object> |
Os certificados de servidor. |
|
|
array<object> |
|||
| CreateTimeStamp |
integer |
The timestamp when the server certificate was uploaded. |
1504147745000 |
| AliCloudCertificateName |
string |
The name of the server certificate from Alibaba Cloud Certificate Management Service. |
testcertkey |
| ExpireTime |
string |
The time when the server certificate expires. |
2023-01-26T23:59:59Z |
| CreateTime |
string |
The time when the server certificate was uploaded. |
2021-08-31T02:49:05Z |
| ServerCertificateId |
string |
The server certificate ID. |
123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02 |
| ExpireTimeStamp |
integer |
The timestamp when the server certificate expires. |
15041477450 |
| RegionId |
string |
The region ID of the server certificate. |
cn-hangzhou |
| ServerCertificateName |
string |
The name of the server certificate. |
slb |
| Fingerprint |
string |
The fingerprint of the server certificate. |
68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d |
| CommonName |
string |
The domain name of the server certificate. The domain name is specified in the |
www.example.com |
| ResourceGroupId |
string |
The resource group ID. |
rg-atstuj3rtop**** |
| IsAliCloudCertificate |
integer |
Indicates whether the server certificate is from Alibaba Cloud Certificate Management Service. Valid values:
|
0 |
| AliCloudCertificateId |
string |
The ID of the server certificate from Alibaba Cloud Certificate Management Service. |
7309********_15d97e7709a_71445759hr_789289731 |
| Tags |
object |
||
| Tag |
array<object> |
The tags. |
|
|
object |
The tag value. |
||
| TagValue |
string |
The tag value. |
1 |
| TagKey |
string |
The tag keys of the resource. |
test |
| SubjectAlternativeNames |
object |
||
| SubjectAlternativeName |
array |
The alternative domain names of the server certificate. The alternative domain names are specified in the Subject Alternative Name field of the server certificate. |
|
|
string |
The alternative domain names of the server certificate. The alternative domain names are specified in the |
["demo.aliyundoc.com","example.aliyundoc.com"] |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"ServerCertificates": {
"ServerCertificate": [
{
"CreateTimeStamp": 1504147745000,
"AliCloudCertificateName": "testcertkey",
"ExpireTime": "2023-01-26T23:59:59Z",
"CreateTime": "2021-08-31T02:49:05Z",
"ServerCertificateId": "123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02",
"ExpireTimeStamp": 15041477450,
"RegionId": "cn-hangzhou",
"ServerCertificateName": "slb",
"Fingerprint": "68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d",
"CommonName": "www.example.com",
"ResourceGroupId": "rg-atstuj3rtop****",
"IsAliCloudCertificate": 0,
"AliCloudCertificateId": "7309********_15d97e7709a_71445759hr_789289731",
"Tags": {
"Tag": [
{
"TagValue": "1",
"TagKey": "test"
}
]
},
"SubjectAlternativeNames": {
"SubjectAlternativeName": [
"[\"demo.aliyundoc.com\",\"example.aliyundoc.com\"]"
]
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Abs.ServerCertificateIdAndResourceGroupId.MissMatch | ServerCertificateId or ResourceGroupId miss match. | |
| 400 | LocationServiceTimeout | Location service connection timeout. Please try again later. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.