简体   繁体   English

SoftLayer API:如何获取questionId列表并回答itemCategoryQuestionAnswer对象中的值

[英]SoftLayer API: How to get list of questionId and answers values in itemCategoryQuestionAnswer object

SoftLayer API SoftLayer_Container_Product_Order_Network_Subnet.itemCategoryQuestionAnswers SoftLayer API SoftLayer_Container_Product_Order_Network_Subnet.itemCategory问题答案

is a type of SoftLayer_Container_Product_Item_Category_Question_Answer, 是SoftLayer_Container_Product_Item_Category_Question_Answer的一种,

How can I get a list of possible 我如何获得可能的清单

questionId/ answer values based on categoryId and catogoryCode in SoftLayer_Container_Product_Item_Category_Question_Answer ? 基于SoftLayer_Container_Product_Item_Category_Question_Answer中的categoryId和catogoryCode的questionId /答案值?

Thanks. 谢谢。

You can retrieve the questions that are associated with an item category with the following method: 您可以使用以下方法检索与项目类别关联的问题:

http://sldn.softlayer.com/reference/services/SoftLayer_Product_Item_Category/getQuestions http://sldn.softlayer.com/reference/services/SoftLayer_Product_Item_Category/getQuestions

eg REST request 例如REST请求

https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Item_Category/312/getQuestions

Method: Get

"312" refers to categoryID, replace it with the categoryId that you wish. “ 312”是指categoryID,将其替换为所需的categoryId。

I hope this information can help you. 希望这些信息对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM