Server Automation Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

API look up or some way to see the method's parameters?

IdaWong
Occasional Advisor

API look up or some way to see the method's parameters?

hi,

 

is there some way to find out in general the parameters for a certain method?

or is there a API documentation for the full list?

 

for example I don't know what needs to be passed to the method "attachToPolicies". 

# does not work 

attachToPolicies -h 

 

Apologies if this is a rather newbie question. but I simply couldn't find the answer anywhere including in the Platform developer Guide.

 

regards,

3 REPLIES
Deron_Johnson
Acclaimed Contributor

Re: API look up or some way to see the method's parameters?

The only place I've found this documented is in the twister docs https://CORE/twister/

 

In particular, the attachToPolicies document is https://CORE/twister/docs/com/opsware/swmgmt/PatchPolicy.html

Highlighted
DBR
Frequent Visitor

Re: API look up or some way to see the method's parameters?

I just say an update from HP.  In HPSA 9.15 and all of the newer 10.x versions they have added a help option to OGFS.  See QCCR1D164325  for more details.

 

Don

bengland
Frequent Visitor

Re: API look up or some way to see the method's parameters?

Try using --help on any OGFS method and it will report some primitive argument usage information.
More detail can be obtained from the twister docs (as stated prior)

 

[brett@auric method](505) $ ./startInstallSoftware --help
Usage:
JobRef startInstallSoftware(SoftwareInstallJobArgument jobArgs)
[brett@auric method](506) $ ./setCustAttr --help
Usage:
void setCustAttr(CustomAttributeReference self, String namespace, String key, String value)
void setCustAttr(CustomAttributeReference self, String key, String value)
[brett@auric method](507) $

 

//Add this to "OnDomLoad" event