All Products
Search
Document Center

Web Application Firewall:ModifyCloudResourceDefaultCert

Last Updated:Mar 12, 2026

Modifies the default certificate for cloud native mode.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ResourceManagerResourceGroupId

string

No

The ID of the Alibaba Cloud resource group.

rg-acfm***q

InstanceId

string

Yes

The ID of the WAF instance.

Note

Call DescribeInstance to query the ID of the WAF instance.

waf_v3prepaid_public_cn-kf74****

CloudResourceId

string

Yes

The ID of the connected cloud resource. WAF generates this ID automatically when you connect a cloud resource.

Note

After you connect a resource using CreateCloudResource, check the response to get the resource ID.

lb-***-80-clb7

CertId

string

Yes

The ID of the certificate.

123-cn-hangzhou

RegionId

string

Yes

The region where the WAF instance is deployed. Valid values:

  • cn-hangzhou: the Chinese mainland

  • ap-southeast-1: outside the Chinese mainland

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

D7861F61-5B61-46CE-A47C-***

Examples

Success response

JSON format

{
  "RequestId": "D7861F61-5B61-46CE-A47C-***"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.