Membuat sertifikat klien SSL-VPN.
Deskripsi operasi
Sebelum membuat sertifikat klien SSL-VPN, pastikan server SSL-VPN telah dibuat untuk instans gateway VPN. Untuk informasi selengkapnya, lihat CreateSslVpnServer.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateSslVpnClientCert |
create |
*SslVpnClientCert
*SslVpnServer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
02fb3da4-130e-11e9-8e44-0016e04115b |
| RegionId |
string |
Yes |
ID wilayah gateway VPN. Anda dapat memanggil operasi DescribeRegions untuk menanyakan ID wilayah. |
cn-hangzhou |
| SslVpnServerId |
string |
Yes |
ID server SSL-VPN. |
vss-m5et0q3iy1qex328w**** |
| Name |
string |
No |
Nama sertifikat klien. Nama harus terdiri dari 1 hingga 100 karakter dan tidak boleh diawali dengan |
SslVpnClientCert1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
606998F0-B94D-48FE-8316-ACA81BB230DA |
| Name |
string |
Nama sertifikat klien SSL-VPN. |
SslVpnClientCert |
| SslVpnClientCertId |
string |
ID sertifikat klien SSL-VPN. |
vsc-m5euof6s5jy8vs5kd**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "606998F0-B94D-48FE-8316-ACA81BB230DA",
"Name": "SslVpnClientCert",
"SslVpnClientCertId": "vsc-m5euof6s5jy8vs5kd****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Resource.QuotaFull | The quota of resource is full | |
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | VpnGateway.FinancialLocked | The specified service is financial locked. | |
| 400 | InvalidName | The name is not valid | |
| 400 | SslVpnClientCreateTimes.ReachLimits | The number of client cert creation operations reaches the upper limit. | |
| 400 | CreateSslCertsQuotaFull.QuotaFull | Create the number of SSL certificates that exceed the quota limit. | The number of SSL certificates that you create exceeds the quota. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You are not authorized to operate the specified resource. Apply for the permissions and try again. |
| 404 | InvalidSslVpnServerId.NotFound | The specified SSL VPN server id does not exist. | |
| 404 | InvalidRegionId.NotFound | The specified region is not found during access authentication. | The specified region is not found during access authentication. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.