tencent cloud

UploadUpdateCertificateInstance
Last updated: 2025-10-30 21:55:41
UploadUpdateCertificateInstance
Last updated: 2025-10-30 21:55:41

1. API Description

Domain name for API request: ssl.intl.tencentcloudapi.com.

This API is used to update certificate content (certificate ID unchanged) and update associated Tencent Cloud resources. This is an asynchronous API. After calling, a DeployRecordId of 0 indicates that the task is in progress. Repeatedly request this API, and when DeployRecordId is greater than 0, it means the task has been successfully created. If the task is not successfully created, an exception will be thrown.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: UploadUpdateCertificateInstance.
Version Yes String Common Params. The value used for this API: 2019-12-05.
Region No String Common Params. This parameter is not required for this API.
OldCertificateId Yes String Old Certificate ID for One-Click Update. Query the tencent cloud resources bound to this certificate ID and use the new certificate to update these resources.
ResourceTypes.N Yes Array of String Resource type that needs to be deployed, parameter value (lowercase): clb.
CertificatePublicKey Yes String Public key certificate.
CertificatePrivateKey Yes String Private key certificate.
ResourceTypesRegions.N No Array of ResourceTypeRegions The list of regions where cloud resources need to be deployed. The cloud resource type supported in the region is required. Value: clb.

3. Output Parameters

Parameter Name Type Description
DeployRecordId Integer The tencent cloud resource update task ID. DeployRecordId equals 0 indicates the task is in progress. Repeatedly request this API, and when DeployRecordId is greater than 0, it means the task has been successfully created. If not successfully created, an exception will be thrown.
DeployStatus Integer Update task creation status: 1 indicates successful creation; 0 indicates an existing ongoing update task, and no new update task was created. The return value DeployRecordId represents the ID of the ongoing update task.
UpdateSyncProgress Array of UpdateSyncProgress Create progress details for asynchronous update tasks.
Note: This field may return null, indicating that no valid values can be obtained.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Updating Certificate Content (Certificate ID Unchanged) and Updating Associated Tencent Cloud Resources

Input Example

POST / HTTP/1.1
Host: ssl.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UploadUpdateCertificateInstance
<Common request parameters>

{
    "OldCertificateId": "JADeKqED",
    "CertificatePublicKey": "-----BEGIN CERTIFICATE-----\nMIIHKjCCBRKgAwIBAgIQBxzWVyyT9qwhuesoaGcNSTANBgkqhkiG9w0BAQsFADBb\nMQswCQYDVQQGEwJDTjElMCMGA1UEChMcVHJ1c3RBc2lhIFRlY2hub2xvZ2llcywg\nSW5jLjElMCMGA1UEAxMcVHJ1c3RBc2lhIERWIFRMUyBSU0EgQ0EgMjAyNTAeFw0y\nNTA1MjIwMDAwMDBaFw0yNjA1MjEyMzU5NTlaMB4xHDAaBgNVBAMMEyoubmluZ2ho\ndWFuZy5vbmxpbmUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx0X+R\nae2sTAE69KWEtk/0yjW7f0c2V8A00nJU2wvduhdh109ZNx7OAPlIdt6+XsziVSFt\np7SjnKiv1iQLDGEjfpTxakic068q1vLiLApvZmA1rY2FIypGXl2e9OpHHfQSEp0k\nkwEGP6yk+4CP3hY0LDFhO3T8wF6aklVGlEChJRwbRs1ic7n49GZgVh+mnyQNYfTQ\n3vgMPkG6hSF17F6d19XuE3FcFXwTIZc2UHyA1lBhsGeZojRtr0a27TP9ulP48aIJ\nBXwulfslUrNsDAk0rxa4GQWyo4/rzF4fjkkdbcKMP4uYVFoeBdZuT+UpToeK6SOk\nbnYr1kUyb1hL3SbLAgMBAAGjggMlMIIDITAfBgNVHSMEGDAWgBS0EiiltMAdnylx\naTzZEZZKdWlQwDAdBgNVHQ4EFgQU6dEaFyZxsdy//cFjd+9Iq6OCGDswYwYDVR0R\nBFwwWoITKi5uaW5naGh1YW5nLm9ubGluZYIYKi50ZXN0Lm5pbmdoaHVhbmcub25s\naW5lghZ0ZXN0Lm5pbmdoaH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acoVal2xMw\r\nUJK+b7LsuWAF6jkgie8wcL9yhgUjpXoiOlaawfzgna4vlwlFhw/ecyY=\r\n-----END RSA PRIVATE KEY-----",
    "ResourceTypes": [
        "clb"
    ],
    "ResourceTypesRegions": [
        {
            "Regions": [
                "ap-qingyuan"
            ],
            "ResourceType": "clb"
        }
    ]
}

Output Example

{
    "Response": {
        "RequestId": "f716e441-d96a-4480-abb4-dd4925fd79b1",
        "DeployRecordId": 0,
        "DeployStatus": 0,
        "UpdateSyncProgress": [
            {
                "ResourceType": "clb",
                "UpdateSyncProgressRegions": [
                    {
                        "TotalCount": null,
                        "OffsetCount": null,
                        "Status": 0,
                        "Region": "ap-qingyuan"
                    }
                ],
                "Status": 0
            }
        ]
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
FailedOperation.AuthError You do not have permission to perform this operation.
FailedOperation.CertificateDeployHasPendingRecord There is a running certificate deployment task. Please try again after the deployment is complete.
FailedOperation.CertificateDeployInstanceEmpty There is no instance for the selected cloud resource. Updating failed. Please try again after checking it.
FailedOperation.CertificateExists The certificate already exists.
FailedOperation.CertificateHostDeployCanNotAllow The current certificate is not allowed to use the one-click update function.
FailedOperation.CertificateHostResourceInnerInterrupt Unable to use the deployment feature because the login account is an internal account with too many instance resources. Please contact us to handle it.
FailedOperation.CertificateHostResourceInstanceHugeLimit There are too many instances under the current account. Loading cannot be performed properly. Please switch the loading mode. After switching, click "Refresh List" and wait for a period of time. Then, all the instances can be loaded.
FailedOperation.CertificateHostResourceTypeInvalid The cloud resource type is invalid.
FailedOperation.CertificateInvalid The certificate is invalid.
FailedOperation.CertificateMatchError Note: the certificate content and private key do not match. please check (pay attention to whether there are extra spaces).
FailedOperation.CertificateNotAvailable The certificate is not available. Please check and try again.
FailedOperation.CertificateNotDeployInstance The certificate is not allowed to be deployed under the instance list.
FailedOperation.CertificateNotFound The certificate does not exist.
FailedOperation.CertificateParseError Parsing failed. check if the certificate meets the standard and pay attention to whether there are extra spaces.
FailedOperation.InvalidParam Incorrect parameters.
FailedOperation.NoProjectPermission You do not have the permission to operate on this project.
FailedOperation.NoRealNameAuth You have not completed the identity verification.
FailedOperation.RoleNotFoundAuthorization The role does not exist. Please authorize the role first.
InternalError Internal error.
InvalidParameter.WithDetailReason The parameter is incorrect.
InvalidParameterValue.IntermediateCertNotSame Intermediate certificate inconsistent.
LimitExceeded.RateLimitExceeded The API rate limit is reached.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback