我可以通过 API 将一些自定义变量传递给 CAM 吗?
Can I pass some custom variables to CAM via the API?
我在 ICP 2.1 beta RC2 上使用 CAM beta
(https://www-01.ibm.com/marketing/iwm/iwmdocs/web/cc/earlyprograms/cloud/cam/index.shtml)
我可以通过 API 将一些自定义变量传递给 CAM 吗?
例如 - 如果我想将此值作为某个自定义 tform 变量传递?
server_url = “https://the.ip.add.ress:443/organizations/sr_org_swis”
我发现答案是:提供者属性也可以引用变量。例如:
variable "vsphere_server" {
description = "Server Name"
}
provider "vsphere" {
vsphere_server = "${var.vsphere_server}"
}
因此,如果您的模板看起来像这样,导入后,vsphere_server 将显示在“模板参数”页面中,您可以传入一个值来覆盖 vsphere_server
云连接附带的。
我在 ICP 2.1 beta RC2 上使用 CAM beta
(https://www-01.ibm.com/marketing/iwm/iwmdocs/web/cc/earlyprograms/cloud/cam/index.shtml)
我可以通过 API 将一些自定义变量传递给 CAM 吗?
例如 - 如果我想将此值作为某个自定义 tform 变量传递?
server_url = “https://the.ip.add.ress:443/organizations/sr_org_swis”
我发现答案是:提供者属性也可以引用变量。例如:
variable "vsphere_server" {
description = "Server Name"
}
provider "vsphere" {
vsphere_server = "${var.vsphere_server}"
}
因此,如果您的模板看起来像这样,导入后,vsphere_server 将显示在“模板参数”页面中,您可以传入一个值来覆盖 vsphere_server
云连接附带的。