用于标签机的Softlayer REST API [英] Softlayer REST API for tagging machines
本文介绍了用于标签机的Softlayer REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以给我一个Softlayer REST API来标记已经配置的机器.我需要同时使用虚拟机和裸机.
Can someone please give me a Softlayer REST API for tagging machines that are already provisioned. I need to both for virtual machines and bare metal machines.
谢谢, Kishore
Thanks, Kishore
推荐答案
虚拟机
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Tag/setTags
Method: Post
{
"parameters":[
"tag1,tag2",
"GUEST",
29756959
]
}
replace 29756959 with the ID of your virtual machine
裸机
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Tag/setTags
Method: Post
{
"parameters":[
"tag1,tag2",
"HARDWARE",
29756959
]
}
replace 29756959 with the ID of your bare metal
这篇关于用于标签机的Softlayer REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文