华为乾坤-修改IPSEC Profile模板:响应示例

时间:2025-05-12 15:32:10

响应示例

返回状态码为200:接口调用成功,响应体参考IpsecProfileResponse。

HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errcode" : "0",
	"errmsg" : "",
	"success" : [
		{
			"id" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
			"name" : "Profile1",
			"ikeVersion" : "V2",
			"authenticationMode" : 0,
			"authenticationAlgorithm" : "SHA2-256",
			"preSharedKey" : "pwd",
			"encryptionAlgorithm" : "AES-256",
			"ikePrf" : "hmac-sha2-256",
			"integrityAlgorithm" : "hmac-sha2-256",
			"ikeSaDuration" : 86400,
			"dhGroup" : "group14",
			"exchangeMode" : "main",
			"dpdEnable" : false,
			"dpdType" : "periodic",
			"dpdIdleTime" : 30,
			"dpdTransmitInterval" : 15,
			"enableLocalId" : false,
			"localType" : "ip",
			"localId" : "192.168.10.1",
			"enableRemoteId" : false,
			"remoteType" : "ip",
			"remoteId" : "192.168.10.1",
			"securityProtocol" : "ESP",
			"ahAuthenticationAlgorithm" : "SHA2-256",
			"espAuthenticationAlgorithm" : "SHA2-256",
			"espEncryptionAlgorithm" : "AES-256",
			"profilePfs" : "dh-group14",
			"trfficBasedSaDuration" : 200000,
			"timeBasedSaDuration" : 7200
		}
	],
	"fail" : [
		{
			"errcode" : "0",
			"errmsg" : "",
			"data" : {
				"id" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"name" : "Profile1",
				"ikeVersion" : "V2",
				"authenticationMode" : 0,
				"authenticationAlgorithm" : "SHA2-256",
				"preSharedKey" : "pwd",
				"encryptionAlgorithm" : "AES-256",
				"ikePrf" : "hmac-sha2-256",
				"integrityAlgorithm" : "hmac-sha2-256",
				"ikeSaDuration" : 86400,
				"dhGroup" : "group14",
				"exchangeMode" : "main",
				"dpdEnable" : false,
				"dpdType" : "periodic",
				"dpdIdleTime" : 30,
				"dpdTransmitInterval" : 15,
				"enableLocalId" : false,
				"localType" : "ip",
				"localId" : "192.168.10.1",
				"enableRemoteId" : false,
				"remoteType" : "ip",
				"remoteId" : "192.168.10.1",
				"securityProtocol" : "ESP",
				"ahAuthenticationAlgorithm" : "SHA2-256",
				"espAuthenticationAlgorithm" : "SHA2-256",
				"espEncryptionAlgorithm" : "AES-256",
				"profilePfs" : "dh-group14",
				"trfficBasedSaDuration" : 200000,
				"timeBasedSaDuration" : 7200
			}
		}
	]
}

返回状态码为400:校验异常。

HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为500:内部错误。

HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002024913169.html
提示

您即将访问非华为云网站,请注意账号财产安全