0

我们正在使用 Deployment Manager API 在我们的 NodeJS 应用程序中创建虚拟机。

config.deploymentConfiguration.target.config.content = fs.readFileSync(yamlFile,config.encoding);  
var request = {
    project: config.projectId,
    resource: config.deploymentConfiguration
};

在这里,我想在调用创建 VM 代码之前动态更新 yaml 属性。

deploymentManager.deployments.insert(request, function(err, response){..});

请建议最好的方法来做到这一点。

4

0 回答 0