shell - Set specific billing period when ordering Endurance iSCSI storage
问题描述
I'm currently writing some blue/green deployment scripts to provision VSIs on SoftLayer (aka IBM Bluemix aka IBMCloud), and I need to provision and attach a new iSCSI storage to every green machine, the blue VSI and iSCSI storage being canceled after a successful deploy. I use the ibmcloud command to provision the iSCSI disks, however it doesn't let me choose which billing method to use (Monthly or Hourly) and it uses the monthly billing by default.
Is there a way to specify to use the hourly billing method using the ibmcloud cli? If it's not possible, is it a feature that will be added to the cli? It seems like a critical feature in order to use the ibmcloud cli in automated deployment scripts.
解决方案
似乎没有选项可以使用 ibmcloud cli 命令更改每小时或每月的计费属性值。
使用此 ibmcloud 命令查看您可以设置的选项。
ibmcloud sl block volume-options
我建议您使用 slcli 而不是 ibmcloud cli,您可以使用以下 slcli 命令每小时订购一次块存储耐力。
slcli block volume-order --storage-type endurance --size 20 --iops 4 --tier 2 --os-type LINUX --location tor01 --snapshot-size 10 --service-offering storage_as_a_service --billing hourly
要登录,请使用以下 slcli 命令:
slcli setup
参考:
推荐阅读
- python - 我从 AutoEncoder tensorflow2.0 按时间顺序得到错误的数据
- flutter - 如果我使用其控制器将文本设置为文本字段,则 ScrollView 会自动滚动
- react-native - 收到错误“GMAPS 路由请求上的 react-native-maps-directions 错误未知错误。” 建立到坐标的连接
- dataframe - 如何附加两个具有相同列的csv文件删除R中的重复行
- python - 如何在没有双反斜杠的情况下将转义序列保存到python中的文件中?
- html - 通过活动类名设置活动状态的样式
- typescript - TypeScript 从参数推断泛型类
- mysql - 在不使用类型的情况下删除 SQL 查询中的查询
- wordpress - WordPress 升级失败。管理面板不工作
- mongodb - 如何在 mongodb 查询中检查 if 条件中的空数组?