Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create assets via automation (infra structure as code)

Jeroen Gouma May 10, 2023

Hi,

we create our cloud resources all via Terraform. When Terraform has created a server in the cloud environment, it also adds the server to our monitor software with the correct settings.

We want all assets also to be created in JSM Assets to be able to link them to tickets created from monitoring system or users.

Is there a way to automatically create (and update or delete) assets in JSM. Most ideally would be via Terraform, but also by calling an API would already be a big step forward.

I did some investigations on our friend Google, but did not find a proper solution until now.

W're running JSM in Cloud version.

 

1 answer

0 votes
Ken McClean
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2023

You could use something like:

POST /jsm/assets/workspace/{workspaceId}/v1/object/create

 

https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-id-referenceinfo-get

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events