Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

getResults() - Show results of all subactions of an action

Function:

BcAdminAction.getResults()

Returns a list of dictionaries containing the information for all the subactions of this action.

Parameters:

bc_object (BcObject of Type BcObjectType.ACTION)

The result of a perform() call.

Return:

List of dictionaries with the key-value pairs for all the properties of the subactions.A dictionary containing the information in the form of key-value pairs is returned for each subaction. This information broadly corresponds to the columns of the action dialog box in the graphical user interface, see the Layout of the Management Console section of the Management Console online help system – Action dialog box – Layout. There is some additional information that simplifies processing at program level. The value (value) is always of type String, and can also be empty.

Exceptions:

BcObjectException, BcToolException

Example:

...
import BcAdminAction
import BcAdminProxy
...
proxy_obj=BcAdminProxy.getObject("BCProxy")
bcaction=BcAdminProxy.perform(proxy_obj, "save")
iresDicn=BcAdminAction.getResults(bcaction)
...

Keyword (key)
in MC-CLI

Column name in the GUI

Meaning

action

Action

Text of the subaction

action-type

Partly present in Action

Type of subaction (BcDef.ACTION_ xxx or BcDef.ACTION_SA_xxx)

details

Result Details

Detailed information on the result, if available

id

#

Number of the subaction

object-name

Partly present in Action

Name of the object affected by this subaction

object-type

Partly present in Action

Type of object (BcObjectType.xxx.toString())

result

Result

Result of the subaction (BcDef.ACTION_RESULT_xxx)

stack

StackTrace

Detailed information about the stack if an exception has occurred.

state

Action State

Status of the subaction (BcDef.ACTION_STATE_xxx)

Note:

  • The most important values of object-type and action-type are defined in BcObjectType and BcDef. However, it is also possible for non-predefined values to be returned.

  • In order to filter certain events out of this volume of information, it may be useful to create your own functions that read individual items of information from the dictionary returned by getResults() and prepare this as required. One example is available in the form of getCheckResults() and another is present in the form of the function printResults() in the sample script sampleAdminProxyCluster.py.

  • The id numbers of the subactions are hierarchically structured to show which (sub)actions belong to which higher-level actions.