Creates an SSL-VPN client certificate.

Debug

By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes CreateSslVpnClientCert

The name of this action. Value:

CreateSslVpnClientCert

RegionId String Yes cn-hangzhou

The ID of the region to which the VPN Gateway belongs.

To query the region ID, call DescribeRegions.

SslVpnServerId String Yes vss-m5et0q3iy1qex328wcujx

The ID of the SSL-VPN server to be used.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

A client token used to guarantee the idempotence of requests. 

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Name String No SslVpnClientCert1

The name of the client certificate.

The name must be 2 and 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter. It cannot start with http:// or https://.

OwnerAccount String No test

The account of the owner of the SSL-VPN client certificate.

Response parameters

Parameter Type Example value Description
Name String SslVpnClientCert The name of the client certificate.
RequestId String 079874CD-AEC1-43E6-AC03-ADD96B6E4907 The ID of the request.
SslVpnClientCertId String vsc-m5euof6s5jy8vs5kdz2r2 The ID of the client certificate.

Examples

Request example


https://vpc.aliyuncs.com/?Action=CreateSslVpnClientCert
&RegionId=cn-hangzhou
&SslVpnServerId=vss-m5et0q3iy1qex328wcujx
&<CommonParameters>
Response example
  • XML format

    <CreateSslVpnClientCertResponse>
      <SslVpnClientCertId>vsc-bp1n8wcf134yl0osrcg98</SslVpnClientCertId>
      <RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
    </CreateSslVpnClientCertResponse>
    
  • JSON format

    {
    	"RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA",
    	"SslVpnClientCertId":"vsc-bp1n8wcf134yl0osrcg98"
    }

Error codes

HTTP status code Error code Error message Description
403 Forbbiden.SubUser User not authorized to operate on the specified resource as your account is created by another user. You are not authorized to operate on this resource. Please apply for the permission and try again.
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource. For more information, open a ticket.
400 Resource.QuotaFull The quota of resource is full The resource quota has been reached.
400 VpnGateway.Configuring The specified service is configuring. The service is being configured. Please try again later.
400 VpnGateway.FinancialLocked The specified service is financial locked. The service has an overdue payment. Renew your account to settle the overdue payment.
400 InvalidName The name is not valid The name format is invalid.

See common error codes