You need to enable JavaScript to run this app.
导航

CreateSslVpnClientCert

最近更新时间2024.04.18 17:23:57

首次发布时间2023.07.28 08:04:08

调用CreateSslVpnClientCert创建SSL客户端证书。

调用说明

SSL客户端证书为SSL服务端的子资源。新创建SSL客户端证书与创建时选择的SSL服务端属于同一项目,仅可跟随SSL服务端进行项目的迁移,不可单独对SSL客户端证书进行项目迁移。更多项目介绍,请参见项目管理

调试

请求参数

名称类型是否必选示例值描述
ActionStringCreateSslVpnClientCert要执行的操作,取值:CreateSslVpnClientCert。
VersionString2020-04-01API版本信息。
SslVpnServerIdStringvss-zm55pqtvk17oq32zd****创建SSL客户端证书使用的SSL服务端的ID。您可调用 DescribeSslVpnServers查询SSL服务端的ID信息。

SslVpnClientCertName

String

Ssl_VpnClient

SSL客户端证书的名称。

  • 以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。

  • 长度限制为1 ~ 128个字符。

  • 不填默认为SSL客户端证书的ID。

Description

String

This is a sample description

SSL客户端证书的描述信息。

  • 以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。
  • 长度限制为0 ~ 255个字符。
  • 不填默认为空字符串。

ClientToken

String

123e4567-e89b-12d3-a456-42665544****

客户端Token,用于保证请求幂等性。

  • 由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。

  • 仅支持ASCII字符,且不能超过64个字符。

  • 若不传入ClientToken,则此次API调用不进行幂等校验。

返回数据

名称类型示例值描述
RequestIdString0ED8D006-F706-4D23-88ED-E11ED28****请求ID。
SslVpnClientCertIdStringvsc-zm55pqtvk17oq32zd****新创建的SSL客户端的ID。

请求示例

GET /?Action=CreateSslVpnClientCert&Version=2020-04-01&SslVpnServerId=vss-imwoo6i1dfk08gbssxfj****&SslVpnClientCertName=test-cicd&Description=abc&ClientToken=abc HTTP/1.1
Host: open.volcengineapi.com
ServiceName: vpn
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230727195508EA4507984CE7A7F9ED0D",
        "Action": "CreateSslVpnClientCert",
        "Version": "2020-04-01",
        "Service": "vpn",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "20230727195508EA4507984CE7A7F9****",
        "SslVpnClientCertId": "vsc-12ads0g2fsmps17q7y2w8****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode错误码错误信息描述
400IdempotentParameterMismatchArguments on this idempotent request are inconsistent with arguments used in previous request(s).此幂等请求的参数与前一个请求中使用的参数不一致。
400InvalidDescription.MalformedThe specified description is malformed. Ensure the maximum length of description is 255.指定的描述格式不合法。描述长度不能超过255个字符。
400InvalidDescription.MalformedThe specified description is malformed.指定的描述格式不合法。请修复描述格式后重试。
400InvalidName.MalformedThe specified name is malformed. Ensure the maximum length of name is 128.指定的名称格式不合法。名称长度不能超过128个字符。

400

InvalidName.Malformed

The specified name is malformed.

指定的名称格式不合法。请修复名称格式后重试。

400InvalidParameter.ClientTokenMalformedThe specified parameter ClientToken is malformed.指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。
400InvalidSslVpnServer.InvalidStatusThe specified SSL server is not in the correct status for the request.指定的SSL服务端所处的状态无法响应该请求。
400QuotaExceeded.SSLClientCertYou've reached the limit on the number of SSL client certificates per SSL server that you can create.已达到每个SSL服务端可创建的SSL客户端证书的数量上限。
404InvalidSslVpnServer.NotFoundThe specified SSL server does not exist.指定的SSL服务端不存在。
404InvalidVpnGateway.NotFoundThe specified VPN gateway does not exist.指定的VPN网关不存在。
404InvalidProject.NotFoundThe specified Project does not exist.指定的项目不存在。
412IdempotentProcessingThe request uses the same client token as a previous one that is still in process.幂等请求处理中。
412InvalidVpnGateway.ExpiredThe specified VPN gateway has expired.指定的VPN网关已过期。