public class APIFunctions
extends java.lang.Object
Constructor and Description |
---|
APIFunctions() |
Modifier and Type | Method and Description |
---|---|
ReportContext |
createContext(java.lang.String contextName,
java.lang.String cloud,
java.lang.String value) |
ReportContext |
createContextByType(int contextType,
java.lang.String cloud,
java.lang.String value) |
APINameValue |
createNameValue(java.lang.String name,
java.lang.String value)
Is used to create APINameValue which will be used to create APINameValueList to pass it to a
workflow
|
APINameValueList |
createNameValueList()
Cloupia Script example to create list var params = util.createNameValueList();
params.addNameValue(util.createNameValue(Input_A, a));
params.addNameValue(util.createNameValue(Input_B, 1000));
params.addNameValue(util.createNameValue(Input_C, something));
|
int |
getCloudType(java.lang.String cloudName) |
CUICBranding |
getCUICBranding() |
HistoricalReport |
getHistoricalReport(java.lang.String reportName,
java.lang.String durationName,
ReportContext context) |
SnapshotReport |
getSnapshotReport(java.lang.String reportName,
ReportContext context) |
TableView |
getTabularReport(java.lang.String reportName,
ReportContext context) |
boolean |
isAddressInTheSubnet(java.lang.String networkIP,
java.lang.String subnetMask,
java.lang.String addr) |
boolean |
isSameNetwork(java.lang.String ip1,
java.lang.String ip2,
java.lang.String subnetMask) |
void |
setDataStoreViaVSC(java.lang.String permission) |
public APINameValue createNameValue(java.lang.String name, java.lang.String value)
name
- Label of the work flow inputvalue
- to be used when executing the work flowpublic APINameValueList createNameValueList()
public ReportContext createContext(java.lang.String contextName, java.lang.String cloud, java.lang.String value) throws java.lang.Exception
contextName
- Refer to UCSD API Guide for the available contextscloud
- should be null unless contextName is "cloud" or "host node"value
- identifier of the object that is going to be referencedjava.lang.Exception
public ReportContext createContextByType(int contextType, java.lang.String cloud, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public TableView getTabularReport(java.lang.String reportName, ReportContext context) throws java.lang.Exception
reportName
- This is ID of a report, which can be accessed from UCSD, Administration --> User
Interface Settings --> Reports Customizationcontext
- java.lang.Exception
public SnapshotReport getSnapshotReport(java.lang.String reportName, ReportContext context) throws java.lang.Exception
reportName
- This is ID of a report, which can be accessed from UCSD, Administration --> User
Interface Settings --> Reports Customizationcontext
- java.lang.Exception
public HistoricalReport getHistoricalReport(java.lang.String reportName, java.lang.String durationName, ReportContext context) throws java.lang.Exception
reportName
- This is ID of a report, which can be accessed from UCSD, Administration --> User
Interface Settings --> Reports CustomizationdurationName
- context
- java.lang.Exception
public boolean isAddressInTheSubnet(java.lang.String networkIP, java.lang.String subnetMask, java.lang.String addr)
networkIP
- subnetMask
- addr
- public CUICBranding getCUICBranding()
public boolean isSameNetwork(java.lang.String ip1, java.lang.String ip2, java.lang.String subnetMask)
ip1
- ip2
- subnetMask
- public int getCloudType(java.lang.String cloudName)
cloud
- namepublic void setDataStoreViaVSC(java.lang.String permission)