Modifies the name of an SSL client certificate.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifySslVpnClientCert |
The operation that you want to perform. Set the value to ModifySslVpnClientCert. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-0016e04115b |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId may be different for each API request.
|
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the SSL client certificate is created. You can call the DescribeRegions operation to query the most recent region list. |
SslVpnClientCertId | String | Yes | vsc-bp1n8wcf134yl0osrc**** |
The ID of the SSL-VPN client certificate. |
Name | String | No | cert2 |
The name of the SSL-VPN client certificate. The name must be 1 to 100 characters in length and cannot start with |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 606998F0-B94D-48FE-8316-ACA81BB230DA |
The ID of the request. |
Name | String | cert2 |
The name of the SSL client certificate. |
SslVpnClientCertId | String | vsc-bp1n8wcf134yl0osr**** |
The ID of the SSL-VPN client certificate. |
Examples
Sample requests
https://vpc.aliyuncs.com/?Action=ModifySslVpnClientCert
&RegionId=cn-hangzhou
&SslVpnClientCertId=vsc-bp1n8wcf134yl0osr****
&Name=cert2
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<ModifySslVpnClientCertResponse>
<SslVpnClientCertId>vsc-bp1n8wcf134yl0osr****</SslVpnClientCertId>
<Name>cert2</Name>
<RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
</ModifySslVpnClientCertResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"SslVpnClientCertId" : "vsc-bp1n8wcf134yl0osr****",
"Name" : "cert2",
"RequestId" : "606998F0-B94D-48FE-8316-ACA81BB230DA"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidName | The name is not valid | The error message returned because the format of the name is invalid. |
403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again. |
403 | Forbidden | User not authorized to operate on the specified resource. | The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again. |
For a list of error codes, visit the API Error Center.