tencent cloud

ReplaceCert

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-12-19 14:56:47

API Description

This API is used to replace the certificate used in a CLB instance.
Domain name for API calls: lb.api.qcloud.com

Request Parameters

The list below contains only the API request parameters. Common parameters should be added when you call the API. For more information, see Common Request Parameters. The Action field for this API is ReplaceCert.
Parameter
Required
Type
Description
oldCertId
Yes
String
ID of the certificate to be replaced. This can be the ID of a server certificate, or a client certificate.
newCertId
No
String
ID of the new certificate. If this is left empty, the newCertContent and newCertName parameters are required. For a server certificate, the newCertKey parameter is also required.
newCertContent
No
String
Content of the new certificate. The newCertId parameter is required if this is left empty.
newCertName
No
String
Name of the new certificate. The newCertId parameter is required if this is left empty.
newCertKey
No
String
Private key of the new certificate. The newCertId parameter is required for a server certificate if this is left empty.

Response Parameters

Parameter
Type
Description
code
Int
Common error code. 0: success; other values: failure. For more information, see Common Error Codes.
message
String
API-related module error message description.
codeDesc
String
Description of the task execution status.

Example

Request
https://lb.api.qcloud.com/v2/index.php?Action=ReplaceCert
&oldCertId=4b9fc92b
&newCertId=e2b6d555
Response
{
"code": 0,
"message": "",
"codeDesc": "Success"
}



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백