You can call the SetCACertificateName API to set the name for a CA Certificate.

Debug

Click here to perform a debug operation in OpenAPI Explorer and automatically generate an SDK code example.

Request parameters

Name Type Required? Example value Description
Action String Yes SetCACertificateName

The action to perform. Valid value: SetCACertificateName.

RegionId String Yes cn-hangzhou

The region to which the CA certificate belongs.

You can query the region ID by calling the DescribeRegions API.

CACertificateId String Yes 139a00604ad-cn-east-hangzhou-01

The ID of the CA certificate

CACertificateName String Yes mycacert02

The name of the CA certificate.

The name must be 1 to 80 characters in length, must start with English letters or Chinese characters, and can contain numbers, underscores (_), periods (.), and hyphens (-).

Response parameters

Name Type Example value Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FE7BA984

The ID of the request

Examples

Request example


http(s)://[Endpoint]/? Action=SetCACertificateName
&RegionId=cn-hangzhou
&CACertificateId=139a00604ad-cn-east-hangzhou-01
&CACertificateName=mycacert02
&<CommonParameters>

Normal response examples

XML format

<SetCACertificateNameResponse>
  <RequestId>CEF72CEB-54B6-4AE8-B225-F876FE7BA984</RequestId>
</SetCACertificateNameResponse>

JSON format

{
	"RequestId":" CEF72CEB-54B6-4AE8-B225-F876FE7BA984"
}

Error response example

JSON format

{
	"Message":"The specified parameter is not valid.",
	"RequestId":"0669D684-69D8-408E-A4FA-B9011E0F4E66",
	"HostId":"slb-pop.aliyuncs.com",
	"Code":"InvalidParameter"
}

Error codes

Click here to view the error codes.