How to specify action name via API

When taking action on a fixlet or task via the console, you can change the name of the action. Is there a way to do the same thing via the REST API? I looked at https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli%20Endpoint%20Manager/page/RESTAPI%20Action and https://bigfix.me/restapi but couldn’t really find anything that lead me to believe I could.

1 Like

Assuming you mean for a sourcedfixletaction, this is a known limitation and one that we are exploring as an enhancement to improve the REST API. In fact, there’s an open RFE:

http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=87428

2 Likes

That link to the RFE doesn’t go anywhere for me.

It does require signing in with your IBM ID…does it not work then? (I just checked, and it worked for me…)

1 Like

Yes, that’s what I was referencing @Aram thanks for the info.

See if I can resurrect this thread… :smiley:

I see in the 9.5.3 release, it seems like this feature is enabled:

REST API Improvement in V9.5.3: Starting from version 9.5 Patch 3, you can specify the computer assigned to a role in the REST API role resource using the ComputerAssignement definition, and you can assign, in the Title field, a name different from the Fixlet name to an action when using the REST API “taking action of fixlet” function.

I’m looking over the published xsd or new rest api site (https://developer.bigfix.com/rest-api/api/action.html)

Where is this new “Title” field place to name the fixlet?

We’ll have to review the xsd reference on developer.bigfix.com, but when I check the BES.xsd on my 9.5.3 instance, I see the following:

1 Like

Got it, thanks!

2 Likes

I’m right now working with the REST API. I know this is a different topic, but I would like ask you.
I’m having problems to send a put request to update an analysis. In particular when its property contains a text like the following:

(item 0 of it & " : " & item 1 of it)..."

Error

XML Parsing error: 
 expected entity name for reference
 Line 31, Character 31

Have you seen something similar?

good post for another thread… but if I had to guess what’s wrong, are you making sure you put that inside the tag right?

Start a thread on this and send a msg and I’ll see what we can do.

@Aram Side-note, would be nice if the XML you post didn’t have to be node order specific.

Yes, I noted this recently as well. I’ll be looking into why that may be the case.

I fixed it. It was because the symbol ‘&’ needs to be escaped as "&" once I did that replacement I was able to update the analysis via the REST API.

1 Like