How to use the API to update AMI

Could someone give an example on how to use the API to update the AMI that i used in a cloud profile please?

0
3 comments
Hi,

The available API for managing cloud profiles is described here: https://www.jetbrains.com/help/teamcity/rest/manage-cloud-profiles.html.
Could you provide more details on what changes you wish to make?

Best regards,
Anton
0

Hi Anton,

I am using Octous Deploy to run some AWS SSM commands to apply OS Patching.
The AMI number gets updated during this process.

So what I need to be able to modify the AMI linked to a cloud profile

0
The Cloud Profiles properties are available as a project feature inside a project where they are defined. You should be able to pass a new AMI ID there. The project features API: https://www.jetbrains.com/help/teamcity/rest/edit-project-settings.html#Edit+Project+Feature.
Please let me know if this is what you are looking for.

Best regards,
Anton
0

Please sign in to leave a comment.