Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接口文档是POST方法,SDK中参数放在Query中 #617

Open
Yangxing1995 opened this issue Mar 19, 2024 · 2 comments
Open

接口文档是POST方法,SDK中参数放在Query中 #617

Yangxing1995 opened this issue Mar 19, 2024 · 2 comments

Comments

@Yangxing1995
Copy link

产品和接口:https://help.aliyun.com/zh/cdn/developer-reference/api-cdn-2018-05-10-setdomainservercertificate?spm=a2c4g.11186623.0.0.a679151aWO14qo
SDK代码:
image

这只是个例子,很多代码都是这样。
这样调用没问题,但一些情况会打印日志的url,会暴露一些敏感信息(私钥)。
SDK能否把参数放到body中使用?

@JacksonTian
Copy link
Contributor

SDK 是根据 API 定义而生成的。

根据文档,这个 API 已经被废弃了,您可以使用推荐的替代 API 来操作。替代 API 可能修复了这个问题。

@Yangxing1995
Copy link
Author

SDK 是根据 API 定义而生成的。

根据文档,这个 API 已经被废弃了,您可以使用推荐的替代 API 来操作。替代 API 可能修复了这个问题。

替代API SetCdnDomainSSLCertificate,我看SDK中定义的参数位置也是 Query
image

参数放Query中,也可能出现URl过长的问题。比如证书加上证书链和私钥,是个很长的URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants