如何通过 Softlayer Rest 在 IBM 云中获取 VM Flavors API
How to get a VM Flavours in IBM cloud through Softlayer Rest API
我想使用 Softlayer Rest API 获得 VM Flavours(Compute C1.2x2,Balanced B1.2x8)。我没有找到任何 API 与 get Flavours 相关的参考资料。
要检索活动的 VM 风格,请使用以下剩余 api 调用:
方法:获取
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/835/getActivePresets
您将收到如下例所示的回复:
[
{
"description": "B1.16x64x100",
"id": 351,
"isActive": "1",
"keyName": "B1_16X64X100",
"name": "B1.16x64x100",
"packageId": 835
},
{
"description": "C1.1x1x100",
"id": 359,
"isActive": "1",
"keyName": "C1_1X1X100",
"name": "C1.1x1x100",
"packageId": 835
},
]
我想使用 Softlayer Rest API 获得 VM Flavours(Compute C1.2x2,Balanced B1.2x8)。我没有找到任何 API 与 get Flavours 相关的参考资料。
要检索活动的 VM 风格,请使用以下剩余 api 调用:
方法:获取
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/835/getActivePresets
您将收到如下例所示的回复:
[
{
"description": "B1.16x64x100",
"id": 351,
"isActive": "1",
"keyName": "B1_16X64X100",
"name": "B1.16x64x100",
"packageId": 835
},
{
"description": "C1.1x1x100",
"id": 359,
"isActive": "1",
"keyName": "C1_1X1X100",
"name": "C1.1x1x100",
"packageId": 835
},
]