Re: API look up or some way to see the method's parameters? (166 Views)
Reply
Occasional Contributor
IdaWong
Posts: 3
Registered: ‎08-07-2014
Message 1 of 4 (215 Views)

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,

Senior Member
Deron L Johnson
Posts: 3
Registered: ‎04-14-2011
Message 2 of 4 (174 Views)

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

Trusted Contributor
DBR
Posts: 214
Registered: ‎07-29-2010
Message 3 of 4 (166 Views)

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

Frequent Advisor
bengland
Posts: 26
Registered: ‎09-25-2014
Message 4 of 4 (109 Views)

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) $

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.